decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15

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 (314) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
  7. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
  10. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
  11. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
  12. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
  13. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
  14. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
  15. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
  16. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
  17. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
  18. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
  19. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
  20. package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
  21. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
  22. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
  23. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
  24. package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
  25. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
  27. package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
  28. package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
  29. package/client.js +7 -7
  30. package/client.ts +10 -9
  31. package/cosmos.auth.v1beta1/module.js +2 -0
  32. package/cosmos.auth.v1beta1/module.ts +2 -0
  33. package/cosmos.auth.v1beta1/rest.js +18 -3
  34. package/cosmos.auth.v1beta1/rest.ts +113 -3
  35. package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  36. package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
  37. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  38. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  39. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  40. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
  41. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
  42. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  43. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
  44. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  45. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  46. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  47. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  48. package/cosmos.auth.v1beta1/types.js +2 -1
  49. package/cosmos.auth.v1beta1/types.ts +2 -0
  50. package/cosmos.authz.v1beta1/module.js +19 -19
  51. package/cosmos.authz.v1beta1/module.ts +29 -29
  52. package/cosmos.authz.v1beta1/registry.js +2 -2
  53. package/cosmos.authz.v1beta1/registry.ts +2 -2
  54. package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  55. package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
  56. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  57. package/cosmos.bank.v1beta1/module.js +16 -16
  58. package/cosmos.bank.v1beta1/module.ts +24 -24
  59. package/cosmos.bank.v1beta1/registry.js +2 -2
  60. package/cosmos.bank.v1beta1/registry.ts +2 -2
  61. package/cosmos.bank.v1beta1/rest.js +37 -6
  62. package/cosmos.bank.v1beta1/rest.ts +99 -6
  63. package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  64. package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
  65. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
  66. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
  67. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
  68. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
  69. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
  70. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
  71. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
  72. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
  73. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
  74. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  75. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  76. package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
  77. package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
  78. package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  79. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  80. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  81. package/cosmos.consensus.v1/index.js +5 -0
  82. package/cosmos.consensus.v1/index.ts +6 -0
  83. package/cosmos.consensus.v1/module.js +81 -0
  84. package/cosmos.consensus.v1/module.ts +129 -0
  85. package/cosmos.consensus.v1/registry.js +5 -0
  86. package/cosmos.consensus.v1/registry.ts +9 -0
  87. package/cosmos.consensus.v1/rest.js +100 -0
  88. package/cosmos.consensus.v1/rest.ts +268 -0
  89. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  90. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  91. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  92. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  93. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  94. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  95. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  96. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  97. package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  98. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  99. package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  100. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  101. package/cosmos.consensus.v1/types/google/api/http.js +260 -0
  102. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  103. package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  104. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  105. package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  106. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  107. package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  108. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  109. package/cosmos.consensus.v1/types.js +1 -0
  110. package/cosmos.consensus.v1/types.ts +5 -0
  111. package/cosmos.crisis.v1beta1/module.js +24 -1
  112. package/cosmos.crisis.v1beta1/module.ts +34 -1
  113. package/cosmos.crisis.v1beta1/registry.js +2 -0
  114. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  115. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  116. package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  117. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  118. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
  119. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  120. package/cosmos.distribution.v1beta1/module.js +67 -21
  121. package/cosmos.distribution.v1beta1/module.ts +100 -34
  122. package/cosmos.distribution.v1beta1/registry.js +8 -4
  123. package/cosmos.distribution.v1beta1/registry.ts +8 -4
  124. package/cosmos.distribution.v1beta1/rest.js +14 -0
  125. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  126. package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  127. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  130. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
  131. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  132. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
  133. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  134. package/cosmos.evidence.v1beta1/rest.js +4 -3
  135. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  136. package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  137. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  138. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  139. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
  140. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  141. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  142. package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  143. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  144. package/cosmos.gov.v1/module.js +46 -21
  145. package/cosmos.gov.v1/module.ts +68 -33
  146. package/cosmos.gov.v1/registry.js +6 -4
  147. package/cosmos.gov.v1/registry.ts +6 -4
  148. package/cosmos.gov.v1/rest.ts +155 -41
  149. package/cosmos.gov.v1/types/amino/amino.js +2 -0
  150. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  151. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
  152. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  153. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
  154. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  155. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
  156. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  157. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
  158. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  159. package/cosmos.gov.v1/types.js +2 -1
  160. package/cosmos.gov.v1/types.ts +2 -0
  161. package/cosmos.gov.v1beta1/module.js +24 -24
  162. package/cosmos.gov.v1beta1/module.ts +36 -36
  163. package/cosmos.gov.v1beta1/registry.js +4 -4
  164. package/cosmos.gov.v1beta1/registry.ts +4 -4
  165. package/cosmos.gov.v1beta1/rest.ts +65 -96
  166. package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  167. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  168. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  169. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  170. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  171. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  172. package/cosmos.group.v1/module.js +92 -92
  173. package/cosmos.group.v1/module.ts +138 -138
  174. package/cosmos.group.v1/registry.js +16 -16
  175. package/cosmos.group.v1/registry.ts +16 -16
  176. package/cosmos.group.v1/rest.js +3 -3
  177. package/cosmos.group.v1/rest.ts +29 -9
  178. package/cosmos.group.v1/types/amino/amino.js +2 -0
  179. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  180. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
  181. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
  182. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  183. package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
  184. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  185. package/cosmos.mint.v1beta1/rest.ts +9 -1
  186. package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  187. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  188. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  189. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  190. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  191. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  192. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  193. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  194. package/cosmos.nft.v1beta1/rest.ts +18 -22
  195. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  196. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  197. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  198. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  199. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  200. package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  201. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  202. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  203. package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  204. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  205. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  206. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
  207. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  208. package/cosmos.staking.v1beta1/module.js +41 -39
  209. package/cosmos.staking.v1beta1/module.ts +61 -59
  210. package/cosmos.staking.v1beta1/registry.js +6 -6
  211. package/cosmos.staking.v1beta1/registry.ts +6 -6
  212. package/cosmos.staking.v1beta1/rest.js +7 -7
  213. package/cosmos.staking.v1beta1/rest.ts +49 -8
  214. package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  215. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  216. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  217. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  218. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  219. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  220. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
  221. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  222. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
  223. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  224. package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  225. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  226. package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  227. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  228. package/cosmos.staking.v1beta1/types.js +2 -1
  229. package/cosmos.staking.v1beta1/types.ts +2 -0
  230. package/cosmos.tx.v1beta1/rest.js +66 -2
  231. package/cosmos.tx.v1beta1/rest.ts +177 -16
  232. package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  233. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  234. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
  235. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  236. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
  237. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
  238. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
  239. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  240. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  241. package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  242. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  243. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  244. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  245. package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  246. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  247. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
  248. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  249. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  250. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
  251. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  252. package/ibc.applications.transfer.v1/module.js +5 -27
  253. package/ibc.applications.transfer.v1/module.ts +5 -34
  254. package/ibc.applications.transfer.v1/registry.js +1 -4
  255. package/ibc.applications.transfer.v1/registry.ts +0 -2
  256. package/ibc.applications.transfer.v1/rest.js +15 -1
  257. package/ibc.applications.transfer.v1/rest.ts +30 -1
  258. package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  259. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  260. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  261. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  262. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  263. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
  264. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  265. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
  266. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  267. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  268. package/ibc.applications.transfer.v1/types.js +3 -1
  269. package/ibc.applications.transfer.v1/types.ts +4 -0
  270. package/ibc.core.channel.v1/rest.ts +1 -0
  271. package/ibc.core.channel.v1/types/amino/amino.js +2 -0
  272. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  273. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  274. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
  275. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  276. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  277. package/ibc.core.client.v1/rest.ts +5 -1
  278. package/ibc.core.client.v1/types/amino/amino.js +2 -0
  279. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  280. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  281. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  282. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
  283. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  284. package/ibc.core.connection.v1/types/amino/amino.js +2 -0
  285. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  286. package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
  287. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  288. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  289. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  290. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
  291. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  292. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
  293. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  294. package/index.js +3 -1
  295. package/index.ts +3 -1
  296. package/package.json +5 -6
  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_reporter_proposal.js +0 -0
  304. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
  305. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
  306. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
  307. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
  308. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
  309. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
  310. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
  311. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
  312. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
  313. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
  314. /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
