decentralcardgame-cardchain-client-ts 0.0.15 → 0.0.17

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 (248) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +318 -383
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
  10. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
  11. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
  14. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
  15. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
  16. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
  17. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
  18. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
  21. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
  22. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
  23. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
  24. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
  25. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
  27. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
  28. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
  29. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
  30. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
  31. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
  32. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
  33. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
  34. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
  35. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
  36. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
  37. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
  38. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
  39. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
  40. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
  41. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
  42. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
  43. package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
  44. package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
  45. package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
  46. package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
  47. package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
  48. package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
  49. package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
  50. package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
  51. package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
  52. package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
  53. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
  54. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
  55. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
  56. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
  57. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
  58. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
  59. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
  60. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
  61. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
  62. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
  63. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
  64. package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
  65. package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  66. package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  67. package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
  68. package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
  69. package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
  70. package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
  71. package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
  72. package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
  73. package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
  74. package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
  75. package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
  76. package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
  77. package/client.js +7 -7
  78. package/client.ts +9 -10
  79. package/cosmos.auth.v1beta1/module.js +0 -2
  80. package/cosmos.auth.v1beta1/module.ts +0 -2
  81. package/cosmos.auth.v1beta1/rest.js +3 -18
  82. package/cosmos.auth.v1beta1/rest.ts +3 -113
  83. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  84. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  85. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  86. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
  87. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
  88. package/cosmos.auth.v1beta1/types.js +1 -2
  89. package/cosmos.auth.v1beta1/types.ts +0 -2
  90. package/cosmos.authz.v1beta1/module.js +19 -19
  91. package/cosmos.authz.v1beta1/module.ts +29 -29
  92. package/cosmos.authz.v1beta1/registry.js +2 -2
  93. package/cosmos.authz.v1beta1/registry.ts +2 -2
  94. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  95. package/cosmos.bank.v1beta1/module.js +16 -16
  96. package/cosmos.bank.v1beta1/module.ts +24 -24
  97. package/cosmos.bank.v1beta1/registry.js +2 -2
  98. package/cosmos.bank.v1beta1/registry.ts +2 -2
  99. package/cosmos.bank.v1beta1/rest.js +6 -37
  100. package/cosmos.bank.v1beta1/rest.ts +6 -99
  101. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
  102. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
  103. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
  104. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
  105. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
  106. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
  107. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
  108. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
  109. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
  110. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  111. package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
  112. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
  113. package/cosmos.crisis.v1beta1/module.js +1 -24
  114. package/cosmos.crisis.v1beta1/module.ts +1 -34
  115. package/cosmos.crisis.v1beta1/registry.js +0 -2
  116. package/cosmos.crisis.v1beta1/registry.ts +0 -2
  117. package/cosmos.crisis.v1beta1/rest.ts +0 -19
  118. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
  119. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
  120. package/cosmos.distribution.v1beta1/module.js +21 -67
  121. package/cosmos.distribution.v1beta1/module.ts +34 -100
  122. package/cosmos.distribution.v1beta1/registry.js +4 -8
  123. package/cosmos.distribution.v1beta1/registry.ts +4 -8
  124. package/cosmos.distribution.v1beta1/rest.js +0 -14
  125. package/cosmos.distribution.v1beta1/rest.ts +7 -66
  126. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
  127. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
  130. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
  131. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
  132. package/cosmos.evidence.v1beta1/rest.js +3 -4
  133. package/cosmos.evidence.v1beta1/rest.ts +3 -4
  134. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
  135. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
  136. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
  137. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
  138. package/cosmos.gov.v1/module.js +21 -46
  139. package/cosmos.gov.v1/module.ts +33 -68
  140. package/cosmos.gov.v1/registry.js +4 -6
  141. package/cosmos.gov.v1/registry.ts +4 -6
  142. package/cosmos.gov.v1/rest.ts +41 -155
  143. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
  144. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
  145. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
  146. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
  147. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
  148. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
  149. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
  150. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
  151. package/cosmos.gov.v1/types.js +1 -2
  152. package/cosmos.gov.v1/types.ts +0 -2
  153. package/cosmos.gov.v1beta1/module.js +24 -24
  154. package/cosmos.gov.v1beta1/module.ts +36 -36
  155. package/cosmos.gov.v1beta1/registry.js +4 -4
  156. package/cosmos.gov.v1beta1/registry.ts +4 -4
  157. package/cosmos.gov.v1beta1/rest.ts +96 -65
  158. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  159. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
  160. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
  161. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
  162. package/cosmos.group.v1/module.js +92 -92
  163. package/cosmos.group.v1/module.ts +138 -138
  164. package/cosmos.group.v1/registry.js +16 -16
  165. package/cosmos.group.v1/registry.ts +16 -16
  166. package/cosmos.group.v1/rest.js +3 -3
  167. package/cosmos.group.v1/rest.ts +9 -29
  168. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  169. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
  170. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
  171. package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
  172. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
  173. package/cosmos.mint.v1beta1/rest.ts +1 -9
  174. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  175. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  176. package/cosmos.nft.v1beta1/rest.ts +22 -18
  177. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
  178. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
  179. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
  180. package/cosmos.slashing.v1beta1/rest.ts +0 -8
  181. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  182. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
  183. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
  184. package/cosmos.staking.v1beta1/module.js +39 -41
  185. package/cosmos.staking.v1beta1/module.ts +59 -61
  186. package/cosmos.staking.v1beta1/registry.js +6 -6
  187. package/cosmos.staking.v1beta1/registry.ts +6 -6
  188. package/cosmos.staking.v1beta1/rest.js +7 -7
  189. package/cosmos.staking.v1beta1/rest.ts +8 -49
  190. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  191. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
  192. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
  193. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
  194. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
  195. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
  196. package/cosmos.staking.v1beta1/types.js +1 -2
  197. package/cosmos.staking.v1beta1/types.ts +0 -2
  198. package/cosmos.tx.v1beta1/rest.js +2 -66
  199. package/cosmos.tx.v1beta1/rest.ts +16 -177
  200. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
  201. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
  202. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
  203. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
  204. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
  205. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
  206. package/cosmos.upgrade.v1beta1/rest.ts +1 -0
  207. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  208. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  209. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
  210. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
  211. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
  212. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
  213. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
  214. package/ibc.applications.transfer.v1/module.js +27 -5
  215. package/ibc.applications.transfer.v1/module.ts +34 -5
  216. package/ibc.applications.transfer.v1/registry.js +4 -1
  217. package/ibc.applications.transfer.v1/registry.ts +2 -0
  218. package/ibc.applications.transfer.v1/rest.js +1 -15
  219. package/ibc.applications.transfer.v1/rest.ts +1 -30
  220. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  221. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
  222. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
  223. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
  224. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
  225. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
  226. package/ibc.applications.transfer.v1/types.js +1 -3
  227. package/ibc.applications.transfer.v1/types.ts +0 -4
  228. package/ibc.core.channel.v1/rest.ts +0 -1
  229. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  230. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
  231. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
  232. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
  233. package/ibc.core.client.v1/rest.ts +1 -5
  234. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  235. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
  236. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
  237. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
  238. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
  239. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
  240. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  241. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  242. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
  243. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
  244. package/ibc.core.connection.v1/types/proofs.js +1126 -0
  245. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  246. package/index.js +3 -3
  247. package/index.ts +3 -3
  248. package/package.json +1 -1
@@ -4,7 +4,7 @@ import _m0 from "protobufjs/minimal";
4
4
  import { Timestamp } from "../../google/protobuf/timestamp";
5
5
  import { PublicKey } from "../crypto/keys";
6
6
  import { ProofOps } from "../crypto/proof";
7
- import { ConsensusParams } from "../types/params";
7
+ import { EvidenceParams, ValidatorParams, VersionParams } from "../types/params";
8
8
  import { Header } from "../types/types";
9
9
 
10
10
  export const protobufPackage = "tendermint.abci";
@@ -42,40 +42,40 @@ export function checkTxTypeToJSON(object: CheckTxType): string {
42
42
  }
43
43
  }
44
44
 
