decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11

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 (326) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
  7. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
  8. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
  9. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
  10. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
  11. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
  13. package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
  14. package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
  15. package/client.js +7 -7
  16. package/client.ts +11 -10
  17. package/cosmos.auth.v1beta1/module.js +2 -0
  18. package/cosmos.auth.v1beta1/module.ts +2 -0
  19. package/cosmos.auth.v1beta1/rest.js +18 -3
  20. package/cosmos.auth.v1beta1/rest.ts +113 -3
  21. package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  22. package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
  23. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  24. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  25. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  26. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
  27. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
  28. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  29. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
  30. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  31. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  32. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  33. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  34. package/cosmos.auth.v1beta1/types.js +2 -1
  35. package/cosmos.auth.v1beta1/types.ts +2 -0
  36. package/cosmos.authz.v1beta1/module.js +19 -19
  37. package/cosmos.authz.v1beta1/module.ts +29 -29
  38. package/cosmos.authz.v1beta1/registry.js +2 -2
  39. package/cosmos.authz.v1beta1/registry.ts +2 -2
  40. package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  41. package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
  42. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  43. package/cosmos.bank.v1beta1/module.js +16 -16
  44. package/cosmos.bank.v1beta1/module.ts +24 -24
  45. package/cosmos.bank.v1beta1/registry.js +2 -2
  46. package/cosmos.bank.v1beta1/registry.ts +2 -2
  47. package/cosmos.bank.v1beta1/rest.js +37 -6
  48. package/cosmos.bank.v1beta1/rest.ts +99 -6
  49. package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  50. package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
  52. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
  53. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
  54. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
  55. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
  56. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
  57. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
  58. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
  59. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
  60. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  61. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  62. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  63. package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
  64. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  65. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  66. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  67. package/cosmos.consensus.v1/index.js +5 -0
  68. package/cosmos.consensus.v1/index.ts +6 -0
  69. package/cosmos.consensus.v1/module.js +81 -0
  70. package/cosmos.consensus.v1/module.ts +129 -0
  71. package/cosmos.consensus.v1/registry.js +5 -0
  72. package/cosmos.consensus.v1/registry.ts +9 -0
  73. package/cosmos.consensus.v1/rest.js +100 -0
  74. package/cosmos.consensus.v1/rest.ts +268 -0
  75. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  76. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  77. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  78. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  79. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  80. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  81. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  82. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  83. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  84. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  85. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  86. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  87. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  88. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  89. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  90. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  91. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  92. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  93. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  94. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  95. package/cosmos.consensus.v1/types.js +1 -0
  96. package/cosmos.consensus.v1/types.ts +5 -0
  97. package/cosmos.crisis.v1beta1/module.js +24 -1
  98. package/cosmos.crisis.v1beta1/module.ts +34 -1
  99. package/cosmos.crisis.v1beta1/registry.js +2 -0
  100. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  101. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  102. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  103. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  104. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
  105. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  106. package/cosmos.distribution.v1beta1/module.js +63 -17
  107. package/cosmos.distribution.v1beta1/module.ts +91 -25
  108. package/cosmos.distribution.v1beta1/registry.js +8 -4
  109. package/cosmos.distribution.v1beta1/registry.ts +8 -4
  110. package/cosmos.distribution.v1beta1/rest.js +14 -0
  111. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  112. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  113. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  114. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  115. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  116. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
  117. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  118. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
  119. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  120. package/cosmos.evidence.v1beta1/rest.js +4 -3
  121. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  122. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  123. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  125. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
  126. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  127. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  128. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  129. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  130. package/cosmos.gov.v1/module.js +44 -19
  131. package/cosmos.gov.v1/module.ts +62 -27
  132. package/cosmos.gov.v1/registry.js +4 -2
  133. package/cosmos.gov.v1/registry.ts +4 -2
  134. package/cosmos.gov.v1/rest.ts +155 -41
  135. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  136. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  137. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
  138. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  139. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
  140. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  141. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
  142. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  143. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
  144. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  145. package/cosmos.gov.v1/types.js +2 -1
  146. package/cosmos.gov.v1/types.ts +2 -0
  147. package/cosmos.gov.v1beta1/module.js +24 -24
  148. package/cosmos.gov.v1beta1/module.ts +36 -36
  149. package/cosmos.gov.v1beta1/registry.js +4 -4
  150. package/cosmos.gov.v1beta1/registry.ts +4 -4
  151. package/cosmos.gov.v1beta1/rest.ts +65 -96
  152. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  153. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  154. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  155. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  156. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  157. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  158. package/cosmos.group.v1/module.js +98 -96
  159. package/cosmos.group.v1/module.ts +149 -147
  160. package/cosmos.group.v1/registry.js +16 -16
  161. package/cosmos.group.v1/registry.ts +16 -16
  162. package/cosmos.group.v1/rest.js +3 -3
  163. package/cosmos.group.v1/rest.ts +29 -9
  164. package/cosmos.group.v1/types/amino/amino.js +2 -0
  165. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  166. package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
  167. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
  168. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  169. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
  170. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  171. package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
  172. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  173. package/cosmos.group.v1/types.js +2 -1
  174. package/cosmos.group.v1/types.ts +2 -0
  175. package/cosmos.mint.v1beta1/rest.ts +9 -1
  176. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  177. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  178. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  179. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  180. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  181. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  182. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  183. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.nft.v1beta1/rest.ts +18 -22
  185. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  186. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  187. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  188. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  189. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  190. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  191. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  192. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  193. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  194. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  195. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  196. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
  197. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  198. package/cosmos.staking.v1beta1/module.js +34 -32
  199. package/cosmos.staking.v1beta1/module.ts +50 -48
  200. package/cosmos.staking.v1beta1/registry.js +6 -6
  201. package/cosmos.staking.v1beta1/registry.ts +6 -6
  202. package/cosmos.staking.v1beta1/rest.js +7 -7
  203. package/cosmos.staking.v1beta1/rest.ts +49 -8
  204. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  205. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  206. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  207. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  208. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  209. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  210. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
  211. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  212. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
  213. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  214. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  215. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  216. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  217. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  218. package/cosmos.staking.v1beta1/types.js +2 -1
  219. package/cosmos.staking.v1beta1/types.ts +2 -0
  220. package/cosmos.tx.v1beta1/rest.js +66 -2
  221. package/cosmos.tx.v1beta1/rest.ts +177 -16
  222. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  223. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  224. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
  225. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  226. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
  227. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
  228. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
  229. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  230. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  231. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  232. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  233. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  234. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  235. package/cosmos.vesting.v1beta1/module.js +19 -19
  236. package/cosmos.vesting.v1beta1/module.ts +29 -29
  237. package/cosmos.vesting.v1beta1/registry.js +2 -2
  238. package/cosmos.vesting.v1beta1/registry.ts +2 -2
  239. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  240. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  241. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  242. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  243. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  244. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
  245. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  246. package/ibc.applications.transfer.v1/module.js +5 -27
  247. package/ibc.applications.transfer.v1/module.ts +5 -34
  248. package/ibc.applications.transfer.v1/registry.js +1 -4
  249. package/ibc.applications.transfer.v1/registry.ts +0 -2
  250. package/ibc.applications.transfer.v1/rest.js +15 -1
  251. package/ibc.applications.transfer.v1/rest.ts +30 -1
  252. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  253. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  254. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  255. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  256. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  257. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
  258. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  259. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
  260. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  261. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  262. package/ibc.applications.transfer.v1/types.js +3 -1
  263. package/ibc.applications.transfer.v1/types.ts +4 -0
  264. package/ibc.core.channel.v1/rest.ts +1 -0
  265. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  266. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  267. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  268. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
  269. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  270. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  271. package/ibc.core.client.v1/rest.ts +5 -1
  272. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  273. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  274. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  275. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  276. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
  277. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  278. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  279. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  280. package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
  281. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  282. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  283. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  284. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  285. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  286. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
  287. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  288. package/index.js +3 -1
  289. package/index.ts +3 -1
  290. package/package.json +1 -4
  291. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
  292. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
  293. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
  294. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
  295. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
  296. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
  297. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
  298. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
  299. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
  300. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
  301. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
  302. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
  303. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
  304. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
  305. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
  306. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  307. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
  308. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
  309. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
  310. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
  311. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
  315. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
  316. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
  317. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
  318. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
  319. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
  320. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
  321. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
  322. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
  323. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
  324. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
  325. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
  326. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