@@ -1,12 +1,11 @@
1
1
  // Generated by Ignite ignite.com/cli
2
- import { SigningStargateClient } from "@cosmjs/stargate";
3
2
  import { Registry } from "@cosmjs/proto-signing";
4
3
  import { msgTypes } from './registry';
5
4
  import { Api } from "./rest";
6
- import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
5
+ import { Allocation as typeAllocation } from "./types";
6
+ import { TransferAuthorization as typeTransferAuthorization } from "./types";
7
7
  import { DenomTrace as typeDenomTrace } from "./types";
8
8
  import { Params as typeParams } from "./types";
9
- export { MsgTransfer };
10
9
  export const registry = new Registry(msgTypes);
11
10
  function getStructure(template) {
12
11
  const structure = { fields: [] };
@@ -21,30 +20,7 @@ const defaultFee = {
21
20
  gas: "200000",
22
21
  };
23
22
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
24
- return {
25
- async sendMsgTransfer({ value, fee, memo }) {
26
- if (!signer) {
27
- throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.');
28
- }
29
- try {
30
- const { address } = (await signer.getAccounts())[0];
31
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
32
- let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) });
33
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
34
- }
35
- catch (e) {
36
- throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: ' + e.message);
37
- }
38
- },
39
- msgTransfer({ value }) {
40
- try {
41
- return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial(value) };
42
- }
43
- catch (e) {
44
- throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message);
45
- }
46
- },
47
- };
23
+ return {};
48
24
  };