45
- export enum MisbehaviorType {
45
+ export enum EvidenceType {
46
46
  UNKNOWN = 0,
47
47
  DUPLICATE_VOTE = 1,
48
48
  LIGHT_CLIENT_ATTACK = 2,
49
49
  UNRECOGNIZED = -1,
50
50
  }
51
51
 
52
- export function misbehaviorTypeFromJSON(object: any): MisbehaviorType {
52
+ export function evidenceTypeFromJSON(object: any): EvidenceType {
53
53
  switch (object) {
54
54
  case 0:
55
55
  case "UNKNOWN":
56
- return MisbehaviorType.UNKNOWN;
56
+ return EvidenceType.UNKNOWN;
57
57
  case 1:
58
58
  case "DUPLICATE_VOTE":
59
- return MisbehaviorType.DUPLICATE_VOTE;
59
+ return EvidenceType.DUPLICATE_VOTE;
60
60
  case 2:
61
61
  case "LIGHT_CLIENT_ATTACK":
62
- return MisbehaviorType.LIGHT_CLIENT_ATTACK;
62
+ return EvidenceType.LIGHT_CLIENT_ATTACK;
63
63
  case -1:
64
64
  case "UNRECOGNIZED":
65
65
  default:
66
- return MisbehaviorType.UNRECOGNIZED;
66
+ return EvidenceType.UNRECOGNIZED;
67
67
  }
68
68
  }
69
69
 
70
- export function misbehaviorTypeToJSON(object: MisbehaviorType): string {
70
+ export function evidenceTypeToJSON(object: EvidenceType): string {
71
71
  switch (object) {
72
- case MisbehaviorType.UNKNOWN:
72
+ case EvidenceType.UNKNOWN:
73
73
  return "UNKNOWN";
74
- case MisbehaviorType.DUPLICATE_VOTE:
74
+ case EvidenceType.DUPLICATE_VOTE:
75
75
  return "DUPLICATE_VOTE";
76
- case MisbehaviorType.LIGHT_CLIENT_ATTACK:
76
+ case EvidenceType.LIGHT_CLIENT_ATTACK:
77
77
  return "LIGHT_CLIENT_ATTACK";
78
- case MisbehaviorType.UNRECOGNIZED:
78
+ case EvidenceType.UNRECOGNIZED:
79
79
  default:
80
80
  return "UNRECOGNIZED";
81
81
  }
@@ -85,6 +85,7 @@ export interface Request {
85
85
  echo: RequestEcho | undefined;
86
86
  flush: RequestFlush | undefined;
87
87
  info: RequestInfo | undefined;
88
+ setOption: RequestSetOption | undefined;
88
89
  initChain: RequestInitChain | undefined;
89
90
  query: RequestQuery | undefined;
90
91
  beginBlock: RequestBeginBlock | undefined;
@@ -96,8 +97,6 @@ export interface Request {
96
97
  offerSnapshot: RequestOfferSnapshot | undefined;
97
98
  loadSnapshotChunk: RequestLoadSnapshotChunk | undefined;
98
99
  applySnapshotChunk: RequestApplySnapshotChunk | undefined;
99
- prepareProposal: RequestPrepareProposal | undefined;
100
- processProposal: RequestProcessProposal | undefined;
101
100
  }
102
101
 
103
102
  export interface RequestEcho {
@@ -111,7 +110,12 @@ export interface RequestInfo {
111
110
  version: string;
112
111
  blockVersion: number;
113
112
  p2pVersion: number;
114
- abciVersion: string;
113
+ }
114
+
115
+ /** nondeterministic */
116
+ export interface RequestSetOption {
117
+ key: string;
118
+ value: string;
115
119
  }
116
120
 
117
121
  export interface RequestInitChain {
@@ -133,8 +137,8 @@ export interface RequestQuery {
133
137
  export interface RequestBeginBlock {
134
138
  hash: Uint8Array;
135
139
  header: Header | undefined;
136
- lastCommitInfo: CommitInfo | undefined;
137
- byzantineValidators: Misbehavior[];
140
+ lastCommitInfo: LastCommitInfo | undefined;
141
+ byzantineValidators: Evidence[];
138
142
  }
139
143
 
140
144
  export interface RequestCheckTx {
@@ -181,41 +185,12 @@ export interface RequestApplySnapshotChunk {
181
185
  sender: string;
182
186
  }
183
187
 
184
- export interface RequestPrepareProposal {
185
- /** the modified transactions cannot exceed this size. */
186
- maxTxBytes: number;
187
- /**
188
- * txs is an array of transactions that will be included in a block,
189
- * sent to the app for possible modifications.
190
- */
191
- txs: Uint8Array[];
192
- localLastCommit: ExtendedCommitInfo | undefined;
193
- misbehavior: Misbehavior[];
194
- height: number;
195
- time: Date | undefined;
196
- nextValidatorsHash: Uint8Array;
197
- /** address of the public key of the validator proposing the block. */
198
- proposerAddress: Uint8Array;
199
- }
200
-
201
- export interface RequestProcessProposal {
202
- txs: Uint8Array[];
203
- proposedLastCommit: CommitInfo | undefined;
204
- misbehavior: Misbehavior[];
205
- /** hash is the merkle root hash of the fields of the proposed block. */
206
- hash: Uint8Array;
207
- height: number;
208
- time: Date | undefined;
209
- nextValidatorsHash: Uint8Array;
210
- /** address of the public key of the original proposer of the block. */
211
- proposerAddress: Uint8Array;
212
- }
213
-
214
188
  export interface Response {
215
189
  exception: ResponseException | undefined;
216
190
  echo: ResponseEcho | undefined;
217
191
  flush: ResponseFlush | undefined;
218
192
  info: ResponseInfo | undefined;
193
+ setOption: ResponseSetOption | undefined;
219
194
  initChain: ResponseInitChain | undefined;
220
195
  query: ResponseQuery | undefined;
221
196
  beginBlock: ResponseBeginBlock | undefined;
@@ -227,8 +202,6 @@ export interface Response {
227
202
  offerSnapshot: ResponseOfferSnapshot | undefined;
228
203
  loadSnapshotChunk: ResponseLoadSnapshotChunk | undefined;
229
204
  applySnapshotChunk: ResponseApplySnapshotChunk | undefined;
230
- prepareProposal: ResponsePrepareProposal | undefined;
231
- processProposal: ResponseProcessProposal | undefined;
232
205
  }
233
206
 
234
207
  /** nondeterministic */
@@ -251,6 +224,14 @@ export interface ResponseInfo {
251
224
  lastBlockAppHash: Uint8Array;
252
225
  }
253
226
 
227
+ /** nondeterministic */
228
+ export interface ResponseSetOption {
229
+ code: number;
230
+ /** bytes data = 2; */
231
+ log: string;
232
+ info: string;
233
+ }
234
+
254
235
  export interface ResponseInitChain {
255
236
  consensusParams: ConsensusParams | undefined;
256
237
  validators: ValidatorUpdate[];
@@ -467,68 +448,30 @@ export function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySna
467
448
  }
468
449
  }
469
450
 
470
- export interface ResponsePrepareProposal {
471
- txs: Uint8Array[];
472
- }
473
-
474
- export interface ResponseProcessProposal {
475
- status: ResponseProcessProposal_ProposalStatus;
476
- }
477
-
478
- export enum ResponseProcessProposal_ProposalStatus {
479
- UNKNOWN = 0,
480
- ACCEPT = 1,
481
- REJECT = 2,
482
- UNRECOGNIZED = -1,
483
- }
484
-
485
- export function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus {
486
- switch (object) {
487
- case 0:
488
- case "UNKNOWN":
489
- return ResponseProcessProposal_ProposalStatus.UNKNOWN;
490
- case 1:
491
- case "ACCEPT":
492
- return ResponseProcessProposal_ProposalStatus.ACCEPT;
493
- case 2:
494
- case "REJECT":
495
- return ResponseProcessProposal_ProposalStatus.REJECT;
496
- case -1:
497
- case "UNRECOGNIZED":
498
- default:
499
- return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED;
500
- }
451
+ /**
452
+ * ConsensusParams contains all consensus-relevant parameters
453
+ * that can be adjusted by the abci app
454
+ */
455
+ export interface ConsensusParams {
456
+ block: BlockParams | undefined;
457
+ evidence: EvidenceParams | undefined;
458
+ validator: ValidatorParams | undefined;
459
+ version: VersionParams | undefined;
501
460
  }
502
461
 
503
- export function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string {
504
- switch (object) {
505
- case ResponseProcessProposal_ProposalStatus.UNKNOWN:
506
- return "UNKNOWN";
507
- case ResponseProcessProposal_ProposalStatus.ACCEPT:
508
- return "ACCEPT";
509
- case ResponseProcessProposal_ProposalStatus.REJECT:
510
- return "REJECT";
511
- case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED:
512
- default:
513
- return "UNRECOGNIZED";
514
- }
462
+ /** BlockParams contains limits on the block size. */
463
+ export interface BlockParams {
464
+ /** Note: must be greater than 0 */
465
+ maxBytes: number;
466
+ /** Note: must be greater or equal to -1 */
467
+ maxGas: number;
515
468
  }
516
469
 
517
- export interface CommitInfo {
470
+ export interface LastCommitInfo {
518
471
  round: number;
519
472
  votes: VoteInfo[];
520
473
  }
521
474
 
522
- export interface ExtendedCommitInfo {
523
- /** The round at which the block proposer decided in the previous height. */
524
- round: number;
525
- /**
526
- * List of validators' addresses in the last validator set with their voting
527
- * information, including vote extensions.
528
- */
529
- votes: ExtendedVoteInfo[];
530
- }
531
-
532
475
  /**
533
476
  * Event allows application developers to attach additional information to
534
477
  * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx.
@@ -541,8 +484,8 @@ export interface Event {
541
484
 
542
485
  /** EventAttribute is a single key-value pair, associated with an event. */
543
486
  export interface EventAttribute {
544
- key: string;
545
- value: string;
487
+ key: Uint8Array;
488
+ value: Uint8Array;
546
489
  /** nondeterministic */
547
490
  index: boolean;
548
491
  }
@@ -579,15 +522,8 @@ export interface VoteInfo {
579
522
  signedLastBlock: boolean;
580
523
  }
581
524
 
582
- export interface ExtendedVoteInfo {
583
- validator: Validator | undefined;
584
- signedLastBlock: boolean;
585
- /** Reserved for future use */
586
- voteExtension: Uint8Array;
587
- }
588
-
589
- export interface Misbehavior {
590
- type: MisbehaviorType;
525
+ export interface Evidence {
526
+ type: EvidenceType;
591
527
  /** The offending validator */
592
528
  validator:
593
529
  | Validator
@@ -624,6 +560,7 @@ function createBaseRequest(): Request {
624
560
  echo: undefined,
625
561
  flush: undefined,
626
562
  info: undefined,
563
+ setOption: undefined,
627
564
  initChain: undefined,
628
565
  query: undefined,
629
566
  beginBlock: undefined,
@@ -635,8 +572,6 @@ function createBaseRequest(): Request {
635
572
  offerSnapshot: undefined,
636
573
  loadSnapshotChunk: undefined,
637
574
  applySnapshotChunk: undefined,
638
- prepareProposal: undefined,
639
- processProposal: undefined,
640
575
  };
641
576
  }
642
577
 
@@ -651,6 +586,9 @@ export const Request = {
651
586
  if (message.info !== undefined) {
652
587
  RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim();
653
588
  }
589
+ if (message.setOption !== undefined) {
590
+ RequestSetOption.encode(message.setOption, writer.uint32(34).fork()).ldelim();
591
+ }
654
592
  if (message.initChain !== undefined) {
655
593
  RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim();
656
594
  }
@@ -684,12 +622,6 @@ export const Request = {
684
622
  if (message.applySnapshotChunk !== undefined) {
685
623
  RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim();
686
624
  }
687
- if (message.prepareProposal !== undefined) {
688
- RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim();
689
- }
690
- if (message.processProposal !== undefined) {
691
- RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim();
692
- }
693
625
  return writer;
694
626
  },
695
627
 
@@ -709,6 +641,9 @@ export const Request = {
709
641
  case 3:
710
642
  message.info = RequestInfo.decode(reader, reader.uint32());
711
643
  break;
644
+ case 4:
645
+ message.setOption = RequestSetOption.decode(reader, reader.uint32());
646
+ break;
712
647
  case 5:
713
648
  message.initChain = RequestInitChain.decode(reader, reader.uint32());
714
649
  break;
@@ -742,12 +677,6 @@ export const Request = {
742
677
  case 15:
743
678
  message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32());
744
679
  break;
745
- case 16:
746
- message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32());
747
- break;
748
- case 17:
749
- message.processProposal = RequestProcessProposal.decode(reader, reader.uint32());
750
- break;
751
680
  default:
752
681
  reader.skipType(tag & 7);
753
682
  break;
@@ -761,6 +690,7 @@ export const Request = {
761
690
  echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined,
762
691
  flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined,
763
692
  info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined,
693
+ setOption: isSet(object.setOption) ? RequestSetOption.fromJSON(object.setOption) : undefined,
764
694
  initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined,
765
695
  query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined,
766
696
  beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined,
@@ -776,12 +706,6 @@ export const Request = {
776
706
  applySnapshotChunk: isSet(object.applySnapshotChunk)
777
707
  ? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
778
708
  : undefined,
779
- prepareProposal: isSet(object.prepareProposal)
780
- ? RequestPrepareProposal.fromJSON(object.prepareProposal)
781
- : undefined,
782
- processProposal: isSet(object.processProposal)
783
- ? RequestProcessProposal.fromJSON(object.processProposal)
784
- : undefined,
785
709
  };
786
710
  },
787
711
 
@@ -790,6 +714,8 @@ export const Request = {
790
714
  message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined);
791
715
  message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined);
792
716
  message.info !== undefined && (obj.info = message.info ? RequestInfo.toJSON(message.info) : undefined);
717
+ message.setOption !== undefined
718
+ && (obj.setOption = message.setOption ? RequestSetOption.toJSON(message.setOption) : undefined);
793
719
  message.initChain !== undefined
794
720
  && (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined);
795
721
  message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined);
@@ -812,12 +738,6 @@ export const Request = {
812
738
  message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
813
739
  ? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk)
814
740
  : undefined);
815
- message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal
816
- ? RequestPrepareProposal.toJSON(message.prepareProposal)
817
- : undefined);
818
- message.processProposal !== undefined && (obj.processProposal = message.processProposal
819
- ? RequestProcessProposal.toJSON(message.processProposal)
820
- : undefined);
821
741
  return obj;
822
742
  },
823
743
 
@@ -832,6 +752,9 @@ export const Request = {
832
752
  message.info = (object.info !== undefined && object.info !== null)
833
753
  ? RequestInfo.fromPartial(object.info)
834
754
  : undefined;
755
+ message.setOption = (object.setOption !== undefined && object.setOption !== null)
756
+ ? RequestSetOption.fromPartial(object.setOption)
757
+ : undefined;
835
758
  message.initChain = (object.initChain !== undefined && object.initChain !== null)
836
759
  ? RequestInitChain.fromPartial(object.initChain)
837
760
  : undefined;
@@ -865,12 +788,6 @@ export const Request = {
865
788
  message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
866
789
  ? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
867
790
  : undefined;
868
- message.prepareProposal = (object.prepareProposal !== undefined && object.prepareProposal !== null)
869
- ? RequestPrepareProposal.fromPartial(object.prepareProposal)
870
- : undefined;
871
- message.processProposal = (object.processProposal !== undefined && object.processProposal !== null)
872
- ? RequestProcessProposal.fromPartial(object.processProposal)
873
- : undefined;
874
791
  return message;
875
792
  },
876
793
  };
@@ -962,7 +879,7 @@ export const RequestFlush = {
962
879
  };
963
880
 
964
881
  function createBaseRequestInfo(): RequestInfo {
965
- return { version: "", blockVersion: 0, p2pVersion: 0, abciVersion: "" };
882
+ return { version: "", blockVersion: 0, p2pVersion: 0 };
966
883
  }
967
884
 
968
885
  export const RequestInfo = {
@@ -976,9 +893,6 @@ export const RequestInfo = {
976
893
  if (message.p2pVersion !== 0) {
977
894
  writer.uint32(24).uint64(message.p2pVersion);
978
895
  }
979
- if (message.abciVersion !== "") {
980
- writer.uint32(34).string(message.abciVersion);
981
- }
982
896
  return writer;
983
897
  },
984
898
 
@@ -998,9 +912,6 @@ export const RequestInfo = {
998
912
  case 3:
999
913
  message.p2pVersion = longToNumber(reader.uint64() as Long);
1000
914
  break;
1001
- case 4:
1002
- message.abciVersion = reader.string();
1003
- break;
1004
915
  default:
1005
916
  reader.skipType(tag & 7);
1006
917
  break;
@@ -1014,7 +925,6 @@ export const RequestInfo = {
1014
925
  version: isSet(object.version) ? String(object.version) : "",
1015
926
  blockVersion: isSet(object.blockVersion) ? Number(object.blockVersion) : 0,
1016
927
  p2pVersion: isSet(object.p2pVersion) ? Number(object.p2pVersion) : 0,
1017
- abciVersion: isSet(object.abciVersion) ? String(object.abciVersion) : "",
1018
928
  };
1019
929
  },
1020
930
 
@@ -1023,7 +933,6 @@ export const RequestInfo = {
1023
933
  message.version !== undefined && (obj.version = message.version);
1024
934
  message.blockVersion !== undefined && (obj.blockVersion = Math.round(message.blockVersion));
1025
935
  message.p2pVersion !== undefined && (obj.p2pVersion = Math.round(message.p2pVersion));
1026
- message.abciVersion !== undefined && (obj.abciVersion = message.abciVersion);
1027
936
  return obj;
1028
937
  },
1029
938
 
@@ -1032,7 +941,61 @@ export const RequestInfo = {
1032
941
  message.version = object.version ?? "";
1033
942
  message.blockVersion = object.blockVersion ?? 0;
1034
943
  message.p2pVersion = object.p2pVersion ?? 0;
1035
- message.abciVersion = object.abciVersion ?? "";
944
+ return message;
945
+ },
946
+ };
947
+
948
+ function createBaseRequestSetOption(): RequestSetOption {
949
+ return { key: "", value: "" };
950
+ }
951
+
952
+ export const RequestSetOption = {
953
+ encode(message: RequestSetOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
954
+ if (message.key !== "") {
955
+ writer.uint32(10).string(message.key);
956
+ }
957
+ if (message.value !== "") {
958
+ writer.uint32(18).string(message.value);
959
+ }
960
+ return writer;
961
+ },
962
+
963
+ decode(input: _m0.Reader | Uint8Array, length?: number): RequestSetOption {
964
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
965
+ let end = length === undefined ? reader.len : reader.pos + length;
966
+ const message = createBaseRequestSetOption();
967
+ while (reader.pos < end) {
968
+ const tag = reader.uint32();
969
+ switch (tag >>> 3) {
970
+ case 1:
971
+ message.key = reader.string();
972
+ break;
973
+ case 2:
974
+ message.value = reader.string();
975
+ break;
976
+ default:
977
+ reader.skipType(tag & 7);
978
+ break;
979
+ }
980
+ }
981
+ return message;
982
+ },
983
+
984
+ fromJSON(object: any): RequestSetOption {
985
+ return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
986
+ },
987
+
988
+ toJSON(message: RequestSetOption): unknown {
989
+ const obj: any = {};
990
+ message.key !== undefined && (obj.key = message.key);
991
+ message.value !== undefined && (obj.value = message.value);
992
+ return obj;
993
+ },
994
+
995
+ fromPartial<I extends Exact<DeepPartial<RequestSetOption>, I>>(object: I): RequestSetOption {
996
+ const message = createBaseRequestSetOption();
997
+ message.key = object.key ?? "";
998
+ message.value = object.value ?? "";
1036
999
  return message;
1037
1000
  },
1038
1001
  };
@@ -1240,10 +1203,10 @@ export const RequestBeginBlock = {
1240
1203
  Header.encode(message.header, writer.uint32(18).fork()).ldelim();
1241
1204
  }
1242
1205
  if (message.lastCommitInfo !== undefined) {
1243
- CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
1206
+ LastCommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
1244
1207
  }
1245
1208
  for (const v of message.byzantineValidators) {
1246
- Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim();
1209
+ Evidence.encode(v!, writer.uint32(34).fork()).ldelim();
1247
1210
  }
1248
1211
  return writer;
1249
1212
  },
@@ -1262,10 +1225,10 @@ export const RequestBeginBlock = {
1262
1225
  message.header = Header.decode(reader, reader.uint32());
1263
1226
  break;
1264
1227
  case 3:
1265
- message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32());
1228
+ message.lastCommitInfo = LastCommitInfo.decode(reader, reader.uint32());
1266
1229
  break;
1267
1230
  case 4:
1268
- message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32()));
1231
+ message.byzantineValidators.push(Evidence.decode(reader, reader.uint32()));
1269
1232
  break;
1270
1233
  default:
1271
1234
  reader.skipType(tag & 7);
@@ -1279,9 +1242,9 @@ export const RequestBeginBlock = {
1279
1242
  return {
1280
1243
  hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
1281
1244
  header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
1282
- lastCommitInfo: isSet(object.lastCommitInfo) ? CommitInfo.fromJSON(object.lastCommitInfo) : undefined,
1245
+ lastCommitInfo: isSet(object.lastCommitInfo) ? LastCommitInfo.fromJSON(object.lastCommitInfo) : undefined,
1283
1246
  byzantineValidators: Array.isArray(object?.byzantineValidators)
1284
- ? object.byzantineValidators.map((e: any) => Misbehavior.fromJSON(e))
1247
+ ? object.byzantineValidators.map((e: any) => Evidence.fromJSON(e))
1285
1248
  : [],
1286
1249
  };
1287
1250
  },
@@ -1292,9 +1255,9 @@ export const RequestBeginBlock = {
1292
1255
  && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
1293
1256
  message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
1294
1257
  message.lastCommitInfo !== undefined
1295
- && (obj.lastCommitInfo = message.lastCommitInfo ? CommitInfo.toJSON(message.lastCommitInfo) : undefined);
1258
+ && (obj.lastCommitInfo = message.lastCommitInfo ? LastCommitInfo.toJSON(message.lastCommitInfo) : undefined);
1296
1259
  if (message.byzantineValidators) {
1297
- obj.byzantineValidators = message.byzantineValidators.map((e) => e ? Misbehavior.toJSON(e) : undefined);
1260
+ obj.byzantineValidators = message.byzantineValidators.map((e) => e ? Evidence.toJSON(e) : undefined);
1298
1261
  } else {
1299
1262
  obj.byzantineValidators = [];
1300
1263
  }
@@ -1308,9 +1271,9 @@ export const RequestBeginBlock = {
1308
1271
  ? Header.fromPartial(object.header)
1309
1272
  : undefined;
1310
1273
  message.lastCommitInfo = (object.lastCommitInfo !== undefined && object.lastCommitInfo !== null)
1311
- ? CommitInfo.fromPartial(object.lastCommitInfo)
1274
+ ? LastCommitInfo.fromPartial(object.lastCommitInfo)
1312
1275
  : undefined;
1313
- message.byzantineValidators = object.byzantineValidators?.map((e) => Misbehavior.fromPartial(e)) || [];
1276
+ message.byzantineValidators = object.byzantineValidators?.map((e) => Evidence.fromPartial(e)) || [];
1314
1277
  return message;
1315
1278
  },
1316
1279
  };
@@ -1741,300 +1704,13 @@ export const RequestApplySnapshotChunk = {
1741
1704
  },
1742
1705
  };
1743
1706
 
1744
- function createBaseRequestPrepareProposal(): RequestPrepareProposal {
1745
- return {
1746
- maxTxBytes: 0,
1747
- txs: [],
1748
- localLastCommit: undefined,
1749
- misbehavior: [],
1750
- height: 0,
1751
- time: undefined,
1752
- nextValidatorsHash: new Uint8Array(),
1753
- proposerAddress: new Uint8Array(),
1754
- };
1755
- }
1756
-
1757
- export const RequestPrepareProposal = {
1758
- encode(message: RequestPrepareProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1759
- if (message.maxTxBytes !== 0) {
1760
- writer.uint32(8).int64(message.maxTxBytes);
1761
- }
1762
- for (const v of message.txs) {
1763
- writer.uint32(18).bytes(v!);
1764
- }
1765
- if (message.localLastCommit !== undefined) {
1766
- ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim();
1767
- }
1768
- for (const v of message.misbehavior) {
1769
- Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim();
1770
- }
1771
- if (message.height !== 0) {
1772
- writer.uint32(40).int64(message.height);
1773
- }
1774
- if (message.time !== undefined) {
1775
- Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim();
1776
- }
1777
- if (message.nextValidatorsHash.length !== 0) {
1778
- writer.uint32(58).bytes(message.nextValidatorsHash);
1779
- }
1780
- if (message.proposerAddress.length !== 0) {
1781
- writer.uint32(66).bytes(message.proposerAddress);
1782
- }
1783
- return writer;
1784
- },
1785
-
1786
- decode(input: _m0.Reader | Uint8Array, length?: number): RequestPrepareProposal {
1787
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1788
- let end = length === undefined ? reader.len : reader.pos + length;
1789
- const message = createBaseRequestPrepareProposal();
1790
- while (reader.pos < end) {
1791
- const tag = reader.uint32();
1792
- switch (tag >>> 3) {
1793
- case 1:
1794
- message.maxTxBytes = longToNumber(reader.int64() as Long);
1795
- break;
1796
- case 2:
1797
- message.txs.push(reader.bytes());
1798
- break;
1799
- case 3:
1800
- message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32());
1801
- break;
1802
- case 4:
1803
- message.misbehavior.push(Misbehavior.decode(reader, reader.uint32()));
1804
- break;
1805
- case 5:
1806
- message.height = longToNumber(reader.int64() as Long);
1807
- break;
1808
- case 6:
1809
- message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1810
- break;
1811
- case 7:
1812
- message.nextValidatorsHash = reader.bytes();
1813
- break;
1814
- case 8:
1815
- message.proposerAddress = reader.bytes();
1816
- break;
1817
- default:
1818
- reader.skipType(tag & 7);
1819
- break;
1820
- }
1821
- }
1822
- return message;
1823
- },
1824
-
1825
- fromJSON(object: any): RequestPrepareProposal {
1826
- return {
1827
- maxTxBytes: isSet(object.maxTxBytes) ? Number(object.maxTxBytes) : 0,
1828
- txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [],
1829
- localLastCommit: isSet(object.localLastCommit) ? ExtendedCommitInfo.fromJSON(object.localLastCommit) : undefined,
1830
- misbehavior: Array.isArray(object?.misbehavior)
1831
- ? object.misbehavior.map((e: any) => Misbehavior.fromJSON(e))
1832
- : [],
1833
- height: isSet(object.height) ? Number(object.height) : 0,
1834
- time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
1835
- nextValidatorsHash: isSet(object.nextValidatorsHash)
1836
- ? bytesFromBase64(object.nextValidatorsHash)
1837
- : new Uint8Array(),
1838
- proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array(),
1839
- };
1840
- },
1841
-
1842
- toJSON(message: RequestPrepareProposal): unknown {
1843
- const obj: any = {};
1844
- message.maxTxBytes !== undefined && (obj.maxTxBytes = Math.round(message.maxTxBytes));
1845
- if (message.txs) {
1846
- obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
1847
- } else {
1848
- obj.txs = [];
1849
- }
1850
- message.localLastCommit !== undefined
1851
- && (obj.localLastCommit = message.localLastCommit
1852
- ? ExtendedCommitInfo.toJSON(message.localLastCommit)
1853
- : undefined);
1854
- if (message.misbehavior) {
1855
- obj.misbehavior = message.misbehavior.map((e) => e ? Misbehavior.toJSON(e) : undefined);
1856
- } else {
1857
- obj.misbehavior = [];
1858
- }
1859
- message.height !== undefined && (obj.height = Math.round(message.height));
1860
- message.time !== undefined && (obj.time = message.time.toISOString());
1861
- message.nextValidatorsHash !== undefined
1862
- && (obj.nextValidatorsHash = base64FromBytes(
1863
- message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array(),
1864
- ));
1865
- message.proposerAddress !== undefined
1866
- && (obj.proposerAddress = base64FromBytes(
1867
- message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array(),
1868
- ));
1869
- return obj;
1870
- },
1871
-
1872
- fromPartial<I extends Exact<DeepPartial<RequestPrepareProposal>, I>>(object: I): RequestPrepareProposal {
1873
- const message = createBaseRequestPrepareProposal();
1874
- message.maxTxBytes = object.maxTxBytes ?? 0;
1875
- message.txs = object.txs?.map((e) => e) || [];
1876
- message.localLastCommit = (object.localLastCommit !== undefined && object.localLastCommit !== null)
1877
- ? ExtendedCommitInfo.fromPartial(object.localLastCommit)
1878
- : undefined;
1879
- message.misbehavior = object.misbehavior?.map((e) => Misbehavior.fromPartial(e)) || [];
1880
- message.height = object.height ?? 0;
1881
- message.time = object.time ?? undefined;
1882
- message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
1883
- message.proposerAddress = object.proposerAddress ?? new Uint8Array();
1884
- return message;
1885
- },
1886
- };
1887
-
1888
- function createBaseRequestProcessProposal(): RequestProcessProposal {
1889
- return {
1890
- txs: [],
1891
- proposedLastCommit: undefined,
1892
- misbehavior: [],
1893
- hash: new Uint8Array(),
1894
- height: 0,
1895
- time: undefined,
1896
- nextValidatorsHash: new Uint8Array(),
1897
- proposerAddress: new Uint8Array(),
1898
- };
1899
- }
1900
-
1901
- export const RequestProcessProposal = {
1902
- encode(message: RequestProcessProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1903
- for (const v of message.txs) {
1904
- writer.uint32(10).bytes(v!);
1905
- }
1906
- if (message.proposedLastCommit !== undefined) {
1907
- CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim();
1908
- }
1909
- for (const v of message.misbehavior) {
1910
- Misbehavior.encode(v!, writer.uint32(26).fork()).ldelim();
1911
- }
1912
- if (message.hash.length !== 0) {
1913
- writer.uint32(34).bytes(message.hash);
1914
- }
1915
- if (message.height !== 0) {
1916
- writer.uint32(40).int64(message.height);
1917
- }
1918
- if (message.time !== undefined) {
1919
- Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim();
1920
- }
1921
- if (message.nextValidatorsHash.length !== 0) {
1922
- writer.uint32(58).bytes(message.nextValidatorsHash);
1923
- }
1924
- if (message.proposerAddress.length !== 0) {
1925
- writer.uint32(66).bytes(message.proposerAddress);
1926
- }
1927
- return writer;
1928
- },
1929
-
1930
- decode(input: _m0.Reader | Uint8Array, length?: number): RequestProcessProposal {
1931
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1932
- let end = length === undefined ? reader.len : reader.pos + length;
1933
- const message = createBaseRequestProcessProposal();
1934
- while (reader.pos < end) {
1935
- const tag = reader.uint32();
1936
- switch (tag >>> 3) {
1937
- case 1:
1938
- message.txs.push(reader.bytes());
1939
- break;
1940
- case 2:
1941
- message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32());
1942
- break;
1943
- case 3:
1944
- message.misbehavior.push(Misbehavior.decode(reader, reader.uint32()));
1945
- break;
1946
- case 4:
1947
- message.hash = reader.bytes();
1948
- break;
1949
- case 5:
1950
- message.height = longToNumber(reader.int64() as Long);
1951
- break;
1952
- case 6:
1953
- message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1954
- break;
1955
- case 7:
1956
- message.nextValidatorsHash = reader.bytes();
1957
- break;
1958
- case 8:
1959
- message.proposerAddress = reader.bytes();
1960
- break;
1961
- default:
1962
- reader.skipType(tag & 7);
1963
- break;
1964
- }
1965
- }
1966
- return message;
1967
- },
1968
-
1969
- fromJSON(object: any): RequestProcessProposal {
1970
- return {
1971
- txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [],
1972
- proposedLastCommit: isSet(object.proposedLastCommit) ? CommitInfo.fromJSON(object.proposedLastCommit) : undefined,
1973
- misbehavior: Array.isArray(object?.misbehavior)
1974
- ? object.misbehavior.map((e: any) => Misbehavior.fromJSON(e))
1975
- : [],
1976
- hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
1977
- height: isSet(object.height) ? Number(object.height) : 0,
1978
- time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
1979
- nextValidatorsHash: isSet(object.nextValidatorsHash)
1980
- ? bytesFromBase64(object.nextValidatorsHash)
1981
- : new Uint8Array(),
1982
- proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array(),
1983
- };
1984
- },
1985
-
1986
- toJSON(message: RequestProcessProposal): unknown {
1987
- const obj: any = {};
1988
- if (message.txs) {
1989
- obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
1990
- } else {
1991
- obj.txs = [];
1992
- }
1993
- message.proposedLastCommit !== undefined && (obj.proposedLastCommit = message.proposedLastCommit
1994
- ? CommitInfo.toJSON(message.proposedLastCommit)
1995
- : undefined);
1996
- if (message.misbehavior) {
1997
- obj.misbehavior = message.misbehavior.map((e) => e ? Misbehavior.toJSON(e) : undefined);
1998
- } else {
1999
- obj.misbehavior = [];
2000
- }
2001
- message.hash !== undefined
2002
- && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
2003
- message.height !== undefined && (obj.height = Math.round(message.height));
2004
- message.time !== undefined && (obj.time = message.time.toISOString());
2005
- message.nextValidatorsHash !== undefined
2006
- && (obj.nextValidatorsHash = base64FromBytes(
2007
- message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array(),
2008
- ));
2009
- message.proposerAddress !== undefined
2010
- && (obj.proposerAddress = base64FromBytes(
2011
- message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array(),
2012
- ));
2013
- return obj;
2014
- },
2015
-
2016
- fromPartial<I extends Exact<DeepPartial<RequestProcessProposal>, I>>(object: I): RequestProcessProposal {
2017
- const message = createBaseRequestProcessProposal();
2018
- message.txs = object.txs?.map((e) => e) || [];
2019
- message.proposedLastCommit = (object.proposedLastCommit !== undefined && object.proposedLastCommit !== null)
2020
- ? CommitInfo.fromPartial(object.proposedLastCommit)
2021
- : undefined;
2022
- message.misbehavior = object.misbehavior?.map((e) => Misbehavior.fromPartial(e)) || [];
2023
- message.hash = object.hash ?? new Uint8Array();
2024
- message.height = object.height ?? 0;
2025
- message.time = object.time ?? undefined;
2026
- message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
2027
- message.proposerAddress = object.proposerAddress ?? new Uint8Array();
2028
- return message;
2029
- },
2030
- };
2031
-
2032
1707
  function createBaseResponse(): Response {
2033
1708
  return {
2034
1709
  exception: undefined,
2035
1710
  echo: undefined,
2036
1711
  flush: undefined,
2037
1712
  info: undefined,
1713
+ setOption: undefined,
2038
1714
  initChain: undefined,
2039
1715
  query: undefined,
2040
1716
  beginBlock: undefined,
@@ -2046,8 +1722,6 @@ function createBaseResponse(): Response {
2046
1722
  offerSnapshot: undefined,
2047
1723
  loadSnapshotChunk: undefined,
2048
1724
  applySnapshotChunk: undefined,
2049
- prepareProposal: undefined,
2050
- processProposal: undefined,
2051
1725
  };
2052
1726
  }
2053
1727
 
@@ -2065,6 +1739,9 @@ export const Response = {
2065
1739
  if (message.info !== undefined) {
2066
1740
  ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim();
2067
1741
  }
1742
+ if (message.setOption !== undefined) {
1743
+ ResponseSetOption.encode(message.setOption, writer.uint32(42).fork()).ldelim();
1744
+ }
2068
1745
  if (message.initChain !== undefined) {
2069
1746
  ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim();
2070
1747
  }
@@ -2098,12 +1775,6 @@ export const Response = {
2098
1775
  if (message.applySnapshotChunk !== undefined) {
2099
1776
  ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim();
2100
1777
  }
2101
- if (message.prepareProposal !== undefined) {
2102
- ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim();
2103
- }
2104
- if (message.processProposal !== undefined) {
2105
- ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim();
2106
- }
2107
1778
  return writer;
2108
1779
  },
2109
1780
 
@@ -2126,6 +1797,9 @@ export const Response = {
2126
1797
  case 4:
2127
1798
  message.info = ResponseInfo.decode(reader, reader.uint32());
2128
1799
  break;
1800
+ case 5:
1801
+ message.setOption = ResponseSetOption.decode(reader, reader.uint32());
1802
+ break;
2129
1803
  case 6:
2130
1804
  message.initChain = ResponseInitChain.decode(reader, reader.uint32());
2131
1805
  break;
@@ -2159,12 +1833,6 @@ export const Response = {
2159
1833
  case 16:
2160
1834
  message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32());
2161
1835
  break;
2162
- case 17:
2163
- message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32());
2164
- break;
2165
- case 18:
2166
- message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32());
2167
- break;
2168
1836
  default:
2169
1837
  reader.skipType(tag & 7);
2170
1838
  break;
@@ -2179,6 +1847,7 @@ export const Response = {
2179
1847
  echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined,
2180
1848
  flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined,
2181
1849
  info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined,
1850
+ setOption: isSet(object.setOption) ? ResponseSetOption.fromJSON(object.setOption) : undefined,
2182
1851
  initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined,
2183
1852
  query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined,
2184
1853
  beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined,
@@ -2194,12 +1863,6 @@ export const Response = {
2194
1863
  applySnapshotChunk: isSet(object.applySnapshotChunk)
2195
1864
  ? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
2196
1865
  : undefined,
2197
- prepareProposal: isSet(object.prepareProposal)
2198
- ? ResponsePrepareProposal.fromJSON(object.prepareProposal)
2199
- : undefined,
2200
- processProposal: isSet(object.processProposal)
2201
- ? ResponseProcessProposal.fromJSON(object.processProposal)
2202
- : undefined,
2203
1866
  };
2204
1867
  },
2205
1868
 
@@ -2210,6 +1873,8 @@ export const Response = {
2210
1873
  message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined);
2211
1874
  message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined);
2212
1875
  message.info !== undefined && (obj.info = message.info ? ResponseInfo.toJSON(message.info) : undefined);
1876
+ message.setOption !== undefined
1877
+ && (obj.setOption = message.setOption ? ResponseSetOption.toJSON(message.setOption) : undefined);
2213
1878
  message.initChain !== undefined
2214
1879
  && (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined);
2215
1880
  message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined);
@@ -2232,12 +1897,6 @@ export const Response = {
2232
1897
  message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
2233
1898
  ? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk)
2234
1899
  : undefined);
2235
- message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal
2236
- ? ResponsePrepareProposal.toJSON(message.prepareProposal)
2237
- : undefined);
2238
- message.processProposal !== undefined && (obj.processProposal = message.processProposal
2239
- ? ResponseProcessProposal.toJSON(message.processProposal)
2240
- : undefined);
2241
1900
  return obj;
2242
1901
  },