@@ -0,0 +1,172 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Params } from "./mint";
4
+
5
+ export const protobufPackage = "cosmos.mint.v1beta1";
6
+
7
+ /**
8
+ * MsgUpdateParams is the Msg/UpdateParams request type.
9
+ *
10
+ * Since: cosmos-sdk 0.47
11
+ */
12
+ export interface MsgUpdateParams {
13
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
14
+ authority: string;
15
+ /**
16
+ * params defines the x/mint parameters to update.
17
+ *
18
+ * NOTE: All parameters must be supplied.
19
+ */
20
+ params: Params | undefined;
21
+ }
22
+
23
+ /**
24
+ * MsgUpdateParamsResponse defines the response structure for executing a
25
+ * MsgUpdateParams message.
26
+ *
27
+ * Since: cosmos-sdk 0.47
28
+ */
29
+ export interface MsgUpdateParamsResponse {
30
+ }
31
+
32
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
33
+ return { authority: "", params: undefined };
34
+ }
35
+
36
+ export const MsgUpdateParams = {
37
+ encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38
+ if (message.authority !== "") {
39
+ writer.uint32(10).string(message.authority);
40
+ }
41
+ if (message.params !== undefined) {
42
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
43
+ }
44
+ return writer;
45
+ },
46
+
47
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
48
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
49
+ let end = length === undefined ? reader.len : reader.pos + length;
50
+ const message = createBaseMsgUpdateParams();
51
+ while (reader.pos < end) {
52
+ const tag = reader.uint32();
53
+ switch (tag >>> 3) {
54
+ case 1:
55
+ message.authority = reader.string();
56
+ break;
57
+ case 2:
58
+ message.params = Params.decode(reader, reader.uint32());
59
+ break;
60
+ default:
61
+ reader.skipType(tag & 7);
62
+ break;
63
+ }
64
+ }
65
+ return message;
66
+ },
67
+
68
+ fromJSON(object: any): MsgUpdateParams {
69
+ return {
70
+ authority: isSet(object.authority) ? String(object.authority) : "",
71
+ params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
72
+ };
73
+ },
74
+
75
+ toJSON(message: MsgUpdateParams): unknown {
76
+ const obj: any = {};
77
+ message.authority !== undefined && (obj.authority = message.authority);
78
+ message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
79
+ return obj;
80
+ },
81
+
82
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
83
+ const message = createBaseMsgUpdateParams();
84
+ message.authority = object.authority ?? "";
85
+ message.params = (object.params !== undefined && object.params !== null)
86
+ ? Params.fromPartial(object.params)
87
+ : undefined;
88
+ return message;
89
+ },
90
+ };
91
+
92
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
93
+ return {};
94
+ }
95
+
96
+ export const MsgUpdateParamsResponse = {
97
+ encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
98
+ return writer;
99
+ },
100
+
101
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
102
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
103
+ let end = length === undefined ? reader.len : reader.pos + length;
104
+ const message = createBaseMsgUpdateParamsResponse();
105
+ while (reader.pos < end) {
106
+ const tag = reader.uint32();
107
+ switch (tag >>> 3) {
108
+ default:
109
+ reader.skipType(tag & 7);
110
+ break;
111
+ }
112
+ }
113
+ return message;
114
+ },
115
+
116
+ fromJSON(_: any): MsgUpdateParamsResponse {
117
+ return {};
118
+ },
119
+
120
+ toJSON(_: MsgUpdateParamsResponse): unknown {
121
+ const obj: any = {};
122
+ return obj;
123
+ },
124
+
125
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
126
+ const message = createBaseMsgUpdateParamsResponse();
127
+ return message;
128
+ },
129
+ };
130
+
131
+ /** Msg defines the x/mint Msg service. */
132
+ export interface Msg {
133
+ /**
134
+ * UpdateParams defines a governance operation for updating the x/mint module
135
+ * parameters. The authority is defaults to the x/gov module account.
136
+ *
137
+ * Since: cosmos-sdk 0.47
138
+ */
139
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
140
+ }
141
+
142
+ export class MsgClientImpl implements Msg {
143
+ private readonly rpc: Rpc;
144
+ constructor(rpc: Rpc) {
145
+ this.rpc = rpc;
146
+ this.UpdateParams = this.UpdateParams.bind(this);
147
+ }
148
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
149
+ const data = MsgUpdateParams.encode(request).finish();
150
+ const promise = this.rpc.request("cosmos.mint.v1beta1.Msg", "UpdateParams", data);
151
+ return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
152
+ }
153
+ }
154
+
155
+ interface Rpc {
156
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
157
+ }
158
+
159
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
160
+
161
+ export type DeepPartial<T> = T extends Builtin ? T
162
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
163
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
164
+ : Partial<T>;
165
+
166
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
167
+ export type Exact<P, I extends P> = P extends Builtin ? P
168
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
169
+
170
+ function isSet(value: any): boolean {
171
+ return value !== null && value !== undefined;
172
+ }
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "cosmos.msg.v1";
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "cosmos.msg.v1";
@@ -370,56 +370,52 @@ export interface V1Beta1PageResponse {
370
370
  }