49
25
  export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
50
26
  return new Api({ baseURL: addr });
@@ -55,6 +31,8 @@ class SDKModule {
55
31
  this.query = queryClient({ addr: client.env.apiURL });
56
32
  this.updateTX(client);
57
33
  this.structure = {
34
+ Allocation: getStructure(typeAllocation.fromPartial({})),
35
+ TransferAuthorization: getStructure(typeTransferAuthorization.fromPartial({})),
58
36
  DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
59
37
  Params: getStructure(typeParams.fromPartial({})),
60
38
  };
@@ -7,23 +7,14 @@ import { msgTypes } from './registry';
7
7
  import { IgniteClient } from "../client"
8
8
  import { MissingWalletError } from "../helpers"
9
9
  import { Api } from "./rest";
10
- import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
11
10
 
11
+ import { Allocation as typeAllocation} from "./types"
12
+ import { TransferAuthorization as typeTransferAuthorization} from "./types"
12
13
  import { DenomTrace as typeDenomTrace} from "./types"
13
14
  import { Params as typeParams} from "./types"
14
15
 
15
- export { MsgTransfer };
16
+ export { };
16
17
 
17
- type sendMsgTransferParams = {
18
- value: MsgTransfer,
19
- fee?: StdFee,
20
- memo?: string
21
- };
22
-
23
-
24
- type msgTransferParams = {
25
- value: MsgTransfer,
26
- };
27
18
 
28
19
 
29
20
  export const registry = new Registry(msgTypes);
@@ -55,28 +46,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
55
46
 
56
47
  return {
57
48
 
58
- async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise<DeliverTxResponse> {
59
- if (!signer) {
60
- throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.')
61
- }
62
- try {
63
- const { address } = (await signer.getAccounts())[0];
64
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
65
- let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) })
66
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
67
- } catch (e: any) {
68
- throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: '+ e.message)
69
- }
70
- },
71
-
72
-
73
- msgTransfer({ value }: msgTransferParams): EncodeObject {
74
- try {
75
- return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) }
76
- } catch (e: any) {
77
- throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message)
78
- }
79
- },
80
49
 