2243
1902
 
@@ -2255,6 +1914,9 @@ export const Response = {
2255
1914
  message.info = (object.info !== undefined && object.info !== null)
2256
1915
  ? ResponseInfo.fromPartial(object.info)
2257
1916
  : undefined;
1917
+ message.setOption = (object.setOption !== undefined && object.setOption !== null)
1918
+ ? ResponseSetOption.fromPartial(object.setOption)
1919
+ : undefined;
2258
1920
  message.initChain = (object.initChain !== undefined && object.initChain !== null)
2259
1921
  ? ResponseInitChain.fromPartial(object.initChain)
2260
1922
  : undefined;
@@ -2288,12 +1950,6 @@ export const Response = {
2288
1950
  message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
2289
1951
  ? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
2290
1952
  : undefined;
2291
- message.prepareProposal = (object.prepareProposal !== undefined && object.prepareProposal !== null)
2292
- ? ResponsePrepareProposal.fromPartial(object.prepareProposal)
2293
- : undefined;
2294
- message.processProposal = (object.processProposal !== undefined && object.processProposal !== null)
2295
- ? ResponseProcessProposal.fromPartial(object.processProposal)
2296
- : undefined;
2297
1953
  return message;
2298
1954
  },
2299
1955
  };
@@ -2519,6 +2175,73 @@ export const ResponseInfo = {
2519
2175
  },