371
371
 
372
372
  export interface V1Beta1QueryBalanceResponse {
373
- /** @format uint64 */
373
+ /**
374
+ * amount is the number of all NFTs of a given class owned by the owner
375
+ * @format uint64
376
+ */
374
377
  amount?: string;
375
378
  }
376
379
 
377
380
  export interface V1Beta1QueryClassResponse {
378
- /** Class defines the class of the nft type. */
381
+ /** class defines the class of the nft type. */
379
382
  class?: V1Beta1Class;
380
383
  }
381
384
 
382
385
  export interface V1Beta1QueryClassesResponse {
386
+ /** class defines the class of the nft type. */
383
387
  classes?: V1Beta1Class[];
384
388
 
385
- /**
386
- * PageResponse is to be embedded in gRPC response messages where the
387
- * corresponding request message has used PageRequest.
388
- *
389
- * message SomeResponse {
390
- * repeated Bar results = 1;
391
- * PageResponse page = 2;
392
- * }
393
- */
389
+ /** pagination defines the pagination in the response. */
394
390
  pagination?: V1Beta1PageResponse;
395
391
  }
396
392
 
397
393
  export interface V1Beta1QueryNFTResponse {
398
- /** NFT defines the NFT. */
394
+ /**
395
+ * owner is the owner address of the nft
396
+ * NFT defines the NFT.
397
+ */
399
398
  nft?: V1Beta1NFT;
400
399
  }