81
50
  }
82
51
  };
@@ -100,6 +69,8 @@ class SDKModule {
100
69
  this.query = queryClient({ addr: client.env.apiURL });
101
70
  this.updateTX(client);
102
71
  this.structure = {
72
+ Allocation: getStructure(typeAllocation.fromPartial({})),
73
+ TransferAuthorization: getStructure(typeTransferAuthorization.fromPartial({})),
103
74
  DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
104
75
  Params: getStructure(typeParams.fromPartial({})),
105
76
 
@@ -1,5 +1,2 @@
1
- import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
2
- const msgTypes = [
3
- ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer],
4
- ];
1
+ const msgTypes = [];
5
2
  export { msgTypes };
@@ -1,8 +1,6 @@
1
1
  import { GeneratedType } from "@cosmjs/proto-signing";
2
- import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
3
2
 
4
3
  const msgTypes: Array<[string, GeneratedType]> = [
5
- ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer],
6
4
 
7
5
  ];
8
6
 
@@ -76,7 +76,7 @@ export class HttpClient {
76
76
  }
77
77
  }
78
78
  /**
79
- * @title ibc/applications/transfer/v1/genesis.proto
79
+ * @title ibc/applications/transfer/v1/authz.proto
80
80
  * @version version not set
81
81
  */
82
82
  export class Api extends HttpClient {
@@ -139,6 +139,20 @@ export class Api extends HttpClient {
139
139
  format: "json",
140
140
  ...params,
141
141
  });
142
+ /**
143
+ * No description
144
+ *
145
+ * @tags Query
146
+ * @name QueryTotalEscrowForDenom
147
+ * @summary TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom.
148
+ * @request GET:/ibc/apps/transfer/v1/denoms/{denom}/total_escrow
149
+ */
150
+ this.queryTotalEscrowForDenom = (denom, params = {}) => this.request({
151
+ path: `/ibc/apps/transfer/v1/denoms/${denom}/total_escrow`,
152
+ method: "GET",
153
+ format: "json",
154
+ ...params,
155
+ });
142
156
  /**
143
157
  * No description
144
158
  *
@@ -244,6 +244,19 @@ export interface V1QueryParamsResponse {
244
244
  params?: Applicationstransferv1Params;
245
245
  }
246
246
 
247
+ /**
248
+ * QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
249
+ */
250
+ export interface V1QueryTotalEscrowForDenomResponse {
251
+ /**
252
+ * Coin defines a token with a denomination and an amount.
253
+ *
254
+ * NOTE: The amount field is an Int which implements the custom method
255
+ * signatures required by gogoproto.
256
+ */
257
+ amount?: V1Beta1Coin;
258
+ }
259
+
247
260
  /**
248
261
  * Coin defines a token with a denomination and an amount.
249
262
 
@@ -448,7 +461,7 @@ export class HttpClient<SecurityDataType = unknown> {
448
461
  }
449
462
 
450
463
  /**
451
- * @title ibc/applications/transfer/v1/genesis.proto
464
+ * @title ibc/applications/transfer/v1/authz.proto
452
465
  * @version version not set
453
466
  */
454
467
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -526,6 +539,22 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
526
539
  ...params,
527
540
  });
528
541
 
