decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/lib/index.d.ts +78 -78
  2. package/lib/index.js +25 -25
  3. package/package.json +12 -1
  4. package/cardchain.cardchain/index.ts +0 -6
  5. package/cardchain.cardchain/module.ts +0 -1869
  6. package/cardchain.cardchain/registry.ts +0 -111
  7. package/cardchain.cardchain/rest.ts +0 -655
  8. package/cardchain.cardchain/types.ts +0 -63
  9. package/cardchain.featureflag/index.ts +0 -6
  10. package/cardchain.featureflag/module.ts +0 -165
  11. package/cardchain.featureflag/registry.ts +0 -11
  12. package/cardchain.featureflag/rest.ts +0 -256
  13. package/cardchain.featureflag/types.ts +0 -9
  14. package/client.ts +0 -164
  15. package/cosmos.auth.v1beta1/index.ts +0 -6
  16. package/cosmos.auth.v1beta1/module.ts +0 -136
  17. package/cosmos.auth.v1beta1/registry.ts +0 -9
  18. package/cosmos.auth.v1beta1/rest.ts +0 -403
  19. package/cosmos.auth.v1beta1/types.ts +0 -13
  20. package/cosmos.authz.v1beta1/index.ts +0 -6
  21. package/cosmos.authz.v1beta1/module.ts +0 -206
  22. package/cosmos.authz.v1beta1/registry.ts +0 -13
  23. package/cosmos.authz.v1beta1/rest.ts +0 -256
  24. package/cosmos.authz.v1beta1/types.ts +0 -17
  25. package/cosmos.bank.v1beta1/index.ts +0 -6
  26. package/cosmos.bank.v1beta1/module.ts +0 -247
  27. package/cosmos.bank.v1beta1/registry.ts +0 -15
  28. package/cosmos.bank.v1beta1/rest.ts +0 -466
  29. package/cosmos.bank.v1beta1/types.ts +0 -25
  30. package/cosmos.base.node.v1beta1/index.ts +0 -6
  31. package/cosmos.base.node.v1beta1/module.ts +0 -95
  32. package/cosmos.base.node.v1beta1/registry.ts +0 -7
  33. package/cosmos.base.node.v1beta1/rest.ts +0 -235
  34. package/cosmos.base.node.v1beta1/types.ts +0 -5
  35. package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
  36. package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
  37. package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
  38. package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
  39. package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
  40. package/cosmos.circuit.v1/index.ts +0 -6
  41. package/cosmos.circuit.v1/module.ts +0 -198
  42. package/cosmos.circuit.v1/registry.ts +0 -13
  43. package/cosmos.circuit.v1/rest.ts +0 -256
  44. package/cosmos.circuit.v1/types.ts +0 -9
  45. package/cosmos.consensus.v1/index.ts +0 -6
  46. package/cosmos.consensus.v1/module.ts +0 -128
  47. package/cosmos.consensus.v1/registry.ts +0 -9
  48. package/cosmos.consensus.v1/rest.ts +0 -214
  49. package/cosmos.consensus.v1/types.ts +0 -5
  50. package/cosmos.crisis.v1beta1/index.ts +0 -6
  51. package/cosmos.crisis.v1beta1/module.ts +0 -161
  52. package/cosmos.crisis.v1beta1/registry.ts +0 -11
  53. package/cosmos.crisis.v1beta1/rest.ts +0 -193
  54. package/cosmos.crisis.v1beta1/types.ts +0 -5
  55. package/cosmos.distribution.v1beta1/index.ts +0 -6
  56. package/cosmos.distribution.v1beta1/module.ts +0 -364
  57. package/cosmos.distribution.v1beta1/registry.ts +0 -21
  58. package/cosmos.distribution.v1beta1/rest.ts +0 -403
  59. package/cosmos.distribution.v1beta1/types.ts +0 -43
  60. package/cosmos.evidence.v1beta1/index.ts +0 -6
  61. package/cosmos.evidence.v1beta1/module.ts +0 -130
  62. package/cosmos.evidence.v1beta1/registry.ts +0 -9
  63. package/cosmos.evidence.v1beta1/rest.ts +0 -235
  64. package/cosmos.evidence.v1beta1/types.ts +0 -7
  65. package/cosmos.feegrant.v1beta1/index.ts +0 -6
  66. package/cosmos.feegrant.v1beta1/module.ts +0 -202
  67. package/cosmos.feegrant.v1beta1/registry.ts +0 -13
  68. package/cosmos.feegrant.v1beta1/rest.ts +0 -256
  69. package/cosmos.feegrant.v1beta1/types.ts +0 -13
  70. package/cosmos.gov.v1/index.ts +0 -6
  71. package/cosmos.gov.v1/module.ts +0 -344
  72. package/cosmos.gov.v1/registry.ts +0 -21
  73. package/cosmos.gov.v1/rest.ts +0 -382
  74. package/cosmos.gov.v1/types.ts +0 -23
  75. package/cosmos.gov.v1beta1/index.ts +0 -6
  76. package/cosmos.gov.v1beta1/module.ts +0 -245
  77. package/cosmos.gov.v1beta1/registry.ts +0 -15
  78. package/cosmos.gov.v1beta1/rest.ts +0 -361
  79. package/cosmos.gov.v1beta1/types.ts +0 -23
  80. package/cosmos.group.v1/index.ts +0 -6
  81. package/cosmos.group.v1/module.ts +0 -599
  82. package/cosmos.group.v1/registry.ts +0 -35
  83. package/cosmos.group.v1/rest.ts +0 -487
  84. package/cosmos.group.v1/types.ts +0 -47
  85. package/cosmos.mint.v1beta1/index.ts +0 -6
  86. package/cosmos.mint.v1beta1/module.ts +0 -132
  87. package/cosmos.mint.v1beta1/registry.ts +0 -9
  88. package/cosmos.mint.v1beta1/rest.ts +0 -256
  89. package/cosmos.mint.v1beta1/types.ts +0 -9
  90. package/cosmos.nft.v1beta1/index.ts +0 -6
  91. package/cosmos.nft.v1beta1/module.ts +0 -140
  92. package/cosmos.nft.v1beta1/registry.ts +0 -9
  93. package/cosmos.nft.v1beta1/rest.ts +0 -340
  94. package/cosmos.nft.v1beta1/types.ts +0 -17
  95. package/cosmos.params.v1beta1/index.ts +0 -6
  96. package/cosmos.params.v1beta1/module.ts +0 -101
  97. package/cosmos.params.v1beta1/registry.ts +0 -7
  98. package/cosmos.params.v1beta1/rest.ts +0 -235
  99. package/cosmos.params.v1beta1/types.ts +0 -11
  100. package/cosmos.slashing.v1beta1/index.ts +0 -6
  101. package/cosmos.slashing.v1beta1/module.ts +0 -171
  102. package/cosmos.slashing.v1beta1/registry.ts +0 -11
  103. package/cosmos.slashing.v1beta1/rest.ts +0 -256
  104. package/cosmos.slashing.v1beta1/types.ts +0 -15
  105. package/cosmos.staking.v1beta1/index.ts +0 -6
  106. package/cosmos.staking.v1beta1/module.ts +0 -374
  107. package/cosmos.staking.v1beta1/registry.ts +0 -21
  108. package/cosmos.staking.v1beta1/rest.ts +0 -487
  109. package/cosmos.staking.v1beta1/types.ts +0 -53
  110. package/cosmos.tx.v1beta1/index.ts +0 -6
  111. package/cosmos.tx.v1beta1/module.ts +0 -121
  112. package/cosmos.tx.v1beta1/registry.ts +0 -7
  113. package/cosmos.tx.v1beta1/rest.ts +0 -382
  114. package/cosmos.tx.v1beta1/types.ts +0 -31
  115. package/cosmos.upgrade.v1beta1/index.ts +0 -6
  116. package/cosmos.upgrade.v1beta1/module.ts +0 -169
  117. package/cosmos.upgrade.v1beta1/registry.ts +0 -11
  118. package/cosmos.upgrade.v1beta1/rest.ts +0 -298
  119. package/cosmos.upgrade.v1beta1/types.ts +0 -13
  120. package/cosmos.vesting.v1beta1/index.ts +0 -6
  121. package/cosmos.vesting.v1beta1/module.ts +0 -206
  122. package/cosmos.vesting.v1beta1/registry.ts +0 -13
  123. package/cosmos.vesting.v1beta1/rest.ts +0 -193
  124. package/cosmos.vesting.v1beta1/types.ts +0 -17
  125. package/env.ts +0 -7
  126. package/helpers.ts +0 -32
  127. package/ibc.applications.fee.v1/index.ts +0 -6
  128. package/ibc.applications.fee.v1/module.ts +0 -247
  129. package/ibc.applications.fee.v1/registry.ts +0 -15
  130. package/ibc.applications.fee.v1/rest.ts +0 -403
  131. package/ibc.applications.fee.v1/types.ts +0 -25
  132. package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
  133. package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
  134. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
  135. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
  136. package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
  137. package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
  138. package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
  139. package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
  140. package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
  141. package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
  142. package/ibc.applications.transfer.v1/index.ts +0 -6
  143. package/ibc.applications.transfer.v1/module.ts +0 -169
  144. package/ibc.applications.transfer.v1/registry.ts +0 -11
  145. package/ibc.applications.transfer.v1/rest.ts +0 -319
  146. package/ibc.applications.transfer.v1/types.ts +0 -13
  147. package/ibc.core.channel.v1/index.ts +0 -6
  148. package/ibc.core.channel.v1/module.ts +0 -748
  149. package/ibc.core.channel.v1/registry.ts +0 -45
  150. package/ibc.core.channel.v1/rest.ts +0 -550
  151. package/ibc.core.channel.v1/types.ts +0 -31
  152. package/ibc.core.client.v1/index.ts +0 -6
  153. package/ibc.core.client.v1/module.ts +0 -344
  154. package/ibc.core.client.v1/registry.ts +0 -21
  155. package/ibc.core.client.v1/rest.ts +0 -403
  156. package/ibc.core.client.v1/types.ts +0 -23
  157. package/ibc.core.connection.v1/index.ts +0 -6
  158. package/ibc.core.connection.v1/module.ts +0 -274
  159. package/ibc.core.connection.v1/registry.ts +0 -17
  160. package/ibc.core.connection.v1/rest.ts +0 -319
  161. package/ibc.core.connection.v1/types.ts +0 -19
  162. package/index.ts +0 -81
  163. package/modules.ts +0 -5
  164. package/tsconfig.json +0 -13
  165. package/types/amino/amino.ts +0 -9
  166. package/types/capability/v1/capability.ts +0 -263
  167. package/types/capability/v1/genesis.ts +0 -220
  168. package/types/cardchain/cardchain/card.ts +0 -712
  169. package/types/cardchain/cardchain/card_content.ts +0 -116
  170. package/types/cardchain/cardchain/card_with_image.ts +0 -134
  171. package/types/cardchain/cardchain/council.ts +0 -502
  172. package/types/cardchain/cardchain/encounter.ts +0 -307
  173. package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
  174. package/types/cardchain/cardchain/genesis.ts +0 -403
  175. package/types/cardchain/cardchain/image.ts +0 -122
  176. package/types/cardchain/cardchain/match.ts +0 -453
  177. package/types/cardchain/cardchain/module/module.ts +0 -99
  178. package/types/cardchain/cardchain/params.ts +0 -544
  179. package/types/cardchain/cardchain/query.ts +0 -3786
  180. package/types/cardchain/cardchain/running_average.ts +0 -116
  181. package/types/cardchain/cardchain/sell_offer.ts +0 -224
  182. package/types/cardchain/cardchain/server.ts +0 -144
  183. package/types/cardchain/cardchain/set.ts +0 -537
  184. package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
  185. package/types/cardchain/cardchain/tx.ts +0 -8053
  186. package/types/cardchain/cardchain/user.ts +0 -955
  187. package/types/cardchain/cardchain/voting.ts +0 -328
  188. package/types/cardchain/cardchain/voting_results.ts +0 -227
  189. package/types/cardchain/cardchain/zealy.ts +0 -116
  190. package/types/cardchain/featureflag/flag.ts +0 -133
  191. package/types/cardchain/featureflag/genesis.ts +0 -226
  192. package/types/cardchain/featureflag/module/module.ts +0 -99
  193. package/types/cardchain/featureflag/params.ts +0 -78
  194. package/types/cardchain/featureflag/query.ts +0 -445
  195. package/types/cardchain/featureflag/tx.ts +0 -373
  196. package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
  197. package/types/cosmos/app/v1alpha1/config.ts +0 -346
  198. package/types/cosmos/app/v1alpha1/module.ts +0 -348
  199. package/types/cosmos/app/v1alpha1/query.ts +0 -175
  200. package/types/cosmos/auth/module/v1/module.ts +0 -229
  201. package/types/cosmos/auth/v1beta1/auth.ts +0 -531
  202. package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
  203. package/types/cosmos/auth/v1beta1/query.ts +0 -1564
  204. package/types/cosmos/auth/v1beta1/tx.ts +0 -213
  205. package/types/cosmos/authz/module/v1/module.ts +0 -78
  206. package/types/cosmos/authz/v1beta1/authz.ts +0 -411
  207. package/types/cosmos/authz/v1beta1/event.ts +0 -241
  208. package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
  209. package/types/cosmos/authz/v1beta1/query.ts +0 -643
  210. package/types/cosmos/authz/v1beta1/tx.ts +0 -574
  211. package/types/cosmos/autocli/v1/options.ts +0 -1049
  212. package/types/cosmos/autocli/v1/query.ts +0 -291
  213. package/types/cosmos/bank/module/v1/module.ts +0 -150
  214. package/types/cosmos/bank/v1beta1/authz.ts +0 -129
  215. package/types/cosmos/bank/v1beta1/bank.ts +0 -775
  216. package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
  217. package/types/cosmos/bank/v1beta1/query.ts +0 -2424
  218. package/types/cosmos/bank/v1beta1/tx.ts +0 -697
  219. package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
  220. package/types/cosmos/base/node/v1beta1/query.ts +0 -485
  221. package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
  222. package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
  223. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
  224. package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
  225. package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
  226. package/types/cosmos/base/v1beta1/coin.ts +0 -209
  227. package/types/cosmos/circuit/module/v1/module.ts +0 -99
  228. package/types/cosmos/circuit/v1/query.ts +0 -476
  229. package/types/cosmos/circuit/v1/tx.ts +0 -576
  230. package/types/cosmos/circuit/v1/types.ts +0 -362
  231. package/types/cosmos/consensus/module/v1/module.ts +0 -99
  232. package/types/cosmos/consensus/v1/query.ts +0 -181
  233. package/types/cosmos/consensus/v1/tx.ts +0 -271
  234. package/types/cosmos/crisis/module/v1/module.ts +0 -119
  235. package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
  236. package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
  237. package/types/cosmos/crypto/ed25519/keys.ts +0 -195
  238. package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
  239. package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
  240. package/types/cosmos/crypto/multisig/keys.ts +0 -124
  241. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
  242. package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
  243. package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
  244. package/types/cosmos/distribution/module/v1/module.ts +0 -118
  245. package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
  246. package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
  247. package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
  248. package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
  249. package/types/cosmos/evidence/module/v1/module.ts +0 -78
  250. package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
  251. package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
  252. package/types/cosmos/evidence/v1beta1/query.ts +0 -414
  253. package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
  254. package/types/cosmos/feegrant/module/v1/module.ts +0 -78
  255. package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
  256. package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
  257. package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
  258. package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
  259. package/types/cosmos/genutil/module/v1/module.ts +0 -78
  260. package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
  261. package/types/cosmos/gov/module/v1/module.ts +0 -133
  262. package/types/cosmos/gov/v1/genesis.ts +0 -313
  263. package/types/cosmos/gov/v1/gov.ts +0 -1712
  264. package/types/cosmos/gov/v1/query.ts +0 -1605
  265. package/types/cosmos/gov/v1/tx.ts +0 -1387
  266. package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
  267. package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
  268. package/types/cosmos/gov/v1beta1/query.ts +0 -1441
  269. package/types/cosmos/gov/v1beta1/tx.ts +0 -738
  270. package/types/cosmos/group/module/v1/module.ts +0 -141
  271. package/types/cosmos/group/v1/events.ts +0 -795
  272. package/types/cosmos/group/v1/genesis.ts +0 -265
  273. package/types/cosmos/group/v1/query.ts +0 -2441
  274. package/types/cosmos/group/v1/tx.ts +0 -2631
  275. package/types/cosmos/group/v1/types.ts +0 -1850
  276. package/types/cosmos/ics23/v1/proofs.ts +0 -1731
  277. package/types/cosmos/mint/module/v1/module.ts +0 -118
  278. package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
  279. package/types/cosmos/mint/v1beta1/mint.ts +0 -293
  280. package/types/cosmos/mint/v1beta1/query.ts +0 -453
  281. package/types/cosmos/mint/v1beta1/tx.ts +0 -213
  282. package/types/cosmos/msg/textual/v1/textual.ts +0 -9
  283. package/types/cosmos/msg/v1/msg.ts +0 -9
  284. package/types/cosmos/nft/module/v1/module.ts +0 -78
  285. package/types/cosmos/nft/v1beta1/event.ts +0 -359
  286. package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
  287. package/types/cosmos/nft/v1beta1/nft.ts +0 -348
  288. package/types/cosmos/nft/v1beta1/query.ts +0 -1173
  289. package/types/cosmos/nft/v1beta1/tx.ts +0 -228
  290. package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
  291. package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
  292. package/types/cosmos/orm/v1/orm.ts +0 -453
  293. package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
  294. package/types/cosmos/params/module/v1/module.ts +0 -78
  295. package/types/cosmos/params/v1beta1/params.ts +0 -236
  296. package/types/cosmos/params/v1beta1/query.ts +0 -439
  297. package/types/cosmos/query/v1/query.ts +0 -9
  298. package/types/cosmos/reflection/v1/reflection.ts +0 -179
  299. package/types/cosmos/slashing/module/v1/module.ts +0 -99
  300. package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
  301. package/types/cosmos/slashing/v1beta1/query.ts +0 -487
  302. package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
  303. package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
  304. package/types/cosmos/staking/module/v1/module.ts +0 -161
  305. package/types/cosmos/staking/v1beta1/authz.ts +0 -306
  306. package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
  307. package/types/cosmos/staking/v1beta1/query.ts +0 -2540
  308. package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
  309. package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
  310. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
  311. package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
  312. package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
  313. package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
  314. package/types/cosmos/store/v1beta1/listening.ts +0 -301
  315. package/types/cosmos/tx/config/v1/config.ts +0 -125
  316. package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
  317. package/types/cosmos/tx/v1beta1/service.ts +0 -1889
  318. package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
  319. package/types/cosmos/upgrade/module/v1/module.ts +0 -99
  320. package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
  321. package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
  322. package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
  323. package/types/cosmos/vesting/module/v1/module.ts +0 -78
  324. package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
  325. package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
  326. package/types/cosmos_proto/cosmos.ts +0 -307
  327. package/types/gogoproto/gogo.ts +0 -9
  328. package/types/google/api/annotations.ts +0 -9
  329. package/types/google/api/http.ts +0 -770
  330. package/types/google/protobuf/any.ts +0 -259
  331. package/types/google/protobuf/descriptor.ts +0 -6642
  332. package/types/google/protobuf/duration.ts +0 -200
  333. package/types/google/protobuf/timestamp.ts +0 -229
  334. package/types/ibc/applications/fee/v1/ack.ts +0 -166
  335. package/types/ibc/applications/fee/v1/fee.ts +0 -403
  336. package/types/ibc/applications/fee/v1/genesis.ts +0 -571
  337. package/types/ibc/applications/fee/v1/metadata.ts +0 -122
  338. package/types/ibc/applications/fee/v1/query.ts +0 -1757
  339. package/types/ibc/applications/fee/v1/tx.ts +0 -781
  340. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
  341. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
  342. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
  343. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
  344. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
  345. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
  346. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
  347. package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
  348. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
  349. package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
  350. package/types/ibc/applications/transfer/v1/authz.ts +0 -254
  351. package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
  352. package/types/ibc/applications/transfer/v1/query.ts +0 -934
  353. package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
  354. package/types/ibc/applications/transfer/v1/tx.ts +0 -505
  355. package/types/ibc/applications/transfer/v2/packet.ts +0 -177
  356. package/types/ibc/core/channel/v1/channel.ts +0 -1358
  357. package/types/ibc/core/channel/v1/genesis.ts +0 -377
  358. package/types/ibc/core/channel/v1/query.ts +0 -3781
  359. package/types/ibc/core/channel/v1/tx.ts +0 -4424
  360. package/types/ibc/core/channel/v1/upgrade.ts +0 -348
  361. package/types/ibc/core/client/v1/client.ts +0 -753
  362. package/types/ibc/core/client/v1/genesis.ts +0 -423
  363. package/types/ibc/core/client/v1/query.ts +0 -1898
  364. package/types/ibc/core/client/v1/tx.ts +0 -1301
  365. package/types/ibc/core/commitment/v1/commitment.ts +0 -336
  366. package/types/ibc/core/connection/v1/connection.ts +0 -840
  367. package/types/ibc/core/connection/v1/genesis.ts +0 -172
  368. package/types/ibc/core/connection/v1/query.ts +0 -1243
  369. package/types/ibc/core/connection/v1/tx.ts +0 -1352
  370. package/types/ibc/core/types/v1/genesis.ts +0 -150
  371. package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
  372. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
  373. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
  374. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
  375. package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
  376. package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
  377. package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
  378. package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
  379. package/types/tendermint/abci/types.ts +0 -6103
  380. package/types/tendermint/crypto/keys.ts +0 -142
  381. package/types/tendermint/crypto/proof.ts +0 -533
  382. package/types/tendermint/libs/bits/types.ts +0 -139
  383. package/types/tendermint/p2p/types.ts +0 -544
  384. package/types/tendermint/types/block.ts +0 -158
  385. package/types/tendermint/types/evidence.ts +0 -502
  386. package/types/tendermint/types/params.ts +0 -701
  387. package/types/tendermint/types/types.ts +0 -2133
  388. package/types/tendermint/types/validator.ts +0 -424
  389. package/types/tendermint/version/types.ts +0 -218
  390. package/types.d.ts +0 -21