401
400
 
402
401
  export interface V1Beta1QueryNFTsResponse {
402
+ /** NFT defines the NFT */
403
403
  nfts?: V1Beta1NFT[];
404
404
 
405
- /**
406
- * PageResponse is to be embedded in gRPC response messages where the
407
- * corresponding request message has used PageRequest.
408
- *
409
- * message SomeResponse {
410
- * repeated Bar results = 1;
411
- * PageResponse page = 2;
412
- * }
413
- */
405
+ /** pagination defines the pagination in the response. */
414
406
  pagination?: V1Beta1PageResponse;
415
407
  }
416
408
 
417
409
  export interface V1Beta1QueryOwnerResponse {
410
+ /** owner is the owner address of the nft */
418
411
  owner?: string;
419
412
  }
420
413
 
421
414
  export interface V1Beta1QuerySupplyResponse {
422
- /** @format uint64 */
415
+ /**
416
+ * amount is the number of all NFTs from the given class
417
+ * @format uint64
418
+ */
423
419
  amount?: string;
424
420
  }
425
421
 
@@ -5,23 +5,33 @@ export const protobufPackage = "cosmos.nft.v1beta1";
5
5
 
6
6
  /** EventSend is emitted on Msg/Send */
7
7
  export interface EventSend {
8
+ /** class_id associated with the nft */
8
9
  classId: string;
10
+ /** id is a unique identifier of the nft */
9
11
  id: string;
12
+ /** sender is the address of the owner of nft */
10
13
  sender: string;
14
+ /** receiver is the receiver address of nft */
11
15
  receiver: string;
12
16
  }