2520
2176
  };
2521
2177
 
2178
+ function createBaseResponseSetOption(): ResponseSetOption {
2179
+ return { code: 0, log: "", info: "" };
2180
+ }
2181
+
2182
+ export const ResponseSetOption = {
2183
+ encode(message: ResponseSetOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2184
+ if (message.code !== 0) {
2185
+ writer.uint32(8).uint32(message.code);
2186
+ }
2187
+ if (message.log !== "") {
2188
+ writer.uint32(26).string(message.log);
2189
+ }
2190
+ if (message.info !== "") {
2191
+ writer.uint32(34).string(message.info);
2192
+ }
2193
+ return writer;
2194
+ },
2195
+
2196
+ decode(input: _m0.Reader | Uint8Array, length?: number): ResponseSetOption {
2197
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2198
+ let end = length === undefined ? reader.len : reader.pos + length;
2199
+ const message = createBaseResponseSetOption();
2200
+ while (reader.pos < end) {
2201
+ const tag = reader.uint32();
2202
+ switch (tag >>> 3) {
2203
+ case 1:
2204
+ message.code = reader.uint32();
2205
+ break;
2206
+ case 3:
2207
+ message.log = reader.string();
2208
+ break;
2209
+ case 4:
2210
+ message.info = reader.string();
2211
+ break;
2212
+ default:
2213
+ reader.skipType(tag & 7);
2214
+ break;
2215
+ }
2216
+ }
2217
+ return message;
2218
+ },
2219
+
2220
+ fromJSON(object: any): ResponseSetOption {
2221
+ return {
2222
+ code: isSet(object.code) ? Number(object.code) : 0,
2223
+ log: isSet(object.log) ? String(object.log) : "",
2224
+ info: isSet(object.info) ? String(object.info) : "",
2225
+ };
2226
+ },
2227
+
2228
+ toJSON(message: ResponseSetOption): unknown {
2229
+ const obj: any = {};
2230
+ message.code !== undefined && (obj.code = Math.round(message.code));
2231
+ message.log !== undefined && (obj.log = message.log);
2232
+ message.info !== undefined && (obj.info = message.info);
2233
+ return obj;
2234
+ },
2235
+
2236
+ fromPartial<I extends Exact<DeepPartial<ResponseSetOption>, I>>(object: I): ResponseSetOption {
2237
+ const message = createBaseResponseSetOption();
2238
+ message.code = object.code ?? 0;
2239
+ message.log = object.log ?? "";
2240
+ message.info = object.info ?? "";
2241
+ return message;
2242
+ },
2243
+ };
2244
+
2522
2245
  function createBaseResponseInitChain(): ResponseInitChain {
2523
2246
  return { consensusParams: undefined, validators: [], appHash: new Uint8Array() };
2524
2247
  }