@@ -1,840 +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: ibc/core/connection/v1/connection.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
- import { MerklePrefix } from "../../commitment/v1/commitment";
10
-
11
- export const protobufPackage = "ibc.core.connection.v1";
12
-
13
- /**
14
- * State defines if a connection is in one of the following states:
15
- * INIT, TRYOPEN, OPEN or UNINITIALIZED.
16
- */
17
- export enum State {
18
- /** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
19
- STATE_UNINITIALIZED_UNSPECIFIED = 0,
20
- /** STATE_INIT - A connection end has just started the opening handshake. */
21
- STATE_INIT = 1,
22
- /**
23
- * STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty
24
- * chain.
25
- */
26
- STATE_TRYOPEN = 2,
27
- /** STATE_OPEN - A connection end has completed the handshake. */
28
- STATE_OPEN = 3,
29
- UNRECOGNIZED = -1,
30
- }
31
-
32
- export function stateFromJSON(object: any): State {
33
- switch (object) {
34
- case 0:
35
- case "STATE_UNINITIALIZED_UNSPECIFIED":
36
- return State.STATE_UNINITIALIZED_UNSPECIFIED;
37
- case 1:
38
- case "STATE_INIT":
39
- return State.STATE_INIT;
40
- case 2:
41
- case "STATE_TRYOPEN":
42
- return State.STATE_TRYOPEN;
43
- case 3:
44
- case "STATE_OPEN":
45
- return State.STATE_OPEN;
46
- case -1:
47
- case "UNRECOGNIZED":
48
- default:
49
- return State.UNRECOGNIZED;
50
- }
51
- }
52
-
53
- export function stateToJSON(object: State): string {
54
- switch (object) {
55
- case State.STATE_UNINITIALIZED_UNSPECIFIED:
56
- return "STATE_UNINITIALIZED_UNSPECIFIED";
57
- case State.STATE_INIT:
58
- return "STATE_INIT";
59
- case State.STATE_TRYOPEN:
60
- return "STATE_TRYOPEN";
61
- case State.STATE_OPEN:
62
- return "STATE_OPEN";
63
- case State.UNRECOGNIZED:
64
- default:
65
- return "UNRECOGNIZED";
66
- }
67
- }
68
-
69
- /**
70
- * ConnectionEnd defines a stateful object on a chain connected to another
71
- * separate one.
72
- * NOTE: there must only be 2 defined ConnectionEnds to establish
73
- * a connection between two chains.
74
- */
75
- export interface ConnectionEnd {
76
- /** client associated with this connection. */
77
- clientId: string;
78
- /**
79
- * IBC version which can be utilised to determine encodings or protocols for
80
- * channels or packets utilising this connection.
81
- */
82
- versions: Version[];
83
- /** current state of the connection end. */
84
- state: State;
85
- /** counterparty chain associated with this connection. */
86
- counterparty:
87
- | Counterparty
88
- | undefined;
89
- /**
90
- * delay period that must pass before a consensus state can be used for
91
- * packet-verification NOTE: delay period logic is only implemented by some
92
- * clients.
93
- */
94
- delayPeriod: number;
95
- }
96
-
97
- /**
98
- * IdentifiedConnection defines a connection with additional connection
99
- * identifier field.
100
- */
101
- export interface IdentifiedConnection {
102
- /** connection identifier. */
103
- id: string;
104
- /** client associated with this connection. */
105
- clientId: string;
106
- /**
107
- * IBC version which can be utilised to determine encodings or protocols for
108
- * channels or packets utilising this connection
109
- */
110
- versions: Version[];
111
- /** current state of the connection end. */
112
- state: State;
113
- /** counterparty chain associated with this connection. */
114
- counterparty:
115
- | Counterparty
116
- | undefined;
117
- /** delay period associated with this connection. */
118
- delayPeriod: number;
119
- }
120
-
121
- /** Counterparty defines the counterparty chain associated with a connection end. */
122
- export interface Counterparty {
123
- /**
124
- * identifies the client on the counterparty chain associated with a given
125
- * connection.
126
- */
127
- clientId: string;
128
- /**
129
- * identifies the connection end on the counterparty chain associated with a
130
- * given connection.
131
- */
132
- connectionId: string;
133
- /** commitment merkle prefix of the counterparty chain. */
134
- prefix: MerklePrefix | undefined;
135
- }
136
-
137
- /** ClientPaths define all the connection paths for a client state. */
138
- export interface ClientPaths {
139
- /** list of connection paths */
140
- paths: string[];
141
- }
142
-
143
- /** ConnectionPaths define all the connection paths for a given client state. */
144
- export interface ConnectionPaths {
145
- /** client state unique identifier */
146
- clientId: string;
147
- /** list of connection paths */
148
- paths: string[];
149
- }
150
-
151
- /**
152
- * Version defines the versioning scheme used to negotiate the IBC verison in
153
- * the connection handshake.
154
- */
155
- export interface Version {
156
- /** unique version identifier */
157
- identifier: string;
158
- /** list of features compatible with the specified identifier */
159
- features: string[];
160
- }
161
-
162
- /** Params defines the set of Connection parameters. */
163
- export interface Params {
164
- /**
165
- * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
166
- * largest amount of time that the chain might reasonably take to produce the next block under normal operating
167
- * conditions. A safe choice is 3-5x the expected time per block.
168
- */
169
- maxExpectedTimePerBlock: number;
170
- }
171
-
172
- function createBaseConnectionEnd(): ConnectionEnd {
173
- return { clientId: "", versions: [], state: 0, counterparty: undefined, delayPeriod: 0 };
174
- }
175
-
176
- export const ConnectionEnd: MessageFns<ConnectionEnd> = {
177
- encode(message: ConnectionEnd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
178
- if (message.clientId !== "") {
179
- writer.uint32(10).string(message.clientId);
180
- }
181
- for (const v of message.versions) {
182
- Version.encode(v!, writer.uint32(18).fork()).join();
183
- }
184
- if (message.state !== 0) {
185
- writer.uint32(24).int32(message.state);
186
- }
187
- if (message.counterparty !== undefined) {
188
- Counterparty.encode(message.counterparty, writer.uint32(34).fork()).join();
189
- }
190
- if (message.delayPeriod !== 0) {
191
- writer.uint32(40).uint64(message.delayPeriod);
192
- }
193
- return writer;
194
- },
195
-
196
- decode(input: BinaryReader | Uint8Array, length?: number): ConnectionEnd {
197
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
198
- let end = length === undefined ? reader.len : reader.pos + length;
199
- const message = createBaseConnectionEnd();
200
- while (reader.pos < end) {
201
- const tag = reader.uint32();
202
- switch (tag >>> 3) {
203
- case 1: {
204
- if (tag !== 10) {
205
- break;
206
- }
207
-
208
- message.clientId = reader.string();
209
- continue;
210
- }
211
- case 2: {
212
- if (tag !== 18) {
213
- break;
214
- }
215
-
216
- message.versions.push(Version.decode(reader, reader.uint32()));
217
- continue;
218
- }
219
- case 3: {
220
- if (tag !== 24) {
221
- break;
222
- }
223
-
224
- message.state = reader.int32() as any;
225
- continue;
226
- }
227
- case 4: {
228
- if (tag !== 34) {
229
- break;
230
- }
231
-
232
- message.counterparty = Counterparty.decode(reader, reader.uint32());
233
- continue;
234
- }
235
- case 5: {
236
- if (tag !== 40) {
237
- break;
238
- }
239
-
240
- message.delayPeriod = longToNumber(reader.uint64());
241
- continue;
242
- }
243
- }
244
- if ((tag & 7) === 4 || tag === 0) {
245
- break;
246
- }
247
- reader.skip(tag & 7);
248
- }
249
- return message;
250
- },
251
-
252
- fromJSON(object: any): ConnectionEnd {
253
- return {
254
- clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
255
- versions: globalThis.Array.isArray(object?.versions) ? object.versions.map((e: any) => Version.fromJSON(e)) : [],
256
- state: isSet(object.state) ? stateFromJSON(object.state) : 0,
257
- counterparty: isSet(object.counterparty) ? Counterparty.fromJSON(object.counterparty) : undefined,
258
- delayPeriod: isSet(object.delayPeriod) ? globalThis.Number(object.delayPeriod) : 0,
259
- };
260
- },
261
-
262
- toJSON(message: ConnectionEnd): unknown {
263
- const obj: any = {};
264
- if (message.clientId !== "") {
265
- obj.clientId = message.clientId;
266
- }
267
- if (message.versions?.length) {
268
- obj.versions = message.versions.map((e) => Version.toJSON(e));
269
- }
270
- if (message.state !== 0) {
271
- obj.state = stateToJSON(message.state);
272
- }
273
- if (message.counterparty !== undefined) {
274
- obj.counterparty = Counterparty.toJSON(message.counterparty);
275
- }
276
- if (message.delayPeriod !== 0) {
277
- obj.delayPeriod = Math.round(message.delayPeriod);
278
- }
279
- return obj;
280
- },
281
-
282
- create<I extends Exact<DeepPartial<ConnectionEnd>, I>>(base?: I): ConnectionEnd {
283
- return ConnectionEnd.fromPartial(base ?? ({} as any));
284
- },
285
- fromPartial<I extends Exact<DeepPartial<ConnectionEnd>, I>>(object: I): ConnectionEnd {
286
- const message = createBaseConnectionEnd();
287
- message.clientId = object.clientId ?? "";
288
- message.versions = object.versions?.map((e) => Version.fromPartial(e)) || [];
289
- message.state = object.state ?? 0;
290
- message.counterparty = (object.counterparty !== undefined && object.counterparty !== null)
291
- ? Counterparty.fromPartial(object.counterparty)
292
- : undefined;
293
- message.delayPeriod = object.delayPeriod ?? 0;
294
- return message;
295
- },
296
- };
297
-
298
- function createBaseIdentifiedConnection(): IdentifiedConnection {
299
- return { id: "", clientId: "", versions: [], state: 0, counterparty: undefined, delayPeriod: 0 };
300
- }
301
-
302
- export const IdentifiedConnection: MessageFns<IdentifiedConnection> = {
303
- encode(message: IdentifiedConnection, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
304
- if (message.id !== "") {
305
- writer.uint32(10).string(message.id);
306
- }
307
- if (message.clientId !== "") {
308
- writer.uint32(18).string(message.clientId);
309
- }
310
- for (const v of message.versions) {
311
- Version.encode(v!, writer.uint32(26).fork()).join();
312
- }
313
- if (message.state !== 0) {
314
- writer.uint32(32).int32(message.state);
315
- }
316
- if (message.counterparty !== undefined) {
317
- Counterparty.encode(message.counterparty, writer.uint32(42).fork()).join();
318
- }
319
- if (message.delayPeriod !== 0) {
320
- writer.uint32(48).uint64(message.delayPeriod);
321
- }
322
- return writer;
323
- },
324
-
325
- decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedConnection {
326
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
327
- let end = length === undefined ? reader.len : reader.pos + length;
328
- const message = createBaseIdentifiedConnection();
329
- while (reader.pos < end) {
330
- const tag = reader.uint32();
331
- switch (tag >>> 3) {
332
- case 1: {
333
- if (tag !== 10) {
334
- break;
335
- }
336
-
337
- message.id = reader.string();
338
- continue;
339
- }
340
- case 2: {
341
- if (tag !== 18) {
342
- break;
343
- }
344
-
345
- message.clientId = reader.string();
346
- continue;
347
- }
348
- case 3: {
349
- if (tag !== 26) {
350
- break;
351
- }
352
-
353
- message.versions.push(Version.decode(reader, reader.uint32()));
354
- continue;
355
- }
356
- case 4: {
357
- if (tag !== 32) {
358
- break;
359
- }
360
-
361
- message.state = reader.int32() as any;
362
- continue;
363
- }
364
- case 5: {
365
- if (tag !== 42) {
366
- break;
367
- }
368
-
369
- message.counterparty = Counterparty.decode(reader, reader.uint32());
370
- continue;
371
- }
372
- case 6: {
373
- if (tag !== 48) {
374
- break;
375
- }
376
-
377
- message.delayPeriod = longToNumber(reader.uint64());
378
- continue;
379
- }
380
- }
381
- if ((tag & 7) === 4 || tag === 0) {
382
- break;
383
- }
384
- reader.skip(tag & 7);
385
- }
386
- return message;
387
- },
388
-
389
- fromJSON(object: any): IdentifiedConnection {
390
- return {
391
- id: isSet(object.id) ? globalThis.String(object.id) : "",
392
- clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
393
- versions: globalThis.Array.isArray(object?.versions) ? object.versions.map((e: any) => Version.fromJSON(e)) : [],
394
- state: isSet(object.state) ? stateFromJSON(object.state) : 0,
395
- counterparty: isSet(object.counterparty) ? Counterparty.fromJSON(object.counterparty) : undefined,
396
- delayPeriod: isSet(object.delayPeriod) ? globalThis.Number(object.delayPeriod) : 0,
397
- };
398
- },
399
-
400
- toJSON(message: IdentifiedConnection): unknown {
401
- const obj: any = {};
402
- if (message.id !== "") {
403
- obj.id = message.id;
404
- }
405
- if (message.clientId !== "") {
406
- obj.clientId = message.clientId;
407
- }
408
- if (message.versions?.length) {
409
- obj.versions = message.versions.map((e) => Version.toJSON(e));
410
- }
411
- if (message.state !== 0) {
412
- obj.state = stateToJSON(message.state);
413
- }
414
- if (message.counterparty !== undefined) {
415
- obj.counterparty = Counterparty.toJSON(message.counterparty);
416
- }
417
- if (message.delayPeriod !== 0) {
418
- obj.delayPeriod = Math.round(message.delayPeriod);
419
- }
420
- return obj;
421
- },
422
-
423
- create<I extends Exact<DeepPartial<IdentifiedConnection>, I>>(base?: I): IdentifiedConnection {
424
- return IdentifiedConnection.fromPartial(base ?? ({} as any));
425
- },
426
- fromPartial<I extends Exact<DeepPartial<IdentifiedConnection>, I>>(object: I): IdentifiedConnection {
427
- const message = createBaseIdentifiedConnection();
428
- message.id = object.id ?? "";
429
- message.clientId = object.clientId ?? "";
430
- message.versions = object.versions?.map((e) => Version.fromPartial(e)) || [];
431
- message.state = object.state ?? 0;
432
- message.counterparty = (object.counterparty !== undefined && object.counterparty !== null)
433
- ? Counterparty.fromPartial(object.counterparty)
434
- : undefined;
435
- message.delayPeriod = object.delayPeriod ?? 0;
436
- return message;
437
- },
438
- };
439
-
440
- function createBaseCounterparty(): Counterparty {
441
- return { clientId: "", connectionId: "", prefix: undefined };
442
- }
443
-
444
- export const Counterparty: MessageFns<Counterparty> = {
445
- encode(message: Counterparty, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
446
- if (message.clientId !== "") {
447
- writer.uint32(10).string(message.clientId);
448
- }
449
- if (message.connectionId !== "") {
450
- writer.uint32(18).string(message.connectionId);
451
- }
452
- if (message.prefix !== undefined) {
453
- MerklePrefix.encode(message.prefix, writer.uint32(26).fork()).join();
454
- }
455
- return writer;
456
- },
457
-
458
- decode(input: BinaryReader | Uint8Array, length?: number): Counterparty {
459
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
460
- let end = length === undefined ? reader.len : reader.pos + length;
461
- const message = createBaseCounterparty();
462
- while (reader.pos < end) {
463
- const tag = reader.uint32();
464
- switch (tag >>> 3) {
465
- case 1: {
466
- if (tag !== 10) {
467
- break;
468
- }
469
-
470
- message.clientId = reader.string();
471
- continue;
472
- }
473
- case 2: {
474
- if (tag !== 18) {
475
- break;
476
- }
477
-
478
- message.connectionId = reader.string();
479
- continue;
480
- }
481
- case 3: {
482
- if (tag !== 26) {
483
- break;
484
- }
485
-
486
- message.prefix = MerklePrefix.decode(reader, reader.uint32());
487
- continue;
488
- }
489
- }
490
- if ((tag & 7) === 4 || tag === 0) {
491
- break;
492
- }
493
- reader.skip(tag & 7);
494
- }
495
- return message;
496
- },
497
-
498
- fromJSON(object: any): Counterparty {
499
- return {
500
- clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
501
- connectionId: isSet(object.connectionId) ? globalThis.String(object.connectionId) : "",
502
- prefix: isSet(object.prefix) ? MerklePrefix.fromJSON(object.prefix) : undefined,
503
- };
504
- },
505
-
506
- toJSON(message: Counterparty): unknown {
507
- const obj: any = {};
508
- if (message.clientId !== "") {
509
- obj.clientId = message.clientId;
510
- }
511
- if (message.connectionId !== "") {
512
- obj.connectionId = message.connectionId;
513
- }
514
- if (message.prefix !== undefined) {
515
- obj.prefix = MerklePrefix.toJSON(message.prefix);
516
- }
517
- return obj;
518
- },
519
-
520
- create<I extends Exact<DeepPartial<Counterparty>, I>>(base?: I): Counterparty {
521
- return Counterparty.fromPartial(base ?? ({} as any));
522
- },
523
- fromPartial<I extends Exact<DeepPartial<Counterparty>, I>>(object: I): Counterparty {
524
- const message = createBaseCounterparty();
525
- message.clientId = object.clientId ?? "";
526
- message.connectionId = object.connectionId ?? "";
527
- message.prefix = (object.prefix !== undefined && object.prefix !== null)
528
- ? MerklePrefix.fromPartial(object.prefix)
529
- : undefined;
530
- return message;
531
- },
532
- };
533
-
534
- function createBaseClientPaths(): ClientPaths {
535
- return { paths: [] };
536
- }
537
-
538
- export const ClientPaths: MessageFns<ClientPaths> = {
539
- encode(message: ClientPaths, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
540
- for (const v of message.paths) {
541
- writer.uint32(10).string(v!);
542
- }
543
- return writer;
544
- },
545
-
546
- decode(input: BinaryReader | Uint8Array, length?: number): ClientPaths {
547
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
548
- let end = length === undefined ? reader.len : reader.pos + length;
549
- const message = createBaseClientPaths();
550
- while (reader.pos < end) {
551
- const tag = reader.uint32();
552
- switch (tag >>> 3) {
553
- case 1: {
554
- if (tag !== 10) {
555
- break;
556
- }
557
-
558
- message.paths.push(reader.string());
559
- continue;
560
- }
561
- }
562
- if ((tag & 7) === 4 || tag === 0) {
563
- break;
564
- }
565
- reader.skip(tag & 7);
566
- }
567
- return message;
568
- },
569
-
570
- fromJSON(object: any): ClientPaths {
571
- return { paths: globalThis.Array.isArray(object?.paths) ? object.paths.map((e: any) => globalThis.String(e)) : [] };
572
- },
573
-
574
- toJSON(message: ClientPaths): unknown {
575
- const obj: any = {};
576
- if (message.paths?.length) {
577
- obj.paths = message.paths;
578
- }
579
- return obj;
580
- },
581
-
582
- create<I extends Exact<DeepPartial<ClientPaths>, I>>(base?: I): ClientPaths {
583
- return ClientPaths.fromPartial(base ?? ({} as any));
584
- },
585
- fromPartial<I extends Exact<DeepPartial<ClientPaths>, I>>(object: I): ClientPaths {
586
- const message = createBaseClientPaths();
587
- message.paths = object.paths?.map((e) => e) || [];
588
- return message;
589
- },
590
- };
591
-
592
- function createBaseConnectionPaths(): ConnectionPaths {
593
- return { clientId: "", paths: [] };
594
- }
595
-
596
- export const ConnectionPaths: MessageFns<ConnectionPaths> = {
597
- encode(message: ConnectionPaths, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
598
- if (message.clientId !== "") {
599
- writer.uint32(10).string(message.clientId);
600
- }
601
- for (const v of message.paths) {
602
- writer.uint32(18).string(v!);
603
- }
604
- return writer;
605
- },
606
-
607
- decode(input: BinaryReader | Uint8Array, length?: number): ConnectionPaths {
608
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
609
- let end = length === undefined ? reader.len : reader.pos + length;
610
- const message = createBaseConnectionPaths();
611
- while (reader.pos < end) {
612
- const tag = reader.uint32();
613
- switch (tag >>> 3) {
614
- case 1: {
615
- if (tag !== 10) {
616
- break;
617
- }
618
-
619
- message.clientId = reader.string();
620
- continue;
621
- }
622
- case 2: {
623
- if (tag !== 18) {
624
- break;
625
- }
626
-
627
- message.paths.push(reader.string());
628
- continue;
629
- }
630
- }
631
- if ((tag & 7) === 4 || tag === 0) {
632
- break;
633
- }
634
- reader.skip(tag & 7);
635
- }
636
- return message;
637
- },
638
-
639
- fromJSON(object: any): ConnectionPaths {
640
- return {
641
- clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
642
- paths: globalThis.Array.isArray(object?.paths) ? object.paths.map((e: any) => globalThis.String(e)) : [],
643
- };
644
- },
645
-
646
- toJSON(message: ConnectionPaths): unknown {
647
- const obj: any = {};
648
- if (message.clientId !== "") {
649
- obj.clientId = message.clientId;
650
- }
651
- if (message.paths?.length) {
652
- obj.paths = message.paths;
653
- }
654
- return obj;
655
- },
656
-
657
- create<I extends Exact<DeepPartial<ConnectionPaths>, I>>(base?: I): ConnectionPaths {
658
- return ConnectionPaths.fromPartial(base ?? ({} as any));
659
- },
660
- fromPartial<I extends Exact<DeepPartial<ConnectionPaths>, I>>(object: I): ConnectionPaths {
661
- const message = createBaseConnectionPaths();
662
- message.clientId = object.clientId ?? "";
663
- message.paths = object.paths?.map((e) => e) || [];
664
- return message;
665
- },
666
- };
667
-
668
- function createBaseVersion(): Version {
669
- return { identifier: "", features: [] };
670
- }
671
-
672
- export const Version: MessageFns<Version> = {
673
- encode(message: Version, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
674
- if (message.identifier !== "") {
675
- writer.uint32(10).string(message.identifier);
676
- }
677
- for (const v of message.features) {
678
- writer.uint32(18).string(v!);
679
- }
680
- return writer;
681
- },
682
-
683
- decode(input: BinaryReader | Uint8Array, length?: number): Version {
684
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
685
- let end = length === undefined ? reader.len : reader.pos + length;
686
- const message = createBaseVersion();
687
- while (reader.pos < end) {
688
- const tag = reader.uint32();
689
- switch (tag >>> 3) {
690
- case 1: {
691
- if (tag !== 10) {
692
- break;
693
- }
694
-
695
- message.identifier = reader.string();
696
- continue;
697
- }
698
- case 2: {
699
- if (tag !== 18) {
700
- break;
701
- }
702
-
703
- message.features.push(reader.string());
704
- continue;
705
- }
706
- }
707
- if ((tag & 7) === 4 || tag === 0) {
708
- break;
709
- }
710
- reader.skip(tag & 7);
711
- }
712
- return message;
713
- },
714
-
715
- fromJSON(object: any): Version {
716
- return {
717
- identifier: isSet(object.identifier) ? globalThis.String(object.identifier) : "",
718
- features: globalThis.Array.isArray(object?.features) ? object.features.map((e: any) => globalThis.String(e)) : [],
719
- };
720
- },
721
-
722
- toJSON(message: Version): unknown {
723
- const obj: any = {};
724
- if (message.identifier !== "") {
725
- obj.identifier = message.identifier;
726
- }
727
- if (message.features?.length) {
728
- obj.features = message.features;
729
- }
730
- return obj;
731
- },
732
-
733
- create<I extends Exact<DeepPartial<Version>, I>>(base?: I): Version {
734
- return Version.fromPartial(base ?? ({} as any));
735
- },
736
- fromPartial<I extends Exact<DeepPartial<Version>, I>>(object: I): Version {
737
- const message = createBaseVersion();
738
- message.identifier = object.identifier ?? "";
739
- message.features = object.features?.map((e) => e) || [];
740
- return message;
741
- },
742
- };
743
-
744
- function createBaseParams(): Params {
745
- return { maxExpectedTimePerBlock: 0 };
746
- }
747
-
748
- export const Params: MessageFns<Params> = {
749
- encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
750
- if (message.maxExpectedTimePerBlock !== 0) {
751
- writer.uint32(8).uint64(message.maxExpectedTimePerBlock);
752
- }
753
- return writer;
754
- },
755
-
756
- decode(input: BinaryReader | Uint8Array, length?: number): Params {
757
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
758
- let end = length === undefined ? reader.len : reader.pos + length;
759
- const message = createBaseParams();
760
- while (reader.pos < end) {
761
- const tag = reader.uint32();
762
- switch (tag >>> 3) {
763
- case 1: {
764
- if (tag !== 8) {
765
- break;
766
- }
767
-
768
- message.maxExpectedTimePerBlock = longToNumber(reader.uint64());
769
- continue;
770
- }
771
- }
772
- if ((tag & 7) === 4 || tag === 0) {
773
- break;
774
- }
775
- reader.skip(tag & 7);
776
- }
777
- return message;
778
- },
779
-
780
- fromJSON(object: any): Params {
781
- return {
782
- maxExpectedTimePerBlock: isSet(object.maxExpectedTimePerBlock)
783
- ? globalThis.Number(object.maxExpectedTimePerBlock)
784
- : 0,
785
- };
786
- },
787
-
788
- toJSON(message: Params): unknown {
789
- const obj: any = {};
790
- if (message.maxExpectedTimePerBlock !== 0) {
791
- obj.maxExpectedTimePerBlock = Math.round(message.maxExpectedTimePerBlock);
792
- }
793
- return obj;
794
- },
795
-
796
- create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
797
- return Params.fromPartial(base ?? ({} as any));
798
- },
799
- fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
800
- const message = createBaseParams();
801
- message.maxExpectedTimePerBlock = object.maxExpectedTimePerBlock ?? 0;
802
- return message;
803
- },
804
- };
805
-
806
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
807
-
808
- export type DeepPartial<T> = T extends Builtin ? T
809
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
810
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
811
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
812
- : Partial<T>;
813
-
814
- type KeysOfUnion<T> = T extends T ? keyof T : never;
815
- export type Exact<P, I extends P> = P extends Builtin ? P
816
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
817
-
818
- function longToNumber(int64: { toString(): string }): number {
819
- const num = globalThis.Number(int64.toString());
820
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
821
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
822
- }
823
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
824
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
825
- }
826
- return num;
827
- }
828
-
829
- function isSet(value: any): boolean {
830
- return value !== null && value !== undefined;
831
- }
832
-
833
- export interface MessageFns<T> {
834
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
835
- decode(input: BinaryReader | Uint8Array, length?: number): T;
836
- fromJSON(object: any): T;
837
- toJSON(message: T): unknown;
838
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
839
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
840
- }