542
+ /**
543
+ * No description
544
+ *
545
+ * @tags Query
546
+ * @name QueryTotalEscrowForDenom
547
+ * @summary TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom.
548
+ * @request GET:/ibc/apps/transfer/v1/denoms/{denom}/total_escrow
549
+ */
550
+ queryTotalEscrowForDenom = (denom: string, params: RequestParams = {}) =>
551
+ this.request<V1QueryTotalEscrowForDenomResponse, RpcStatus>({
552
+ path: `/ibc/apps/transfer/v1/denoms/${denom}/total_escrow`,
553
+ method: "GET",
554
+ format: "json",
555
+ ...params,
556
+ });
557
+
529
558
  /**
530
559
  * No description
531
560
  *
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "amino";
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export const protobufPackage = "amino";
@@ -28,10 +28,7 @@ export interface Plan {
28
28
  time:
29
29
  | Date
30
30
  | undefined;
31
- /**
32
- * The height at which the upgrade must be performed.
33
- * Only used if Time is not set.
34
- */
31
+ /** The height at which the upgrade must be performed. */
35
32
  height: number;
36
33
  /**
37
34
  * Any application specific upgrade info to be included on-chain
@@ -57,8 +54,11 @@ export interface Plan {
57
54
  * @deprecated
58
55
  */
59
56
  export interface SoftwareUpgradeProposal {
57
+ /** title of the proposal */
60
58
  title: string;
59
+ /** description of the proposal */
61
60
  description: string;
61
+ /** plan of the proposal */
62
62
  plan: Plan | undefined;
63
63
  }
64
64
 
