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,1177 +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/distribution/v1beta1/distribution.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
- import { Coin, DecCoin } from "../../base/v1beta1/coin";
10
-
11
- export const protobufPackage = "cosmos.distribution.v1beta1";
12
-
13
- /** Params defines the set of params for the distribution module. */
14
- export interface Params {
15
- communityTax: string;
16
- /**
17
- * Deprecated: The base_proposer_reward field is deprecated and is no longer used
18
- * in the x/distribution module's reward mechanism.
19
- *
20
- * @deprecated
21
- */
22
- baseProposerReward: string;
23
- /**
24
- * Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
25
- * in the x/distribution module's reward mechanism.
26
- *
27
- * @deprecated
28
- */
29
- bonusProposerReward: string;
30
- withdrawAddrEnabled: boolean;
31
- }
32
-
33
- /**
34
- * ValidatorHistoricalRewards represents historical rewards for a validator.
35
- * Height is implicit within the store key.
36
- * Cumulative reward ratio is the sum from the zeroeth period
37
- * until this period of rewards / tokens, per the spec.
38
- * The reference count indicates the number of objects
39
- * which might need to reference this historical entry at any point.
40
- * ReferenceCount =
41
- * number of outstanding delegations which ended the associated period (and
42
- * might need to read that record)
43
- * + number of slashes which ended the associated period (and might need to
44
- * read that record)
45
- * + one per validator for the zeroeth period, set on initialization
46
- */
47
- export interface ValidatorHistoricalRewards {
48
- cumulativeRewardRatio: DecCoin[];
49
- referenceCount: number;
50
- }
51
-
52
- /**
53
- * ValidatorCurrentRewards represents current rewards and current
54
- * period for a validator kept as a running counter and incremented
55
- * each block as long as the validator's tokens remain constant.
56
- */
57
- export interface ValidatorCurrentRewards {
58
- rewards: DecCoin[];
59
- period: number;
60
- }
61
-
62
- /**
63
- * ValidatorAccumulatedCommission represents accumulated commission
64
- * for a validator kept as a running counter, can be withdrawn at any time.
65
- */
66
- export interface ValidatorAccumulatedCommission {
67
- commission: DecCoin[];
68
- }
69
-
70
- /**
71
- * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
72
- * for a validator inexpensive to track, allows simple sanity checks.
73
- */
74
- export interface ValidatorOutstandingRewards {
75
- rewards: DecCoin[];
76
- }
77
-
78
- /**
79
- * ValidatorSlashEvent represents a validator slash event.
80
- * Height is implicit within the store key.
81
- * This is needed to calculate appropriate amount of staking tokens
82
- * for delegations which are withdrawn after a slash has occurred.
83
- */
84
- export interface ValidatorSlashEvent {
85
- validatorPeriod: number;
86
- fraction: string;
87
- }
88
-
89
- /** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
90
- export interface ValidatorSlashEvents {
91
- validatorSlashEvents: ValidatorSlashEvent[];
92
- }
93
-
94
- /** FeePool is the global fee pool for distribution. */
95
- export interface FeePool {
96
- communityPool: DecCoin[];
97
- }
98
-
99
- /**
100
- * CommunityPoolSpendProposal details a proposal for use of community funds,
101
- * together with how many coins are proposed to be spent, and to which
102
- * recipient account.
103
- *
104
- * Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
105
- * longer a need for an explicit CommunityPoolSpendProposal. To spend community
106
- * pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
107
- * module via a v1 governance proposal.
108
- *
109
- * @deprecated
110
- */
111
- export interface CommunityPoolSpendProposal {
112
- title: string;
113
- description: string;
114
- recipient: string;
115
- amount: Coin[];
116
- }
117
-
118
- /**
119
- * DelegatorStartingInfo represents the starting info for a delegator reward
120
- * period. It tracks the previous validator period, the delegation's amount of
121
- * staking token, and the creation height (to check later on if any slashes have
122
- * occurred). NOTE: Even though validators are slashed to whole staking tokens,
123
- * the delegators within the validator may be left with less than a full token,
124
- * thus sdk.Dec is used.
125
- */
126
- export interface DelegatorStartingInfo {
127
- previousPeriod: number;
128
- stake: string;
129
- height: number;
130
- }
131
-
132
- /**
133
- * DelegationDelegatorReward represents the properties
134
- * of a delegator's delegation reward.
135
- */
136
- export interface DelegationDelegatorReward {
137
- validatorAddress: string;
138
- reward: DecCoin[];
139
- }
140
-
141
- /**
142
- * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
143
- * with a deposit
144
- */
145
- export interface CommunityPoolSpendProposalWithDeposit {
146
- title: string;
147
- description: string;
148
- recipient: string;
149
- amount: string;
150
- deposit: string;
151
- }
152
-
153
- function createBaseParams(): Params {
154
- return { communityTax: "", baseProposerReward: "", bonusProposerReward: "", withdrawAddrEnabled: false };
155
- }
156
-
157
- export const Params: MessageFns<Params> = {
158
- encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
159
- if (message.communityTax !== "") {
160
- writer.uint32(10).string(message.communityTax);
161
- }
162
- if (message.baseProposerReward !== "") {
163
- writer.uint32(18).string(message.baseProposerReward);
164
- }
165
- if (message.bonusProposerReward !== "") {
166
- writer.uint32(26).string(message.bonusProposerReward);
167
- }
168
- if (message.withdrawAddrEnabled !== false) {
169
- writer.uint32(32).bool(message.withdrawAddrEnabled);
170
- }
171
- return writer;
172
- },
173
-
174
- decode(input: BinaryReader | Uint8Array, length?: number): Params {
175
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
176
- let end = length === undefined ? reader.len : reader.pos + length;
177
- const message = createBaseParams();
178
- while (reader.pos < end) {
179
- const tag = reader.uint32();
180
- switch (tag >>> 3) {
181
- case 1: {
182
- if (tag !== 10) {
183
- break;
184
- }
185
-
186
- message.communityTax = reader.string();
187
- continue;
188
- }
189
- case 2: {
190
- if (tag !== 18) {
191
- break;
192
- }
193
-
194
- message.baseProposerReward = reader.string();
195
- continue;
196
- }
197
- case 3: {
198
- if (tag !== 26) {
199
- break;
200
- }
201
-
202
- message.bonusProposerReward = reader.string();
203
- continue;
204
- }
205
- case 4: {
206
- if (tag !== 32) {
207
- break;
208
- }
209
-
210
- message.withdrawAddrEnabled = reader.bool();
211
- continue;
212
- }
213
- }
214
- if ((tag & 7) === 4 || tag === 0) {
215
- break;
216
- }
217
- reader.skip(tag & 7);
218
- }
219
- return message;
220
- },
221
-
222
- fromJSON(object: any): Params {
223
- return {
224
- communityTax: isSet(object.communityTax) ? globalThis.String(object.communityTax) : "",
225
- baseProposerReward: isSet(object.baseProposerReward) ? globalThis.String(object.baseProposerReward) : "",
226
- bonusProposerReward: isSet(object.bonusProposerReward) ? globalThis.String(object.bonusProposerReward) : "",
227
- withdrawAddrEnabled: isSet(object.withdrawAddrEnabled) ? globalThis.Boolean(object.withdrawAddrEnabled) : false,
228
- };
229
- },
230
-
231
- toJSON(message: Params): unknown {
232
- const obj: any = {};
233
- if (message.communityTax !== "") {
234
- obj.communityTax = message.communityTax;
235
- }
236
- if (message.baseProposerReward !== "") {
237
- obj.baseProposerReward = message.baseProposerReward;
238
- }
239
- if (message.bonusProposerReward !== "") {
240
- obj.bonusProposerReward = message.bonusProposerReward;
241
- }
242
- if (message.withdrawAddrEnabled !== false) {
243
- obj.withdrawAddrEnabled = message.withdrawAddrEnabled;
244
- }
245
- return obj;
246
- },
247
-
248
- create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
249
- return Params.fromPartial(base ?? ({} as any));
250
- },
251
- fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
252
- const message = createBaseParams();
253
- message.communityTax = object.communityTax ?? "";
254
- message.baseProposerReward = object.baseProposerReward ?? "";
255
- message.bonusProposerReward = object.bonusProposerReward ?? "";
256
- message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false;
257
- return message;
258
- },
259
- };
260
-
261
- function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards {
262
- return { cumulativeRewardRatio: [], referenceCount: 0 };
263
- }
264
-
265
- export const ValidatorHistoricalRewards: MessageFns<ValidatorHistoricalRewards> = {
266
- encode(message: ValidatorHistoricalRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
267
- for (const v of message.cumulativeRewardRatio) {
268
- DecCoin.encode(v!, writer.uint32(10).fork()).join();
269
- }
270
- if (message.referenceCount !== 0) {
271
- writer.uint32(16).uint32(message.referenceCount);
272
- }
273
- return writer;
274
- },
275
-
276
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards {
277
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
278
- let end = length === undefined ? reader.len : reader.pos + length;
279
- const message = createBaseValidatorHistoricalRewards();
280
- while (reader.pos < end) {
281
- const tag = reader.uint32();
282
- switch (tag >>> 3) {
283
- case 1: {
284
- if (tag !== 10) {
285
- break;
286
- }
287
-
288
- message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32()));
289
- continue;
290
- }
291
- case 2: {
292
- if (tag !== 16) {
293
- break;
294
- }
295
-
296
- message.referenceCount = reader.uint32();
297
- continue;
298
- }
299
- }
300
- if ((tag & 7) === 4 || tag === 0) {
301
- break;
302
- }
303
- reader.skip(tag & 7);
304
- }
305
- return message;
306
- },
307
-
308
- fromJSON(object: any): ValidatorHistoricalRewards {
309
- return {
310
- cumulativeRewardRatio: globalThis.Array.isArray(object?.cumulativeRewardRatio)
311
- ? object.cumulativeRewardRatio.map((e: any) => DecCoin.fromJSON(e))
312
- : [],
313
- referenceCount: isSet(object.referenceCount) ? globalThis.Number(object.referenceCount) : 0,
314
- };
315
- },
316
-
317
- toJSON(message: ValidatorHistoricalRewards): unknown {
318
- const obj: any = {};
319
- if (message.cumulativeRewardRatio?.length) {
320
- obj.cumulativeRewardRatio = message.cumulativeRewardRatio.map((e) => DecCoin.toJSON(e));
321
- }
322
- if (message.referenceCount !== 0) {
323
- obj.referenceCount = Math.round(message.referenceCount);
324
- }
325
- return obj;
326
- },
327
-
328
- create<I extends Exact<DeepPartial<ValidatorHistoricalRewards>, I>>(base?: I): ValidatorHistoricalRewards {
329
- return ValidatorHistoricalRewards.fromPartial(base ?? ({} as any));
330
- },
331
- fromPartial<I extends Exact<DeepPartial<ValidatorHistoricalRewards>, I>>(object: I): ValidatorHistoricalRewards {
332
- const message = createBaseValidatorHistoricalRewards();
333
- message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map((e) => DecCoin.fromPartial(e)) || [];
334
- message.referenceCount = object.referenceCount ?? 0;
335
- return message;
336
- },
337
- };
338
-
339
- function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards {
340
- return { rewards: [], period: 0 };
341
- }
342
-
343
- export const ValidatorCurrentRewards: MessageFns<ValidatorCurrentRewards> = {
344
- encode(message: ValidatorCurrentRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
345
- for (const v of message.rewards) {
346
- DecCoin.encode(v!, writer.uint32(10).fork()).join();
347
- }
348
- if (message.period !== 0) {
349
- writer.uint32(16).uint64(message.period);
350
- }
351
- return writer;
352
- },
353
-
354
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards {
355
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
356
- let end = length === undefined ? reader.len : reader.pos + length;
357
- const message = createBaseValidatorCurrentRewards();
358
- while (reader.pos < end) {
359
- const tag = reader.uint32();
360
- switch (tag >>> 3) {
361
- case 1: {
362
- if (tag !== 10) {
363
- break;
364
- }
365
-
366
- message.rewards.push(DecCoin.decode(reader, reader.uint32()));
367
- continue;
368
- }
369
- case 2: {
370
- if (tag !== 16) {
371
- break;
372
- }
373
-
374
- message.period = longToNumber(reader.uint64());
375
- continue;
376
- }
377
- }
378
- if ((tag & 7) === 4 || tag === 0) {
379
- break;
380
- }
381
- reader.skip(tag & 7);
382
- }
383
- return message;
384
- },
385
-
386
- fromJSON(object: any): ValidatorCurrentRewards {
387
- return {
388
- rewards: globalThis.Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
389
- period: isSet(object.period) ? globalThis.Number(object.period) : 0,
390
- };
391
- },
392
-
393
- toJSON(message: ValidatorCurrentRewards): unknown {
394
- const obj: any = {};
395
- if (message.rewards?.length) {
396
- obj.rewards = message.rewards.map((e) => DecCoin.toJSON(e));
397
- }
398
- if (message.period !== 0) {
399
- obj.period = Math.round(message.period);
400
- }
401
- return obj;
402
- },
403
-
404
- create<I extends Exact<DeepPartial<ValidatorCurrentRewards>, I>>(base?: I): ValidatorCurrentRewards {
405
- return ValidatorCurrentRewards.fromPartial(base ?? ({} as any));
406
- },
407
- fromPartial<I extends Exact<DeepPartial<ValidatorCurrentRewards>, I>>(object: I): ValidatorCurrentRewards {
408
- const message = createBaseValidatorCurrentRewards();
409
- message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
410
- message.period = object.period ?? 0;
411
- return message;
412
- },
413
- };
414
-
415
- function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission {
416
- return { commission: [] };
417
- }
418
-
419
- export const ValidatorAccumulatedCommission: MessageFns<ValidatorAccumulatedCommission> = {
420
- encode(message: ValidatorAccumulatedCommission, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
421
- for (const v of message.commission) {
422
- DecCoin.encode(v!, writer.uint32(10).fork()).join();
423
- }
424
- return writer;
425
- },
426
-
427
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission {
428
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
429
- let end = length === undefined ? reader.len : reader.pos + length;
430
- const message = createBaseValidatorAccumulatedCommission();
431
- while (reader.pos < end) {
432
- const tag = reader.uint32();
433
- switch (tag >>> 3) {
434
- case 1: {
435
- if (tag !== 10) {
436
- break;
437
- }
438
-
439
- message.commission.push(DecCoin.decode(reader, reader.uint32()));
440
- continue;
441
- }
442
- }
443
- if ((tag & 7) === 4 || tag === 0) {
444
- break;
445
- }
446
- reader.skip(tag & 7);
447
- }
448
- return message;
449
- },
450
-
451
- fromJSON(object: any): ValidatorAccumulatedCommission {
452
- return {
453
- commission: globalThis.Array.isArray(object?.commission)
454
- ? object.commission.map((e: any) => DecCoin.fromJSON(e))
455
- : [],
456
- };
457
- },
458
-
459
- toJSON(message: ValidatorAccumulatedCommission): unknown {
460
- const obj: any = {};
461
- if (message.commission?.length) {
462
- obj.commission = message.commission.map((e) => DecCoin.toJSON(e));
463
- }
464
- return obj;
465
- },
466
-
467
- create<I extends Exact<DeepPartial<ValidatorAccumulatedCommission>, I>>(base?: I): ValidatorAccumulatedCommission {
468
- return ValidatorAccumulatedCommission.fromPartial(base ?? ({} as any));
469
- },
470
- fromPartial<I extends Exact<DeepPartial<ValidatorAccumulatedCommission>, I>>(
471
- object: I,
472
- ): ValidatorAccumulatedCommission {
473
- const message = createBaseValidatorAccumulatedCommission();
474
- message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
475
- return message;
476
- },
477
- };
478
-
479
- function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards {
480
- return { rewards: [] };
481
- }
482
-
483
- export const ValidatorOutstandingRewards: MessageFns<ValidatorOutstandingRewards> = {
484
- encode(message: ValidatorOutstandingRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
485
- for (const v of message.rewards) {
486
- DecCoin.encode(v!, writer.uint32(10).fork()).join();
487
- }
488
- return writer;
489
- },
490
-
491
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards {
492
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
493
- let end = length === undefined ? reader.len : reader.pos + length;
494
- const message = createBaseValidatorOutstandingRewards();
495
- while (reader.pos < end) {
496
- const tag = reader.uint32();
497
- switch (tag >>> 3) {
498
- case 1: {
499
- if (tag !== 10) {
500
- break;
501
- }
502
-
503
- message.rewards.push(DecCoin.decode(reader, reader.uint32()));
504
- continue;
505
- }
506
- }
507
- if ((tag & 7) === 4 || tag === 0) {
508
- break;
509
- }
510
- reader.skip(tag & 7);
511
- }
512
- return message;
513
- },
514
-
515
- fromJSON(object: any): ValidatorOutstandingRewards {
516
- return {
517
- rewards: globalThis.Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
518
- };
519
- },
520
-
521
- toJSON(message: ValidatorOutstandingRewards): unknown {
522
- const obj: any = {};
523
- if (message.rewards?.length) {
524
- obj.rewards = message.rewards.map((e) => DecCoin.toJSON(e));
525
- }
526
- return obj;
527
- },
528
-
529
- create<I extends Exact<DeepPartial<ValidatorOutstandingRewards>, I>>(base?: I): ValidatorOutstandingRewards {
530
- return ValidatorOutstandingRewards.fromPartial(base ?? ({} as any));
531
- },
532
- fromPartial<I extends Exact<DeepPartial<ValidatorOutstandingRewards>, I>>(object: I): ValidatorOutstandingRewards {
533
- const message = createBaseValidatorOutstandingRewards();
534
- message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
535
- return message;
536
- },
537
- };
538
-
539
- function createBaseValidatorSlashEvent(): ValidatorSlashEvent {
540
- return { validatorPeriod: 0, fraction: "" };
541
- }
542
-
543
- export const ValidatorSlashEvent: MessageFns<ValidatorSlashEvent> = {
544
- encode(message: ValidatorSlashEvent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
545
- if (message.validatorPeriod !== 0) {
546
- writer.uint32(8).uint64(message.validatorPeriod);
547
- }
548
- if (message.fraction !== "") {
549
- writer.uint32(18).string(message.fraction);
550
- }
551
- return writer;
552
- },
553
-
554
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent {
555
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
556
- let end = length === undefined ? reader.len : reader.pos + length;
557
- const message = createBaseValidatorSlashEvent();
558
- while (reader.pos < end) {
559
- const tag = reader.uint32();
560
- switch (tag >>> 3) {
561
- case 1: {
562
- if (tag !== 8) {
563
- break;
564
- }
565
-
566
- message.validatorPeriod = longToNumber(reader.uint64());
567
- continue;
568
- }
569
- case 2: {
570
- if (tag !== 18) {
571
- break;
572
- }
573
-
574
- message.fraction = reader.string();
575
- continue;
576
- }
577
- }
578
- if ((tag & 7) === 4 || tag === 0) {
579
- break;
580
- }
581
- reader.skip(tag & 7);
582
- }
583
- return message;
584
- },
585
-
586
- fromJSON(object: any): ValidatorSlashEvent {
587
- return {
588
- validatorPeriod: isSet(object.validatorPeriod) ? globalThis.Number(object.validatorPeriod) : 0,
589
- fraction: isSet(object.fraction) ? globalThis.String(object.fraction) : "",
590
- };
591
- },
592
-
593
- toJSON(message: ValidatorSlashEvent): unknown {
594
- const obj: any = {};
595
- if (message.validatorPeriod !== 0) {
596
- obj.validatorPeriod = Math.round(message.validatorPeriod);
597
- }
598
- if (message.fraction !== "") {
599
- obj.fraction = message.fraction;
600
- }
601
- return obj;
602
- },
603
-
604
- create<I extends Exact<DeepPartial<ValidatorSlashEvent>, I>>(base?: I): ValidatorSlashEvent {
605
- return ValidatorSlashEvent.fromPartial(base ?? ({} as any));
606
- },
607
- fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvent>, I>>(object: I): ValidatorSlashEvent {
608
- const message = createBaseValidatorSlashEvent();
609
- message.validatorPeriod = object.validatorPeriod ?? 0;
610
- message.fraction = object.fraction ?? "";
611
- return message;
612
- },
613
- };
614
-
615
- function createBaseValidatorSlashEvents(): ValidatorSlashEvents {
616
- return { validatorSlashEvents: [] };
617
- }
618
-
619
- export const ValidatorSlashEvents: MessageFns<ValidatorSlashEvents> = {
620
- encode(message: ValidatorSlashEvents, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
621
- for (const v of message.validatorSlashEvents) {
622
- ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).join();
623
- }
624
- return writer;
625
- },
626
-
627
- decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents {
628
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
629
- let end = length === undefined ? reader.len : reader.pos + length;
630
- const message = createBaseValidatorSlashEvents();
631
- while (reader.pos < end) {
632
- const tag = reader.uint32();
633
- switch (tag >>> 3) {
634
- case 1: {
635
- if (tag !== 10) {
636
- break;
637
- }
638
-
639
- message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
640
- continue;
641
- }
642
- }
643
- if ((tag & 7) === 4 || tag === 0) {
644
- break;
645
- }
646
- reader.skip(tag & 7);
647
- }
648
- return message;
649
- },
650
-
651
- fromJSON(object: any): ValidatorSlashEvents {
652
- return {
653
- validatorSlashEvents: globalThis.Array.isArray(object?.validatorSlashEvents)
654
- ? object.validatorSlashEvents.map((e: any) => ValidatorSlashEvent.fromJSON(e))
655
- : [],
656
- };
657
- },
658
-
659
- toJSON(message: ValidatorSlashEvents): unknown {
660
- const obj: any = {};
661
- if (message.validatorSlashEvents?.length) {
662
- obj.validatorSlashEvents = message.validatorSlashEvents.map((e) => ValidatorSlashEvent.toJSON(e));
663
- }
664
- return obj;
665
- },
666
-
667
- create<I extends Exact<DeepPartial<ValidatorSlashEvents>, I>>(base?: I): ValidatorSlashEvents {
668
- return ValidatorSlashEvents.fromPartial(base ?? ({} as any));
669
- },
670
- fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvents>, I>>(object: I): ValidatorSlashEvents {
671
- const message = createBaseValidatorSlashEvents();
672
- message.validatorSlashEvents = object.validatorSlashEvents?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
673
- return message;
674
- },
675
- };
676
-
677
- function createBaseFeePool(): FeePool {
678
- return { communityPool: [] };
679
- }
680
-
681
- export const FeePool: MessageFns<FeePool> = {
682
- encode(message: FeePool, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
683
- for (const v of message.communityPool) {
684
- DecCoin.encode(v!, writer.uint32(10).fork()).join();
685
- }
686
- return writer;
687
- },
688
-
689
- decode(input: BinaryReader | Uint8Array, length?: number): FeePool {
690
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
691
- let end = length === undefined ? reader.len : reader.pos + length;
692
- const message = createBaseFeePool();
693
- while (reader.pos < end) {
694
- const tag = reader.uint32();
695
- switch (tag >>> 3) {
696
- case 1: {
697
- if (tag !== 10) {
698
- break;
699
- }
700
-
701
- message.communityPool.push(DecCoin.decode(reader, reader.uint32()));
702
- continue;
703
- }
704
- }
705
- if ((tag & 7) === 4 || tag === 0) {
706
- break;
707
- }
708
- reader.skip(tag & 7);
709
- }
710
- return message;
711
- },
712
-
713
- fromJSON(object: any): FeePool {
714
- return {
715
- communityPool: globalThis.Array.isArray(object?.communityPool)
716
- ? object.communityPool.map((e: any) => DecCoin.fromJSON(e))
717
- : [],
718
- };
719
- },
720
-
721
- toJSON(message: FeePool): unknown {
722
- const obj: any = {};
723
- if (message.communityPool?.length) {
724
- obj.communityPool = message.communityPool.map((e) => DecCoin.toJSON(e));
725
- }
726
- return obj;
727
- },
728
-
729
- create<I extends Exact<DeepPartial<FeePool>, I>>(base?: I): FeePool {
730
- return FeePool.fromPartial(base ?? ({} as any));
731
- },
732
- fromPartial<I extends Exact<DeepPartial<FeePool>, I>>(object: I): FeePool {
733
- const message = createBaseFeePool();
734
- message.communityPool = object.communityPool?.map((e) => DecCoin.fromPartial(e)) || [];
735
- return message;
736
- },
737
- };
738
-
739
- function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal {
740
- return { title: "", description: "", recipient: "", amount: [] };
741
- }
742
-
743
- export const CommunityPoolSpendProposal: MessageFns<CommunityPoolSpendProposal> = {
744
- encode(message: CommunityPoolSpendProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
745
- if (message.title !== "") {
746
- writer.uint32(10).string(message.title);
747
- }
748
- if (message.description !== "") {
749
- writer.uint32(18).string(message.description);
750
- }
751
- if (message.recipient !== "") {
752
- writer.uint32(26).string(message.recipient);
753
- }
754
- for (const v of message.amount) {
755
- Coin.encode(v!, writer.uint32(34).fork()).join();
756
- }
757
- return writer;
758
- },
759
-
760
- decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal {
761
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
762
- let end = length === undefined ? reader.len : reader.pos + length;
763
- const message = createBaseCommunityPoolSpendProposal();
764
- while (reader.pos < end) {
765
- const tag = reader.uint32();
766
- switch (tag >>> 3) {
767
- case 1: {
768
- if (tag !== 10) {
769
- break;
770
- }
771
-
772
- message.title = reader.string();
773
- continue;
774
- }
775
- case 2: {
776
- if (tag !== 18) {
777
- break;
778
- }
779
-
780
- message.description = reader.string();
781
- continue;
782
- }
783
- case 3: {
784
- if (tag !== 26) {
785
- break;
786
- }
787
-
788
- message.recipient = reader.string();
789
- continue;
790
- }
791
- case 4: {
792
- if (tag !== 34) {
793
- break;
794
- }
795
-
796
- message.amount.push(Coin.decode(reader, reader.uint32()));
797
- continue;
798
- }
799
- }
800
- if ((tag & 7) === 4 || tag === 0) {
801
- break;
802
- }
803
- reader.skip(tag & 7);
804
- }
805
- return message;
806
- },
807
-
808
- fromJSON(object: any): CommunityPoolSpendProposal {
809
- return {
810
- title: isSet(object.title) ? globalThis.String(object.title) : "",
811
- description: isSet(object.description) ? globalThis.String(object.description) : "",
812
- recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
813
- amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
814
- };
815
- },
816
-
817
- toJSON(message: CommunityPoolSpendProposal): unknown {
818
- const obj: any = {};
819
- if (message.title !== "") {
820
- obj.title = message.title;
821
- }
822
- if (message.description !== "") {
823
- obj.description = message.description;
824
- }
825
- if (message.recipient !== "") {
826
- obj.recipient = message.recipient;
827
- }
828
- if (message.amount?.length) {
829
- obj.amount = message.amount.map((e) => Coin.toJSON(e));
830
- }
831
- return obj;
832
- },
833
-
834
- create<I extends Exact<DeepPartial<CommunityPoolSpendProposal>, I>>(base?: I): CommunityPoolSpendProposal {
835
- return CommunityPoolSpendProposal.fromPartial(base ?? ({} as any));
836
- },
837
- fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposal>, I>>(object: I): CommunityPoolSpendProposal {
838
- const message = createBaseCommunityPoolSpendProposal();
839
- message.title = object.title ?? "";
840
- message.description = object.description ?? "";
841
- message.recipient = object.recipient ?? "";
842
- message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
843
- return message;
844
- },
845
- };
846
-
847
- function createBaseDelegatorStartingInfo(): DelegatorStartingInfo {
848
- return { previousPeriod: 0, stake: "", height: 0 };
849
- }
850
-
851
- export const DelegatorStartingInfo: MessageFns<DelegatorStartingInfo> = {
852
- encode(message: DelegatorStartingInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
853
- if (message.previousPeriod !== 0) {
854
- writer.uint32(8).uint64(message.previousPeriod);
855
- }
856
- if (message.stake !== "") {
857
- writer.uint32(18).string(message.stake);
858
- }
859
- if (message.height !== 0) {
860
- writer.uint32(24).uint64(message.height);
861
- }
862
- return writer;
863
- },
864
-
865
- decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo {
866
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
867
- let end = length === undefined ? reader.len : reader.pos + length;
868
- const message = createBaseDelegatorStartingInfo();
869
- while (reader.pos < end) {
870
- const tag = reader.uint32();
871
- switch (tag >>> 3) {
872
- case 1: {
873
- if (tag !== 8) {
874
- break;
875
- }
876
-
877
- message.previousPeriod = longToNumber(reader.uint64());
878
- continue;
879
- }
880
- case 2: {
881
- if (tag !== 18) {
882
- break;
883
- }
884
-
885
- message.stake = reader.string();
886
- continue;
887
- }
888
- case 3: {
889
- if (tag !== 24) {
890
- break;
891
- }
892
-
893
- message.height = longToNumber(reader.uint64());
894
- continue;
895
- }
896
- }
897
- if ((tag & 7) === 4 || tag === 0) {
898
- break;
899
- }
900
- reader.skip(tag & 7);
901
- }
902
- return message;
903
- },
904
-
905
- fromJSON(object: any): DelegatorStartingInfo {
906
- return {
907
- previousPeriod: isSet(object.previousPeriod) ? globalThis.Number(object.previousPeriod) : 0,
908
- stake: isSet(object.stake) ? globalThis.String(object.stake) : "",
909
- height: isSet(object.height) ? globalThis.Number(object.height) : 0,
910
- };
911
- },
912
-
913
- toJSON(message: DelegatorStartingInfo): unknown {
914
- const obj: any = {};
915
- if (message.previousPeriod !== 0) {
916
- obj.previousPeriod = Math.round(message.previousPeriod);
917
- }
918
- if (message.stake !== "") {
919
- obj.stake = message.stake;
920
- }
921
- if (message.height !== 0) {
922
- obj.height = Math.round(message.height);
923
- }
924
- return obj;
925
- },
926
-
927
- create<I extends Exact<DeepPartial<DelegatorStartingInfo>, I>>(base?: I): DelegatorStartingInfo {
928
- return DelegatorStartingInfo.fromPartial(base ?? ({} as any));
929
- },
930
- fromPartial<I extends Exact<DeepPartial<DelegatorStartingInfo>, I>>(object: I): DelegatorStartingInfo {
931
- const message = createBaseDelegatorStartingInfo();
932
- message.previousPeriod = object.previousPeriod ?? 0;
933
- message.stake = object.stake ?? "";
934
- message.height = object.height ?? 0;
935
- return message;
936
- },
937
- };
938
-
939
- function createBaseDelegationDelegatorReward(): DelegationDelegatorReward {
940
- return { validatorAddress: "", reward: [] };
941
- }
942
-
943
- export const DelegationDelegatorReward: MessageFns<DelegationDelegatorReward> = {
944
- encode(message: DelegationDelegatorReward, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
945
- if (message.validatorAddress !== "") {
946
- writer.uint32(10).string(message.validatorAddress);
947
- }
948
- for (const v of message.reward) {
949
- DecCoin.encode(v!, writer.uint32(18).fork()).join();
950
- }
951
- return writer;
952
- },
953
-
954
- decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward {
955
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
956
- let end = length === undefined ? reader.len : reader.pos + length;
957
- const message = createBaseDelegationDelegatorReward();
958
- while (reader.pos < end) {
959
- const tag = reader.uint32();
960
- switch (tag >>> 3) {
961
- case 1: {
962
- if (tag !== 10) {
963
- break;
964
- }
965
-
966
- message.validatorAddress = reader.string();
967
- continue;
968
- }
969
- case 2: {
970
- if (tag !== 18) {
971
- break;
972
- }
973
-
974
- message.reward.push(DecCoin.decode(reader, reader.uint32()));
975
- continue;
976
- }
977
- }
978
- if ((tag & 7) === 4 || tag === 0) {
979
- break;
980
- }
981
- reader.skip(tag & 7);
982
- }
983
- return message;
984
- },
985
-
986
- fromJSON(object: any): DelegationDelegatorReward {
987
- return {
988
- validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
989
- reward: globalThis.Array.isArray(object?.reward) ? object.reward.map((e: any) => DecCoin.fromJSON(e)) : [],
990
- };
991
- },
992
-
993
- toJSON(message: DelegationDelegatorReward): unknown {
994
- const obj: any = {};
995
- if (message.validatorAddress !== "") {
996
- obj.validatorAddress = message.validatorAddress;
997
- }
998
- if (message.reward?.length) {
999
- obj.reward = message.reward.map((e) => DecCoin.toJSON(e));
1000
- }
1001
- return obj;
1002
- },
1003
-
1004
- create<I extends Exact<DeepPartial<DelegationDelegatorReward>, I>>(base?: I): DelegationDelegatorReward {
1005
- return DelegationDelegatorReward.fromPartial(base ?? ({} as any));
1006
- },
1007
- fromPartial<I extends Exact<DeepPartial<DelegationDelegatorReward>, I>>(object: I): DelegationDelegatorReward {
1008
- const message = createBaseDelegationDelegatorReward();
1009
- message.validatorAddress = object.validatorAddress ?? "";
1010
- message.reward = object.reward?.map((e) => DecCoin.fromPartial(e)) || [];
1011
- return message;
1012
- },
1013
- };
1014
-
1015
- function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit {
1016
- return { title: "", description: "", recipient: "", amount: "", deposit: "" };
1017
- }
1018
-
1019
- export const CommunityPoolSpendProposalWithDeposit: MessageFns<CommunityPoolSpendProposalWithDeposit> = {
1020
- encode(message: CommunityPoolSpendProposalWithDeposit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1021
- if (message.title !== "") {
1022
- writer.uint32(10).string(message.title);
1023
- }
1024
- if (message.description !== "") {
1025
- writer.uint32(18).string(message.description);
1026
- }
1027
- if (message.recipient !== "") {
1028
- writer.uint32(26).string(message.recipient);
1029
- }
1030
- if (message.amount !== "") {
1031
- writer.uint32(34).string(message.amount);
1032
- }
1033
- if (message.deposit !== "") {
1034
- writer.uint32(42).string(message.deposit);
1035
- }
1036
- return writer;
1037
- },
1038
-
1039
- decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit {
1040
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1041
- let end = length === undefined ? reader.len : reader.pos + length;
1042
- const message = createBaseCommunityPoolSpendProposalWithDeposit();
1043
- while (reader.pos < end) {
1044
- const tag = reader.uint32();
1045
- switch (tag >>> 3) {
1046
- case 1: {
1047
- if (tag !== 10) {
1048
- break;
1049
- }
1050
-
1051
- message.title = reader.string();
1052
- continue;
1053
- }
1054
- case 2: {
1055
- if (tag !== 18) {
1056
- break;
1057
- }
1058
-
1059
- message.description = reader.string();
1060
- continue;
1061
- }
1062
- case 3: {
1063
- if (tag !== 26) {
1064
- break;
1065
- }
1066
-
1067
- message.recipient = reader.string();
1068
- continue;
1069
- }
1070
- case 4: {
1071
- if (tag !== 34) {
1072
- break;
1073
- }
1074
-
1075
- message.amount = reader.string();
1076
- continue;
1077
- }
1078
- case 5: {
1079
- if (tag !== 42) {
1080
- break;
1081
- }
1082
-
1083
- message.deposit = reader.string();
1084
- continue;
1085
- }
1086
- }
1087
- if ((tag & 7) === 4 || tag === 0) {
1088
- break;
1089
- }
1090
- reader.skip(tag & 7);
1091
- }
1092
- return message;
1093
- },
1094
-
1095
- fromJSON(object: any): CommunityPoolSpendProposalWithDeposit {
1096
- return {
1097
- title: isSet(object.title) ? globalThis.String(object.title) : "",
1098
- description: isSet(object.description) ? globalThis.String(object.description) : "",
1099
- recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
1100
- amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
1101
- deposit: isSet(object.deposit) ? globalThis.String(object.deposit) : "",
1102
- };
1103
- },
1104
-
1105
- toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown {
1106
- const obj: any = {};
1107
- if (message.title !== "") {
1108
- obj.title = message.title;
1109
- }
1110
- if (message.description !== "") {
1111
- obj.description = message.description;
1112
- }
1113
- if (message.recipient !== "") {
1114
- obj.recipient = message.recipient;
1115
- }
1116
- if (message.amount !== "") {
1117
- obj.amount = message.amount;
1118
- }
1119
- if (message.deposit !== "") {
1120
- obj.deposit = message.deposit;
1121
- }
1122
- return obj;
1123
- },
1124
-
1125
- create<I extends Exact<DeepPartial<CommunityPoolSpendProposalWithDeposit>, I>>(
1126
- base?: I,
1127
- ): CommunityPoolSpendProposalWithDeposit {
1128
- return CommunityPoolSpendProposalWithDeposit.fromPartial(base ?? ({} as any));
1129
- },
1130
- fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposalWithDeposit>, I>>(
1131
- object: I,
1132
- ): CommunityPoolSpendProposalWithDeposit {
1133
- const message = createBaseCommunityPoolSpendProposalWithDeposit();
1134
- message.title = object.title ?? "";
1135
- message.description = object.description ?? "";
1136
- message.recipient = object.recipient ?? "";
1137
- message.amount = object.amount ?? "";
1138
- message.deposit = object.deposit ?? "";
1139
- return message;
1140
- },
1141
- };
1142
-
1143
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1144
-
1145
- export type DeepPartial<T> = T extends Builtin ? T
1146
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
1147
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
1148
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
1149
- : Partial<T>;
1150
-
1151
- type KeysOfUnion<T> = T extends T ? keyof T : never;
1152
- export type Exact<P, I extends P> = P extends Builtin ? P
1153
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
1154
-
1155
- function longToNumber(int64: { toString(): string }): number {
1156
- const num = globalThis.Number(int64.toString());
1157
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
1158
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1159
- }
1160
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
1161
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
1162
- }
1163
- return num;
1164
- }
1165
-
1166
- function isSet(value: any): boolean {
1167
- return value !== null && value !== undefined;
1168
- }
1169
-
1170
- export interface MessageFns<T> {
1171
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
1172
- decode(input: BinaryReader | Uint8Array, length?: number): T;
1173
- fromJSON(object: any): T;
1174
- toJSON(message: T): unknown;
1175
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1176
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1177
- }