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
package/index.ts DELETED
@@ -1,81 +0,0 @@
1
- // Generated by Ignite ignite.com/cli
2
- import { Registry } from '@cosmjs/proto-signing'
3
- import { IgniteClient } from "./client";
4
- import { MissingWalletError } from "./helpers";
5
- import { IgntModule as CardchainCardchain, msgTypes as CardchainCardchainMsgTypes } from './cardchain.cardchain'
6
- import { IgntModule as CardchainFeatureflag, msgTypes as CardchainFeatureflagMsgTypes } from './cardchain.featureflag'
7
- import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1'
8
- import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1'
9
- import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1'
10
- import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1'
11
- import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1'
12
- import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1'
13
- import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1'
14
- import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1'
15
- import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1'
16
- import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1'
17
- import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1'
18
- import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1'
19
- import { IgntModule as CosmosAuthV_1Beta_1, msgTypes as CosmosAuthV_1Beta_1MsgTypes } from './cosmos.auth.v1beta1'
20
- import { IgntModule as CosmosAuthzV_1Beta_1, msgTypes as CosmosAuthzV_1Beta_1MsgTypes } from './cosmos.authz.v1beta1'
21
- import { IgntModule as CosmosBankV_1Beta_1, msgTypes as CosmosBankV_1Beta_1MsgTypes } from './cosmos.bank.v1beta1'
22
- import { IgntModule as CosmosBaseNodeV_1Beta_1, msgTypes as CosmosBaseNodeV_1Beta_1MsgTypes } from './cosmos.base.node.v1beta1'
23
- import { IgntModule as CosmosBaseTendermintV_1Beta_1, msgTypes as CosmosBaseTendermintV_1Beta_1MsgTypes } from './cosmos.base.tendermint.v1beta1'
24
- import { IgntModule as CosmosConsensusV_1, msgTypes as CosmosConsensusV_1MsgTypes } from './cosmos.consensus.v1'
25
- import { IgntModule as CosmosCrisisV_1Beta_1, msgTypes as CosmosCrisisV_1Beta_1MsgTypes } from './cosmos.crisis.v1beta1'
26
- import { IgntModule as CosmosDistributionV_1Beta_1, msgTypes as CosmosDistributionV_1Beta_1MsgTypes } from './cosmos.distribution.v1beta1'
27
- import { IgntModule as CosmosGovV_1, msgTypes as CosmosGovV_1MsgTypes } from './cosmos.gov.v1'
28
- import { IgntModule as CosmosGovV_1Beta_1, msgTypes as CosmosGovV_1Beta_1MsgTypes } from './cosmos.gov.v1beta1'
29
- import { IgntModule as CosmosGroupV_1, msgTypes as CosmosGroupV_1MsgTypes } from './cosmos.group.v1'
30
- import { IgntModule as CosmosMintV_1Beta_1, msgTypes as CosmosMintV_1Beta_1MsgTypes } from './cosmos.mint.v1beta1'
31
- import { IgntModule as CosmosParamsV_1Beta_1, msgTypes as CosmosParamsV_1Beta_1MsgTypes } from './cosmos.params.v1beta1'
32
- import { IgntModule as CosmosSlashingV_1Beta_1, msgTypes as CosmosSlashingV_1Beta_1MsgTypes } from './cosmos.slashing.v1beta1'
33
- import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_1MsgTypes } from './cosmos.staking.v1beta1'
34
- import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1'
35
- import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1'
36
-
37
-
38
- const Client = IgniteClient.plugin([
39
- CardchainCardchain, CardchainFeatureflag, CosmosFeegrantV_1Beta_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosNftV_1Beta_1, CosmosCircuitV_1, CosmosEvidenceV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1
40
- ]);
41
-
42
- const registry = new Registry([
43
- ...CardchainCardchainMsgTypes,
44
- ...CardchainFeatureflagMsgTypes,
45
- ...CosmosFeegrantV_1Beta_1MsgTypes,
46
- ...IbcApplicationsFeeV_1MsgTypes,
47
- ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
48
- ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
49
- ...IbcApplicationsTransferV_1MsgTypes,
50
- ...IbcCoreChannelV_1MsgTypes,
51
- ...IbcCoreClientV_1MsgTypes,
52
- ...IbcCoreConnectionV_1MsgTypes,
53
- ...CosmosNftV_1Beta_1MsgTypes,
54
- ...CosmosCircuitV_1MsgTypes,
55
- ...CosmosEvidenceV_1Beta_1MsgTypes,
56
- ...CosmosUpgradeV_1Beta_1MsgTypes,
57
- ...CosmosAuthV_1Beta_1MsgTypes,
58
- ...CosmosAuthzV_1Beta_1MsgTypes,
59
- ...CosmosBankV_1Beta_1MsgTypes,
60
- ...CosmosBaseNodeV_1Beta_1MsgTypes,
61
- ...CosmosBaseTendermintV_1Beta_1MsgTypes,
62
- ...CosmosConsensusV_1MsgTypes,
63
- ...CosmosCrisisV_1Beta_1MsgTypes,
64
- ...CosmosDistributionV_1Beta_1MsgTypes,
65
- ...CosmosGovV_1MsgTypes,
66
- ...CosmosGovV_1Beta_1MsgTypes,
67
- ...CosmosGroupV_1MsgTypes,
68
- ...CosmosMintV_1Beta_1MsgTypes,
69
- ...CosmosParamsV_1Beta_1MsgTypes,
70
- ...CosmosSlashingV_1Beta_1MsgTypes,
71
- ...CosmosStakingV_1Beta_1MsgTypes,
72
- ...CosmosTxV_1Beta_1MsgTypes,
73
- ...CosmosVestingV_1Beta_1MsgTypes,
74
-
75
- ])
76
-
77
- export {
78
- Client,
79
- registry,
80
- MissingWalletError
81
- }
package/modules.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IgniteClient } from "./client";
2
- import { GeneratedType } from "@cosmjs/proto-signing";
3
-
4
- export type IgntModuleInterface = { [key: string]: any }
5
- export type IgntModule = (instance: IgniteClient) => { module: IgntModuleInterface, registry: [string, GeneratedType][] }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "ES2020",
5
- "moduleResolution": "node",
6
- "outDir": "./lib",
7
- "declaration": true,
8
- "allowSyntheticDefaultImports": true,
9
- "esModuleInterop": false,
10
- "strict": false,
11
- "skipLibCheck": true
12
- }
13
- }
@@ -1,9 +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: amino/amino.proto
6
-
7
- /* eslint-disable */
8
-
9
- export const protobufPackage = "amino";
@@ -1,263 +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: capability/v1/capability.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
-
10
- export const protobufPackage = "capability.v1";
11
-
12
- /**
13
- * Capability defines an implementation of an object capability. The index
14
- * provided to a Capability must be globally unique.
15
- */
16
- export interface Capability {
17
- index: number;
18
- }
19
-
20
- /**
21
- * Owner defines a single capability owner. An owner is defined by the name of
22
- * capability and the module name.
23
- */
24
- export interface Owner {
25
- module: string;
26
- name: string;
27
- }
28
-
29
- /**
30
- * CapabilityOwners defines a set of owners of a single Capability. The set of
31
- * owners must be unique.
32
- */
33
- export interface CapabilityOwners {
34
- owners: Owner[];
35
- }
36
-
37
- function createBaseCapability(): Capability {
38
- return { index: 0 };
39
- }
40
-
41
- export const Capability: MessageFns<Capability> = {
42
- encode(message: Capability, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
43
- if (message.index !== 0) {
44
- writer.uint32(8).uint64(message.index);
45
- }
46
- return writer;
47
- },
48
-
49
- decode(input: BinaryReader | Uint8Array, length?: number): Capability {
50
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51
- let end = length === undefined ? reader.len : reader.pos + length;
52
- const message = createBaseCapability();
53
- while (reader.pos < end) {
54
- const tag = reader.uint32();
55
- switch (tag >>> 3) {
56
- case 1: {
57
- if (tag !== 8) {
58
- break;
59
- }
60
-
61
- message.index = longToNumber(reader.uint64());
62
- continue;
63
- }
64
- }
65
- if ((tag & 7) === 4 || tag === 0) {
66
- break;
67
- }
68
- reader.skip(tag & 7);
69
- }
70
- return message;
71
- },
72
-
73
- fromJSON(object: any): Capability {
74
- return { index: isSet(object.index) ? globalThis.Number(object.index) : 0 };
75
- },
76
-
77
- toJSON(message: Capability): unknown {
78
- const obj: any = {};
79
- if (message.index !== 0) {
80
- obj.index = Math.round(message.index);
81
- }
82
- return obj;
83
- },
84
-
85
- create<I extends Exact<DeepPartial<Capability>, I>>(base?: I): Capability {
86
- return Capability.fromPartial(base ?? ({} as any));
87
- },
88
- fromPartial<I extends Exact<DeepPartial<Capability>, I>>(object: I): Capability {
89
- const message = createBaseCapability();
90
- message.index = object.index ?? 0;
91
- return message;
92
- },
93
- };
94
-
95
- function createBaseOwner(): Owner {
96
- return { module: "", name: "" };
97
- }
98
-
99
- export const Owner: MessageFns<Owner> = {
100
- encode(message: Owner, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
101
- if (message.module !== "") {
102
- writer.uint32(10).string(message.module);
103
- }
104
- if (message.name !== "") {
105
- writer.uint32(18).string(message.name);
106
- }
107
- return writer;
108
- },
109
-
110
- decode(input: BinaryReader | Uint8Array, length?: number): Owner {
111
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
112
- let end = length === undefined ? reader.len : reader.pos + length;
113
- const message = createBaseOwner();
114
- while (reader.pos < end) {
115
- const tag = reader.uint32();
116
- switch (tag >>> 3) {
117
- case 1: {
118
- if (tag !== 10) {
119
- break;
120
- }
121
-
122
- message.module = reader.string();
123
- continue;
124
- }
125
- case 2: {
126
- if (tag !== 18) {
127
- break;
128
- }
129
-
130
- message.name = reader.string();
131
- continue;
132
- }
133
- }
134
- if ((tag & 7) === 4 || tag === 0) {
135
- break;
136
- }
137
- reader.skip(tag & 7);
138
- }
139
- return message;
140
- },
141
-
142
- fromJSON(object: any): Owner {
143
- return {
144
- module: isSet(object.module) ? globalThis.String(object.module) : "",
145
- name: isSet(object.name) ? globalThis.String(object.name) : "",
146
- };
147
- },
148
-
149
- toJSON(message: Owner): unknown {
150
- const obj: any = {};
151
- if (message.module !== "") {
152
- obj.module = message.module;
153
- }
154
- if (message.name !== "") {
155
- obj.name = message.name;
156
- }
157
- return obj;
158
- },
159
-
160
- create<I extends Exact<DeepPartial<Owner>, I>>(base?: I): Owner {
161
- return Owner.fromPartial(base ?? ({} as any));
162
- },
163
- fromPartial<I extends Exact<DeepPartial<Owner>, I>>(object: I): Owner {
164
- const message = createBaseOwner();
165
- message.module = object.module ?? "";
166
- message.name = object.name ?? "";
167
- return message;
168
- },
169
- };
170
-
171
- function createBaseCapabilityOwners(): CapabilityOwners {
172
- return { owners: [] };
173
- }
174
-
175
- export const CapabilityOwners: MessageFns<CapabilityOwners> = {
176
- encode(message: CapabilityOwners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
177
- for (const v of message.owners) {
178
- Owner.encode(v!, writer.uint32(10).fork()).join();
179
- }
180
- return writer;
181
- },
182
-
183
- decode(input: BinaryReader | Uint8Array, length?: number): CapabilityOwners {
184
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
185
- let end = length === undefined ? reader.len : reader.pos + length;
186
- const message = createBaseCapabilityOwners();
187
- while (reader.pos < end) {
188
- const tag = reader.uint32();
189
- switch (tag >>> 3) {
190
- case 1: {
191
- if (tag !== 10) {
192
- break;
193
- }
194
-
195
- message.owners.push(Owner.decode(reader, reader.uint32()));
196
- continue;
197
- }
198
- }
199
- if ((tag & 7) === 4 || tag === 0) {
200
- break;
201
- }
202
- reader.skip(tag & 7);
203
- }
204
- return message;
205
- },
206
-
207
- fromJSON(object: any): CapabilityOwners {
208
- return { owners: globalThis.Array.isArray(object?.owners) ? object.owners.map((e: any) => Owner.fromJSON(e)) : [] };
209
- },
210
-
211
- toJSON(message: CapabilityOwners): unknown {
212
- const obj: any = {};
213
- if (message.owners?.length) {
214
- obj.owners = message.owners.map((e) => Owner.toJSON(e));
215
- }
216
- return obj;
217
- },
218
-
219
- create<I extends Exact<DeepPartial<CapabilityOwners>, I>>(base?: I): CapabilityOwners {
220
- return CapabilityOwners.fromPartial(base ?? ({} as any));
221
- },
222
- fromPartial<I extends Exact<DeepPartial<CapabilityOwners>, I>>(object: I): CapabilityOwners {
223
- const message = createBaseCapabilityOwners();
224
- message.owners = object.owners?.map((e) => Owner.fromPartial(e)) || [];
225
- return message;
226
- },
227
- };
228
-
229
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
230
-
231
- export type DeepPartial<T> = T extends Builtin ? T
232
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
233
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
234
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
235
- : Partial<T>;
236
-
237
- type KeysOfUnion<T> = T extends T ? keyof T : never;
238
- export type Exact<P, I extends P> = P extends Builtin ? P
239
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
240
-
241
- function longToNumber(int64: { toString(): string }): number {
242
- const num = globalThis.Number(int64.toString());
243
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
244
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
245
- }
246
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
247
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
248
- }
249
- return num;
250
- }
251
-
252
- function isSet(value: any): boolean {
253
- return value !== null && value !== undefined;
254
- }
255
-
256
- export interface MessageFns<T> {
257
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
258
- decode(input: BinaryReader | Uint8Array, length?: number): T;
259
- fromJSON(object: any): T;
260
- toJSON(message: T): unknown;
261
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
262
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
263
- }
@@ -1,220 +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: capability/v1/genesis.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
- import { CapabilityOwners } from "./capability";
10
-
11
- export const protobufPackage = "capability.v1";
12
-
13
- /** GenesisOwners defines the capability owners with their corresponding index. */
14
- export interface GenesisOwners {
15
- /** index is the index of the capability owner. */
16
- index: number;
17
- /** index_owners are the owners at the given index. */
18
- indexOwners: CapabilityOwners | undefined;
19
- }
20
-
21
- /** GenesisState defines the capability module's genesis state. */
22
- export interface GenesisState {
23
- /** index is the capability global index. */
24
- index: number;
25
- /**
26
- * owners represents a map from index to owners of the capability index
27
- * index key is string to allow amino marshalling.
28
- */
29
- owners: GenesisOwners[];
30
- }
31
-
32
- function createBaseGenesisOwners(): GenesisOwners {
33
- return { index: 0, indexOwners: undefined };
34
- }
35
-
36
- export const GenesisOwners: MessageFns<GenesisOwners> = {
37
- encode(message: GenesisOwners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
38
- if (message.index !== 0) {
39
- writer.uint32(8).uint64(message.index);
40
- }
41
- if (message.indexOwners !== undefined) {
42
- CapabilityOwners.encode(message.indexOwners, writer.uint32(18).fork()).join();
43
- }
44
- return writer;
45
- },
46
-
47
- decode(input: BinaryReader | Uint8Array, length?: number): GenesisOwners {
48
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49
- let end = length === undefined ? reader.len : reader.pos + length;
50
- const message = createBaseGenesisOwners();
51
- while (reader.pos < end) {
52
- const tag = reader.uint32();
53
- switch (tag >>> 3) {
54
- case 1: {
55
- if (tag !== 8) {
56
- break;
57
- }
58
-
59
- message.index = longToNumber(reader.uint64());
60
- continue;
61
- }
62
- case 2: {
63
- if (tag !== 18) {
64
- break;
65
- }
66
-
67
- message.indexOwners = CapabilityOwners.decode(reader, reader.uint32());
68
- continue;
69
- }
70
- }
71
- if ((tag & 7) === 4 || tag === 0) {
72
- break;
73
- }
74
- reader.skip(tag & 7);
75
- }
76
- return message;
77
- },
78
-
79
- fromJSON(object: any): GenesisOwners {
80
- return {
81
- index: isSet(object.index) ? globalThis.Number(object.index) : 0,
82
- indexOwners: isSet(object.indexOwners) ? CapabilityOwners.fromJSON(object.indexOwners) : undefined,
83
- };
84
- },
85
-
86
- toJSON(message: GenesisOwners): unknown {
87
- const obj: any = {};
88
- if (message.index !== 0) {
89
- obj.index = Math.round(message.index);
90
- }
91
- if (message.indexOwners !== undefined) {
92
- obj.indexOwners = CapabilityOwners.toJSON(message.indexOwners);
93
- }
94
- return obj;
95
- },
96
-
97
- create<I extends Exact<DeepPartial<GenesisOwners>, I>>(base?: I): GenesisOwners {
98
- return GenesisOwners.fromPartial(base ?? ({} as any));
99
- },
100
- fromPartial<I extends Exact<DeepPartial<GenesisOwners>, I>>(object: I): GenesisOwners {
101
- const message = createBaseGenesisOwners();
102
- message.index = object.index ?? 0;
103
- message.indexOwners = (object.indexOwners !== undefined && object.indexOwners !== null)
104
- ? CapabilityOwners.fromPartial(object.indexOwners)
105
- : undefined;
106
- return message;
107
- },
108
- };
109
-
110
- function createBaseGenesisState(): GenesisState {
111
- return { index: 0, owners: [] };
112
- }
113
-
114
- export const GenesisState: MessageFns<GenesisState> = {
115
- encode(message: GenesisState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
116
- if (message.index !== 0) {
117
- writer.uint32(8).uint64(message.index);
118
- }
119
- for (const v of message.owners) {
120
- GenesisOwners.encode(v!, writer.uint32(18).fork()).join();
121
- }
122
- return writer;
123
- },
124
-
125
- decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
126
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
127
- let end = length === undefined ? reader.len : reader.pos + length;
128
- const message = createBaseGenesisState();
129
- while (reader.pos < end) {
130
- const tag = reader.uint32();
131
- switch (tag >>> 3) {
132
- case 1: {
133
- if (tag !== 8) {
134
- break;
135
- }
136
-
137
- message.index = longToNumber(reader.uint64());
138
- continue;
139
- }
140
- case 2: {
141
- if (tag !== 18) {
142
- break;
143
- }
144
-
145
- message.owners.push(GenesisOwners.decode(reader, reader.uint32()));
146
- continue;
147
- }
148
- }
149
- if ((tag & 7) === 4 || tag === 0) {
150
- break;
151
- }
152
- reader.skip(tag & 7);
153
- }
154
- return message;
155
- },
156
-
157
- fromJSON(object: any): GenesisState {
158
- return {
159
- index: isSet(object.index) ? globalThis.Number(object.index) : 0,
160
- owners: globalThis.Array.isArray(object?.owners) ? object.owners.map((e: any) => GenesisOwners.fromJSON(e)) : [],
161
- };
162
- },
163
-
164
- toJSON(message: GenesisState): unknown {
165
- const obj: any = {};
166
- if (message.index !== 0) {
167
- obj.index = Math.round(message.index);
168
- }
169
- if (message.owners?.length) {
170
- obj.owners = message.owners.map((e) => GenesisOwners.toJSON(e));
171
- }
172
- return obj;
173
- },
174
-
175
- create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState {
176
- return GenesisState.fromPartial(base ?? ({} as any));
177
- },
178
- fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
179
- const message = createBaseGenesisState();
180
- message.index = object.index ?? 0;
181
- message.owners = object.owners?.map((e) => GenesisOwners.fromPartial(e)) || [];
182
- return message;
183
- },
184
- };
185
-
186
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
187
-
188
- export type DeepPartial<T> = T extends Builtin ? T
189
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
190
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
191
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
192
- : Partial<T>;
193
-
194
- type KeysOfUnion<T> = T extends T ? keyof T : never;
195
- export type Exact<P, I extends P> = P extends Builtin ? P
196
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
197
-
198
- function longToNumber(int64: { toString(): string }): number {
199
- const num = globalThis.Number(int64.toString());
200
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
201
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
202
- }
203
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
204
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
205
- }
206
- return num;
207
- }
208
-
209
- function isSet(value: any): boolean {
210
- return value !== null && value !== undefined;
211
- }
212
-
213
- export interface MessageFns<T> {
214
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
215
- decode(input: BinaryReader | Uint8Array, length?: number): T;
216
- fromJSON(object: any): T;
217
- toJSON(message: T): unknown;
218
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
219
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
220
- }