decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32

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 +23 -23
  3. package/package.json +5 -2
  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,1469 +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/base/abci/v1beta1/abci.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
- import { Any } from "../../../../google/protobuf/any";
10
- import { Event } from "../../../../tendermint/abci/types";
11
- import { Block } from "../../../../tendermint/types/block";
12
-
13
- export const protobufPackage = "cosmos.base.abci.v1beta1";
14
-
15
- /**
16
- * TxResponse defines a structure containing relevant tx data and metadata. The
17
- * tags are stringified and the log is JSON decoded.
18
- */
19
- export interface TxResponse {
20
- /** The block height */
21
- height: number;
22
- /** The transaction hash. */
23
- txhash: string;
24
- /** Namespace for the Code */
25
- codespace: string;
26
- /** Response code. */
27
- code: number;
28
- /** Result bytes, if any. */
29
- data: string;
30
- /**
31
- * The output of the application's logger (raw string). May be
32
- * non-deterministic.
33
- */
34
- rawLog: string;
35
- /** The output of the application's logger (typed). May be non-deterministic. */
36
- logs: ABCIMessageLog[];
37
- /** Additional information. May be non-deterministic. */
38
- info: string;
39
- /** Amount of gas requested for transaction. */
40
- gasWanted: number;
41
- /** Amount of gas consumed by transaction. */
42
- gasUsed: number;
43
- /** The request transaction bytes. */
44
- tx:
45
- | Any
46
- | undefined;
47
- /**
48
- * Time of the previous block. For heights > 1, it's the weighted median of
49
- * the timestamps of the valid votes in the block.LastCommit. For height == 1,
50
- * it's genesis time.
51
- */
52
- timestamp: string;
53
- /**
54
- * Events defines all the events emitted by processing a transaction. Note,
55
- * these events include those emitted by processing all the messages and those
56
- * emitted from the ante. Whereas Logs contains the events, with
57
- * additional metadata, emitted only by processing the messages.
58
- *
59
- * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
60
- */
61
- events: Event[];
62
- }
63
-
64
- /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
65
- export interface ABCIMessageLog {
66
- msgIndex: number;
67
- log: string;
68
- /**
69
- * Events contains a slice of Event objects that were emitted during some
70
- * execution.
71
- */
72
- events: StringEvent[];
73
- }
74
-
75
- /**
76
- * StringEvent defines en Event object wrapper where all the attributes
77
- * contain key/value pairs that are strings instead of raw bytes.
78
- */
79
- export interface StringEvent {
80
- type: string;
81
- attributes: Attribute[];
82
- }
83
-
84
- /**
85
- * Attribute defines an attribute wrapper where the key and value are
86
- * strings instead of raw bytes.
87
- */
88
- export interface Attribute {
89
- key: string;
90
- value: string;
91
- }
92
-
93
- /** GasInfo defines tx execution gas context. */
94
- export interface GasInfo {
95
- /** GasWanted is the maximum units of work we allow this tx to perform. */
96
- gasWanted: number;
97
- /** GasUsed is the amount of gas actually consumed. */
98
- gasUsed: number;
99
- }
100
-
101
- /** Result is the union of ResponseFormat and ResponseCheckTx. */
102
- export interface Result {
103
- /**
104
- * Data is any data returned from message or handler execution. It MUST be
105
- * length prefixed in order to separate data from multiple message executions.
106
- * Deprecated. This field is still populated, but prefer msg_response instead
107
- * because it also contains the Msg response typeURL.
108
- *
109
- * @deprecated
110
- */
111
- data: Uint8Array;
112
- /** Log contains the log information from message or handler execution. */
113
- log: string;
114
- /**
115
- * Events contains a slice of Event objects that were emitted during message
116
- * or handler execution.
117
- */
118
- events: Event[];
119
- /**
120
- * msg_responses contains the Msg handler responses type packed in Anys.
121
- *
122
- * Since: cosmos-sdk 0.46
123
- */
124
- msgResponses: Any[];
125
- }
126
-
127
- /**
128
- * SimulationResponse defines the response generated when a transaction is
129
- * successfully simulated.
130
- */
131
- export interface SimulationResponse {
132
- gasInfo: GasInfo | undefined;
133
- result: Result | undefined;
134
- }
135
-
136
- /**
137
- * MsgData defines the data returned in a Result object during message
138
- * execution.
139
- *
140
- * @deprecated
141
- */
142
- export interface MsgData {
143
- msgType: string;
144
- data: Uint8Array;
145
- }
146
-
147
- /**
148
- * TxMsgData defines a list of MsgData. A transaction will have a MsgData object
149
- * for each message.
150
- */
151
- export interface TxMsgData {
152
- /**
153
- * data field is deprecated and not populated.
154
- *
155
- * @deprecated
156
- */
157
- data: MsgData[];
158
- /**
159
- * msg_responses contains the Msg handler responses packed into Anys.
160
- *
161
- * Since: cosmos-sdk 0.46
162
- */
163
- msgResponses: Any[];
164
- }
165
-
166
- /** SearchTxsResult defines a structure for querying txs pageable */
167
- export interface SearchTxsResult {
168
- /** Count of all txs */
169
- totalCount: number;
170
- /** Count of txs in current page */
171
- count: number;
172
- /** Index of current page, start from 1 */
173
- pageNumber: number;
174
- /** Count of total pages */
175
- pageTotal: number;
176
- /** Max count txs per page */
177
- limit: number;
178
- /** List of txs in current page */
179
- txs: TxResponse[];
180
- }
181
-
182
- /** SearchBlocksResult defines a structure for querying blocks pageable */
183
- export interface SearchBlocksResult {
184
- /** Count of all blocks */
185
- totalCount: number;
186
- /** Count of blocks in current page */
187
- count: number;
188
- /** Index of current page, start from 1 */
189
- pageNumber: number;
190
- /** Count of total pages */
191
- pageTotal: number;
192
- /** Max count blocks per page */
193
- limit: number;
194
- /** List of blocks in current page */
195
- blocks: Block[];
196
- }
197
-
198
- function createBaseTxResponse(): TxResponse {
199
- return {
200
- height: 0,
201
- txhash: "",
202
- codespace: "",
203
- code: 0,
204
- data: "",
205
- rawLog: "",
206
- logs: [],
207
- info: "",
208
- gasWanted: 0,
209
- gasUsed: 0,
210
- tx: undefined,
211
- timestamp: "",
212
- events: [],
213
- };
214
- }
215
-
216
- export const TxResponse: MessageFns<TxResponse> = {
217
- encode(message: TxResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
218
- if (message.height !== 0) {
219
- writer.uint32(8).int64(message.height);
220
- }
221
- if (message.txhash !== "") {
222
- writer.uint32(18).string(message.txhash);
223
- }
224
- if (message.codespace !== "") {
225
- writer.uint32(26).string(message.codespace);
226
- }
227
- if (message.code !== 0) {
228
- writer.uint32(32).uint32(message.code);
229
- }
230
- if (message.data !== "") {
231
- writer.uint32(42).string(message.data);
232
- }
233
- if (message.rawLog !== "") {
234
- writer.uint32(50).string(message.rawLog);
235
- }
236
- for (const v of message.logs) {
237
- ABCIMessageLog.encode(v!, writer.uint32(58).fork()).join();
238
- }
239
- if (message.info !== "") {
240
- writer.uint32(66).string(message.info);
241
- }
242
- if (message.gasWanted !== 0) {
243
- writer.uint32(72).int64(message.gasWanted);
244
- }
245
- if (message.gasUsed !== 0) {
246
- writer.uint32(80).int64(message.gasUsed);
247
- }
248
- if (message.tx !== undefined) {
249
- Any.encode(message.tx, writer.uint32(90).fork()).join();
250
- }
251
- if (message.timestamp !== "") {
252
- writer.uint32(98).string(message.timestamp);
253
- }
254
- for (const v of message.events) {
255
- Event.encode(v!, writer.uint32(106).fork()).join();
256
- }
257
- return writer;
258
- },
259
-
260
- decode(input: BinaryReader | Uint8Array, length?: number): TxResponse {
261
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
262
- let end = length === undefined ? reader.len : reader.pos + length;
263
- const message = createBaseTxResponse();
264
- while (reader.pos < end) {
265
- const tag = reader.uint32();
266
- switch (tag >>> 3) {
267
- case 1: {
268
- if (tag !== 8) {
269
- break;
270
- }
271
-
272
- message.height = longToNumber(reader.int64());
273
- continue;
274
- }
275
- case 2: {
276
- if (tag !== 18) {
277
- break;
278
- }
279
-
280
- message.txhash = reader.string();
281
- continue;
282
- }
283
- case 3: {
284
- if (tag !== 26) {
285
- break;
286
- }
287
-
288
- message.codespace = reader.string();
289
- continue;
290
- }
291
- case 4: {
292
- if (tag !== 32) {
293
- break;
294
- }
295
-
296
- message.code = reader.uint32();
297
- continue;
298
- }
299
- case 5: {
300
- if (tag !== 42) {
301
- break;
302
- }
303
-
304
- message.data = reader.string();
305
- continue;
306
- }
307
- case 6: {
308
- if (tag !== 50) {
309
- break;
310
- }
311
-
312
- message.rawLog = reader.string();
313
- continue;
314
- }
315
- case 7: {
316
- if (tag !== 58) {
317
- break;
318
- }
319
-
320
- message.logs.push(ABCIMessageLog.decode(reader, reader.uint32()));
321
- continue;
322
- }
323
- case 8: {
324
- if (tag !== 66) {
325
- break;
326
- }
327
-
328
- message.info = reader.string();
329
- continue;
330
- }
331
- case 9: {
332
- if (tag !== 72) {
333
- break;
334
- }
335
-
336
- message.gasWanted = longToNumber(reader.int64());
337
- continue;
338
- }
339
- case 10: {
340
- if (tag !== 80) {
341
- break;
342
- }
343
-
344
- message.gasUsed = longToNumber(reader.int64());
345
- continue;
346
- }
347
- case 11: {
348
- if (tag !== 90) {
349
- break;
350
- }
351
-
352
- message.tx = Any.decode(reader, reader.uint32());
353
- continue;
354
- }
355
- case 12: {
356
- if (tag !== 98) {
357
- break;
358
- }
359
-
360
- message.timestamp = reader.string();
361
- continue;
362
- }
363
- case 13: {
364
- if (tag !== 106) {
365
- break;
366
- }
367
-
368
- message.events.push(Event.decode(reader, reader.uint32()));
369
- continue;
370
- }
371
- }
372
- if ((tag & 7) === 4 || tag === 0) {
373
- break;
374
- }
375
- reader.skip(tag & 7);
376
- }
377
- return message;
378
- },
379
-
380
- fromJSON(object: any): TxResponse {
381
- return {
382
- height: isSet(object.height) ? globalThis.Number(object.height) : 0,
383
- txhash: isSet(object.txhash) ? globalThis.String(object.txhash) : "",
384
- codespace: isSet(object.codespace) ? globalThis.String(object.codespace) : "",
385
- code: isSet(object.code) ? globalThis.Number(object.code) : 0,
386
- data: isSet(object.data) ? globalThis.String(object.data) : "",
387
- rawLog: isSet(object.rawLog) ? globalThis.String(object.rawLog) : "",
388
- logs: globalThis.Array.isArray(object?.logs) ? object.logs.map((e: any) => ABCIMessageLog.fromJSON(e)) : [],
389
- info: isSet(object.info) ? globalThis.String(object.info) : "",
390
- gasWanted: isSet(object.gasWanted) ? globalThis.Number(object.gasWanted) : 0,
391
- gasUsed: isSet(object.gasUsed) ? globalThis.Number(object.gasUsed) : 0,
392
- tx: isSet(object.tx) ? Any.fromJSON(object.tx) : undefined,
393
- timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : "",
394
- events: globalThis.Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
395
- };
396
- },
397
-
398
- toJSON(message: TxResponse): unknown {
399
- const obj: any = {};
400
- if (message.height !== 0) {
401
- obj.height = Math.round(message.height);
402
- }
403
- if (message.txhash !== "") {
404
- obj.txhash = message.txhash;
405
- }
406
- if (message.codespace !== "") {
407
- obj.codespace = message.codespace;
408
- }
409
- if (message.code !== 0) {
410
- obj.code = Math.round(message.code);
411
- }
412
- if (message.data !== "") {
413
- obj.data = message.data;
414
- }
415
- if (message.rawLog !== "") {
416
- obj.rawLog = message.rawLog;
417
- }
418
- if (message.logs?.length) {
419
- obj.logs = message.logs.map((e) => ABCIMessageLog.toJSON(e));
420
- }
421
- if (message.info !== "") {
422
- obj.info = message.info;
423
- }
424
- if (message.gasWanted !== 0) {
425
- obj.gasWanted = Math.round(message.gasWanted);
426
- }
427
- if (message.gasUsed !== 0) {
428
- obj.gasUsed = Math.round(message.gasUsed);
429
- }
430
- if (message.tx !== undefined) {
431
- obj.tx = Any.toJSON(message.tx);
432
- }
433
- if (message.timestamp !== "") {
434
- obj.timestamp = message.timestamp;
435
- }
436
- if (message.events?.length) {
437
- obj.events = message.events.map((e) => Event.toJSON(e));
438
- }
439
- return obj;
440
- },
441
-
442
- create<I extends Exact<DeepPartial<TxResponse>, I>>(base?: I): TxResponse {
443
- return TxResponse.fromPartial(base ?? ({} as any));
444
- },
445
- fromPartial<I extends Exact<DeepPartial<TxResponse>, I>>(object: I): TxResponse {
446
- const message = createBaseTxResponse();
447
- message.height = object.height ?? 0;
448
- message.txhash = object.txhash ?? "";
449
- message.codespace = object.codespace ?? "";
450
- message.code = object.code ?? 0;
451
- message.data = object.data ?? "";
452
- message.rawLog = object.rawLog ?? "";
453
- message.logs = object.logs?.map((e) => ABCIMessageLog.fromPartial(e)) || [];
454
- message.info = object.info ?? "";
455
- message.gasWanted = object.gasWanted ?? 0;
456
- message.gasUsed = object.gasUsed ?? 0;
457
- message.tx = (object.tx !== undefined && object.tx !== null) ? Any.fromPartial(object.tx) : undefined;
458
- message.timestamp = object.timestamp ?? "";
459
- message.events = object.events?.map((e) => Event.fromPartial(e)) || [];
460
- return message;
461
- },
462
- };
463
-
464
- function createBaseABCIMessageLog(): ABCIMessageLog {
465
- return { msgIndex: 0, log: "", events: [] };
466
- }
467
-
468
- export const ABCIMessageLog: MessageFns<ABCIMessageLog> = {
469
- encode(message: ABCIMessageLog, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
470
- if (message.msgIndex !== 0) {
471
- writer.uint32(8).uint32(message.msgIndex);
472
- }
473
- if (message.log !== "") {
474
- writer.uint32(18).string(message.log);
475
- }
476
- for (const v of message.events) {
477
- StringEvent.encode(v!, writer.uint32(26).fork()).join();
478
- }
479
- return writer;
480
- },
481
-
482
- decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog {
483
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
484
- let end = length === undefined ? reader.len : reader.pos + length;
485
- const message = createBaseABCIMessageLog();
486
- while (reader.pos < end) {
487
- const tag = reader.uint32();
488
- switch (tag >>> 3) {
489
- case 1: {
490
- if (tag !== 8) {
491
- break;
492
- }
493
-
494
- message.msgIndex = reader.uint32();
495
- continue;
496
- }
497
- case 2: {
498
- if (tag !== 18) {
499
- break;
500
- }
501
-
502
- message.log = reader.string();
503
- continue;
504
- }
505
- case 3: {
506
- if (tag !== 26) {
507
- break;
508
- }
509
-
510
- message.events.push(StringEvent.decode(reader, reader.uint32()));
511
- continue;
512
- }
513
- }
514
- if ((tag & 7) === 4 || tag === 0) {
515
- break;
516
- }
517
- reader.skip(tag & 7);
518
- }
519
- return message;
520
- },
521
-
522
- fromJSON(object: any): ABCIMessageLog {
523
- return {
524
- msgIndex: isSet(object.msgIndex) ? globalThis.Number(object.msgIndex) : 0,
525
- log: isSet(object.log) ? globalThis.String(object.log) : "",
526
- events: globalThis.Array.isArray(object?.events) ? object.events.map((e: any) => StringEvent.fromJSON(e)) : [],
527
- };
528
- },
529
-
530
- toJSON(message: ABCIMessageLog): unknown {
531
- const obj: any = {};
532
- if (message.msgIndex !== 0) {
533
- obj.msgIndex = Math.round(message.msgIndex);
534
- }
535
- if (message.log !== "") {
536
- obj.log = message.log;
537
- }
538
- if (message.events?.length) {
539
- obj.events = message.events.map((e) => StringEvent.toJSON(e));
540
- }
541
- return obj;
542
- },
543
-
544
- create<I extends Exact<DeepPartial<ABCIMessageLog>, I>>(base?: I): ABCIMessageLog {
545
- return ABCIMessageLog.fromPartial(base ?? ({} as any));
546
- },
547
- fromPartial<I extends Exact<DeepPartial<ABCIMessageLog>, I>>(object: I): ABCIMessageLog {
548
- const message = createBaseABCIMessageLog();
549
- message.msgIndex = object.msgIndex ?? 0;
550
- message.log = object.log ?? "";
551
- message.events = object.events?.map((e) => StringEvent.fromPartial(e)) || [];
552
- return message;
553
- },
554
- };
555
-
556
- function createBaseStringEvent(): StringEvent {
557
- return { type: "", attributes: [] };
558
- }
559
-
560
- export const StringEvent: MessageFns<StringEvent> = {
561
- encode(message: StringEvent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
562
- if (message.type !== "") {
563
- writer.uint32(10).string(message.type);
564
- }
565
- for (const v of message.attributes) {
566
- Attribute.encode(v!, writer.uint32(18).fork()).join();
567
- }
568
- return writer;
569
- },
570
-
571
- decode(input: BinaryReader | Uint8Array, length?: number): StringEvent {
572
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
573
- let end = length === undefined ? reader.len : reader.pos + length;
574
- const message = createBaseStringEvent();
575
- while (reader.pos < end) {
576
- const tag = reader.uint32();
577
- switch (tag >>> 3) {
578
- case 1: {
579
- if (tag !== 10) {
580
- break;
581
- }
582
-
583
- message.type = reader.string();
584
- continue;
585
- }
586
- case 2: {
587
- if (tag !== 18) {
588
- break;
589
- }
590
-
591
- message.attributes.push(Attribute.decode(reader, reader.uint32()));
592
- continue;
593
- }
594
- }
595
- if ((tag & 7) === 4 || tag === 0) {
596
- break;
597
- }
598
- reader.skip(tag & 7);
599
- }
600
- return message;
601
- },
602
-
603
- fromJSON(object: any): StringEvent {
604
- return {
605
- type: isSet(object.type) ? globalThis.String(object.type) : "",
606
- attributes: globalThis.Array.isArray(object?.attributes)
607
- ? object.attributes.map((e: any) => Attribute.fromJSON(e))
608
- : [],
609
- };
610
- },
611
-
612
- toJSON(message: StringEvent): unknown {
613
- const obj: any = {};
614
- if (message.type !== "") {
615
- obj.type = message.type;
616
- }
617
- if (message.attributes?.length) {
618
- obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));
619
- }
620
- return obj;
621
- },
622
-
623
- create<I extends Exact<DeepPartial<StringEvent>, I>>(base?: I): StringEvent {
624
- return StringEvent.fromPartial(base ?? ({} as any));
625
- },
626
- fromPartial<I extends Exact<DeepPartial<StringEvent>, I>>(object: I): StringEvent {
627
- const message = createBaseStringEvent();
628
- message.type = object.type ?? "";
629
- message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];
630
- return message;
631
- },
632
- };
633
-
634
- function createBaseAttribute(): Attribute {
635
- return { key: "", value: "" };
636
- }
637
-
638
- export const Attribute: MessageFns<Attribute> = {
639
- encode(message: Attribute, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
640
- if (message.key !== "") {
641
- writer.uint32(10).string(message.key);
642
- }
643
- if (message.value !== "") {
644
- writer.uint32(18).string(message.value);
645
- }
646
- return writer;
647
- },
648
-
649
- decode(input: BinaryReader | Uint8Array, length?: number): Attribute {
650
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
651
- let end = length === undefined ? reader.len : reader.pos + length;
652
- const message = createBaseAttribute();
653
- while (reader.pos < end) {
654
- const tag = reader.uint32();
655
- switch (tag >>> 3) {
656
- case 1: {
657
- if (tag !== 10) {
658
- break;
659
- }
660
-
661
- message.key = reader.string();
662
- continue;
663
- }
664
- case 2: {
665
- if (tag !== 18) {
666
- break;
667
- }
668
-
669
- message.value = reader.string();
670
- continue;
671
- }
672
- }
673
- if ((tag & 7) === 4 || tag === 0) {
674
- break;
675
- }
676
- reader.skip(tag & 7);
677
- }
678
- return message;
679
- },
680
-
681
- fromJSON(object: any): Attribute {
682
- return {
683
- key: isSet(object.key) ? globalThis.String(object.key) : "",
684
- value: isSet(object.value) ? globalThis.String(object.value) : "",
685
- };
686
- },
687
-
688
- toJSON(message: Attribute): unknown {
689
- const obj: any = {};
690
- if (message.key !== "") {
691
- obj.key = message.key;
692
- }
693
- if (message.value !== "") {
694
- obj.value = message.value;
695
- }
696
- return obj;
697
- },
698
-
699
- create<I extends Exact<DeepPartial<Attribute>, I>>(base?: I): Attribute {
700
- return Attribute.fromPartial(base ?? ({} as any));
701
- },
702
- fromPartial<I extends Exact<DeepPartial<Attribute>, I>>(object: I): Attribute {
703
- const message = createBaseAttribute();
704
- message.key = object.key ?? "";
705
- message.value = object.value ?? "";
706
- return message;
707
- },
708
- };
709
-
710
- function createBaseGasInfo(): GasInfo {
711
- return { gasWanted: 0, gasUsed: 0 };
712
- }
713
-
714
- export const GasInfo: MessageFns<GasInfo> = {
715
- encode(message: GasInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
716
- if (message.gasWanted !== 0) {
717
- writer.uint32(8).uint64(message.gasWanted);
718
- }
719
- if (message.gasUsed !== 0) {
720
- writer.uint32(16).uint64(message.gasUsed);
721
- }
722
- return writer;
723
- },
724
-
725
- decode(input: BinaryReader | Uint8Array, length?: number): GasInfo {
726
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
727
- let end = length === undefined ? reader.len : reader.pos + length;
728
- const message = createBaseGasInfo();
729
- while (reader.pos < end) {
730
- const tag = reader.uint32();
731
- switch (tag >>> 3) {
732
- case 1: {
733
- if (tag !== 8) {
734
- break;
735
- }
736
-
737
- message.gasWanted = longToNumber(reader.uint64());
738
- continue;
739
- }
740
- case 2: {
741
- if (tag !== 16) {
742
- break;
743
- }
744
-
745
- message.gasUsed = longToNumber(reader.uint64());
746
- continue;
747
- }
748
- }
749
- if ((tag & 7) === 4 || tag === 0) {
750
- break;
751
- }
752
- reader.skip(tag & 7);
753
- }
754
- return message;
755
- },
756
-
757
- fromJSON(object: any): GasInfo {
758
- return {
759
- gasWanted: isSet(object.gasWanted) ? globalThis.Number(object.gasWanted) : 0,
760
- gasUsed: isSet(object.gasUsed) ? globalThis.Number(object.gasUsed) : 0,
761
- };
762
- },
763
-
764
- toJSON(message: GasInfo): unknown {
765
- const obj: any = {};
766
- if (message.gasWanted !== 0) {
767
- obj.gasWanted = Math.round(message.gasWanted);
768
- }
769
- if (message.gasUsed !== 0) {
770
- obj.gasUsed = Math.round(message.gasUsed);
771
- }
772
- return obj;
773
- },
774
-
775
- create<I extends Exact<DeepPartial<GasInfo>, I>>(base?: I): GasInfo {
776
- return GasInfo.fromPartial(base ?? ({} as any));
777
- },
778
- fromPartial<I extends Exact<DeepPartial<GasInfo>, I>>(object: I): GasInfo {
779
- const message = createBaseGasInfo();
780
- message.gasWanted = object.gasWanted ?? 0;
781
- message.gasUsed = object.gasUsed ?? 0;
782
- return message;
783
- },
784
- };
785
-
786
- function createBaseResult(): Result {
787
- return { data: new Uint8Array(0), log: "", events: [], msgResponses: [] };
788
- }
789
-
790
- export const Result: MessageFns<Result> = {
791
- encode(message: Result, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
792
- if (message.data.length !== 0) {
793
- writer.uint32(10).bytes(message.data);
794
- }
795
- if (message.log !== "") {
796
- writer.uint32(18).string(message.log);
797
- }
798
- for (const v of message.events) {
799
- Event.encode(v!, writer.uint32(26).fork()).join();
800
- }
801
- for (const v of message.msgResponses) {
802
- Any.encode(v!, writer.uint32(34).fork()).join();
803
- }
804
- return writer;
805
- },
806
-
807
- decode(input: BinaryReader | Uint8Array, length?: number): Result {
808
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
809
- let end = length === undefined ? reader.len : reader.pos + length;
810
- const message = createBaseResult();
811
- while (reader.pos < end) {
812
- const tag = reader.uint32();
813
- switch (tag >>> 3) {
814
- case 1: {
815
- if (tag !== 10) {
816
- break;
817
- }
818
-
819
- message.data = reader.bytes();
820
- continue;
821
- }
822
- case 2: {
823
- if (tag !== 18) {
824
- break;
825
- }
826
-
827
- message.log = reader.string();
828
- continue;
829
- }
830
- case 3: {
831
- if (tag !== 26) {
832
- break;
833
- }
834
-
835
- message.events.push(Event.decode(reader, reader.uint32()));
836
- continue;
837
- }
838
- case 4: {
839
- if (tag !== 34) {
840
- break;
841
- }
842
-
843
- message.msgResponses.push(Any.decode(reader, reader.uint32()));
844
- continue;
845
- }
846
- }
847
- if ((tag & 7) === 4 || tag === 0) {
848
- break;
849
- }
850
- reader.skip(tag & 7);
851
- }
852
- return message;
853
- },
854
-
855
- fromJSON(object: any): Result {
856
- return {
857
- data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
858
- log: isSet(object.log) ? globalThis.String(object.log) : "",
859
- events: globalThis.Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
860
- msgResponses: globalThis.Array.isArray(object?.msgResponses)
861
- ? object.msgResponses.map((e: any) => Any.fromJSON(e))
862
- : [],
863
- };
864
- },
865
-
866
- toJSON(message: Result): unknown {
867
- const obj: any = {};
868
- if (message.data.length !== 0) {
869
- obj.data = base64FromBytes(message.data);
870
- }
871
- if (message.log !== "") {
872
- obj.log = message.log;
873
- }
874
- if (message.events?.length) {
875
- obj.events = message.events.map((e) => Event.toJSON(e));
876
- }
877
- if (message.msgResponses?.length) {
878
- obj.msgResponses = message.msgResponses.map((e) => Any.toJSON(e));
879
- }
880
- return obj;
881
- },
882
-
883
- create<I extends Exact<DeepPartial<Result>, I>>(base?: I): Result {
884
- return Result.fromPartial(base ?? ({} as any));
885
- },
886
- fromPartial<I extends Exact<DeepPartial<Result>, I>>(object: I): Result {
887
- const message = createBaseResult();
888
- message.data = object.data ?? new Uint8Array(0);
889
- message.log = object.log ?? "";
890
- message.events = object.events?.map((e) => Event.fromPartial(e)) || [];
891
- message.msgResponses = object.msgResponses?.map((e) => Any.fromPartial(e)) || [];
892
- return message;
893
- },
894
- };
895
-
896
- function createBaseSimulationResponse(): SimulationResponse {
897
- return { gasInfo: undefined, result: undefined };
898
- }
899
-
900
- export const SimulationResponse: MessageFns<SimulationResponse> = {
901
- encode(message: SimulationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
902
- if (message.gasInfo !== undefined) {
903
- GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).join();
904
- }
905
- if (message.result !== undefined) {
906
- Result.encode(message.result, writer.uint32(18).fork()).join();
907
- }
908
- return writer;
909
- },
910
-
911
- decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse {
912
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
913
- let end = length === undefined ? reader.len : reader.pos + length;
914
- const message = createBaseSimulationResponse();
915
- while (reader.pos < end) {
916
- const tag = reader.uint32();
917
- switch (tag >>> 3) {
918
- case 1: {
919
- if (tag !== 10) {
920
- break;
921
- }
922
-
923
- message.gasInfo = GasInfo.decode(reader, reader.uint32());
924
- continue;
925
- }
926
- case 2: {
927
- if (tag !== 18) {
928
- break;
929
- }
930
-
931
- message.result = Result.decode(reader, reader.uint32());
932
- continue;
933
- }
934
- }
935
- if ((tag & 7) === 4 || tag === 0) {
936
- break;
937
- }
938
- reader.skip(tag & 7);
939
- }
940
- return message;
941
- },
942
-
943
- fromJSON(object: any): SimulationResponse {
944
- return {
945
- gasInfo: isSet(object.gasInfo) ? GasInfo.fromJSON(object.gasInfo) : undefined,
946
- result: isSet(object.result) ? Result.fromJSON(object.result) : undefined,
947
- };
948
- },
949
-
950
- toJSON(message: SimulationResponse): unknown {
951
- const obj: any = {};
952
- if (message.gasInfo !== undefined) {
953
- obj.gasInfo = GasInfo.toJSON(message.gasInfo);
954
- }
955
- if (message.result !== undefined) {
956
- obj.result = Result.toJSON(message.result);
957
- }
958
- return obj;
959
- },
960
-
961
- create<I extends Exact<DeepPartial<SimulationResponse>, I>>(base?: I): SimulationResponse {
962
- return SimulationResponse.fromPartial(base ?? ({} as any));
963
- },
964
- fromPartial<I extends Exact<DeepPartial<SimulationResponse>, I>>(object: I): SimulationResponse {
965
- const message = createBaseSimulationResponse();
966
- message.gasInfo = (object.gasInfo !== undefined && object.gasInfo !== null)
967
- ? GasInfo.fromPartial(object.gasInfo)
968
- : undefined;
969
- message.result = (object.result !== undefined && object.result !== null)
970
- ? Result.fromPartial(object.result)
971
- : undefined;
972
- return message;
973
- },
974
- };
975
-
976
- function createBaseMsgData(): MsgData {
977
- return { msgType: "", data: new Uint8Array(0) };
978
- }
979
-
980
- export const MsgData: MessageFns<MsgData> = {
981
- encode(message: MsgData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
982
- if (message.msgType !== "") {
983
- writer.uint32(10).string(message.msgType);
984
- }
985
- if (message.data.length !== 0) {
986
- writer.uint32(18).bytes(message.data);
987
- }
988
- return writer;
989
- },
990
-
991
- decode(input: BinaryReader | Uint8Array, length?: number): MsgData {
992
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
993
- let end = length === undefined ? reader.len : reader.pos + length;
994
- const message = createBaseMsgData();
995
- while (reader.pos < end) {
996
- const tag = reader.uint32();
997
- switch (tag >>> 3) {
998
- case 1: {
999
- if (tag !== 10) {
1000
- break;
1001
- }
1002
-
1003
- message.msgType = reader.string();
1004
- continue;
1005
- }
1006
- case 2: {
1007
- if (tag !== 18) {
1008
- break;
1009
- }
1010
-
1011
- message.data = reader.bytes();
1012
- continue;
1013
- }
1014
- }
1015
- if ((tag & 7) === 4 || tag === 0) {
1016
- break;
1017
- }
1018
- reader.skip(tag & 7);
1019
- }
1020
- return message;
1021
- },
1022
-
1023
- fromJSON(object: any): MsgData {
1024
- return {
1025
- msgType: isSet(object.msgType) ? globalThis.String(object.msgType) : "",
1026
- data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
1027
- };
1028
- },
1029
-
1030
- toJSON(message: MsgData): unknown {
1031
- const obj: any = {};
1032
- if (message.msgType !== "") {
1033
- obj.msgType = message.msgType;
1034
- }
1035
- if (message.data.length !== 0) {
1036
- obj.data = base64FromBytes(message.data);
1037
- }
1038
- return obj;
1039
- },
1040
-
1041
- create<I extends Exact<DeepPartial<MsgData>, I>>(base?: I): MsgData {
1042
- return MsgData.fromPartial(base ?? ({} as any));
1043
- },
1044
- fromPartial<I extends Exact<DeepPartial<MsgData>, I>>(object: I): MsgData {
1045
- const message = createBaseMsgData();
1046
- message.msgType = object.msgType ?? "";
1047
- message.data = object.data ?? new Uint8Array(0);
1048
- return message;
1049
- },
1050
- };
1051
-
1052
- function createBaseTxMsgData(): TxMsgData {
1053
- return { data: [], msgResponses: [] };
1054
- }
1055
-
1056
- export const TxMsgData: MessageFns<TxMsgData> = {
1057
- encode(message: TxMsgData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1058
- for (const v of message.data) {
1059
- MsgData.encode(v!, writer.uint32(10).fork()).join();
1060
- }
1061
- for (const v of message.msgResponses) {
1062
- Any.encode(v!, writer.uint32(18).fork()).join();
1063
- }
1064
- return writer;
1065
- },
1066
-
1067
- decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData {
1068
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1069
- let end = length === undefined ? reader.len : reader.pos + length;
1070
- const message = createBaseTxMsgData();
1071
- while (reader.pos < end) {
1072
- const tag = reader.uint32();
1073
- switch (tag >>> 3) {
1074
- case 1: {
1075
- if (tag !== 10) {
1076
- break;
1077
- }
1078
-
1079
- message.data.push(MsgData.decode(reader, reader.uint32()));
1080
- continue;
1081
- }
1082
- case 2: {
1083
- if (tag !== 18) {
1084
- break;
1085
- }
1086
-
1087
- message.msgResponses.push(Any.decode(reader, reader.uint32()));
1088
- continue;
1089
- }
1090
- }
1091
- if ((tag & 7) === 4 || tag === 0) {
1092
- break;
1093
- }
1094
- reader.skip(tag & 7);
1095
- }
1096
- return message;
1097
- },
1098
-
1099
- fromJSON(object: any): TxMsgData {
1100
- return {
1101
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e: any) => MsgData.fromJSON(e)) : [],
1102
- msgResponses: globalThis.Array.isArray(object?.msgResponses)
1103
- ? object.msgResponses.map((e: any) => Any.fromJSON(e))
1104
- : [],
1105
- };
1106
- },
1107
-
1108
- toJSON(message: TxMsgData): unknown {
1109
- const obj: any = {};
1110
- if (message.data?.length) {
1111
- obj.data = message.data.map((e) => MsgData.toJSON(e));
1112
- }
1113
- if (message.msgResponses?.length) {
1114
- obj.msgResponses = message.msgResponses.map((e) => Any.toJSON(e));
1115
- }
1116
- return obj;
1117
- },
1118
-
1119
- create<I extends Exact<DeepPartial<TxMsgData>, I>>(base?: I): TxMsgData {
1120
- return TxMsgData.fromPartial(base ?? ({} as any));
1121
- },
1122
- fromPartial<I extends Exact<DeepPartial<TxMsgData>, I>>(object: I): TxMsgData {
1123
- const message = createBaseTxMsgData();
1124
- message.data = object.data?.map((e) => MsgData.fromPartial(e)) || [];
1125
- message.msgResponses = object.msgResponses?.map((e) => Any.fromPartial(e)) || [];
1126
- return message;
1127
- },
1128
- };
1129
-
1130
- function createBaseSearchTxsResult(): SearchTxsResult {
1131
- return { totalCount: 0, count: 0, pageNumber: 0, pageTotal: 0, limit: 0, txs: [] };
1132
- }
1133
-
1134
- export const SearchTxsResult: MessageFns<SearchTxsResult> = {
1135
- encode(message: SearchTxsResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1136
- if (message.totalCount !== 0) {
1137
- writer.uint32(8).uint64(message.totalCount);
1138
- }
1139
- if (message.count !== 0) {
1140
- writer.uint32(16).uint64(message.count);
1141
- }
1142
- if (message.pageNumber !== 0) {
1143
- writer.uint32(24).uint64(message.pageNumber);
1144
- }
1145
- if (message.pageTotal !== 0) {
1146
- writer.uint32(32).uint64(message.pageTotal);
1147
- }
1148
- if (message.limit !== 0) {
1149
- writer.uint32(40).uint64(message.limit);
1150
- }
1151
- for (const v of message.txs) {
1152
- TxResponse.encode(v!, writer.uint32(50).fork()).join();
1153
- }
1154
- return writer;
1155
- },
1156
-
1157
- decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult {
1158
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1159
- let end = length === undefined ? reader.len : reader.pos + length;
1160
- const message = createBaseSearchTxsResult();
1161
- while (reader.pos < end) {
1162
- const tag = reader.uint32();
1163
- switch (tag >>> 3) {
1164
- case 1: {
1165
- if (tag !== 8) {
1166
- break;
1167
- }
1168
-
1169
- message.totalCount = longToNumber(reader.uint64());
1170
- continue;
1171
- }
1172
- case 2: {
1173
- if (tag !== 16) {
1174
- break;
1175
- }
1176
-
1177
- message.count = longToNumber(reader.uint64());
1178
- continue;
1179
- }
1180
- case 3: {
1181
- if (tag !== 24) {
1182
- break;
1183
- }
1184
-
1185
- message.pageNumber = longToNumber(reader.uint64());
1186
- continue;
1187
- }
1188
- case 4: {
1189
- if (tag !== 32) {
1190
- break;
1191
- }
1192
-
1193
- message.pageTotal = longToNumber(reader.uint64());
1194
- continue;
1195
- }
1196
- case 5: {
1197
- if (tag !== 40) {
1198
- break;
1199
- }
1200
-
1201
- message.limit = longToNumber(reader.uint64());
1202
- continue;
1203
- }
1204
- case 6: {
1205
- if (tag !== 50) {
1206
- break;
1207
- }
1208
-
1209
- message.txs.push(TxResponse.decode(reader, reader.uint32()));
1210
- continue;
1211
- }
1212
- }
1213
- if ((tag & 7) === 4 || tag === 0) {
1214
- break;
1215
- }
1216
- reader.skip(tag & 7);
1217
- }
1218
- return message;
1219
- },
1220
-
1221
- fromJSON(object: any): SearchTxsResult {
1222
- return {
1223
- totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
1224
- count: isSet(object.count) ? globalThis.Number(object.count) : 0,
1225
- pageNumber: isSet(object.pageNumber) ? globalThis.Number(object.pageNumber) : 0,
1226
- pageTotal: isSet(object.pageTotal) ? globalThis.Number(object.pageTotal) : 0,
1227
- limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
1228
- txs: globalThis.Array.isArray(object?.txs) ? object.txs.map((e: any) => TxResponse.fromJSON(e)) : [],
1229
- };
1230
- },
1231
-
1232
- toJSON(message: SearchTxsResult): unknown {
1233
- const obj: any = {};
1234
- if (message.totalCount !== 0) {
1235
- obj.totalCount = Math.round(message.totalCount);
1236
- }
1237
- if (message.count !== 0) {
1238
- obj.count = Math.round(message.count);
1239
- }
1240
- if (message.pageNumber !== 0) {
1241
- obj.pageNumber = Math.round(message.pageNumber);
1242
- }
1243
- if (message.pageTotal !== 0) {
1244
- obj.pageTotal = Math.round(message.pageTotal);
1245
- }
1246
- if (message.limit !== 0) {
1247
- obj.limit = Math.round(message.limit);
1248
- }
1249
- if (message.txs?.length) {
1250
- obj.txs = message.txs.map((e) => TxResponse.toJSON(e));
1251
- }
1252
- return obj;
1253
- },
1254
-
1255
- create<I extends Exact<DeepPartial<SearchTxsResult>, I>>(base?: I): SearchTxsResult {
1256
- return SearchTxsResult.fromPartial(base ?? ({} as any));
1257
- },
1258
- fromPartial<I extends Exact<DeepPartial<SearchTxsResult>, I>>(object: I): SearchTxsResult {
1259
- const message = createBaseSearchTxsResult();
1260
- message.totalCount = object.totalCount ?? 0;
1261
- message.count = object.count ?? 0;
1262
- message.pageNumber = object.pageNumber ?? 0;
1263
- message.pageTotal = object.pageTotal ?? 0;
1264
- message.limit = object.limit ?? 0;
1265
- message.txs = object.txs?.map((e) => TxResponse.fromPartial(e)) || [];
1266
- return message;
1267
- },
1268
- };
1269
-
1270
- function createBaseSearchBlocksResult(): SearchBlocksResult {
1271
- return { totalCount: 0, count: 0, pageNumber: 0, pageTotal: 0, limit: 0, blocks: [] };
1272
- }
1273
-
1274
- export const SearchBlocksResult: MessageFns<SearchBlocksResult> = {
1275
- encode(message: SearchBlocksResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1276
- if (message.totalCount !== 0) {
1277
- writer.uint32(8).int64(message.totalCount);
1278
- }
1279
- if (message.count !== 0) {
1280
- writer.uint32(16).int64(message.count);
1281
- }
1282
- if (message.pageNumber !== 0) {
1283
- writer.uint32(24).int64(message.pageNumber);
1284
- }
1285
- if (message.pageTotal !== 0) {
1286
- writer.uint32(32).int64(message.pageTotal);
1287
- }
1288
- if (message.limit !== 0) {
1289
- writer.uint32(40).int64(message.limit);
1290
- }
1291
- for (const v of message.blocks) {
1292
- Block.encode(v!, writer.uint32(50).fork()).join();
1293
- }
1294
- return writer;
1295
- },
1296
-
1297
- decode(input: BinaryReader | Uint8Array, length?: number): SearchBlocksResult {
1298
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1299
- let end = length === undefined ? reader.len : reader.pos + length;
1300
- const message = createBaseSearchBlocksResult();
1301
- while (reader.pos < end) {
1302
- const tag = reader.uint32();
1303
- switch (tag >>> 3) {
1304
- case 1: {
1305
- if (tag !== 8) {
1306
- break;
1307
- }
1308
-
1309
- message.totalCount = longToNumber(reader.int64());
1310
- continue;
1311
- }
1312
- case 2: {
1313
- if (tag !== 16) {
1314
- break;
1315
- }
1316
-
1317
- message.count = longToNumber(reader.int64());
1318
- continue;
1319
- }
1320
- case 3: {
1321
- if (tag !== 24) {
1322
- break;
1323
- }
1324
-
1325
- message.pageNumber = longToNumber(reader.int64());
1326
- continue;
1327
- }
1328
- case 4: {
1329
- if (tag !== 32) {
1330
- break;
1331
- }
1332
-
1333
- message.pageTotal = longToNumber(reader.int64());
1334
- continue;
1335
- }
1336
- case 5: {
1337
- if (tag !== 40) {
1338
- break;
1339
- }
1340
-
1341
- message.limit = longToNumber(reader.int64());
1342
- continue;
1343
- }
1344
- case 6: {
1345
- if (tag !== 50) {
1346
- break;
1347
- }
1348
-
1349
- message.blocks.push(Block.decode(reader, reader.uint32()));
1350
- continue;
1351
- }
1352
- }
1353
- if ((tag & 7) === 4 || tag === 0) {
1354
- break;
1355
- }
1356
- reader.skip(tag & 7);
1357
- }
1358
- return message;
1359
- },
1360
-
1361
- fromJSON(object: any): SearchBlocksResult {
1362
- return {
1363
- totalCount: isSet(object.totalCount) ? globalThis.Number(object.totalCount) : 0,
1364
- count: isSet(object.count) ? globalThis.Number(object.count) : 0,
1365
- pageNumber: isSet(object.pageNumber) ? globalThis.Number(object.pageNumber) : 0,
1366
- pageTotal: isSet(object.pageTotal) ? globalThis.Number(object.pageTotal) : 0,
1367
- limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
1368
- blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e: any) => Block.fromJSON(e)) : [],
1369
- };
1370
- },
1371
-
1372
- toJSON(message: SearchBlocksResult): unknown {
1373
- const obj: any = {};
1374
- if (message.totalCount !== 0) {
1375
- obj.totalCount = Math.round(message.totalCount);
1376
- }
1377
- if (message.count !== 0) {
1378
- obj.count = Math.round(message.count);
1379
- }
1380
- if (message.pageNumber !== 0) {
1381
- obj.pageNumber = Math.round(message.pageNumber);
1382
- }
1383
- if (message.pageTotal !== 0) {
1384
- obj.pageTotal = Math.round(message.pageTotal);
1385
- }
1386
- if (message.limit !== 0) {
1387
- obj.limit = Math.round(message.limit);
1388
- }
1389
- if (message.blocks?.length) {
1390
- obj.blocks = message.blocks.map((e) => Block.toJSON(e));
1391
- }
1392
- return obj;
1393
- },
1394
-
1395
- create<I extends Exact<DeepPartial<SearchBlocksResult>, I>>(base?: I): SearchBlocksResult {
1396
- return SearchBlocksResult.fromPartial(base ?? ({} as any));
1397
- },
1398
- fromPartial<I extends Exact<DeepPartial<SearchBlocksResult>, I>>(object: I): SearchBlocksResult {
1399
- const message = createBaseSearchBlocksResult();
1400
- message.totalCount = object.totalCount ?? 0;
1401
- message.count = object.count ?? 0;
1402
- message.pageNumber = object.pageNumber ?? 0;
1403
- message.pageTotal = object.pageTotal ?? 0;
1404
- message.limit = object.limit ?? 0;
1405
- message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
1406
- return message;
1407
- },
1408
- };
1409
-
1410
- function bytesFromBase64(b64: string): Uint8Array {
1411
- if ((globalThis as any).Buffer) {
1412
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
1413
- } else {
1414
- const bin = globalThis.atob(b64);
1415
- const arr = new Uint8Array(bin.length);
1416
- for (let i = 0; i < bin.length; ++i) {
1417
- arr[i] = bin.charCodeAt(i);
1418
- }
1419
- return arr;
1420
- }
1421
- }
1422
-
1423
- function base64FromBytes(arr: Uint8Array): string {
1424
- if ((globalThis as any).Buffer) {
1425
- return globalThis.Buffer.from(arr).toString("base64");
1426
- } else {
1427
- const bin: string[] = [];
1428
- arr.forEach((byte) => {
1429
- bin.push(globalThis.String.fromCharCode(byte));
1430
- });
1431
- return globalThis.btoa(bin.join(""));
1432
- }
1433
- }
1434
-
1435
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1436
-
1437
- export type DeepPartial<T> = T extends Builtin ? T
1438
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
1439
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
1440
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
1441
- : Partial<T>;
1442
-
1443
- type KeysOfUnion<T> = T extends T ? keyof T : never;
1444
- export type Exact<P, I extends P> = P extends Builtin ? P
1445
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
1446
-
1447
- function longToNumber(int64: { toString(): string }): number {
1448
- const num = globalThis.Number(int64.toString());
1449
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
1450
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1451
- }
1452
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
1453
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
1454
- }
1455
- return num;
1456
- }
1457
-
1458
- function isSet(value: any): boolean {
1459
- return value !== null && value !== undefined;
1460
- }
1461
-
1462
- export interface MessageFns<T> {
1463
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
1464
- decode(input: BinaryReader | Uint8Array, length?: number): T;
1465
- fromJSON(object: any): T;
1466
- toJSON(message: T): unknown;
1467
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1468
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1469
- }