13
17
 
14
18
  /** EventMint is emitted on Mint */
15
19
  export interface EventMint {
20
+ /** class_id associated with the nft */
16
21
  classId: string;
22
+ /** id is a unique identifier of the nft */
17
23
  id: string;
24
+ /** owner is the owner address of the nft */
18
25
  owner: string;
19
26
  }
20
27
 
21
28
  /** EventBurn is emitted on Burn */
22
29
  export interface EventBurn {
30
+ /** class_id associated with the nft */
23
31
  classId: string;
32
+ /** id is a unique identifier of the nft */
24
33
  id: string;
34
+ /** owner is the owner address of the nft */
25
35
  owner: string;
26
36
  }
27
37
 
@@ -8,6 +8,7 @@ export const protobufPackage = "cosmos.nft.v1beta1";
8
8
  export interface GenesisState {
9
9
  /** class defines the class of the nft type. */
10
10
  classes: Class[];
11
+ /** entry defines all nft owned by a person. */
11
12
  entries: Entry[];
12
13
  }
13
14
 
@@ -8,67 +8,85 @@ export const protobufPackage = "cosmos.nft.v1beta1";
8
8
 
9
9
  /** QueryBalanceRequest is the request type for the Query/Balance RPC method */
10
10
  export interface QueryBalanceRequest {
11
+ /** class_id associated with the nft */
11
12
  classId: string;
13
+ /** owner is the owner address of the nft */
12
14
  owner: string;
13
15
  }
14
16
 
15
17
  /** QueryBalanceResponse is the response type for the Query/Balance RPC method */
16
18
  export interface QueryBalanceResponse {
19
+ /** amount is the number of all NFTs of a given class owned by the owner */
17
20
  amount: number;
18
21
  }
19
22
 
20
23
  /** QueryOwnerRequest is the request type for the Query/Owner RPC method */
21
24
  export interface QueryOwnerRequest {
25
+ /** class_id associated with the nft */
22
26
  classId: string;
27
+ /** id is a unique identifier of the NFT */
23
28
  id: string;
24
29
  }
25
30
 
26
31
  /** QueryOwnerResponse is the response type for the Query/Owner RPC method */
27
32
  export interface QueryOwnerResponse {
33
+ /** owner is the owner address of the nft */
28
34
  owner: string;
29
35
  }
30
36
 
31
37
  /** QuerySupplyRequest is the request type for the Query/Supply RPC method */
32
38
  export interface QuerySupplyRequest {
39
+ /** class_id associated with the nft */
33
40
  classId: string;
34
41
  }
35
42
 
36
43
  /** QuerySupplyResponse is the response type for the Query/Supply RPC method */
37
44
  export interface QuerySupplyResponse {
45
+ /** amount is the number of all NFTs from the given class */
38
46
  amount: number;
39
47
  }
40
48
 
41
49
  /** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
42
50
  export interface QueryNFTsRequest {
51
+ /** class_id associated with the nft */
43
52
  classId: string;
53
+ /** owner is the owner address of the nft */
44
54
  owner: string;
55
+ /** pagination defines an optional pagination for the request. */
45
56
  pagination: PageRequest | undefined;
46
57
  }