@@ -3430,78 +3153,45 @@ export const ResponseApplySnapshotChunk = {
3430
3153
  },
3431
3154
  };
3432
3155
 
3433
- function createBaseResponsePrepareProposal(): ResponsePrepareProposal {
3434
- return { txs: [] };
3156
+ function createBaseConsensusParams(): ConsensusParams {
3157
+ return { block: undefined, evidence: undefined, validator: undefined, version: undefined };
3435
3158
  }
3436
3159
 
3437
- export const ResponsePrepareProposal = {
3438
- encode(message: ResponsePrepareProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3439
- for (const v of message.txs) {
3440
- writer.uint32(10).bytes(v!);
3160
+ export const ConsensusParams = {
3161
+ encode(message: ConsensusParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3162
+ if (message.block !== undefined) {
3163
+ BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
3441
3164
  }
3442
- return writer;
3443
- },
3444
-
3445
- decode(input: _m0.Reader | Uint8Array, length?: number): ResponsePrepareProposal {
3446
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3447
- let end = length === undefined ? reader.len : reader.pos + length;
3448
- const message = createBaseResponsePrepareProposal();
3449
- while (reader.pos < end) {
3450
- const tag = reader.uint32();
3451
- switch (tag >>> 3) {
3452
- case 1:
3453
- message.txs.push(reader.bytes());
3454
- break;
3455
- default:
3456
- reader.skipType(tag & 7);
3457
- break;
3458
- }
3165
+ if (message.evidence !== undefined) {
3166
+ EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
3459
3167
  }
3460
- return message;
3461
- },
3462
-
3463
- fromJSON(object: any): ResponsePrepareProposal {
3464
- return { txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [] };
3465
- },
3466
-
3467
- toJSON(message: ResponsePrepareProposal): unknown {
3468
- const obj: any = {};
3469
- if (message.txs) {
3470
- obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
3471
- } else {
3472
- obj.txs = [];
3168
+ if (message.validator !== undefined) {
3169
+ ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
3473
3170
  }
3474
- return obj;
3475
- },
3476
-
3477
- fromPartial<I extends Exact<DeepPartial<ResponsePrepareProposal>, I>>(object: I): ResponsePrepareProposal {
3478
- const message = createBaseResponsePrepareProposal();
3479
- message.txs = object.txs?.map((e) => e) || [];
3480
- return message;
3481
- },
3482
- };
3483
-
3484
- function createBaseResponseProcessProposal(): ResponseProcessProposal {
3485
- return { status: 0 };
3486
- }
3487
-
3488
- export const ResponseProcessProposal = {
3489
- encode(message: ResponseProcessProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3490
- if (message.status !== 0) {
3491
- writer.uint32(8).int32(message.status);
3171
+ if (message.version !== undefined) {
3172
+ VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
3492
3173
  }
3493
3174
  return writer;
3494
3175
  },
3495
3176
 
3496
- decode(input: _m0.Reader | Uint8Array, length?: number): ResponseProcessProposal {
3177
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams {
3497
3178
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3498
3179
  let end = length === undefined ? reader.len : reader.pos + length;
3499
- const message = createBaseResponseProcessProposal();
3180
+ const message = createBaseConsensusParams();
3500
3181
  while (reader.pos < end) {
3501
3182
  const tag = reader.uint32();
3502
3183
  switch (tag >>> 3) {
3503
3184
  case 1:
3504
- message.status = reader.int32() as any;
3185
+ message.block = BlockParams.decode(reader, reader.uint32());
3186
+ break;
3187
+ case 2:
3188
+ message.evidence = EvidenceParams.decode(reader, reader.uint32());
3189
+ break;
3190
+ case 3:
3191
+ message.validator = ValidatorParams.decode(reader, reader.uint32());
3192
+ break;
3193
+ case 4:
3194
+ message.version = VersionParams.decode(reader, reader.uint32());
3505
3195
  break;
3506
3196
  default:
3507
3197
  reader.skipType(tag & 7);
@@ -3511,50 +3201,72 @@ export const ResponseProcessProposal = {
3511
3201
  return message;
3512
3202
  },
3513
3203
 
3514
- fromJSON(object: any): ResponseProcessProposal {
3515
- return { status: isSet(object.status) ? responseProcessProposal_ProposalStatusFromJSON(object.status) : 0 };
3204
+ fromJSON(object: any): ConsensusParams {
3205
+ return {
3206
+ block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined,
3207
+ evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined,
3208
+ validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined,
3209
+ version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined,
3210
+ };
3516
3211
  },
3517
3212
 
3518
- toJSON(message: ResponseProcessProposal): unknown {
3213
+ toJSON(message: ConsensusParams): unknown {
3519
3214
  const obj: any = {};
3520
- message.status !== undefined && (obj.status = responseProcessProposal_ProposalStatusToJSON(message.status));
3215
+ message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined);
3216
+ message.evidence !== undefined
3217
+ && (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined);
3218
+ message.validator !== undefined
3219
+ && (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined);
3220
+ message.version !== undefined
3221
+ && (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined);
3521
3222
  return obj;
3522
3223
  },
3523
3224
 
3524
- fromPartial<I extends Exact<DeepPartial<ResponseProcessProposal>, I>>(object: I): ResponseProcessProposal {
3525
- const message = createBaseResponseProcessProposal();
3526
- message.status = object.status ?? 0;
3225
+ fromPartial<I extends Exact<DeepPartial<ConsensusParams>, I>>(object: I): ConsensusParams {
3226
+ const message = createBaseConsensusParams();
3227
+ message.block = (object.block !== undefined && object.block !== null)
3228
+ ? BlockParams.fromPartial(object.block)
3229
+ : undefined;
3230
+ message.evidence = (object.evidence !== undefined && object.evidence !== null)
3231
+ ? EvidenceParams.fromPartial(object.evidence)
3232
+ : undefined;
3233
+ message.validator = (object.validator !== undefined && object.validator !== null)
3234
+ ? ValidatorParams.fromPartial(object.validator)
3235
+ : undefined;
3236
+ message.version = (object.version !== undefined && object.version !== null)
3237
+ ? VersionParams.fromPartial(object.version)
3238
+ : undefined;
3527
3239
  return message;
3528
3240
  },
3529
3241
  };
3530
3242
 
3531
- function createBaseCommitInfo(): CommitInfo {
3532
- return { round: 0, votes: [] };
3243
+ function createBaseBlockParams(): BlockParams {
3244
+ return { maxBytes: 0, maxGas: 0 };
3533
3245
  }
3534
3246
 
3535
- export const CommitInfo = {
3536
- encode(message: CommitInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3537
- if (message.round !== 0) {
3538
- writer.uint32(8).int32(message.round);
3247
+ export const BlockParams = {
3248
+ encode(message: BlockParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3249
+ if (message.maxBytes !== 0) {
3250
+ writer.uint32(8).int64(message.maxBytes);
3539
3251
  }
3540
- for (const v of message.votes) {
3541
- VoteInfo.encode(v!, writer.uint32(18).fork()).ldelim();
3252
+ if (message.maxGas !== 0) {
3253
+ writer.uint32(16).int64(message.maxGas);
3542
3254
  }
3543
3255
  return writer;
3544
3256
  },
3545
3257
 
3546
- decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo {
3258
+ decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams {
3547
3259
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3548
3260
  let end = length === undefined ? reader.len : reader.pos + length;
3549
- const message = createBaseCommitInfo();
3261
+ const message = createBaseBlockParams();
3550
3262
  while (reader.pos < end) {
3551
3263
  const tag = reader.uint32();
3552
3264
  switch (tag >>> 3) {
3553
3265
  case 1:
3554
- message.round = reader.int32();
3266
+ message.maxBytes = longToNumber(reader.int64() as Long);
3555
3267
  break;
3556
3268
  case 2:
3557
- message.votes.push(VoteInfo.decode(reader, reader.uint32()));
3269
+ message.maxGas = longToNumber(reader.int64() as Long);
3558
3270
  break;
3559
3271
  default:
3560
3272
  reader.skipType(tag & 7);
@@ -3564,51 +3276,47 @@ export const CommitInfo = {
3564
3276
  return message;
3565
3277
  },
3566
3278
 
3567
- fromJSON(object: any): CommitInfo {
3279
+ fromJSON(object: any): BlockParams {
3568
3280
  return {
3569
- round: isSet(object.round) ? Number(object.round) : 0,
3570
- votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => VoteInfo.fromJSON(e)) : [],
3281
+ maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
3282
+ maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
3571
3283
  };
3572
3284
  },
3573
3285
 
3574
- toJSON(message: CommitInfo): unknown {
3286
+ toJSON(message: BlockParams): unknown {
3575
3287
  const obj: any = {};
3576
- message.round !== undefined && (obj.round = Math.round(message.round));
3577
- if (message.votes) {
3578
- obj.votes = message.votes.map((e) => e ? VoteInfo.toJSON(e) : undefined);
3579
- } else {
3580
- obj.votes = [];
3581
- }
3288
+ message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
3289
+ message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
3582
3290
  return obj;
3583
3291
  },
3584
3292
 
3585
- fromPartial<I extends Exact<DeepPartial<CommitInfo>, I>>(object: I): CommitInfo {
3586
- const message = createBaseCommitInfo();
3587
- message.round = object.round ?? 0;
3588
- message.votes = object.votes?.map((e) => VoteInfo.fromPartial(e)) || [];
3293
+ fromPartial<I extends Exact<DeepPartial<BlockParams>, I>>(object: I): BlockParams {
3294
+ const message = createBaseBlockParams();
3295
+ message.maxBytes = object.maxBytes ?? 0;
3296
+ message.maxGas = object.maxGas ?? 0;
3589
3297
  return message;
3590
3298
  },
3591
3299
  };
3592
3300
 
3593
- function createBaseExtendedCommitInfo(): ExtendedCommitInfo {
3301
+ function createBaseLastCommitInfo(): LastCommitInfo {
3594
3302
  return { round: 0, votes: [] };
3595
3303
  }
3596
3304
 
3597
- export const ExtendedCommitInfo = {
3598
- encode(message: ExtendedCommitInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3305
+ export const LastCommitInfo = {
3306
+ encode(message: LastCommitInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3599
3307
  if (message.round !== 0) {
3600
3308
  writer.uint32(8).int32(message.round);
3601
3309
  }
3602
3310
  for (const v of message.votes) {
3603
- ExtendedVoteInfo.encode(v!, writer.uint32(18).fork()).ldelim();
3311
+ VoteInfo.encode(v!, writer.uint32(18).fork()).ldelim();
3604
3312
  }
3605
3313
  return writer;
3606
3314
  },
3607
3315
 
3608
- decode(input: _m0.Reader | Uint8Array, length?: number): ExtendedCommitInfo {
3316
+ decode(input: _m0.Reader | Uint8Array, length?: number): LastCommitInfo {
3609
3317
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3610
3318
  let end = length === undefined ? reader.len : reader.pos + length;
3611
- const message = createBaseExtendedCommitInfo();
3319
+ const message = createBaseLastCommitInfo();
3612
3320
  while (reader.pos < end) {
3613
3321
  const tag = reader.uint32();
3614
3322
  switch (tag >>> 3) {
@@ -3616,7 +3324,7 @@ export const ExtendedCommitInfo = {
3616
3324
  message.round = reader.int32();
3617
3325
  break;
3618
3326
  case 2:
3619
- message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32()));
3327
+ message.votes.push(VoteInfo.decode(reader, reader.uint32()));
3620
3328
  break;
3621
3329
  default:
3622
3330
  reader.skipType(tag & 7);
@@ -3626,28 +3334,28 @@ export const ExtendedCommitInfo = {
3626
3334
  return message;
3627
3335
  },
3628
3336
 
3629
- fromJSON(object: any): ExtendedCommitInfo {
3337
+ fromJSON(object: any): LastCommitInfo {
3630
3338
  return {
3631
3339
  round: isSet(object.round) ? Number(object.round) : 0,
3632
- votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => ExtendedVoteInfo.fromJSON(e)) : [],
3340
+ votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => VoteInfo.fromJSON(e)) : [],
3633
3341
  };
3634
3342
  },
3635
3343
 
3636
- toJSON(message: ExtendedCommitInfo): unknown {
3344
+ toJSON(message: LastCommitInfo): unknown {
3637
3345
  const obj: any = {};
3638
3346
  message.round !== undefined && (obj.round = Math.round(message.round));
3639
3347
  if (message.votes) {
3640
- obj.votes = message.votes.map((e) => e ? ExtendedVoteInfo.toJSON(e) : undefined);
3348
+ obj.votes = message.votes.map((e) => e ? VoteInfo.toJSON(e) : undefined);
3641
3349
  } else {
3642
3350
  obj.votes = [];
3643
3351
  }
3644
3352
  return obj;
3645
3353
  },
3646
3354
 
3647
- fromPartial<I extends Exact<DeepPartial<ExtendedCommitInfo>, I>>(object: I): ExtendedCommitInfo {
3648
- const message = createBaseExtendedCommitInfo();
3355
+ fromPartial<I extends Exact<DeepPartial<LastCommitInfo>, I>>(object: I): LastCommitInfo {
3356
+ const message = createBaseLastCommitInfo();
3649
3357
  message.round = object.round ?? 0;
3650
- message.votes = object.votes?.map((e) => ExtendedVoteInfo.fromPartial(e)) || [];
3358
+ message.votes = object.votes?.map((e) => VoteInfo.fromPartial(e)) || [];
3651
3359
  return message;
3652
3360
  },
3653
3361
  };
@@ -3717,16 +3425,16 @@ export const Event = {
3717
3425
  };
3718
3426
 
3719
3427
  function createBaseEventAttribute(): EventAttribute {
3720
- return { key: "", value: "", index: false };
3428
+ return { key: new Uint8Array(), value: new Uint8Array(), index: false };
3721
3429
  }
3722
3430
 
3723
3431
  export const EventAttribute = {
3724
3432
  encode(message: EventAttribute, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3725
- if (message.key !== "") {
3726
- writer.uint32(10).string(message.key);
3433
+ if (message.key.length !== 0) {
3434
+ writer.uint32(10).bytes(message.key);
3727
3435
  }
3728
- if (message.value !== "") {
3729
- writer.uint32(18).string(message.value);
3436
+ if (message.value.length !== 0) {
3437
+ writer.uint32(18).bytes(message.value);
3730
3438
  }
3731
3439
  if (message.index === true) {
3732
3440
  writer.uint32(24).bool(message.index);
@@ -3742,10 +3450,10 @@ export const EventAttribute = {
3742
3450
  const tag = reader.uint32();
3743
3451
  switch (tag >>> 3) {
3744
3452
  case 1:
3745
- message.key = reader.string();
3453
+ message.key = reader.bytes();
3746
3454
  break;
3747
3455
  case 2:
3748
- message.value = reader.string();
3456
+ message.value = reader.bytes();
3749
3457
  break;
3750
3458
  case 3:
3751
3459
  message.index = reader.bool();
@@ -3760,24 +3468,26 @@ export const EventAttribute = {
3760
3468
 
3761
3469
  fromJSON(object: any): EventAttribute {
3762
3470
  return {
3763
- key: isSet(object.key) ? String(object.key) : "",
3764
- value: isSet(object.value) ? String(object.value) : "",
3471
+ key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
3472
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
3765
3473
  index: isSet(object.index) ? Boolean(object.index) : false,
3766
3474
  };
3767
3475
  },
3768
3476
 
3769
3477
  toJSON(message: EventAttribute): unknown {
3770
3478
  const obj: any = {};
3771
- message.key !== undefined && (obj.key = message.key);
3772
- message.value !== undefined && (obj.value = message.value);
3479
+ message.key !== undefined
3480
+ && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
3481
+ message.value !== undefined
3482
+ && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
3773
3483
  message.index !== undefined && (obj.index = message.index);
3774
3484
  return obj;
3775
3485
  },
3776
3486
 
3777
3487
  fromPartial<I extends Exact<DeepPartial<EventAttribute>, I>>(object: I): EventAttribute {
3778
3488
  const message = createBaseEventAttribute();
3779
- message.key = object.key ?? "";
3780
- message.value = object.value ?? "";
3489
+ message.key = object.key ?? new Uint8Array();
3490
+ message.value = object.value ?? new Uint8Array();
3781
3491
  message.index = object.index ?? false;
3782
3492
  return message;
3783
3493
  },
@@ -4042,85 +3752,12 @@ export const VoteInfo = {
4042
3752
  },
4043
3753
  };
4044
3754
 
4045
- function createBaseExtendedVoteInfo(): ExtendedVoteInfo {
4046
- return { validator: undefined, signedLastBlock: false, voteExtension: new Uint8Array() };
4047
- }
4048
-
4049
- export const ExtendedVoteInfo = {
4050
- encode(message: ExtendedVoteInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4051
- if (message.validator !== undefined) {
4052
- Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
4053
- }
4054
- if (message.signedLastBlock === true) {
4055
- writer.uint32(16).bool(message.signedLastBlock);
4056
- }
4057
- if (message.voteExtension.length !== 0) {
4058
- writer.uint32(26).bytes(message.voteExtension);
4059
- }
4060
- return writer;
4061
- },
4062
-
4063
- decode(input: _m0.Reader | Uint8Array, length?: number): ExtendedVoteInfo {
4064
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
4065
- let end = length === undefined ? reader.len : reader.pos + length;
4066
- const message = createBaseExtendedVoteInfo();
4067
- while (reader.pos < end) {
4068
- const tag = reader.uint32();
4069
- switch (tag >>> 3) {
4070
- case 1:
4071
- message.validator = Validator.decode(reader, reader.uint32());
4072
- break;
4073
- case 2:
4074
- message.signedLastBlock = reader.bool();
4075
- break;
4076
- case 3:
4077
- message.voteExtension = reader.bytes();
4078
- break;
4079
- default:
4080
- reader.skipType(tag & 7);
4081
- break;
4082
- }
4083
- }
4084
- return message;
4085
- },
4086
-
4087
- fromJSON(object: any): ExtendedVoteInfo {
4088
- return {
4089
- validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
4090
- signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false,
4091
- voteExtension: isSet(object.voteExtension) ? bytesFromBase64(object.voteExtension) : new Uint8Array(),
4092
- };
4093
- },
4094
-
4095
- toJSON(message: ExtendedVoteInfo): unknown {
4096
- const obj: any = {};
4097
- message.validator !== undefined
4098
- && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
4099
- message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock);
4100
- message.voteExtension !== undefined
4101
- && (obj.voteExtension = base64FromBytes(
4102
- message.voteExtension !== undefined ? message.voteExtension : new Uint8Array(),
4103
- ));
4104
- return obj;
4105
- },
4106
-
4107
- fromPartial<I extends Exact<DeepPartial<ExtendedVoteInfo>, I>>(object: I): ExtendedVoteInfo {
4108
- const message = createBaseExtendedVoteInfo();
4109
- message.validator = (object.validator !== undefined && object.validator !== null)
4110
- ? Validator.fromPartial(object.validator)
4111
- : undefined;
4112
- message.signedLastBlock = object.signedLastBlock ?? false;
4113
- message.voteExtension = object.voteExtension ?? new Uint8Array();
4114
- return message;
4115
- },
4116
- };
4117
-
4118
- function createBaseMisbehavior(): Misbehavior {
3755
+ function createBaseEvidence(): Evidence {
4119
3756
  return { type: 0, validator: undefined, height: 0, time: undefined, totalVotingPower: 0 };
4120
3757
  }
4121
3758
 
4122
- export const Misbehavior = {
4123
- encode(message: Misbehavior, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3759
+ export const Evidence = {
3760
+ encode(message: Evidence, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4124
3761
  if (message.type !== 0) {
4125
3762
  writer.uint32(8).int32(message.type);
4126
3763
  }
@@ -4139,10 +3776,10 @@ export const Misbehavior = {
4139
3776
  return writer;
4140
3777
  },
4141
3778
 
4142
- decode(input: _m0.Reader | Uint8Array, length?: number): Misbehavior {
3779
+ decode(input: _m0.Reader | Uint8Array, length?: number): Evidence {
4143
3780
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
4144
3781
  let end = length === undefined ? reader.len : reader.pos + length;
4145
- const message = createBaseMisbehavior();
3782
+ const message = createBaseEvidence();
4146
3783
  while (reader.pos < end) {
4147
3784
  const tag = reader.uint32();
4148
3785
  switch (tag >>> 3) {
@@ -4169,9 +3806,9 @@ export const Misbehavior = {
4169
3806
  return message;
4170
3807
  },
4171
3808
 
4172
- fromJSON(object: any): Misbehavior {
3809
+ fromJSON(object: any): Evidence {
4173
3810
  return {
4174
- type: isSet(object.type) ? misbehaviorTypeFromJSON(object.type) : 0,
3811
+ type: isSet(object.type) ? evidenceTypeFromJSON(object.type) : 0,
4175
3812
  validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
4176
3813
  height: isSet(object.height) ? Number(object.height) : 0,
4177
3814
  time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
@@ -4179,9 +3816,9 @@ export const Misbehavior = {
4179
3816
  };
4180
3817
  },
4181
3818
 
4182
- toJSON(message: Misbehavior): unknown {
3819
+ toJSON(message: Evidence): unknown {
4183
3820
  const obj: any = {};
4184
- message.type !== undefined && (obj.type = misbehaviorTypeToJSON(message.type));
3821
+ message.type !== undefined && (obj.type = evidenceTypeToJSON(message.type));
4185
3822
  message.validator !== undefined
4186
3823
  && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
4187
3824
  message.height !== undefined && (obj.height = Math.round(message.height));
@@ -4190,8 +3827,8 @@ export const Misbehavior = {
4190
3827
  return obj;
4191
3828
  },
4192
3829
 
4193
- fromPartial<I extends Exact<DeepPartial<Misbehavior>, I>>(object: I): Misbehavior {
4194
- const message = createBaseMisbehavior();
3830
+ fromPartial<I extends Exact<DeepPartial<Evidence>, I>>(object: I): Evidence {
3831
+ const message = createBaseEvidence();
4195
3832
  message.type = object.type ?? 0;
4196
3833
  message.validator = (object.validator !== undefined && object.validator !== null)
4197
3834
  ? Validator.fromPartial(object.validator)
@@ -4294,6 +3931,7 @@ export interface ABCIApplication {
4294
3931
  Echo(request: RequestEcho): Promise<ResponseEcho>;
4295
3932
  Flush(request: RequestFlush): Promise<ResponseFlush>;
4296
3933
  Info(request: RequestInfo): Promise<ResponseInfo>;
3934
+ SetOption(request: RequestSetOption): Promise<ResponseSetOption>;
4297
3935
  DeliverTx(request: RequestDeliverTx): Promise<ResponseDeliverTx>;
4298
3936
  CheckTx(request: RequestCheckTx): Promise<ResponseCheckTx>;
4299
3937
  Query(request: RequestQuery): Promise<ResponseQuery>;
@@ -4305,8 +3943,6 @@ export interface ABCIApplication {
4305
3943
  OfferSnapshot(request: RequestOfferSnapshot): Promise<ResponseOfferSnapshot>;
4306
3944
  LoadSnapshotChunk(request: RequestLoadSnapshotChunk): Promise<ResponseLoadSnapshotChunk>;
4307
3945
  ApplySnapshotChunk(request: RequestApplySnapshotChunk): Promise<ResponseApplySnapshotChunk>;
4308
- PrepareProposal(request: RequestPrepareProposal): Promise<ResponsePrepareProposal>;
4309
- ProcessProposal(request: RequestProcessProposal): Promise<ResponseProcessProposal>;
4310
3946
  }
4311
3947
 
4312
3948
  export class ABCIApplicationClientImpl implements ABCIApplication {
@@ -4316,6 +3952,7 @@ export class ABCIApplicationClientImpl implements ABCIApplication {
4316
3952
  this.Echo = this.Echo.bind(this);
4317
3953
  this.Flush = this.Flush.bind(this);
4318
3954
  this.Info = this.Info.bind(this);
3955
+ this.SetOption = this.SetOption.bind(this);
4319
3956
  this.DeliverTx = this.DeliverTx.bind(this);
4320
3957
  this.CheckTx = this.CheckTx.bind(this);
4321
3958
  this.Query = this.Query.bind(this);
@@ -4327,8 +3964,6 @@ export class ABCIApplicationClientImpl implements ABCIApplication {
4327
3964
  this.OfferSnapshot = this.OfferSnapshot.bind(this);
4328
3965
  this.LoadSnapshotChunk = this.LoadSnapshotChunk.bind(this);
4329
3966
  this.ApplySnapshotChunk = this.ApplySnapshotChunk.bind(this);
4330
- this.PrepareProposal = this.PrepareProposal.bind(this);
4331
- this.ProcessProposal = this.ProcessProposal.bind(this);
4332
3967
  }
4333
3968
  Echo(request: RequestEcho): Promise<ResponseEcho> {
4334
3969
  const data = RequestEcho.encode(request).finish();
@@ -4348,6 +3983,12 @@ export class ABCIApplicationClientImpl implements ABCIApplication {
4348
3983
  return promise.then((data) => ResponseInfo.decode(new _m0.Reader(data)));
4349
3984
  }
4350
3985
 
3986
+ SetOption(request: RequestSetOption): Promise<ResponseSetOption> {
3987
+ const data = RequestSetOption.encode(request).finish();
3988
+ const promise = this.rpc.request("tendermint.abci.ABCIApplication", "SetOption", data);
3989
+ return promise.then((data) => ResponseSetOption.decode(new _m0.Reader(data)));
3990
+ }
3991
+
4351
3992
  DeliverTx(request: RequestDeliverTx): Promise<ResponseDeliverTx> {
4352
3993
  const data = RequestDeliverTx.encode(request).finish();
4353
3994
  const promise = this.rpc.request("tendermint.abci.ABCIApplication", "DeliverTx", data);
@@ -4413,18 +4054,6 @@ export class ABCIApplicationClientImpl implements ABCIApplication {
4413
4054
  const promise = this.rpc.request("tendermint.abci.ABCIApplication", "ApplySnapshotChunk", data);
4414
4055
  return promise.then((data) => ResponseApplySnapshotChunk.decode(new _m0.Reader(data)));
4415
4056
  }
4416
-
4417
- PrepareProposal(request: RequestPrepareProposal): Promise<ResponsePrepareProposal> {
4418
- const data = RequestPrepareProposal.encode(request).finish();
4419
- const promise = this.rpc.request("tendermint.abci.ABCIApplication", "PrepareProposal", data);
4420
- return promise.then((data) => ResponsePrepareProposal.decode(new _m0.Reader(data)));
4421
- }
4422
-
4423
- ProcessProposal(request: RequestProcessProposal): Promise<ResponseProcessProposal> {
4424
- const data = RequestProcessProposal.encode(request).finish();
4425
- const promise = this.rpc.request("tendermint.abci.ABCIApplication", "ProcessProposal", data);
4426
- return promise.then((data) => ResponseProcessProposal.decode(new _m0.Reader(data)));
4427
- }
4428
4057
  }
4429
4058
 
4430
4059
  interface Rpc {