@@ -71,7 +71,9 @@ export interface SoftwareUpgradeProposal {
71
71
  * @deprecated
72
72
  */
73
73
  export interface CancelSoftwareUpgradeProposal {
74
+ /** title of the proposal */
74
75
  title: string;
76
+ /** description of the proposal */
75
77
  description: string;
76
78
  }
77
79
 
@@ -0,0 +1,135 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ export const protobufPackage = "ibc.applications.transfer.v1";
5
+ function createBaseAllocation() {
6
+ return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [] };
7
+ }
8
+ export const Allocation = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.sourcePort !== "") {
11
+ writer.uint32(10).string(message.sourcePort);
12
+ }
13
+ if (message.sourceChannel !== "") {
14
+ writer.uint32(18).string(message.sourceChannel);
15
+ }
16
+ for (const v of message.spendLimit) {
17
+ Coin.encode(v, writer.uint32(26).fork()).ldelim();
18
+ }
19
+ for (const v of message.allowList) {
20
+ writer.uint32(34).string(v);
21
+ }
22
+ return writer;
23
+ },
24
+ decode(input, length) {
25
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
26
+ let end = length === undefined ? reader.len : reader.pos + length;
27
+ const message = createBaseAllocation();
28
+ while (reader.pos < end) {
29
+ const tag = reader.uint32();
30
+ switch (tag >>> 3) {
31
+ case 1:
32
+ message.sourcePort = reader.string();
33
+ break;
34
+ case 2:
35
+ message.sourceChannel = reader.string();
36
+ break;
37
+ case 3:
38
+ message.spendLimit.push(Coin.decode(reader, reader.uint32()));
39
+ break;
40
+ case 4:
41
+ message.allowList.push(reader.string());
42
+ break;
43
+ default:
44
+ reader.skipType(tag & 7);
45
+ break;
46
+ }
47
+ }
48
+ return message;
49
+ },
50
+ fromJSON(object) {
51
+ return {
52
+ sourcePort: isSet(object.sourcePort) ? String(object.sourcePort) : "",
53
+ sourceChannel: isSet(object.sourceChannel) ? String(object.sourceChannel) : "",
54
+ spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e) => Coin.fromJSON(e)) : [],
55
+ allowList: Array.isArray(object?.allowList) ? object.allowList.map((e) => String(e)) : [],
56
+ };
57
+ },
58
+ toJSON(message) {
59
+ const obj = {};
60
+ message.sourcePort !== undefined && (obj.sourcePort = message.sourcePort);
61
+ message.sourceChannel !== undefined && (obj.sourceChannel = message.sourceChannel);
62
+ if (message.spendLimit) {
63
+ obj.spendLimit = message.spendLimit.map((e) => e ? Coin.toJSON(e) : undefined);
64
+ }
65
+ else {
66
+ obj.spendLimit = [];
67
+ }
68
+ if (message.allowList) {
69
+ obj.allowList = message.allowList.map((e) => e);
70
+ }
71
+ else {
72
+ obj.allowList = [];
73
+ }
74
+ return obj;
75
+ },
76
+ fromPartial(object) {
77
+ const message = createBaseAllocation();
78
+ message.sourcePort = object.sourcePort ?? "";
79
+ message.sourceChannel = object.sourceChannel ?? "";
80
+ message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
81
+ message.allowList = object.allowList?.map((e) => e) || [];
82
+ return message;
83
+ },
84
+ };
85
+ function createBaseTransferAuthorization() {
86
+ return { allocations: [] };
87
+ }
88
+ export const TransferAuthorization = {
89
+ encode(message, writer = _m0.Writer.create()) {
90
+ for (const v of message.allocations) {
91
+ Allocation.encode(v, writer.uint32(10).fork()).ldelim();
92
+ }
93
+ return writer;
94
+ },
95
+ decode(input, length) {
96
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
97
+ let end = length === undefined ? reader.len : reader.pos + length;
98
+ const message = createBaseTransferAuthorization();
99
+ while (reader.pos < end) {
100
+ const tag = reader.uint32();
101
+ switch (tag >>> 3) {
102
+ case 1:
103
+ message.allocations.push(Allocation.decode(reader, reader.uint32()));
104
+ break;
105
+ default:
106
+ reader.skipType(tag & 7);
107
+ break;
108
+ }
109
+ }
110
+ return message;
111
+ },
112
+ fromJSON(object) {
113
+ return {
114
+ allocations: Array.isArray(object?.allocations) ? object.allocations.map((e) => Allocation.fromJSON(e)) : [],
115
+ };
116
+ },
117
+ toJSON(message) {
118
+ const obj = {};
119
+ if (message.allocations) {
120
+ obj.allocations = message.allocations.map((e) => e ? Allocation.toJSON(e) : undefined);
121
+ }
122
+ else {
123
+ obj.allocations = [];
124
+ }
125
+ return obj;
126
+ },
127
+ fromPartial(object) {
128
+ const message = createBaseTransferAuthorization();
129
+ message.allocations = object.allocations?.map((e) => Allocation.fromPartial(e)) || [];
130
+ return message;
131
+ },
132
+ };
133
+ function isSet(value) {
134
+ return value !== null && value !== undefined;
135
+ }
@@ -0,0 +1,178 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+
5
+ export const protobufPackage = "ibc.applications.transfer.v1";
6
+
7
+ /** Allocation defines the spend limit for a particular port and channel */
8
+ export interface Allocation {
9
+ /** the port on which the packet will be sent */
10
+ sourcePort: string;
11
+ /** the channel by which the packet will be sent */
12
+ sourceChannel: string;
13
+ /** spend limitation on the channel */
14
+ spendLimit: Coin[];
15
+ /** allow list of receivers, an empty allow list permits any receiver address */
16
+ allowList: string[];
17
+ }
18
+
19
+ /**
20
+ * TransferAuthorization allows the grantee to spend up to spend_limit coins from
21
+ * the granter's account for ibc transfer on a specific channel
22
+ */
23
+ export interface TransferAuthorization {
24
+ /** port and channel amounts */
25
+ allocations: Allocation[];
26
+ }
27
+
28
+ function createBaseAllocation(): Allocation {
29
+ return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [] };
30
+ }
31
+
32
+ export const Allocation = {
33
+ encode(message: Allocation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
34
+ if (message.sourcePort !== "") {
35
+ writer.uint32(10).string(message.sourcePort);
36
+ }
37
+ if (message.sourceChannel !== "") {
38
+ writer.uint32(18).string(message.sourceChannel);
39
+ }
40
+ for (const v of message.spendLimit) {
41
+ Coin.encode(v!, writer.uint32(26).fork()).ldelim();
42
+ }
43
+ for (const v of message.allowList) {
44
+ writer.uint32(34).string(v!);
45
+ }
46
+ return writer;
47
+ },
48
+
49
+ decode(input: _m0.Reader | Uint8Array, length?: number): Allocation {
50
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
51
+ let end = length === undefined ? reader.len : reader.pos + length;
52
+ const message = createBaseAllocation();
53
+ while (reader.pos < end) {
54
+ const tag = reader.uint32();
55
+ switch (tag >>> 3) {
56
+ case 1:
57
+ message.sourcePort = reader.string();
58
+ break;
59
+ case 2:
60
+ message.sourceChannel = reader.string();
61
+ break;
62
+ case 3:
63
+ message.spendLimit.push(Coin.decode(reader, reader.uint32()));
64
+ break;
65
+ case 4:
66
+ message.allowList.push(reader.string());
67
+ break;
68
+ default:
69
+ reader.skipType(tag & 7);
70
+ break;
71
+ }
72
+ }
73
+ return message;
74
+ },
75
+
76
+ fromJSON(object: any): Allocation {
77
+ return {
78
+ sourcePort: isSet(object.sourcePort) ? String(object.sourcePort) : "",
79
+ sourceChannel: isSet(object.sourceChannel) ? String(object.sourceChannel) : "",
80
+ spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e: any) => Coin.fromJSON(e)) : [],
81
+ allowList: Array.isArray(object?.allowList) ? object.allowList.map((e: any) => String(e)) : [],
82
+ };
83
+ },
84
+
85
+ toJSON(message: Allocation): unknown {
86
+ const obj: any = {};
87
+ message.sourcePort !== undefined && (obj.sourcePort = message.sourcePort);
88
+ message.sourceChannel !== undefined && (obj.sourceChannel = message.sourceChannel);
89
+ if (message.spendLimit) {
90
+ obj.spendLimit = message.spendLimit.map((e) => e ? Coin.toJSON(e) : undefined);
91
+ } else {
92
+ obj.spendLimit = [];
93
+ }
94
+ if (message.allowList) {
95
+ obj.allowList = message.allowList.map((e) => e);
96
+ } else {
97
+ obj.allowList = [];
98
+ }
99
+ return obj;
100
+ },
101
+
102
+ fromPartial<I extends Exact<DeepPartial<Allocation>, I>>(object: I): Allocation {
103
+ const message = createBaseAllocation();
104
+ message.sourcePort = object.sourcePort ?? "";
105
+ message.sourceChannel = object.sourceChannel ?? "";
106
+ message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
107
+ message.allowList = object.allowList?.map((e) => e) || [];
108
+ return message;
109
+ },
110
+ };
111
+
112
+ function createBaseTransferAuthorization(): TransferAuthorization {
113
+ return { allocations: [] };
114
+ }
115
+
116
+ export const TransferAuthorization = {
117
+ encode(message: TransferAuthorization, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
118
+ for (const v of message.allocations) {
119
+ Allocation.encode(v!, writer.uint32(10).fork()).ldelim();
120
+ }
121
+ return writer;
122
+ },
123
+
124
+ decode(input: _m0.Reader | Uint8Array, length?: number): TransferAuthorization {
125
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
126
+ let end = length === undefined ? reader.len : reader.pos + length;
127
+ const message = createBaseTransferAuthorization();
128
+ while (reader.pos < end) {
129
+ const tag = reader.uint32();
130
+ switch (tag >>> 3) {
131
+ case 1:
132
+ message.allocations.push(Allocation.decode(reader, reader.uint32()));
133
+ break;
134
+ default:
135
+ reader.skipType(tag & 7);
136
+ break;
137
+ }
138
+ }
139
+ return message;
140
+ },
141
+
142
+ fromJSON(object: any): TransferAuthorization {
143
+ return {
144
+ allocations: Array.isArray(object?.allocations) ? object.allocations.map((e: any) => Allocation.fromJSON(e)) : [],
145
+ };
146
+ },
147
+
148
+ toJSON(message: TransferAuthorization): unknown {
149
+ const obj: any = {};
150
+ if (message.allocations) {
151
+ obj.allocations = message.allocations.map((e) => e ? Allocation.toJSON(e) : undefined);
152
+ } else {
153
+ obj.allocations = [];
154
+ }
155
+ return obj;
156
+ },
157
+
158
+ fromPartial<I extends Exact<DeepPartial<TransferAuthorization>, I>>(object: I): TransferAuthorization {
159
+ const message = createBaseTransferAuthorization();
160
+ message.allocations = object.allocations?.map((e) => Allocation.fromPartial(e)) || [];
161
+ return message;
162
+ },
163
+ };
164
+
165
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
166
+
167
+ export type DeepPartial<T> = T extends Builtin ? T
168
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
169
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
170
+ : Partial<T>;
171
+
172
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
173
+ export type Exact<P, I extends P> = P extends Builtin ? P
174
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
175
+
176
+ function isSet(value: any): boolean {
177
+ return value !== null && value !== undefined;
178
+ }
@@ -1,9 +1,10 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
+ import { Coin } from "../../../../cosmos/base/v1beta1/coin";
3
4
  import { DenomTrace, Params } from "./transfer";