47
58
 
48
59
  /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
49
60
  export interface QueryNFTsResponse {
61
+ /** NFT defines the NFT */
50
62
  nfts: NFT[];
63
+ /** pagination defines the pagination in the response. */
51
64
  pagination: PageResponse | undefined;
52
65
  }
53
66
 
54
67
  /** QueryNFTRequest is the request type for the Query/NFT RPC method */
55
68
  export interface QueryNFTRequest {
69
+ /** class_id associated with the nft */
56
70
  classId: string;
71
+ /** id is a unique identifier of the NFT */
57
72
  id: string;
58
73
  }
59
74
 
60
75
  /** QueryNFTResponse is the response type for the Query/NFT RPC method */
61
76
  export interface QueryNFTResponse {
77
+ /** owner is the owner address of the nft */
62
78
  nft: NFT | undefined;
63
79
  }
64
80
 
65
81
  /** QueryClassRequest is the request type for the Query/Class RPC method */
66
82
  export interface QueryClassRequest {
83
+ /** class_id associated with the nft */
67
84
  classId: string;
68
85
  }
69
86
 
70
87
  /** QueryClassResponse is the response type for the Query/Class RPC method */
71
88
  export interface QueryClassResponse {
89
+ /** class defines the class of the nft type. */
72
90
  class: Class | undefined;
73
91
  }
74
92
 