4
5
  export const protobufPackage = "ibc.applications.transfer.v1";
5
6
  function createBaseGenesisState() {
6
- return { portId: "", denomTraces: [], params: undefined };
7
+ return { portId: "", denomTraces: [], params: undefined, totalEscrowed: [] };
7
8
  }
8
9
  export const GenesisState = {
9
10
  encode(message, writer = _m0.Writer.create()) {
@@ -16,6 +17,9 @@ export const GenesisState = {
16
17
  if (message.params !== undefined) {
17
18
  Params.encode(message.params, writer.uint32(26).fork()).ldelim();
18
19
  }
20
+ for (const v of message.totalEscrowed) {
21
+ Coin.encode(v, writer.uint32(34).fork()).ldelim();
22
+ }
19
23
  return writer;
20
24
  },
21
25
  decode(input, length) {
@@ -34,6 +38,9 @@ export const GenesisState = {
34
38
  case 3:
35
39
  message.params = Params.decode(reader, reader.uint32());
36
40
  break;
41
+ case 4:
42
+ message.totalEscrowed.push(Coin.decode(reader, reader.uint32()));
43
+ break;
37
44
  default:
38
45
  reader.skipType(tag & 7);
39
46
  break;
@@ -46,6 +53,7 @@ export const GenesisState = {
46
53
  portId: isSet(object.portId) ? String(object.portId) : "",
47
54
  denomTraces: Array.isArray(object?.denomTraces) ? object.denomTraces.map((e) => DenomTrace.fromJSON(e)) : [],
48
55
  params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
56
+ totalEscrowed: Array.isArray(object?.totalEscrowed) ? object.totalEscrowed.map((e) => Coin.fromJSON(e)) : [],
49
57
  };
50
58
  },
51
59
  toJSON(message) {
@@ -58,6 +66,12 @@ export const GenesisState = {
58
66
  obj.denomTraces = [];
59
67
  }
60
68
  message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
69
+ if (message.totalEscrowed) {
70
+ obj.totalEscrowed = message.totalEscrowed.map((e) => e ? Coin.toJSON(e) : undefined);
71
+ }
72
+ else {
73
+ obj.totalEscrowed = [];
74
+ }
61
75
  return obj;
62
76
  },
63
77
  fromPartial(object) {
@@ -67,6 +81,7 @@ export const GenesisState = {
67
81
  message.params = (object.params !== undefined && object.params !== null)
68
82
  ? Params.fromPartial(object.params)
69
83
  : undefined;
84
+ message.totalEscrowed = object.totalEscrowed?.map((e) => Coin.fromPartial(e)) || [];
70
85
  return message;
71
86
  },
72
87
  };