@@ -80,7 +98,9 @@ export interface QueryClassesRequest {
80
98
 
81
99
  /** QueryClassesResponse is the response type for the Query/Classes RPC method */
82
100
  export interface QueryClassesResponse {
101
+ /** class defines the class of the nft type. */
83
102
  classes: Class[];
103
+ /** pagination defines the pagination in the response. */
84
104
  pagination: PageResponse | undefined;
85
105
  }
86
106
 
@@ -0,0 +1,171 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ export const protobufPackage = "cosmos_proto";
4
+ export var ScalarType;
5
+ (function (ScalarType) {
6
+ ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED";
7
+ ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING";
8
+ ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES";
9
+ ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
10
+ })(ScalarType || (ScalarType = {}));
11
+ export function scalarTypeFromJSON(object) {
12
+ switch (object) {
13
+ case 0:
14
+ case "SCALAR_TYPE_UNSPECIFIED":
15
+ return ScalarType.SCALAR_TYPE_UNSPECIFIED;
16
+ case 1:
17
+ case "SCALAR_TYPE_STRING":
18
+ return ScalarType.SCALAR_TYPE_STRING;
19
+ case 2:
20
+ case "SCALAR_TYPE_BYTES":
21
+ return ScalarType.SCALAR_TYPE_BYTES;
22
+ case -1:
23
+ case "UNRECOGNIZED":
24
+ default:
25
+ return ScalarType.UNRECOGNIZED;
26
+ }
27
+ }
28
+ export function scalarTypeToJSON(object) {
29
+ switch (object) {
30
+ case ScalarType.SCALAR_TYPE_UNSPECIFIED:
31
+ return "SCALAR_TYPE_UNSPECIFIED";
32
+ case ScalarType.SCALAR_TYPE_STRING:
33
+ return "SCALAR_TYPE_STRING";
34
+ case ScalarType.SCALAR_TYPE_BYTES:
35
+ return "SCALAR_TYPE_BYTES";
36
+ case ScalarType.UNRECOGNIZED:
37
+ default:
38
+ return "UNRECOGNIZED";
39
+ }
40
+ }
41
+ function createBaseInterfaceDescriptor() {
42
+ return { name: "", description: "" };
43
+ }
44
+ export const InterfaceDescriptor = {
45
+ encode(message, writer = _m0.Writer.create()) {
46
+ if (message.name !== "") {
47
+ writer.uint32(10).string(message.name);
48
+ }
49
+ if (message.description !== "") {
50
+ writer.uint32(18).string(message.description);
51
+ }
52
+ return writer;
53
+ },
54
+ decode(input, length) {
55
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
56
+ let end = length === undefined ? reader.len : reader.pos + length;
57
+ const message = createBaseInterfaceDescriptor();
58
+ while (reader.pos < end) {
59
+ const tag = reader.uint32();
60
+ switch (tag >>> 3) {
61
+ case 1:
62
+ message.name = reader.string();
63
+ break;
64
+ case 2:
65
+ message.description = reader.string();
66
+ break;
67
+ default:
68
+ reader.skipType(tag & 7);
69
+ break;
70
+ }
71
+ }
72
+ return message;
73
+ },
74
+ fromJSON(object) {
75
+ return {
76
+ name: isSet(object.name) ? String(object.name) : "",
77
+ description: isSet(object.description) ? String(object.description) : "",
78
+ };
79
+ },
80
+ toJSON(message) {
81
+ const obj = {};
82
+ message.name !== undefined && (obj.name = message.name);
83
+ message.description !== undefined && (obj.description = message.description);
84
+ return obj;
85
+ },
86
+ fromPartial(object) {
87
+ const message = createBaseInterfaceDescriptor();
88
+ message.name = object.name ?? "";
89
+ message.description = object.description ?? "";
90
+ return message;
91
+ },
92
+ };
93
+ function createBaseScalarDescriptor() {
94
+ return { name: "", description: "", fieldType: [] };
95
+ }
96
+ export const ScalarDescriptor = {
97
+ encode(message, writer = _m0.Writer.create()) {
98
+ if (message.name !== "") {
99
+ writer.uint32(10).string(message.name);
100
+ }
101
+ if (message.description !== "") {
102
+ writer.uint32(18).string(message.description);
103
+ }
104
+ writer.uint32(26).fork();
105
+ for (const v of message.fieldType) {
106
+ writer.int32(v);
107
+ }
108
+ writer.ldelim();
109
+ return writer;
110
+ },
111
+ decode(input, length) {
112
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
113
+ let end = length === undefined ? reader.len : reader.pos + length;
114
+ const message = createBaseScalarDescriptor();
115
+ while (reader.pos < end) {
116
+ const tag = reader.uint32();
117
+ switch (tag >>> 3) {
118
+ case 1:
119
+ message.name = reader.string();
120
+ break;
121
+ case 2:
122
+ message.description = reader.string();
123
+ break;
124
+ case 3:
125
+ if ((tag & 7) === 2) {
126
+ const end2 = reader.uint32() + reader.pos;
127
+ while (reader.pos < end2) {
128
+ message.fieldType.push(reader.int32());
129
+ }
130
+ }
131
+ else {
132
+ message.fieldType.push(reader.int32());
133
+ }
134
+ break;
135
+ default:
136
+ reader.skipType(tag & 7);
137
+ break;
138
+ }
139
+ }
140
+ return message;
141
+ },
142
+ fromJSON(object) {
143
+ return {
144
+ name: isSet(object.name) ? String(object.name) : "",
145
+ description: isSet(object.description) ? String(object.description) : "",
146
+ fieldType: Array.isArray(object?.fieldType) ? object.fieldType.map((e) => scalarTypeFromJSON(e)) : [],
147
+ };
148
+ },
149
+ toJSON(message) {
150
+ const obj = {};
151
+ message.name !== undefined && (obj.name = message.name);
152
+ message.description !== undefined && (obj.description = message.description);
153
+ if (message.fieldType) {
154
+ obj.fieldType = message.fieldType.map((e) => scalarTypeToJSON(e));
155
+ }
156
+ else {
157
+ obj.fieldType = [];
158
+ }
159
+ return obj;
160
+ },
161
+ fromPartial(object) {
162
+ const message = createBaseScalarDescriptor();
163
+ message.name = object.name ?? "";
164
+ message.description = object.description ?? "";
165
+ message.fieldType = object.fieldType?.map((e) => e) || [];
166
+ return message;
167
+ },
168
+ };
169
+ function isSet(value) {
170
+ return value !== null && value !== undefined;
171
+ }