decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/lib/index.d.ts +78 -78
  2. package/lib/index.js +23 -23
  3. package/package.json +5 -2
  4. package/cardchain.cardchain/index.ts +0 -6
  5. package/cardchain.cardchain/module.ts +0 -1869
  6. package/cardchain.cardchain/registry.ts +0 -111
  7. package/cardchain.cardchain/rest.ts +0 -655
  8. package/cardchain.cardchain/types.ts +0 -63
  9. package/cardchain.featureflag/index.ts +0 -6
  10. package/cardchain.featureflag/module.ts +0 -165
  11. package/cardchain.featureflag/registry.ts +0 -11
  12. package/cardchain.featureflag/rest.ts +0 -256
  13. package/cardchain.featureflag/types.ts +0 -9
  14. package/client.ts +0 -164
  15. package/cosmos.auth.v1beta1/index.ts +0 -6
  16. package/cosmos.auth.v1beta1/module.ts +0 -136
  17. package/cosmos.auth.v1beta1/registry.ts +0 -9
  18. package/cosmos.auth.v1beta1/rest.ts +0 -403
  19. package/cosmos.auth.v1beta1/types.ts +0 -13
  20. package/cosmos.authz.v1beta1/index.ts +0 -6
  21. package/cosmos.authz.v1beta1/module.ts +0 -206
  22. package/cosmos.authz.v1beta1/registry.ts +0 -13
  23. package/cosmos.authz.v1beta1/rest.ts +0 -256
  24. package/cosmos.authz.v1beta1/types.ts +0 -17
  25. package/cosmos.bank.v1beta1/index.ts +0 -6
  26. package/cosmos.bank.v1beta1/module.ts +0 -247
  27. package/cosmos.bank.v1beta1/registry.ts +0 -15
  28. package/cosmos.bank.v1beta1/rest.ts +0 -466
  29. package/cosmos.bank.v1beta1/types.ts +0 -25
  30. package/cosmos.base.node.v1beta1/index.ts +0 -6
  31. package/cosmos.base.node.v1beta1/module.ts +0 -95
  32. package/cosmos.base.node.v1beta1/registry.ts +0 -7
  33. package/cosmos.base.node.v1beta1/rest.ts +0 -235
  34. package/cosmos.base.node.v1beta1/types.ts +0 -5
  35. package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
  36. package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
  37. package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
  38. package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
  39. package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
  40. package/cosmos.circuit.v1/index.ts +0 -6
  41. package/cosmos.circuit.v1/module.ts +0 -198
  42. package/cosmos.circuit.v1/registry.ts +0 -13
  43. package/cosmos.circuit.v1/rest.ts +0 -256
  44. package/cosmos.circuit.v1/types.ts +0 -9
  45. package/cosmos.consensus.v1/index.ts +0 -6
  46. package/cosmos.consensus.v1/module.ts +0 -128
  47. package/cosmos.consensus.v1/registry.ts +0 -9
  48. package/cosmos.consensus.v1/rest.ts +0 -214
  49. package/cosmos.consensus.v1/types.ts +0 -5
  50. package/cosmos.crisis.v1beta1/index.ts +0 -6
  51. package/cosmos.crisis.v1beta1/module.ts +0 -161
  52. package/cosmos.crisis.v1beta1/registry.ts +0 -11
  53. package/cosmos.crisis.v1beta1/rest.ts +0 -193
  54. package/cosmos.crisis.v1beta1/types.ts +0 -5
  55. package/cosmos.distribution.v1beta1/index.ts +0 -6
  56. package/cosmos.distribution.v1beta1/module.ts +0 -364
  57. package/cosmos.distribution.v1beta1/registry.ts +0 -21
  58. package/cosmos.distribution.v1beta1/rest.ts +0 -403
  59. package/cosmos.distribution.v1beta1/types.ts +0 -43
  60. package/cosmos.evidence.v1beta1/index.ts +0 -6
  61. package/cosmos.evidence.v1beta1/module.ts +0 -130
  62. package/cosmos.evidence.v1beta1/registry.ts +0 -9
  63. package/cosmos.evidence.v1beta1/rest.ts +0 -235
  64. package/cosmos.evidence.v1beta1/types.ts +0 -7
  65. package/cosmos.feegrant.v1beta1/index.ts +0 -6
  66. package/cosmos.feegrant.v1beta1/module.ts +0 -202
  67. package/cosmos.feegrant.v1beta1/registry.ts +0 -13
  68. package/cosmos.feegrant.v1beta1/rest.ts +0 -256
  69. package/cosmos.feegrant.v1beta1/types.ts +0 -13
  70. package/cosmos.gov.v1/index.ts +0 -6
  71. package/cosmos.gov.v1/module.ts +0 -344
  72. package/cosmos.gov.v1/registry.ts +0 -21
  73. package/cosmos.gov.v1/rest.ts +0 -382
  74. package/cosmos.gov.v1/types.ts +0 -23
  75. package/cosmos.gov.v1beta1/index.ts +0 -6
  76. package/cosmos.gov.v1beta1/module.ts +0 -245
  77. package/cosmos.gov.v1beta1/registry.ts +0 -15
  78. package/cosmos.gov.v1beta1/rest.ts +0 -361
  79. package/cosmos.gov.v1beta1/types.ts +0 -23
  80. package/cosmos.group.v1/index.ts +0 -6
  81. package/cosmos.group.v1/module.ts +0 -599
  82. package/cosmos.group.v1/registry.ts +0 -35
  83. package/cosmos.group.v1/rest.ts +0 -487
  84. package/cosmos.group.v1/types.ts +0 -47
  85. package/cosmos.mint.v1beta1/index.ts +0 -6
  86. package/cosmos.mint.v1beta1/module.ts +0 -132
  87. package/cosmos.mint.v1beta1/registry.ts +0 -9
  88. package/cosmos.mint.v1beta1/rest.ts +0 -256
  89. package/cosmos.mint.v1beta1/types.ts +0 -9
  90. package/cosmos.nft.v1beta1/index.ts +0 -6
  91. package/cosmos.nft.v1beta1/module.ts +0 -140
  92. package/cosmos.nft.v1beta1/registry.ts +0 -9
  93. package/cosmos.nft.v1beta1/rest.ts +0 -340
  94. package/cosmos.nft.v1beta1/types.ts +0 -17
  95. package/cosmos.params.v1beta1/index.ts +0 -6
  96. package/cosmos.params.v1beta1/module.ts +0 -101
  97. package/cosmos.params.v1beta1/registry.ts +0 -7
  98. package/cosmos.params.v1beta1/rest.ts +0 -235
  99. package/cosmos.params.v1beta1/types.ts +0 -11
  100. package/cosmos.slashing.v1beta1/index.ts +0 -6
  101. package/cosmos.slashing.v1beta1/module.ts +0 -171
  102. package/cosmos.slashing.v1beta1/registry.ts +0 -11
  103. package/cosmos.slashing.v1beta1/rest.ts +0 -256
  104. package/cosmos.slashing.v1beta1/types.ts +0 -15
  105. package/cosmos.staking.v1beta1/index.ts +0 -6
  106. package/cosmos.staking.v1beta1/module.ts +0 -374
  107. package/cosmos.staking.v1beta1/registry.ts +0 -21
  108. package/cosmos.staking.v1beta1/rest.ts +0 -487
  109. package/cosmos.staking.v1beta1/types.ts +0 -53
  110. package/cosmos.tx.v1beta1/index.ts +0 -6
  111. package/cosmos.tx.v1beta1/module.ts +0 -121
  112. package/cosmos.tx.v1beta1/registry.ts +0 -7
  113. package/cosmos.tx.v1beta1/rest.ts +0 -382
  114. package/cosmos.tx.v1beta1/types.ts +0 -31
  115. package/cosmos.upgrade.v1beta1/index.ts +0 -6
  116. package/cosmos.upgrade.v1beta1/module.ts +0 -169
  117. package/cosmos.upgrade.v1beta1/registry.ts +0 -11
  118. package/cosmos.upgrade.v1beta1/rest.ts +0 -298
  119. package/cosmos.upgrade.v1beta1/types.ts +0 -13
  120. package/cosmos.vesting.v1beta1/index.ts +0 -6
  121. package/cosmos.vesting.v1beta1/module.ts +0 -206
  122. package/cosmos.vesting.v1beta1/registry.ts +0 -13
  123. package/cosmos.vesting.v1beta1/rest.ts +0 -193
  124. package/cosmos.vesting.v1beta1/types.ts +0 -17
  125. package/env.ts +0 -7
  126. package/helpers.ts +0 -32
  127. package/ibc.applications.fee.v1/index.ts +0 -6
  128. package/ibc.applications.fee.v1/module.ts +0 -247
  129. package/ibc.applications.fee.v1/registry.ts +0 -15
  130. package/ibc.applications.fee.v1/rest.ts +0 -403
  131. package/ibc.applications.fee.v1/types.ts +0 -25
  132. package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
  133. package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
  134. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
  135. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
  136. package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
  137. package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
  138. package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
  139. package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
  140. package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
  141. package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
  142. package/ibc.applications.transfer.v1/index.ts +0 -6
  143. package/ibc.applications.transfer.v1/module.ts +0 -169
  144. package/ibc.applications.transfer.v1/registry.ts +0 -11
  145. package/ibc.applications.transfer.v1/rest.ts +0 -319
  146. package/ibc.applications.transfer.v1/types.ts +0 -13
  147. package/ibc.core.channel.v1/index.ts +0 -6
  148. package/ibc.core.channel.v1/module.ts +0 -748
  149. package/ibc.core.channel.v1/registry.ts +0 -45
  150. package/ibc.core.channel.v1/rest.ts +0 -550
  151. package/ibc.core.channel.v1/types.ts +0 -31
  152. package/ibc.core.client.v1/index.ts +0 -6
  153. package/ibc.core.client.v1/module.ts +0 -344
  154. package/ibc.core.client.v1/registry.ts +0 -21
  155. package/ibc.core.client.v1/rest.ts +0 -403
  156. package/ibc.core.client.v1/types.ts +0 -23
  157. package/ibc.core.connection.v1/index.ts +0 -6
  158. package/ibc.core.connection.v1/module.ts +0 -274
  159. package/ibc.core.connection.v1/registry.ts +0 -17
  160. package/ibc.core.connection.v1/rest.ts +0 -319
  161. package/ibc.core.connection.v1/types.ts +0 -19
  162. package/index.ts +0 -81
  163. package/modules.ts +0 -5
  164. package/tsconfig.json +0 -13
  165. package/types/amino/amino.ts +0 -9
  166. package/types/capability/v1/capability.ts +0 -263
  167. package/types/capability/v1/genesis.ts +0 -220
  168. package/types/cardchain/cardchain/card.ts +0 -712
  169. package/types/cardchain/cardchain/card_content.ts +0 -116
  170. package/types/cardchain/cardchain/card_with_image.ts +0 -134
  171. package/types/cardchain/cardchain/council.ts +0 -502
  172. package/types/cardchain/cardchain/encounter.ts +0 -307
  173. package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
  174. package/types/cardchain/cardchain/genesis.ts +0 -403
  175. package/types/cardchain/cardchain/image.ts +0 -122
  176. package/types/cardchain/cardchain/match.ts +0 -453
  177. package/types/cardchain/cardchain/module/module.ts +0 -99
  178. package/types/cardchain/cardchain/params.ts +0 -544
  179. package/types/cardchain/cardchain/query.ts +0 -3786
  180. package/types/cardchain/cardchain/running_average.ts +0 -116
  181. package/types/cardchain/cardchain/sell_offer.ts +0 -224
  182. package/types/cardchain/cardchain/server.ts +0 -144
  183. package/types/cardchain/cardchain/set.ts +0 -537
  184. package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
  185. package/types/cardchain/cardchain/tx.ts +0 -8053
  186. package/types/cardchain/cardchain/user.ts +0 -955
  187. package/types/cardchain/cardchain/voting.ts +0 -328
  188. package/types/cardchain/cardchain/voting_results.ts +0 -227
  189. package/types/cardchain/cardchain/zealy.ts +0 -116
  190. package/types/cardchain/featureflag/flag.ts +0 -133
  191. package/types/cardchain/featureflag/genesis.ts +0 -226
  192. package/types/cardchain/featureflag/module/module.ts +0 -99
  193. package/types/cardchain/featureflag/params.ts +0 -78
  194. package/types/cardchain/featureflag/query.ts +0 -445
  195. package/types/cardchain/featureflag/tx.ts +0 -373
  196. package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
  197. package/types/cosmos/app/v1alpha1/config.ts +0 -346
  198. package/types/cosmos/app/v1alpha1/module.ts +0 -348
  199. package/types/cosmos/app/v1alpha1/query.ts +0 -175
  200. package/types/cosmos/auth/module/v1/module.ts +0 -229
  201. package/types/cosmos/auth/v1beta1/auth.ts +0 -531
  202. package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
  203. package/types/cosmos/auth/v1beta1/query.ts +0 -1564
  204. package/types/cosmos/auth/v1beta1/tx.ts +0 -213
  205. package/types/cosmos/authz/module/v1/module.ts +0 -78
  206. package/types/cosmos/authz/v1beta1/authz.ts +0 -411
  207. package/types/cosmos/authz/v1beta1/event.ts +0 -241
  208. package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
  209. package/types/cosmos/authz/v1beta1/query.ts +0 -643
  210. package/types/cosmos/authz/v1beta1/tx.ts +0 -574
  211. package/types/cosmos/autocli/v1/options.ts +0 -1049
  212. package/types/cosmos/autocli/v1/query.ts +0 -291
  213. package/types/cosmos/bank/module/v1/module.ts +0 -150
  214. package/types/cosmos/bank/v1beta1/authz.ts +0 -129
  215. package/types/cosmos/bank/v1beta1/bank.ts +0 -775
  216. package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
  217. package/types/cosmos/bank/v1beta1/query.ts +0 -2424
  218. package/types/cosmos/bank/v1beta1/tx.ts +0 -697
  219. package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
  220. package/types/cosmos/base/node/v1beta1/query.ts +0 -485
  221. package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
  222. package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
  223. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
  224. package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
  225. package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
  226. package/types/cosmos/base/v1beta1/coin.ts +0 -209
  227. package/types/cosmos/circuit/module/v1/module.ts +0 -99
  228. package/types/cosmos/circuit/v1/query.ts +0 -476
  229. package/types/cosmos/circuit/v1/tx.ts +0 -576
  230. package/types/cosmos/circuit/v1/types.ts +0 -362
  231. package/types/cosmos/consensus/module/v1/module.ts +0 -99
  232. package/types/cosmos/consensus/v1/query.ts +0 -181
  233. package/types/cosmos/consensus/v1/tx.ts +0 -271
  234. package/types/cosmos/crisis/module/v1/module.ts +0 -119
  235. package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
  236. package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
  237. package/types/cosmos/crypto/ed25519/keys.ts +0 -195
  238. package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
  239. package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
  240. package/types/cosmos/crypto/multisig/keys.ts +0 -124
  241. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
  242. package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
  243. package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
  244. package/types/cosmos/distribution/module/v1/module.ts +0 -118
  245. package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
  246. package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
  247. package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
  248. package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
  249. package/types/cosmos/evidence/module/v1/module.ts +0 -78
  250. package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
  251. package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
  252. package/types/cosmos/evidence/v1beta1/query.ts +0 -414
  253. package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
  254. package/types/cosmos/feegrant/module/v1/module.ts +0 -78
  255. package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
  256. package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
  257. package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
  258. package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
  259. package/types/cosmos/genutil/module/v1/module.ts +0 -78
  260. package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
  261. package/types/cosmos/gov/module/v1/module.ts +0 -133
  262. package/types/cosmos/gov/v1/genesis.ts +0 -313
  263. package/types/cosmos/gov/v1/gov.ts +0 -1712
  264. package/types/cosmos/gov/v1/query.ts +0 -1605
  265. package/types/cosmos/gov/v1/tx.ts +0 -1387
  266. package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
  267. package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
  268. package/types/cosmos/gov/v1beta1/query.ts +0 -1441
  269. package/types/cosmos/gov/v1beta1/tx.ts +0 -738
  270. package/types/cosmos/group/module/v1/module.ts +0 -141
  271. package/types/cosmos/group/v1/events.ts +0 -795
  272. package/types/cosmos/group/v1/genesis.ts +0 -265
  273. package/types/cosmos/group/v1/query.ts +0 -2441
  274. package/types/cosmos/group/v1/tx.ts +0 -2631
  275. package/types/cosmos/group/v1/types.ts +0 -1850
  276. package/types/cosmos/ics23/v1/proofs.ts +0 -1731
  277. package/types/cosmos/mint/module/v1/module.ts +0 -118
  278. package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
  279. package/types/cosmos/mint/v1beta1/mint.ts +0 -293
  280. package/types/cosmos/mint/v1beta1/query.ts +0 -453
  281. package/types/cosmos/mint/v1beta1/tx.ts +0 -213
  282. package/types/cosmos/msg/textual/v1/textual.ts +0 -9
  283. package/types/cosmos/msg/v1/msg.ts +0 -9
  284. package/types/cosmos/nft/module/v1/module.ts +0 -78
  285. package/types/cosmos/nft/v1beta1/event.ts +0 -359
  286. package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
  287. package/types/cosmos/nft/v1beta1/nft.ts +0 -348
  288. package/types/cosmos/nft/v1beta1/query.ts +0 -1173
  289. package/types/cosmos/nft/v1beta1/tx.ts +0 -228
  290. package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
  291. package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
  292. package/types/cosmos/orm/v1/orm.ts +0 -453
  293. package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
  294. package/types/cosmos/params/module/v1/module.ts +0 -78
  295. package/types/cosmos/params/v1beta1/params.ts +0 -236
  296. package/types/cosmos/params/v1beta1/query.ts +0 -439
  297. package/types/cosmos/query/v1/query.ts +0 -9
  298. package/types/cosmos/reflection/v1/reflection.ts +0 -179
  299. package/types/cosmos/slashing/module/v1/module.ts +0 -99
  300. package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
  301. package/types/cosmos/slashing/v1beta1/query.ts +0 -487
  302. package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
  303. package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
  304. package/types/cosmos/staking/module/v1/module.ts +0 -161
  305. package/types/cosmos/staking/v1beta1/authz.ts +0 -306
  306. package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
  307. package/types/cosmos/staking/v1beta1/query.ts +0 -2540
  308. package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
  309. package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
  310. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
  311. package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
  312. package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
  313. package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
  314. package/types/cosmos/store/v1beta1/listening.ts +0 -301
  315. package/types/cosmos/tx/config/v1/config.ts +0 -125
  316. package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
  317. package/types/cosmos/tx/v1beta1/service.ts +0 -1889
  318. package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
  319. package/types/cosmos/upgrade/module/v1/module.ts +0 -99
  320. package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
  321. package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
  322. package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
  323. package/types/cosmos/vesting/module/v1/module.ts +0 -78
  324. package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
  325. package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
  326. package/types/cosmos_proto/cosmos.ts +0 -307
  327. package/types/gogoproto/gogo.ts +0 -9
  328. package/types/google/api/annotations.ts +0 -9
  329. package/types/google/api/http.ts +0 -770
  330. package/types/google/protobuf/any.ts +0 -259
  331. package/types/google/protobuf/descriptor.ts +0 -6642
  332. package/types/google/protobuf/duration.ts +0 -200
  333. package/types/google/protobuf/timestamp.ts +0 -229
  334. package/types/ibc/applications/fee/v1/ack.ts +0 -166
  335. package/types/ibc/applications/fee/v1/fee.ts +0 -403
  336. package/types/ibc/applications/fee/v1/genesis.ts +0 -571
  337. package/types/ibc/applications/fee/v1/metadata.ts +0 -122
  338. package/types/ibc/applications/fee/v1/query.ts +0 -1757
  339. package/types/ibc/applications/fee/v1/tx.ts +0 -781
  340. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
  341. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
  342. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
  343. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
  344. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
  345. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
  346. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
  347. package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
  348. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
  349. package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
  350. package/types/ibc/applications/transfer/v1/authz.ts +0 -254
  351. package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
  352. package/types/ibc/applications/transfer/v1/query.ts +0 -934
  353. package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
  354. package/types/ibc/applications/transfer/v1/tx.ts +0 -505
  355. package/types/ibc/applications/transfer/v2/packet.ts +0 -177
  356. package/types/ibc/core/channel/v1/channel.ts +0 -1358
  357. package/types/ibc/core/channel/v1/genesis.ts +0 -377
  358. package/types/ibc/core/channel/v1/query.ts +0 -3781
  359. package/types/ibc/core/channel/v1/tx.ts +0 -4424
  360. package/types/ibc/core/channel/v1/upgrade.ts +0 -348
  361. package/types/ibc/core/client/v1/client.ts +0 -753
  362. package/types/ibc/core/client/v1/genesis.ts +0 -423
  363. package/types/ibc/core/client/v1/query.ts +0 -1898
  364. package/types/ibc/core/client/v1/tx.ts +0 -1301
  365. package/types/ibc/core/commitment/v1/commitment.ts +0 -336
  366. package/types/ibc/core/connection/v1/connection.ts +0 -840
  367. package/types/ibc/core/connection/v1/genesis.ts +0 -172
  368. package/types/ibc/core/connection/v1/query.ts +0 -1243
  369. package/types/ibc/core/connection/v1/tx.ts +0 -1352
  370. package/types/ibc/core/types/v1/genesis.ts +0 -150
  371. package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
  372. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
  373. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
  374. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
  375. package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
  376. package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
  377. package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
  378. package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
  379. package/types/tendermint/abci/types.ts +0 -6103
  380. package/types/tendermint/crypto/keys.ts +0 -142
  381. package/types/tendermint/crypto/proof.ts +0 -533
  382. package/types/tendermint/libs/bits/types.ts +0 -139
  383. package/types/tendermint/p2p/types.ts +0 -544
  384. package/types/tendermint/types/block.ts +0 -158
  385. package/types/tendermint/types/evidence.ts +0 -502
  386. package/types/tendermint/types/params.ts +0 -701
  387. package/types/tendermint/types/types.ts +0 -2133
  388. package/types/tendermint/types/validator.ts +0 -424
  389. package/types/tendermint/version/types.ts +0 -218
  390. package/types.d.ts +0 -21
@@ -1,1869 +0,0 @@
1
- // Generated by Ignite ignite.com/cli
2
-
3
- import { SigningStargateClient, DeliverTxResponse, StdFee } from "@cosmjs/stargate";
4
- import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
5
- import { msgTypes } from './registry';
6
- import { IgniteClient } from "../client"
7
- import { MissingWalletError } from "../helpers"
8
- import { Api } from "./rest";
9
- import { MsgUpdateParams } from "../types/cardchain/cardchain/tx";
10
- import { MsgUserCreate } from "../types/cardchain/cardchain/tx";
11
- import { MsgCardSchemeBuy } from "../types/cardchain/cardchain/tx";
12
- import { MsgCardSaveContent } from "../types/cardchain/cardchain/tx";
13
- import { MsgCardVote } from "../types/cardchain/cardchain/tx";
14
- import { MsgCardTransfer } from "../types/cardchain/cardchain/tx";
15
- import { MsgCardDonate } from "../types/cardchain/cardchain/tx";
16
- import { MsgCardArtworkAdd } from "../types/cardchain/cardchain/tx";
17
- import { MsgCardArtistChange } from "../types/cardchain/cardchain/tx";
18
- import { MsgCouncilRegister } from "../types/cardchain/cardchain/tx";
19
- import { MsgCouncilDeregister } from "../types/cardchain/cardchain/tx";
20
- import { MsgMatchReport } from "../types/cardchain/cardchain/tx";
21
- import { MsgCouncilCreate } from "../types/cardchain/cardchain/tx";
22
- import { MsgMatchReporterAppoint } from "../types/cardchain/cardchain/tx";
23
- import { MsgSetCreate } from "../types/cardchain/cardchain/tx";
24
- import { MsgSetCardAdd } from "../types/cardchain/cardchain/tx";
25
- import { MsgSetCardRemove } from "../types/cardchain/cardchain/tx";
26
- import { MsgSetContributorAdd } from "../types/cardchain/cardchain/tx";
27
- import { MsgSetContributorRemove } from "../types/cardchain/cardchain/tx";
28
- import { MsgSetFinalize } from "../types/cardchain/cardchain/tx";
29
- import { MsgSetArtworkAdd } from "../types/cardchain/cardchain/tx";
30
- import { MsgSetStoryAdd } from "../types/cardchain/cardchain/tx";
31
- import { MsgBoosterPackBuy } from "../types/cardchain/cardchain/tx";
32
- import { MsgSellOfferCreate } from "../types/cardchain/cardchain/tx";
33
- import { MsgSellOfferBuy } from "../types/cardchain/cardchain/tx";
34
- import { MsgSellOfferRemove } from "../types/cardchain/cardchain/tx";
35
- import { MsgCardRaritySet } from "../types/cardchain/cardchain/tx";
36
- import { MsgCouncilResponseCommit } from "../types/cardchain/cardchain/tx";
37
- import { MsgCouncilResponseReveal } from "../types/cardchain/cardchain/tx";
38
- import { MsgCouncilRestart } from "../types/cardchain/cardchain/tx";
39
- import { MsgMatchConfirm } from "../types/cardchain/cardchain/tx";
40
- import { MsgProfileCardSet } from "../types/cardchain/cardchain/tx";
41
- import { MsgProfileWebsiteSet } from "../types/cardchain/cardchain/tx";
42
- import { MsgProfileBioSet } from "../types/cardchain/cardchain/tx";
43
- import { MsgBoosterPackOpen } from "../types/cardchain/cardchain/tx";
44
- import { MsgBoosterPackTransfer } from "../types/cardchain/cardchain/tx";
45
- import { MsgSetStoryWriterSet } from "../types/cardchain/cardchain/tx";
46
- import { MsgSetArtistSet } from "../types/cardchain/cardchain/tx";
47
- import { MsgCardVoteMulti } from "../types/cardchain/cardchain/tx";
48
- import { MsgMatchOpen } from "../types/cardchain/cardchain/tx";
49
- import { MsgSetNameSet } from "../types/cardchain/cardchain/tx";
50
- import { MsgProfileAliasSet } from "../types/cardchain/cardchain/tx";
51
- import { MsgEarlyAccessInvite } from "../types/cardchain/cardchain/tx";
52
- import { MsgZealyConnect } from "../types/cardchain/cardchain/tx";
53
- import { MsgEncounterCreate } from "../types/cardchain/cardchain/tx";
54
- import { MsgEncounterDo } from "../types/cardchain/cardchain/tx";
55
- import { MsgEncounterClose } from "../types/cardchain/cardchain/tx";
56
- import { MsgEarlyAccessDisinvite } from "../types/cardchain/cardchain/tx";
57
- import { MsgCardBan } from "../types/cardchain/cardchain/tx";
58
- import { MsgEarlyAccessGrant } from "../types/cardchain/cardchain/tx";
59
- import { MsgSetActivate } from "../types/cardchain/cardchain/tx";
60
- import { MsgCardCopyrightClaim } from "../types/cardchain/cardchain/tx";
61
-
62
- import { Card as typeCard} from "./types"
63
- import { TimeStamp as typeTimeStamp} from "./types"
64
- import { CardContent as typeCardContent} from "./types"
65
- import { CardWithImage as typeCardWithImage} from "./types"
66
- import { Council as typeCouncil} from "./types"
67
- import { WrapClearResponse as typeWrapClearResponse} from "./types"
68
- import { WrapHashResponse as typeWrapHashResponse} from "./types"
69
- import { Parameter as typeParameter} from "./types"
70
- import { Encounter as typeEncounter} from "./types"
71
- import { EncounterWithImage as typeEncounterWithImage} from "./types"
72
- import { Image as typeImage} from "./types"
73
- import { Match as typeMatch} from "./types"
74
- import { MatchPlayer as typeMatchPlayer} from "./types"
75
- import { Params as typeParams} from "./types"
76
- import { RunningAverage as typeRunningAverage} from "./types"
77
- import { SellOffer as typeSellOffer} from "./types"
78
- import { Server as typeServer} from "./types"
79
- import { Set as typeSet} from "./types"
80
- import { InnerRarities as typeInnerRarities} from "./types"
81
- import { AddrWithQuantity as typeAddrWithQuantity} from "./types"
82
- import { SetWithArtwork as typeSetWithArtwork} from "./types"
83
- import { User as typeUser} from "./types"
84
- import { EarlyAccess as typeEarlyAccess} from "./types"
85
- import { BoosterPack as typeBoosterPack} from "./types"
86
- import { AirDrops as typeAirDrops} from "./types"
87
- import { VotingResult as typeVotingResult} from "./types"
88
- import { SingleVote as typeSingleVote} from "./types"
89
- import { VotingResults as typeVotingResults} from "./types"
90
- import { Zealy as typeZealy} from "./types"
91
-
92
- export { MsgUpdateParams, MsgUserCreate, MsgCardSchemeBuy, MsgCardSaveContent, MsgCardVote, MsgCardTransfer, MsgCardDonate, MsgCardArtworkAdd, MsgCardArtistChange, MsgCouncilRegister, MsgCouncilDeregister, MsgMatchReport, MsgCouncilCreate, MsgMatchReporterAppoint, MsgSetCreate, MsgSetCardAdd, MsgSetCardRemove, MsgSetContributorAdd, MsgSetContributorRemove, MsgSetFinalize, MsgSetArtworkAdd, MsgSetStoryAdd, MsgBoosterPackBuy, MsgSellOfferCreate, MsgSellOfferBuy, MsgSellOfferRemove, MsgCardRaritySet, MsgCouncilResponseCommit, MsgCouncilResponseReveal, MsgCouncilRestart, MsgMatchConfirm, MsgProfileCardSet, MsgProfileWebsiteSet, MsgProfileBioSet, MsgBoosterPackOpen, MsgBoosterPackTransfer, MsgSetStoryWriterSet, MsgSetArtistSet, MsgCardVoteMulti, MsgMatchOpen, MsgSetNameSet, MsgProfileAliasSet, MsgEarlyAccessInvite, MsgZealyConnect, MsgEncounterCreate, MsgEncounterDo, MsgEncounterClose, MsgEarlyAccessDisinvite, MsgCardBan, MsgEarlyAccessGrant, MsgSetActivate, MsgCardCopyrightClaim };
93
-
94
- type sendMsgUpdateParamsParams = {
95
- value: MsgUpdateParams,
96
- fee?: StdFee,
97
- memo?: string
98
- };
99
-
100
- type sendMsgUserCreateParams = {
101
- value: MsgUserCreate,
102
- fee?: StdFee,
103
- memo?: string
104
- };
105
-
106
- type sendMsgCardSchemeBuyParams = {
107
- value: MsgCardSchemeBuy,
108
- fee?: StdFee,
109
- memo?: string
110
- };
111
-
112
- type sendMsgCardSaveContentParams = {
113
- value: MsgCardSaveContent,
114
- fee?: StdFee,
115
- memo?: string
116
- };
117
-
118
- type sendMsgCardVoteParams = {
119
- value: MsgCardVote,
120
- fee?: StdFee,
121
- memo?: string
122
- };
123
-
124
- type sendMsgCardTransferParams = {
125
- value: MsgCardTransfer,
126
- fee?: StdFee,
127
- memo?: string
128
- };
129
-
130
- type sendMsgCardDonateParams = {
131
- value: MsgCardDonate,
132
- fee?: StdFee,
133
- memo?: string
134
- };
135
-
136
- type sendMsgCardArtworkAddParams = {
137
- value: MsgCardArtworkAdd,
138
- fee?: StdFee,
139
- memo?: string
140
- };
141
-
142
- type sendMsgCardArtistChangeParams = {
143
- value: MsgCardArtistChange,
144
- fee?: StdFee,
145
- memo?: string
146
- };
147
-
148
- type sendMsgCouncilRegisterParams = {
149
- value: MsgCouncilRegister,
150
- fee?: StdFee,
151
- memo?: string
152
- };
153
-
154
- type sendMsgCouncilDeregisterParams = {
155
- value: MsgCouncilDeregister,
156
- fee?: StdFee,
157
- memo?: string
158
- };
159
-
160
- type sendMsgMatchReportParams = {
161
- value: MsgMatchReport,
162
- fee?: StdFee,
163
- memo?: string
164
- };
165
-
166
- type sendMsgCouncilCreateParams = {
167
- value: MsgCouncilCreate,
168
- fee?: StdFee,
169
- memo?: string
170
- };
171
-
172
- type sendMsgMatchReporterAppointParams = {
173
- value: MsgMatchReporterAppoint,
174
- fee?: StdFee,
175
- memo?: string
176
- };
177
-
178
- type sendMsgSetCreateParams = {
179
- value: MsgSetCreate,
180
- fee?: StdFee,
181
- memo?: string
182
- };
183
-
184
- type sendMsgSetCardAddParams = {
185
- value: MsgSetCardAdd,
186
- fee?: StdFee,
187
- memo?: string
188
- };
189
-
190
- type sendMsgSetCardRemoveParams = {
191
- value: MsgSetCardRemove,
192
- fee?: StdFee,
193
- memo?: string
194
- };
195
-
196
- type sendMsgSetContributorAddParams = {
197
- value: MsgSetContributorAdd,
198
- fee?: StdFee,
199
- memo?: string
200
- };
201
-
202
- type sendMsgSetContributorRemoveParams = {
203
- value: MsgSetContributorRemove,
204
- fee?: StdFee,
205
- memo?: string
206
- };
207
-
208
- type sendMsgSetFinalizeParams = {
209
- value: MsgSetFinalize,
210
- fee?: StdFee,
211
- memo?: string
212
- };
213
-
214
- type sendMsgSetArtworkAddParams = {
215
- value: MsgSetArtworkAdd,
216
- fee?: StdFee,
217
- memo?: string
218
- };
219
-
220
- type sendMsgSetStoryAddParams = {
221
- value: MsgSetStoryAdd,
222
- fee?: StdFee,
223
- memo?: string
224
- };
225
-
226
- type sendMsgBoosterPackBuyParams = {
227
- value: MsgBoosterPackBuy,
228
- fee?: StdFee,
229
- memo?: string
230
- };
231
-
232
- type sendMsgSellOfferCreateParams = {
233
- value: MsgSellOfferCreate,
234
- fee?: StdFee,
235
- memo?: string
236
- };
237
-
238
- type sendMsgSellOfferBuyParams = {
239
- value: MsgSellOfferBuy,
240
- fee?: StdFee,
241
- memo?: string
242
- };
243
-
244
- type sendMsgSellOfferRemoveParams = {
245
- value: MsgSellOfferRemove,
246
- fee?: StdFee,
247
- memo?: string
248
- };
249
-
250
- type sendMsgCardRaritySetParams = {
251
- value: MsgCardRaritySet,
252
- fee?: StdFee,
253
- memo?: string
254
- };
255
-
256
- type sendMsgCouncilResponseCommitParams = {
257
- value: MsgCouncilResponseCommit,
258
- fee?: StdFee,
259
- memo?: string
260
- };
261
-
262
- type sendMsgCouncilResponseRevealParams = {
263
- value: MsgCouncilResponseReveal,
264
- fee?: StdFee,
265
- memo?: string
266
- };
267
-
268
- type sendMsgCouncilRestartParams = {
269
- value: MsgCouncilRestart,
270
- fee?: StdFee,
271
- memo?: string
272
- };
273
-
274
- type sendMsgMatchConfirmParams = {
275
- value: MsgMatchConfirm,
276
- fee?: StdFee,
277
- memo?: string
278
- };
279
-
280
- type sendMsgProfileCardSetParams = {
281
- value: MsgProfileCardSet,
282
- fee?: StdFee,
283
- memo?: string
284
- };
285
-
286
- type sendMsgProfileWebsiteSetParams = {
287
- value: MsgProfileWebsiteSet,
288
- fee?: StdFee,
289
- memo?: string
290
- };
291
-
292
- type sendMsgProfileBioSetParams = {
293
- value: MsgProfileBioSet,
294
- fee?: StdFee,
295
- memo?: string
296
- };
297
-
298
- type sendMsgBoosterPackOpenParams = {
299
- value: MsgBoosterPackOpen,
300
- fee?: StdFee,
301
- memo?: string
302
- };
303
-
304
- type sendMsgBoosterPackTransferParams = {
305
- value: MsgBoosterPackTransfer,
306
- fee?: StdFee,
307
- memo?: string
308
- };
309
-
310
- type sendMsgSetStoryWriterSetParams = {
311
- value: MsgSetStoryWriterSet,
312
- fee?: StdFee,
313
- memo?: string
314
- };
315
-
316
- type sendMsgSetArtistSetParams = {
317
- value: MsgSetArtistSet,
318
- fee?: StdFee,
319
- memo?: string
320
- };
321
-
322
- type sendMsgCardVoteMultiParams = {
323
- value: MsgCardVoteMulti,
324
- fee?: StdFee,
325
- memo?: string
326
- };
327
-
328
- type sendMsgMatchOpenParams = {
329
- value: MsgMatchOpen,
330
- fee?: StdFee,
331
- memo?: string
332
- };
333
-
334
- type sendMsgSetNameSetParams = {
335
- value: MsgSetNameSet,
336
- fee?: StdFee,
337
- memo?: string
338
- };
339
-
340
- type sendMsgProfileAliasSetParams = {
341
- value: MsgProfileAliasSet,
342
- fee?: StdFee,
343
- memo?: string
344
- };
345
-
346
- type sendMsgEarlyAccessInviteParams = {
347
- value: MsgEarlyAccessInvite,
348
- fee?: StdFee,
349
- memo?: string
350
- };
351
-
352
- type sendMsgZealyConnectParams = {
353
- value: MsgZealyConnect,
354
- fee?: StdFee,
355
- memo?: string
356
- };
357
-
358
- type sendMsgEncounterCreateParams = {
359
- value: MsgEncounterCreate,
360
- fee?: StdFee,
361
- memo?: string
362
- };
363
-
364
- type sendMsgEncounterDoParams = {
365
- value: MsgEncounterDo,
366
- fee?: StdFee,
367
- memo?: string
368
- };
369
-
370
- type sendMsgEncounterCloseParams = {
371
- value: MsgEncounterClose,
372
- fee?: StdFee,
373
- memo?: string
374
- };
375
-
376
- type sendMsgEarlyAccessDisinviteParams = {
377
- value: MsgEarlyAccessDisinvite,
378
- fee?: StdFee,
379
- memo?: string
380
- };
381
-
382
- type sendMsgCardBanParams = {
383
- value: MsgCardBan,
384
- fee?: StdFee,
385
- memo?: string
386
- };
387
-
388
- type sendMsgEarlyAccessGrantParams = {
389
- value: MsgEarlyAccessGrant,
390
- fee?: StdFee,
391
- memo?: string
392
- };
393
-
394
- type sendMsgSetActivateParams = {
395
- value: MsgSetActivate,
396
- fee?: StdFee,
397
- memo?: string
398
- };
399
-
400
- type sendMsgCardCopyrightClaimParams = {
401
- value: MsgCardCopyrightClaim,
402
- fee?: StdFee,
403
- memo?: string
404
- };
405
-
406
-
407
- type msgUpdateParamsParams = {
408
- value: MsgUpdateParams,
409
- };
410
-
411
- type msgUserCreateParams = {
412
- value: MsgUserCreate,
413
- };
414
-
415
- type msgCardSchemeBuyParams = {
416
- value: MsgCardSchemeBuy,
417
- };
418
-
419
- type msgCardSaveContentParams = {
420
- value: MsgCardSaveContent,
421
- };
422
-
423
- type msgCardVoteParams = {
424
- value: MsgCardVote,
425
- };
426
-
427
- type msgCardTransferParams = {
428
- value: MsgCardTransfer,
429
- };
430
-
431
- type msgCardDonateParams = {
432
- value: MsgCardDonate,
433
- };
434
-
435
- type msgCardArtworkAddParams = {
436
- value: MsgCardArtworkAdd,
437
- };
438
-
439
- type msgCardArtistChangeParams = {
440
- value: MsgCardArtistChange,
441
- };
442
-
443
- type msgCouncilRegisterParams = {
444
- value: MsgCouncilRegister,
445
- };
446
-
447
- type msgCouncilDeregisterParams = {
448
- value: MsgCouncilDeregister,
449
- };
450
-
451
- type msgMatchReportParams = {
452
- value: MsgMatchReport,
453
- };
454
-
455
- type msgCouncilCreateParams = {
456
- value: MsgCouncilCreate,
457
- };
458
-
459
- type msgMatchReporterAppointParams = {
460
- value: MsgMatchReporterAppoint,
461
- };
462
-
463
- type msgSetCreateParams = {
464
- value: MsgSetCreate,
465
- };
466
-
467
- type msgSetCardAddParams = {
468
- value: MsgSetCardAdd,
469
- };
470
-
471
- type msgSetCardRemoveParams = {
472
- value: MsgSetCardRemove,
473
- };
474
-
475
- type msgSetContributorAddParams = {
476
- value: MsgSetContributorAdd,
477
- };
478
-
479
- type msgSetContributorRemoveParams = {
480
- value: MsgSetContributorRemove,
481
- };
482
-
483
- type msgSetFinalizeParams = {
484
- value: MsgSetFinalize,
485
- };
486
-
487
- type msgSetArtworkAddParams = {
488
- value: MsgSetArtworkAdd,
489
- };
490
-
491
- type msgSetStoryAddParams = {
492
- value: MsgSetStoryAdd,
493
- };
494
-
495
- type msgBoosterPackBuyParams = {
496
- value: MsgBoosterPackBuy,
497
- };
498
-
499
- type msgSellOfferCreateParams = {
500
- value: MsgSellOfferCreate,
501
- };
502
-
503
- type msgSellOfferBuyParams = {
504
- value: MsgSellOfferBuy,
505
- };
506
-
507
- type msgSellOfferRemoveParams = {
508
- value: MsgSellOfferRemove,
509
- };
510
-
511
- type msgCardRaritySetParams = {
512
- value: MsgCardRaritySet,
513
- };
514
-
515
- type msgCouncilResponseCommitParams = {
516
- value: MsgCouncilResponseCommit,
517
- };
518
-
519
- type msgCouncilResponseRevealParams = {
520
- value: MsgCouncilResponseReveal,
521
- };
522
-
523
- type msgCouncilRestartParams = {
524
- value: MsgCouncilRestart,
525
- };
526
-
527
- type msgMatchConfirmParams = {
528
- value: MsgMatchConfirm,
529
- };
530
-
531
- type msgProfileCardSetParams = {
532
- value: MsgProfileCardSet,
533
- };
534
-
535
- type msgProfileWebsiteSetParams = {
536
- value: MsgProfileWebsiteSet,
537
- };
538
-
539
- type msgProfileBioSetParams = {
540
- value: MsgProfileBioSet,
541
- };
542
-
543
- type msgBoosterPackOpenParams = {
544
- value: MsgBoosterPackOpen,
545
- };
546
-
547
- type msgBoosterPackTransferParams = {
548
- value: MsgBoosterPackTransfer,
549
- };
550
-
551
- type msgSetStoryWriterSetParams = {
552
- value: MsgSetStoryWriterSet,
553
- };
554
-
555
- type msgSetArtistSetParams = {
556
- value: MsgSetArtistSet,
557
- };
558
-
559
- type msgCardVoteMultiParams = {
560
- value: MsgCardVoteMulti,
561
- };
562
-
563
- type msgMatchOpenParams = {
564
- value: MsgMatchOpen,
565
- };
566
-
567
- type msgSetNameSetParams = {
568
- value: MsgSetNameSet,
569
- };
570
-
571
- type msgProfileAliasSetParams = {
572
- value: MsgProfileAliasSet,
573
- };
574
-
575
- type msgEarlyAccessInviteParams = {
576
- value: MsgEarlyAccessInvite,
577
- };
578
-
579
- type msgZealyConnectParams = {
580
- value: MsgZealyConnect,
581
- };
582
-
583
- type msgEncounterCreateParams = {
584
- value: MsgEncounterCreate,
585
- };
586
-
587
- type msgEncounterDoParams = {
588
- value: MsgEncounterDo,
589
- };
590
-
591
- type msgEncounterCloseParams = {
592
- value: MsgEncounterClose,
593
- };
594
-
595
- type msgEarlyAccessDisinviteParams = {
596
- value: MsgEarlyAccessDisinvite,
597
- };
598
-
599
- type msgCardBanParams = {
600
- value: MsgCardBan,
601
- };
602
-
603
- type msgEarlyAccessGrantParams = {
604
- value: MsgEarlyAccessGrant,
605
- };
606
-
607
- type msgSetActivateParams = {
608
- value: MsgSetActivate,
609
- };
610
-
611
- type msgCardCopyrightClaimParams = {
612
- value: MsgCardCopyrightClaim,
613
- };
614
-
615
-
616
- export const registry = new Registry(msgTypes);
617
-
618
- type Field = {
619
- name: string;
620
- type: unknown;
621
- }
622
- function getStructure(template) {
623
- const structure: {fields: Field[]} = { fields: [] }
624
- for (let [key, value] of Object.entries(template)) {
625
- let field = { name: key, type: typeof value }
626
- structure.fields.push(field)
627
- }
628
- return structure
629
- }
630
- const defaultFee = {
631
- amount: [],
632
- gas: "200000",
633
- };
634
-
635
- interface TxClientOptions {
636
- addr: string
637
- prefix: string
638
- signer?: OfflineSigner
639
- }
640
-
641
- export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
642
-
643
- return {
644
-
645
- async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
646
- if (!signer) {
647
- throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
648
- }
649
- try {
650
- const { address } = (await signer.getAccounts())[0];
651
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
652
- let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
653
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
654
- } catch (e: any) {
655
- throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
656
- }
657
- },
658
-
659
- async sendMsgUserCreate({ value, fee, memo }: sendMsgUserCreateParams): Promise<DeliverTxResponse> {
660
- if (!signer) {
661
- throw new Error('TxClient:sendMsgUserCreate: Unable to sign Tx. Signer is not present.')
662
- }
663
- try {
664
- const { address } = (await signer.getAccounts())[0];
665
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
666
- let msg = this.msgUserCreate({ value: MsgUserCreate.fromPartial(value) })
667
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
668
- } catch (e: any) {
669
- throw new Error('TxClient:sendMsgUserCreate: Could not broadcast Tx: '+ e.message)
670
- }
671
- },
672
-
673
- async sendMsgCardSchemeBuy({ value, fee, memo }: sendMsgCardSchemeBuyParams): Promise<DeliverTxResponse> {
674
- if (!signer) {
675
- throw new Error('TxClient:sendMsgCardSchemeBuy: Unable to sign Tx. Signer is not present.')
676
- }
677
- try {
678
- const { address } = (await signer.getAccounts())[0];
679
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
680
- let msg = this.msgCardSchemeBuy({ value: MsgCardSchemeBuy.fromPartial(value) })
681
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
682
- } catch (e: any) {
683
- throw new Error('TxClient:sendMsgCardSchemeBuy: Could not broadcast Tx: '+ e.message)
684
- }
685
- },
686
-
687
- async sendMsgCardSaveContent({ value, fee, memo }: sendMsgCardSaveContentParams): Promise<DeliverTxResponse> {
688
- if (!signer) {
689
- throw new Error('TxClient:sendMsgCardSaveContent: Unable to sign Tx. Signer is not present.')
690
- }
691
- try {
692
- const { address } = (await signer.getAccounts())[0];
693
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
694
- let msg = this.msgCardSaveContent({ value: MsgCardSaveContent.fromPartial(value) })
695
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
696
- } catch (e: any) {
697
- throw new Error('TxClient:sendMsgCardSaveContent: Could not broadcast Tx: '+ e.message)
698
- }
699
- },
700
-
701
- async sendMsgCardVote({ value, fee, memo }: sendMsgCardVoteParams): Promise<DeliverTxResponse> {
702
- if (!signer) {
703
- throw new Error('TxClient:sendMsgCardVote: Unable to sign Tx. Signer is not present.')
704
- }
705
- try {
706
- const { address } = (await signer.getAccounts())[0];
707
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
708
- let msg = this.msgCardVote({ value: MsgCardVote.fromPartial(value) })
709
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
710
- } catch (e: any) {
711
- throw new Error('TxClient:sendMsgCardVote: Could not broadcast Tx: '+ e.message)
712
- }
713
- },
714
-
715
- async sendMsgCardTransfer({ value, fee, memo }: sendMsgCardTransferParams): Promise<DeliverTxResponse> {
716
- if (!signer) {
717
- throw new Error('TxClient:sendMsgCardTransfer: Unable to sign Tx. Signer is not present.')
718
- }
719
- try {
720
- const { address } = (await signer.getAccounts())[0];
721
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
722
- let msg = this.msgCardTransfer({ value: MsgCardTransfer.fromPartial(value) })
723
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
724
- } catch (e: any) {
725
- throw new Error('TxClient:sendMsgCardTransfer: Could not broadcast Tx: '+ e.message)
726
- }
727
- },
728
-
729
- async sendMsgCardDonate({ value, fee, memo }: sendMsgCardDonateParams): Promise<DeliverTxResponse> {
730
- if (!signer) {
731
- throw new Error('TxClient:sendMsgCardDonate: Unable to sign Tx. Signer is not present.')
732
- }
733
- try {
734
- const { address } = (await signer.getAccounts())[0];
735
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
736
- let msg = this.msgCardDonate({ value: MsgCardDonate.fromPartial(value) })
737
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
738
- } catch (e: any) {
739
- throw new Error('TxClient:sendMsgCardDonate: Could not broadcast Tx: '+ e.message)
740
- }
741
- },
742
-
743
- async sendMsgCardArtworkAdd({ value, fee, memo }: sendMsgCardArtworkAddParams): Promise<DeliverTxResponse> {
744
- if (!signer) {
745
- throw new Error('TxClient:sendMsgCardArtworkAdd: Unable to sign Tx. Signer is not present.')
746
- }
747
- try {
748
- const { address } = (await signer.getAccounts())[0];
749
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
750
- let msg = this.msgCardArtworkAdd({ value: MsgCardArtworkAdd.fromPartial(value) })
751
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
752
- } catch (e: any) {
753
- throw new Error('TxClient:sendMsgCardArtworkAdd: Could not broadcast Tx: '+ e.message)
754
- }
755
- },
756
-
757
- async sendMsgCardArtistChange({ value, fee, memo }: sendMsgCardArtistChangeParams): Promise<DeliverTxResponse> {
758
- if (!signer) {
759
- throw new Error('TxClient:sendMsgCardArtistChange: Unable to sign Tx. Signer is not present.')
760
- }
761
- try {
762
- const { address } = (await signer.getAccounts())[0];
763
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
764
- let msg = this.msgCardArtistChange({ value: MsgCardArtistChange.fromPartial(value) })
765
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
766
- } catch (e: any) {
767
- throw new Error('TxClient:sendMsgCardArtistChange: Could not broadcast Tx: '+ e.message)
768
- }
769
- },
770
-
771
- async sendMsgCouncilRegister({ value, fee, memo }: sendMsgCouncilRegisterParams): Promise<DeliverTxResponse> {
772
- if (!signer) {
773
- throw new Error('TxClient:sendMsgCouncilRegister: Unable to sign Tx. Signer is not present.')
774
- }
775
- try {
776
- const { address } = (await signer.getAccounts())[0];
777
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
778
- let msg = this.msgCouncilRegister({ value: MsgCouncilRegister.fromPartial(value) })
779
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
780
- } catch (e: any) {
781
- throw new Error('TxClient:sendMsgCouncilRegister: Could not broadcast Tx: '+ e.message)
782
- }
783
- },
784
-
785
- async sendMsgCouncilDeregister({ value, fee, memo }: sendMsgCouncilDeregisterParams): Promise<DeliverTxResponse> {
786
- if (!signer) {
787
- throw new Error('TxClient:sendMsgCouncilDeregister: Unable to sign Tx. Signer is not present.')
788
- }
789
- try {
790
- const { address } = (await signer.getAccounts())[0];
791
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
792
- let msg = this.msgCouncilDeregister({ value: MsgCouncilDeregister.fromPartial(value) })
793
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
794
- } catch (e: any) {
795
- throw new Error('TxClient:sendMsgCouncilDeregister: Could not broadcast Tx: '+ e.message)
796
- }
797
- },
798
-
799
- async sendMsgMatchReport({ value, fee, memo }: sendMsgMatchReportParams): Promise<DeliverTxResponse> {
800
- if (!signer) {
801
- throw new Error('TxClient:sendMsgMatchReport: Unable to sign Tx. Signer is not present.')
802
- }
803
- try {
804
- const { address } = (await signer.getAccounts())[0];
805
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
806
- let msg = this.msgMatchReport({ value: MsgMatchReport.fromPartial(value) })
807
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
808
- } catch (e: any) {
809
- throw new Error('TxClient:sendMsgMatchReport: Could not broadcast Tx: '+ e.message)
810
- }
811
- },
812
-
813
- async sendMsgCouncilCreate({ value, fee, memo }: sendMsgCouncilCreateParams): Promise<DeliverTxResponse> {
814
- if (!signer) {
815
- throw new Error('TxClient:sendMsgCouncilCreate: Unable to sign Tx. Signer is not present.')
816
- }
817
- try {
818
- const { address } = (await signer.getAccounts())[0];
819
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
820
- let msg = this.msgCouncilCreate({ value: MsgCouncilCreate.fromPartial(value) })
821
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
822
- } catch (e: any) {
823
- throw new Error('TxClient:sendMsgCouncilCreate: Could not broadcast Tx: '+ e.message)
824
- }
825
- },
826
-
827
- async sendMsgMatchReporterAppoint({ value, fee, memo }: sendMsgMatchReporterAppointParams): Promise<DeliverTxResponse> {
828
- if (!signer) {
829
- throw new Error('TxClient:sendMsgMatchReporterAppoint: Unable to sign Tx. Signer is not present.')
830
- }
831
- try {
832
- const { address } = (await signer.getAccounts())[0];
833
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
834
- let msg = this.msgMatchReporterAppoint({ value: MsgMatchReporterAppoint.fromPartial(value) })
835
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
836
- } catch (e: any) {
837
- throw new Error('TxClient:sendMsgMatchReporterAppoint: Could not broadcast Tx: '+ e.message)
838
- }
839
- },
840
-
841
- async sendMsgSetCreate({ value, fee, memo }: sendMsgSetCreateParams): Promise<DeliverTxResponse> {
842
- if (!signer) {
843
- throw new Error('TxClient:sendMsgSetCreate: Unable to sign Tx. Signer is not present.')
844
- }
845
- try {
846
- const { address } = (await signer.getAccounts())[0];
847
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
848
- let msg = this.msgSetCreate({ value: MsgSetCreate.fromPartial(value) })
849
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
850
- } catch (e: any) {
851
- throw new Error('TxClient:sendMsgSetCreate: Could not broadcast Tx: '+ e.message)
852
- }
853
- },
854
-
855
- async sendMsgSetCardAdd({ value, fee, memo }: sendMsgSetCardAddParams): Promise<DeliverTxResponse> {
856
- if (!signer) {
857
- throw new Error('TxClient:sendMsgSetCardAdd: Unable to sign Tx. Signer is not present.')
858
- }
859
- try {
860
- const { address } = (await signer.getAccounts())[0];
861
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
862
- let msg = this.msgSetCardAdd({ value: MsgSetCardAdd.fromPartial(value) })
863
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
864
- } catch (e: any) {
865
- throw new Error('TxClient:sendMsgSetCardAdd: Could not broadcast Tx: '+ e.message)
866
- }
867
- },
868
-
869
- async sendMsgSetCardRemove({ value, fee, memo }: sendMsgSetCardRemoveParams): Promise<DeliverTxResponse> {
870
- if (!signer) {
871
- throw new Error('TxClient:sendMsgSetCardRemove: Unable to sign Tx. Signer is not present.')
872
- }
873
- try {
874
- const { address } = (await signer.getAccounts())[0];
875
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
876
- let msg = this.msgSetCardRemove({ value: MsgSetCardRemove.fromPartial(value) })
877
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
878
- } catch (e: any) {
879
- throw new Error('TxClient:sendMsgSetCardRemove: Could not broadcast Tx: '+ e.message)
880
- }
881
- },
882
-
883
- async sendMsgSetContributorAdd({ value, fee, memo }: sendMsgSetContributorAddParams): Promise<DeliverTxResponse> {
884
- if (!signer) {
885
- throw new Error('TxClient:sendMsgSetContributorAdd: Unable to sign Tx. Signer is not present.')
886
- }
887
- try {
888
- const { address } = (await signer.getAccounts())[0];
889
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
890
- let msg = this.msgSetContributorAdd({ value: MsgSetContributorAdd.fromPartial(value) })
891
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
892
- } catch (e: any) {
893
- throw new Error('TxClient:sendMsgSetContributorAdd: Could not broadcast Tx: '+ e.message)
894
- }
895
- },
896
-
897
- async sendMsgSetContributorRemove({ value, fee, memo }: sendMsgSetContributorRemoveParams): Promise<DeliverTxResponse> {
898
- if (!signer) {
899
- throw new Error('TxClient:sendMsgSetContributorRemove: Unable to sign Tx. Signer is not present.')
900
- }
901
- try {
902
- const { address } = (await signer.getAccounts())[0];
903
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
904
- let msg = this.msgSetContributorRemove({ value: MsgSetContributorRemove.fromPartial(value) })
905
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
906
- } catch (e: any) {
907
- throw new Error('TxClient:sendMsgSetContributorRemove: Could not broadcast Tx: '+ e.message)
908
- }
909
- },
910
-
911
- async sendMsgSetFinalize({ value, fee, memo }: sendMsgSetFinalizeParams): Promise<DeliverTxResponse> {
912
- if (!signer) {
913
- throw new Error('TxClient:sendMsgSetFinalize: Unable to sign Tx. Signer is not present.')
914
- }
915
- try {
916
- const { address } = (await signer.getAccounts())[0];
917
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
918
- let msg = this.msgSetFinalize({ value: MsgSetFinalize.fromPartial(value) })
919
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
920
- } catch (e: any) {
921
- throw new Error('TxClient:sendMsgSetFinalize: Could not broadcast Tx: '+ e.message)
922
- }
923
- },
924
-
925
- async sendMsgSetArtworkAdd({ value, fee, memo }: sendMsgSetArtworkAddParams): Promise<DeliverTxResponse> {
926
- if (!signer) {
927
- throw new Error('TxClient:sendMsgSetArtworkAdd: Unable to sign Tx. Signer is not present.')
928
- }
929
- try {
930
- const { address } = (await signer.getAccounts())[0];
931
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
932
- let msg = this.msgSetArtworkAdd({ value: MsgSetArtworkAdd.fromPartial(value) })
933
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
934
- } catch (e: any) {
935
- throw new Error('TxClient:sendMsgSetArtworkAdd: Could not broadcast Tx: '+ e.message)
936
- }
937
- },
938
-
939
- async sendMsgSetStoryAdd({ value, fee, memo }: sendMsgSetStoryAddParams): Promise<DeliverTxResponse> {
940
- if (!signer) {
941
- throw new Error('TxClient:sendMsgSetStoryAdd: Unable to sign Tx. Signer is not present.')
942
- }
943
- try {
944
- const { address } = (await signer.getAccounts())[0];
945
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
946
- let msg = this.msgSetStoryAdd({ value: MsgSetStoryAdd.fromPartial(value) })
947
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
948
- } catch (e: any) {
949
- throw new Error('TxClient:sendMsgSetStoryAdd: Could not broadcast Tx: '+ e.message)
950
- }
951
- },
952
-
953
- async sendMsgBoosterPackBuy({ value, fee, memo }: sendMsgBoosterPackBuyParams): Promise<DeliverTxResponse> {
954
- if (!signer) {
955
- throw new Error('TxClient:sendMsgBoosterPackBuy: Unable to sign Tx. Signer is not present.')
956
- }
957
- try {
958
- const { address } = (await signer.getAccounts())[0];
959
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
960
- let msg = this.msgBoosterPackBuy({ value: MsgBoosterPackBuy.fromPartial(value) })
961
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
962
- } catch (e: any) {
963
- throw new Error('TxClient:sendMsgBoosterPackBuy: Could not broadcast Tx: '+ e.message)
964
- }
965
- },
966
-
967
- async sendMsgSellOfferCreate({ value, fee, memo }: sendMsgSellOfferCreateParams): Promise<DeliverTxResponse> {
968
- if (!signer) {
969
- throw new Error('TxClient:sendMsgSellOfferCreate: Unable to sign Tx. Signer is not present.')
970
- }
971
- try {
972
- const { address } = (await signer.getAccounts())[0];
973
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
974
- let msg = this.msgSellOfferCreate({ value: MsgSellOfferCreate.fromPartial(value) })
975
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
976
- } catch (e: any) {
977
- throw new Error('TxClient:sendMsgSellOfferCreate: Could not broadcast Tx: '+ e.message)
978
- }
979
- },
980
-
981
- async sendMsgSellOfferBuy({ value, fee, memo }: sendMsgSellOfferBuyParams): Promise<DeliverTxResponse> {
982
- if (!signer) {
983
- throw new Error('TxClient:sendMsgSellOfferBuy: Unable to sign Tx. Signer is not present.')
984
- }
985
- try {
986
- const { address } = (await signer.getAccounts())[0];
987
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
988
- let msg = this.msgSellOfferBuy({ value: MsgSellOfferBuy.fromPartial(value) })
989
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
990
- } catch (e: any) {
991
- throw new Error('TxClient:sendMsgSellOfferBuy: Could not broadcast Tx: '+ e.message)
992
- }
993
- },
994
-
995
- async sendMsgSellOfferRemove({ value, fee, memo }: sendMsgSellOfferRemoveParams): Promise<DeliverTxResponse> {
996
- if (!signer) {
997
- throw new Error('TxClient:sendMsgSellOfferRemove: Unable to sign Tx. Signer is not present.')
998
- }
999
- try {
1000
- const { address } = (await signer.getAccounts())[0];
1001
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1002
- let msg = this.msgSellOfferRemove({ value: MsgSellOfferRemove.fromPartial(value) })
1003
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1004
- } catch (e: any) {
1005
- throw new Error('TxClient:sendMsgSellOfferRemove: Could not broadcast Tx: '+ e.message)
1006
- }
1007
- },
1008
-
1009
- async sendMsgCardRaritySet({ value, fee, memo }: sendMsgCardRaritySetParams): Promise<DeliverTxResponse> {
1010
- if (!signer) {
1011
- throw new Error('TxClient:sendMsgCardRaritySet: Unable to sign Tx. Signer is not present.')
1012
- }
1013
- try {
1014
- const { address } = (await signer.getAccounts())[0];
1015
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1016
- let msg = this.msgCardRaritySet({ value: MsgCardRaritySet.fromPartial(value) })
1017
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1018
- } catch (e: any) {
1019
- throw new Error('TxClient:sendMsgCardRaritySet: Could not broadcast Tx: '+ e.message)
1020
- }
1021
- },
1022
-
1023
- async sendMsgCouncilResponseCommit({ value, fee, memo }: sendMsgCouncilResponseCommitParams): Promise<DeliverTxResponse> {
1024
- if (!signer) {
1025
- throw new Error('TxClient:sendMsgCouncilResponseCommit: Unable to sign Tx. Signer is not present.')
1026
- }
1027
- try {
1028
- const { address } = (await signer.getAccounts())[0];
1029
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1030
- let msg = this.msgCouncilResponseCommit({ value: MsgCouncilResponseCommit.fromPartial(value) })
1031
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1032
- } catch (e: any) {
1033
- throw new Error('TxClient:sendMsgCouncilResponseCommit: Could not broadcast Tx: '+ e.message)
1034
- }
1035
- },
1036
-
1037
- async sendMsgCouncilResponseReveal({ value, fee, memo }: sendMsgCouncilResponseRevealParams): Promise<DeliverTxResponse> {
1038
- if (!signer) {
1039
- throw new Error('TxClient:sendMsgCouncilResponseReveal: Unable to sign Tx. Signer is not present.')
1040
- }
1041
- try {
1042
- const { address } = (await signer.getAccounts())[0];
1043
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1044
- let msg = this.msgCouncilResponseReveal({ value: MsgCouncilResponseReveal.fromPartial(value) })
1045
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1046
- } catch (e: any) {
1047
- throw new Error('TxClient:sendMsgCouncilResponseReveal: Could not broadcast Tx: '+ e.message)
1048
- }
1049
- },
1050
-
1051
- async sendMsgCouncilRestart({ value, fee, memo }: sendMsgCouncilRestartParams): Promise<DeliverTxResponse> {
1052
- if (!signer) {
1053
- throw new Error('TxClient:sendMsgCouncilRestart: Unable to sign Tx. Signer is not present.')
1054
- }
1055
- try {
1056
- const { address } = (await signer.getAccounts())[0];
1057
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1058
- let msg = this.msgCouncilRestart({ value: MsgCouncilRestart.fromPartial(value) })
1059
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1060
- } catch (e: any) {
1061
- throw new Error('TxClient:sendMsgCouncilRestart: Could not broadcast Tx: '+ e.message)
1062
- }
1063
- },
1064
-
1065
- async sendMsgMatchConfirm({ value, fee, memo }: sendMsgMatchConfirmParams): Promise<DeliverTxResponse> {
1066
- if (!signer) {
1067
- throw new Error('TxClient:sendMsgMatchConfirm: Unable to sign Tx. Signer is not present.')
1068
- }
1069
- try {
1070
- const { address } = (await signer.getAccounts())[0];
1071
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1072
- let msg = this.msgMatchConfirm({ value: MsgMatchConfirm.fromPartial(value) })
1073
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1074
- } catch (e: any) {
1075
- throw new Error('TxClient:sendMsgMatchConfirm: Could not broadcast Tx: '+ e.message)
1076
- }
1077
- },
1078
-
1079
- async sendMsgProfileCardSet({ value, fee, memo }: sendMsgProfileCardSetParams): Promise<DeliverTxResponse> {
1080
- if (!signer) {
1081
- throw new Error('TxClient:sendMsgProfileCardSet: Unable to sign Tx. Signer is not present.')
1082
- }
1083
- try {
1084
- const { address } = (await signer.getAccounts())[0];
1085
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1086
- let msg = this.msgProfileCardSet({ value: MsgProfileCardSet.fromPartial(value) })
1087
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1088
- } catch (e: any) {
1089
- throw new Error('TxClient:sendMsgProfileCardSet: Could not broadcast Tx: '+ e.message)
1090
- }
1091
- },
1092
-
1093
- async sendMsgProfileWebsiteSet({ value, fee, memo }: sendMsgProfileWebsiteSetParams): Promise<DeliverTxResponse> {
1094
- if (!signer) {
1095
- throw new Error('TxClient:sendMsgProfileWebsiteSet: Unable to sign Tx. Signer is not present.')
1096
- }
1097
- try {
1098
- const { address } = (await signer.getAccounts())[0];
1099
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1100
- let msg = this.msgProfileWebsiteSet({ value: MsgProfileWebsiteSet.fromPartial(value) })
1101
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1102
- } catch (e: any) {
1103
- throw new Error('TxClient:sendMsgProfileWebsiteSet: Could not broadcast Tx: '+ e.message)
1104
- }
1105
- },
1106
-
1107
- async sendMsgProfileBioSet({ value, fee, memo }: sendMsgProfileBioSetParams): Promise<DeliverTxResponse> {
1108
- if (!signer) {
1109
- throw new Error('TxClient:sendMsgProfileBioSet: Unable to sign Tx. Signer is not present.')
1110
- }
1111
- try {
1112
- const { address } = (await signer.getAccounts())[0];
1113
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1114
- let msg = this.msgProfileBioSet({ value: MsgProfileBioSet.fromPartial(value) })
1115
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1116
- } catch (e: any) {
1117
- throw new Error('TxClient:sendMsgProfileBioSet: Could not broadcast Tx: '+ e.message)
1118
- }
1119
- },
1120
-
1121
- async sendMsgBoosterPackOpen({ value, fee, memo }: sendMsgBoosterPackOpenParams): Promise<DeliverTxResponse> {
1122
- if (!signer) {
1123
- throw new Error('TxClient:sendMsgBoosterPackOpen: Unable to sign Tx. Signer is not present.')
1124
- }
1125
- try {
1126
- const { address } = (await signer.getAccounts())[0];
1127
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1128
- let msg = this.msgBoosterPackOpen({ value: MsgBoosterPackOpen.fromPartial(value) })
1129
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1130
- } catch (e: any) {
1131
- throw new Error('TxClient:sendMsgBoosterPackOpen: Could not broadcast Tx: '+ e.message)
1132
- }
1133
- },
1134
-
1135
- async sendMsgBoosterPackTransfer({ value, fee, memo }: sendMsgBoosterPackTransferParams): Promise<DeliverTxResponse> {
1136
- if (!signer) {
1137
- throw new Error('TxClient:sendMsgBoosterPackTransfer: Unable to sign Tx. Signer is not present.')
1138
- }
1139
- try {
1140
- const { address } = (await signer.getAccounts())[0];
1141
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1142
- let msg = this.msgBoosterPackTransfer({ value: MsgBoosterPackTransfer.fromPartial(value) })
1143
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1144
- } catch (e: any) {
1145
- throw new Error('TxClient:sendMsgBoosterPackTransfer: Could not broadcast Tx: '+ e.message)
1146
- }
1147
- },
1148
-
1149
- async sendMsgSetStoryWriterSet({ value, fee, memo }: sendMsgSetStoryWriterSetParams): Promise<DeliverTxResponse> {
1150
- if (!signer) {
1151
- throw new Error('TxClient:sendMsgSetStoryWriterSet: Unable to sign Tx. Signer is not present.')
1152
- }
1153
- try {
1154
- const { address } = (await signer.getAccounts())[0];
1155
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1156
- let msg = this.msgSetStoryWriterSet({ value: MsgSetStoryWriterSet.fromPartial(value) })
1157
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1158
- } catch (e: any) {
1159
- throw new Error('TxClient:sendMsgSetStoryWriterSet: Could not broadcast Tx: '+ e.message)
1160
- }
1161
- },
1162
-
1163
- async sendMsgSetArtistSet({ value, fee, memo }: sendMsgSetArtistSetParams): Promise<DeliverTxResponse> {
1164
- if (!signer) {
1165
- throw new Error('TxClient:sendMsgSetArtistSet: Unable to sign Tx. Signer is not present.')
1166
- }
1167
- try {
1168
- const { address } = (await signer.getAccounts())[0];
1169
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1170
- let msg = this.msgSetArtistSet({ value: MsgSetArtistSet.fromPartial(value) })
1171
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1172
- } catch (e: any) {
1173
- throw new Error('TxClient:sendMsgSetArtistSet: Could not broadcast Tx: '+ e.message)
1174
- }
1175
- },
1176
-
1177
- async sendMsgCardVoteMulti({ value, fee, memo }: sendMsgCardVoteMultiParams): Promise<DeliverTxResponse> {
1178
- if (!signer) {
1179
- throw new Error('TxClient:sendMsgCardVoteMulti: Unable to sign Tx. Signer is not present.')
1180
- }
1181
- try {
1182
- const { address } = (await signer.getAccounts())[0];
1183
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1184
- let msg = this.msgCardVoteMulti({ value: MsgCardVoteMulti.fromPartial(value) })
1185
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1186
- } catch (e: any) {
1187
- throw new Error('TxClient:sendMsgCardVoteMulti: Could not broadcast Tx: '+ e.message)
1188
- }
1189
- },
1190
-
1191
- async sendMsgMatchOpen({ value, fee, memo }: sendMsgMatchOpenParams): Promise<DeliverTxResponse> {
1192
- if (!signer) {
1193
- throw new Error('TxClient:sendMsgMatchOpen: Unable to sign Tx. Signer is not present.')
1194
- }
1195
- try {
1196
- const { address } = (await signer.getAccounts())[0];
1197
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1198
- let msg = this.msgMatchOpen({ value: MsgMatchOpen.fromPartial(value) })
1199
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1200
- } catch (e: any) {
1201
- throw new Error('TxClient:sendMsgMatchOpen: Could not broadcast Tx: '+ e.message)
1202
- }
1203
- },
1204
-
1205
- async sendMsgSetNameSet({ value, fee, memo }: sendMsgSetNameSetParams): Promise<DeliverTxResponse> {
1206
- if (!signer) {
1207
- throw new Error('TxClient:sendMsgSetNameSet: Unable to sign Tx. Signer is not present.')
1208
- }
1209
- try {
1210
- const { address } = (await signer.getAccounts())[0];
1211
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1212
- let msg = this.msgSetNameSet({ value: MsgSetNameSet.fromPartial(value) })
1213
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1214
- } catch (e: any) {
1215
- throw new Error('TxClient:sendMsgSetNameSet: Could not broadcast Tx: '+ e.message)
1216
- }
1217
- },
1218
-
1219
- async sendMsgProfileAliasSet({ value, fee, memo }: sendMsgProfileAliasSetParams): Promise<DeliverTxResponse> {
1220
- if (!signer) {
1221
- throw new Error('TxClient:sendMsgProfileAliasSet: Unable to sign Tx. Signer is not present.')
1222
- }
1223
- try {
1224
- const { address } = (await signer.getAccounts())[0];
1225
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1226
- let msg = this.msgProfileAliasSet({ value: MsgProfileAliasSet.fromPartial(value) })
1227
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1228
- } catch (e: any) {
1229
- throw new Error('TxClient:sendMsgProfileAliasSet: Could not broadcast Tx: '+ e.message)
1230
- }
1231
- },
1232
-
1233
- async sendMsgEarlyAccessInvite({ value, fee, memo }: sendMsgEarlyAccessInviteParams): Promise<DeliverTxResponse> {
1234
- if (!signer) {
1235
- throw new Error('TxClient:sendMsgEarlyAccessInvite: Unable to sign Tx. Signer is not present.')
1236
- }
1237
- try {
1238
- const { address } = (await signer.getAccounts())[0];
1239
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1240
- let msg = this.msgEarlyAccessInvite({ value: MsgEarlyAccessInvite.fromPartial(value) })
1241
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1242
- } catch (e: any) {
1243
- throw new Error('TxClient:sendMsgEarlyAccessInvite: Could not broadcast Tx: '+ e.message)
1244
- }
1245
- },
1246
-
1247
- async sendMsgZealyConnect({ value, fee, memo }: sendMsgZealyConnectParams): Promise<DeliverTxResponse> {
1248
- if (!signer) {
1249
- throw new Error('TxClient:sendMsgZealyConnect: Unable to sign Tx. Signer is not present.')
1250
- }
1251
- try {
1252
- const { address } = (await signer.getAccounts())[0];
1253
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1254
- let msg = this.msgZealyConnect({ value: MsgZealyConnect.fromPartial(value) })
1255
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1256
- } catch (e: any) {
1257
- throw new Error('TxClient:sendMsgZealyConnect: Could not broadcast Tx: '+ e.message)
1258
- }
1259
- },
1260
-
1261
- async sendMsgEncounterCreate({ value, fee, memo }: sendMsgEncounterCreateParams): Promise<DeliverTxResponse> {
1262
- if (!signer) {
1263
- throw new Error('TxClient:sendMsgEncounterCreate: Unable to sign Tx. Signer is not present.')
1264
- }
1265
- try {
1266
- const { address } = (await signer.getAccounts())[0];
1267
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1268
- let msg = this.msgEncounterCreate({ value: MsgEncounterCreate.fromPartial(value) })
1269
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1270
- } catch (e: any) {
1271
- throw new Error('TxClient:sendMsgEncounterCreate: Could not broadcast Tx: '+ e.message)
1272
- }
1273
- },
1274
-
1275
- async sendMsgEncounterDo({ value, fee, memo }: sendMsgEncounterDoParams): Promise<DeliverTxResponse> {
1276
- if (!signer) {
1277
- throw new Error('TxClient:sendMsgEncounterDo: Unable to sign Tx. Signer is not present.')
1278
- }
1279
- try {
1280
- const { address } = (await signer.getAccounts())[0];
1281
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1282
- let msg = this.msgEncounterDo({ value: MsgEncounterDo.fromPartial(value) })
1283
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1284
- } catch (e: any) {
1285
- throw new Error('TxClient:sendMsgEncounterDo: Could not broadcast Tx: '+ e.message)
1286
- }
1287
- },
1288
-
1289
- async sendMsgEncounterClose({ value, fee, memo }: sendMsgEncounterCloseParams): Promise<DeliverTxResponse> {
1290
- if (!signer) {
1291
- throw new Error('TxClient:sendMsgEncounterClose: Unable to sign Tx. Signer is not present.')
1292
- }
1293
- try {
1294
- const { address } = (await signer.getAccounts())[0];
1295
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1296
- let msg = this.msgEncounterClose({ value: MsgEncounterClose.fromPartial(value) })
1297
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1298
- } catch (e: any) {
1299
- throw new Error('TxClient:sendMsgEncounterClose: Could not broadcast Tx: '+ e.message)
1300
- }
1301
- },
1302
-
1303
- async sendMsgEarlyAccessDisinvite({ value, fee, memo }: sendMsgEarlyAccessDisinviteParams): Promise<DeliverTxResponse> {
1304
- if (!signer) {
1305
- throw new Error('TxClient:sendMsgEarlyAccessDisinvite: Unable to sign Tx. Signer is not present.')
1306
- }
1307
- try {
1308
- const { address } = (await signer.getAccounts())[0];
1309
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1310
- let msg = this.msgEarlyAccessDisinvite({ value: MsgEarlyAccessDisinvite.fromPartial(value) })
1311
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1312
- } catch (e: any) {
1313
- throw new Error('TxClient:sendMsgEarlyAccessDisinvite: Could not broadcast Tx: '+ e.message)
1314
- }
1315
- },
1316
-
1317
- async sendMsgCardBan({ value, fee, memo }: sendMsgCardBanParams): Promise<DeliverTxResponse> {
1318
- if (!signer) {
1319
- throw new Error('TxClient:sendMsgCardBan: Unable to sign Tx. Signer is not present.')
1320
- }
1321
- try {
1322
- const { address } = (await signer.getAccounts())[0];
1323
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1324
- let msg = this.msgCardBan({ value: MsgCardBan.fromPartial(value) })
1325
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1326
- } catch (e: any) {
1327
- throw new Error('TxClient:sendMsgCardBan: Could not broadcast Tx: '+ e.message)
1328
- }
1329
- },
1330
-
1331
- async sendMsgEarlyAccessGrant({ value, fee, memo }: sendMsgEarlyAccessGrantParams): Promise<DeliverTxResponse> {
1332
- if (!signer) {
1333
- throw new Error('TxClient:sendMsgEarlyAccessGrant: Unable to sign Tx. Signer is not present.')
1334
- }
1335
- try {
1336
- const { address } = (await signer.getAccounts())[0];
1337
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1338
- let msg = this.msgEarlyAccessGrant({ value: MsgEarlyAccessGrant.fromPartial(value) })
1339
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1340
- } catch (e: any) {
1341
- throw new Error('TxClient:sendMsgEarlyAccessGrant: Could not broadcast Tx: '+ e.message)
1342
- }
1343
- },
1344
-
1345
- async sendMsgSetActivate({ value, fee, memo }: sendMsgSetActivateParams): Promise<DeliverTxResponse> {
1346
- if (!signer) {
1347
- throw new Error('TxClient:sendMsgSetActivate: Unable to sign Tx. Signer is not present.')
1348
- }
1349
- try {
1350
- const { address } = (await signer.getAccounts())[0];
1351
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1352
- let msg = this.msgSetActivate({ value: MsgSetActivate.fromPartial(value) })
1353
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1354
- } catch (e: any) {
1355
- throw new Error('TxClient:sendMsgSetActivate: Could not broadcast Tx: '+ e.message)
1356
- }
1357
- },
1358
-
1359
- async sendMsgCardCopyrightClaim({ value, fee, memo }: sendMsgCardCopyrightClaimParams): Promise<DeliverTxResponse> {
1360
- if (!signer) {
1361
- throw new Error('TxClient:sendMsgCardCopyrightClaim: Unable to sign Tx. Signer is not present.')
1362
- }
1363
- try {
1364
- const { address } = (await signer.getAccounts())[0];
1365
- const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry});
1366
- let msg = this.msgCardCopyrightClaim({ value: MsgCardCopyrightClaim.fromPartial(value) })
1367
- return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
1368
- } catch (e: any) {
1369
- throw new Error('TxClient:sendMsgCardCopyrightClaim: Could not broadcast Tx: '+ e.message)
1370
- }
1371
- },
1372
-
1373
-
1374
- msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
1375
- try {
1376
- return { typeUrl: "/cardchain.cardchain.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
1377
- } catch (e: any) {
1378
- throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
1379
- }
1380
- },
1381
-
1382
- msgUserCreate({ value }: msgUserCreateParams): EncodeObject {
1383
- try {
1384
- return { typeUrl: "/cardchain.cardchain.MsgUserCreate", value: MsgUserCreate.fromPartial( value ) }
1385
- } catch (e: any) {
1386
- throw new Error('TxClient:MsgUserCreate: Could not create message: ' + e.message)
1387
- }
1388
- },
1389
-
1390
- msgCardSchemeBuy({ value }: msgCardSchemeBuyParams): EncodeObject {
1391
- try {
1392
- return { typeUrl: "/cardchain.cardchain.MsgCardSchemeBuy", value: MsgCardSchemeBuy.fromPartial( value ) }
1393
- } catch (e: any) {
1394
- throw new Error('TxClient:MsgCardSchemeBuy: Could not create message: ' + e.message)
1395
- }
1396
- },
1397
-
1398
- msgCardSaveContent({ value }: msgCardSaveContentParams): EncodeObject {
1399
- try {
1400
- return { typeUrl: "/cardchain.cardchain.MsgCardSaveContent", value: MsgCardSaveContent.fromPartial( value ) }
1401
- } catch (e: any) {
1402
- throw new Error('TxClient:MsgCardSaveContent: Could not create message: ' + e.message)
1403
- }
1404
- },
1405
-
1406
- msgCardVote({ value }: msgCardVoteParams): EncodeObject {
1407
- try {
1408
- return { typeUrl: "/cardchain.cardchain.MsgCardVote", value: MsgCardVote.fromPartial( value ) }
1409
- } catch (e: any) {
1410
- throw new Error('TxClient:MsgCardVote: Could not create message: ' + e.message)
1411
- }
1412
- },
1413
-
1414
- msgCardTransfer({ value }: msgCardTransferParams): EncodeObject {
1415
- try {
1416
- return { typeUrl: "/cardchain.cardchain.MsgCardTransfer", value: MsgCardTransfer.fromPartial( value ) }
1417
- } catch (e: any) {
1418
- throw new Error('TxClient:MsgCardTransfer: Could not create message: ' + e.message)
1419
- }
1420
- },
1421
-
1422
- msgCardDonate({ value }: msgCardDonateParams): EncodeObject {
1423
- try {
1424
- return { typeUrl: "/cardchain.cardchain.MsgCardDonate", value: MsgCardDonate.fromPartial( value ) }
1425
- } catch (e: any) {
1426
- throw new Error('TxClient:MsgCardDonate: Could not create message: ' + e.message)
1427
- }
1428
- },
1429
-
1430
- msgCardArtworkAdd({ value }: msgCardArtworkAddParams): EncodeObject {
1431
- try {
1432
- return { typeUrl: "/cardchain.cardchain.MsgCardArtworkAdd", value: MsgCardArtworkAdd.fromPartial( value ) }
1433
- } catch (e: any) {
1434
- throw new Error('TxClient:MsgCardArtworkAdd: Could not create message: ' + e.message)
1435
- }
1436
- },
1437
-
1438
- msgCardArtistChange({ value }: msgCardArtistChangeParams): EncodeObject {
1439
- try {
1440
- return { typeUrl: "/cardchain.cardchain.MsgCardArtistChange", value: MsgCardArtistChange.fromPartial( value ) }
1441
- } catch (e: any) {
1442
- throw new Error('TxClient:MsgCardArtistChange: Could not create message: ' + e.message)
1443
- }
1444
- },
1445
-
1446
- msgCouncilRegister({ value }: msgCouncilRegisterParams): EncodeObject {
1447
- try {
1448
- return { typeUrl: "/cardchain.cardchain.MsgCouncilRegister", value: MsgCouncilRegister.fromPartial( value ) }
1449
- } catch (e: any) {
1450
- throw new Error('TxClient:MsgCouncilRegister: Could not create message: ' + e.message)
1451
- }
1452
- },
1453
-
1454
- msgCouncilDeregister({ value }: msgCouncilDeregisterParams): EncodeObject {
1455
- try {
1456
- return { typeUrl: "/cardchain.cardchain.MsgCouncilDeregister", value: MsgCouncilDeregister.fromPartial( value ) }
1457
- } catch (e: any) {
1458
- throw new Error('TxClient:MsgCouncilDeregister: Could not create message: ' + e.message)
1459
- }
1460
- },
1461
-
1462
- msgMatchReport({ value }: msgMatchReportParams): EncodeObject {
1463
- try {
1464
- return { typeUrl: "/cardchain.cardchain.MsgMatchReport", value: MsgMatchReport.fromPartial( value ) }
1465
- } catch (e: any) {
1466
- throw new Error('TxClient:MsgMatchReport: Could not create message: ' + e.message)
1467
- }
1468
- },
1469
-
1470
- msgCouncilCreate({ value }: msgCouncilCreateParams): EncodeObject {
1471
- try {
1472
- return { typeUrl: "/cardchain.cardchain.MsgCouncilCreate", value: MsgCouncilCreate.fromPartial( value ) }
1473
- } catch (e: any) {
1474
- throw new Error('TxClient:MsgCouncilCreate: Could not create message: ' + e.message)
1475
- }
1476
- },
1477
-
1478
- msgMatchReporterAppoint({ value }: msgMatchReporterAppointParams): EncodeObject {
1479
- try {
1480
- return { typeUrl: "/cardchain.cardchain.MsgMatchReporterAppoint", value: MsgMatchReporterAppoint.fromPartial( value ) }
1481
- } catch (e: any) {
1482
- throw new Error('TxClient:MsgMatchReporterAppoint: Could not create message: ' + e.message)
1483
- }
1484
- },
1485
-
1486
- msgSetCreate({ value }: msgSetCreateParams): EncodeObject {
1487
- try {
1488
- return { typeUrl: "/cardchain.cardchain.MsgSetCreate", value: MsgSetCreate.fromPartial( value ) }
1489
- } catch (e: any) {
1490
- throw new Error('TxClient:MsgSetCreate: Could not create message: ' + e.message)
1491
- }
1492
- },
1493
-
1494
- msgSetCardAdd({ value }: msgSetCardAddParams): EncodeObject {
1495
- try {
1496
- return { typeUrl: "/cardchain.cardchain.MsgSetCardAdd", value: MsgSetCardAdd.fromPartial( value ) }
1497
- } catch (e: any) {
1498
- throw new Error('TxClient:MsgSetCardAdd: Could not create message: ' + e.message)
1499
- }
1500
- },
1501
-
1502
- msgSetCardRemove({ value }: msgSetCardRemoveParams): EncodeObject {
1503
- try {
1504
- return { typeUrl: "/cardchain.cardchain.MsgSetCardRemove", value: MsgSetCardRemove.fromPartial( value ) }
1505
- } catch (e: any) {
1506
- throw new Error('TxClient:MsgSetCardRemove: Could not create message: ' + e.message)
1507
- }
1508
- },
1509
-
1510
- msgSetContributorAdd({ value }: msgSetContributorAddParams): EncodeObject {
1511
- try {
1512
- return { typeUrl: "/cardchain.cardchain.MsgSetContributorAdd", value: MsgSetContributorAdd.fromPartial( value ) }
1513
- } catch (e: any) {
1514
- throw new Error('TxClient:MsgSetContributorAdd: Could not create message: ' + e.message)
1515
- }
1516
- },
1517
-
1518
- msgSetContributorRemove({ value }: msgSetContributorRemoveParams): EncodeObject {
1519
- try {
1520
- return { typeUrl: "/cardchain.cardchain.MsgSetContributorRemove", value: MsgSetContributorRemove.fromPartial( value ) }
1521
- } catch (e: any) {
1522
- throw new Error('TxClient:MsgSetContributorRemove: Could not create message: ' + e.message)
1523
- }
1524
- },
1525
-
1526
- msgSetFinalize({ value }: msgSetFinalizeParams): EncodeObject {
1527
- try {
1528
- return { typeUrl: "/cardchain.cardchain.MsgSetFinalize", value: MsgSetFinalize.fromPartial( value ) }
1529
- } catch (e: any) {
1530
- throw new Error('TxClient:MsgSetFinalize: Could not create message: ' + e.message)
1531
- }
1532
- },
1533
-
1534
- msgSetArtworkAdd({ value }: msgSetArtworkAddParams): EncodeObject {
1535
- try {
1536
- return { typeUrl: "/cardchain.cardchain.MsgSetArtworkAdd", value: MsgSetArtworkAdd.fromPartial( value ) }
1537
- } catch (e: any) {
1538
- throw new Error('TxClient:MsgSetArtworkAdd: Could not create message: ' + e.message)
1539
- }
1540
- },
1541
-
1542
- msgSetStoryAdd({ value }: msgSetStoryAddParams): EncodeObject {
1543
- try {
1544
- return { typeUrl: "/cardchain.cardchain.MsgSetStoryAdd", value: MsgSetStoryAdd.fromPartial( value ) }
1545
- } catch (e: any) {
1546
- throw new Error('TxClient:MsgSetStoryAdd: Could not create message: ' + e.message)
1547
- }
1548
- },
1549
-
1550
- msgBoosterPackBuy({ value }: msgBoosterPackBuyParams): EncodeObject {
1551
- try {
1552
- return { typeUrl: "/cardchain.cardchain.MsgBoosterPackBuy", value: MsgBoosterPackBuy.fromPartial( value ) }
1553
- } catch (e: any) {
1554
- throw new Error('TxClient:MsgBoosterPackBuy: Could not create message: ' + e.message)
1555
- }
1556
- },
1557
-
1558
- msgSellOfferCreate({ value }: msgSellOfferCreateParams): EncodeObject {
1559
- try {
1560
- return { typeUrl: "/cardchain.cardchain.MsgSellOfferCreate", value: MsgSellOfferCreate.fromPartial( value ) }
1561
- } catch (e: any) {
1562
- throw new Error('TxClient:MsgSellOfferCreate: Could not create message: ' + e.message)
1563
- }
1564
- },
1565
-
1566
- msgSellOfferBuy({ value }: msgSellOfferBuyParams): EncodeObject {
1567
- try {
1568
- return { typeUrl: "/cardchain.cardchain.MsgSellOfferBuy", value: MsgSellOfferBuy.fromPartial( value ) }
1569
- } catch (e: any) {
1570
- throw new Error('TxClient:MsgSellOfferBuy: Could not create message: ' + e.message)
1571
- }
1572
- },
1573
-
1574
- msgSellOfferRemove({ value }: msgSellOfferRemoveParams): EncodeObject {
1575
- try {
1576
- return { typeUrl: "/cardchain.cardchain.MsgSellOfferRemove", value: MsgSellOfferRemove.fromPartial( value ) }
1577
- } catch (e: any) {
1578
- throw new Error('TxClient:MsgSellOfferRemove: Could not create message: ' + e.message)
1579
- }
1580
- },
1581
-
1582
- msgCardRaritySet({ value }: msgCardRaritySetParams): EncodeObject {
1583
- try {
1584
- return { typeUrl: "/cardchain.cardchain.MsgCardRaritySet", value: MsgCardRaritySet.fromPartial( value ) }
1585
- } catch (e: any) {
1586
- throw new Error('TxClient:MsgCardRaritySet: Could not create message: ' + e.message)
1587
- }
1588
- },
1589
-
1590
- msgCouncilResponseCommit({ value }: msgCouncilResponseCommitParams): EncodeObject {
1591
- try {
1592
- return { typeUrl: "/cardchain.cardchain.MsgCouncilResponseCommit", value: MsgCouncilResponseCommit.fromPartial( value ) }
1593
- } catch (e: any) {
1594
- throw new Error('TxClient:MsgCouncilResponseCommit: Could not create message: ' + e.message)
1595
- }
1596
- },
1597
-
1598
- msgCouncilResponseReveal({ value }: msgCouncilResponseRevealParams): EncodeObject {
1599
- try {
1600
- return { typeUrl: "/cardchain.cardchain.MsgCouncilResponseReveal", value: MsgCouncilResponseReveal.fromPartial( value ) }
1601
- } catch (e: any) {
1602
- throw new Error('TxClient:MsgCouncilResponseReveal: Could not create message: ' + e.message)
1603
- }
1604
- },
1605
-
1606
- msgCouncilRestart({ value }: msgCouncilRestartParams): EncodeObject {
1607
- try {
1608
- return { typeUrl: "/cardchain.cardchain.MsgCouncilRestart", value: MsgCouncilRestart.fromPartial( value ) }
1609
- } catch (e: any) {
1610
- throw new Error('TxClient:MsgCouncilRestart: Could not create message: ' + e.message)
1611
- }
1612
- },
1613
-
1614
- msgMatchConfirm({ value }: msgMatchConfirmParams): EncodeObject {
1615
- try {
1616
- return { typeUrl: "/cardchain.cardchain.MsgMatchConfirm", value: MsgMatchConfirm.fromPartial( value ) }
1617
- } catch (e: any) {
1618
- throw new Error('TxClient:MsgMatchConfirm: Could not create message: ' + e.message)
1619
- }
1620
- },
1621
-
1622
- msgProfileCardSet({ value }: msgProfileCardSetParams): EncodeObject {
1623
- try {
1624
- return { typeUrl: "/cardchain.cardchain.MsgProfileCardSet", value: MsgProfileCardSet.fromPartial( value ) }
1625
- } catch (e: any) {
1626
- throw new Error('TxClient:MsgProfileCardSet: Could not create message: ' + e.message)
1627
- }
1628
- },
1629
-
1630
- msgProfileWebsiteSet({ value }: msgProfileWebsiteSetParams): EncodeObject {
1631
- try {
1632
- return { typeUrl: "/cardchain.cardchain.MsgProfileWebsiteSet", value: MsgProfileWebsiteSet.fromPartial( value ) }
1633
- } catch (e: any) {
1634
- throw new Error('TxClient:MsgProfileWebsiteSet: Could not create message: ' + e.message)
1635
- }
1636
- },
1637
-
1638
- msgProfileBioSet({ value }: msgProfileBioSetParams): EncodeObject {
1639
- try {
1640
- return { typeUrl: "/cardchain.cardchain.MsgProfileBioSet", value: MsgProfileBioSet.fromPartial( value ) }
1641
- } catch (e: any) {
1642
- throw new Error('TxClient:MsgProfileBioSet: Could not create message: ' + e.message)
1643
- }
1644
- },
1645
-
1646
- msgBoosterPackOpen({ value }: msgBoosterPackOpenParams): EncodeObject {
1647
- try {
1648
- return { typeUrl: "/cardchain.cardchain.MsgBoosterPackOpen", value: MsgBoosterPackOpen.fromPartial( value ) }
1649
- } catch (e: any) {
1650
- throw new Error('TxClient:MsgBoosterPackOpen: Could not create message: ' + e.message)
1651
- }
1652
- },
1653
-
1654
- msgBoosterPackTransfer({ value }: msgBoosterPackTransferParams): EncodeObject {
1655
- try {
1656
- return { typeUrl: "/cardchain.cardchain.MsgBoosterPackTransfer", value: MsgBoosterPackTransfer.fromPartial( value ) }
1657
- } catch (e: any) {
1658
- throw new Error('TxClient:MsgBoosterPackTransfer: Could not create message: ' + e.message)
1659
- }
1660
- },
1661
-
1662
- msgSetStoryWriterSet({ value }: msgSetStoryWriterSetParams): EncodeObject {
1663
- try {
1664
- return { typeUrl: "/cardchain.cardchain.MsgSetStoryWriterSet", value: MsgSetStoryWriterSet.fromPartial( value ) }
1665
- } catch (e: any) {
1666
- throw new Error('TxClient:MsgSetStoryWriterSet: Could not create message: ' + e.message)
1667
- }
1668
- },
1669
-
1670
- msgSetArtistSet({ value }: msgSetArtistSetParams): EncodeObject {
1671
- try {
1672
- return { typeUrl: "/cardchain.cardchain.MsgSetArtistSet", value: MsgSetArtistSet.fromPartial( value ) }
1673
- } catch (e: any) {
1674
- throw new Error('TxClient:MsgSetArtistSet: Could not create message: ' + e.message)
1675
- }
1676
- },
1677
-
1678
- msgCardVoteMulti({ value }: msgCardVoteMultiParams): EncodeObject {
1679
- try {
1680
- return { typeUrl: "/cardchain.cardchain.MsgCardVoteMulti", value: MsgCardVoteMulti.fromPartial( value ) }
1681
- } catch (e: any) {
1682
- throw new Error('TxClient:MsgCardVoteMulti: Could not create message: ' + e.message)
1683
- }
1684
- },
1685
-
1686
- msgMatchOpen({ value }: msgMatchOpenParams): EncodeObject {
1687
- try {
1688
- return { typeUrl: "/cardchain.cardchain.MsgMatchOpen", value: MsgMatchOpen.fromPartial( value ) }
1689
- } catch (e: any) {
1690
- throw new Error('TxClient:MsgMatchOpen: Could not create message: ' + e.message)
1691
- }
1692
- },
1693
-
1694
- msgSetNameSet({ value }: msgSetNameSetParams): EncodeObject {
1695
- try {
1696
- return { typeUrl: "/cardchain.cardchain.MsgSetNameSet", value: MsgSetNameSet.fromPartial( value ) }
1697
- } catch (e: any) {
1698
- throw new Error('TxClient:MsgSetNameSet: Could not create message: ' + e.message)
1699
- }
1700
- },
1701
-
1702
- msgProfileAliasSet({ value }: msgProfileAliasSetParams): EncodeObject {
1703
- try {
1704
- return { typeUrl: "/cardchain.cardchain.MsgProfileAliasSet", value: MsgProfileAliasSet.fromPartial( value ) }
1705
- } catch (e: any) {
1706
- throw new Error('TxClient:MsgProfileAliasSet: Could not create message: ' + e.message)
1707
- }
1708
- },
1709
-
1710
- msgEarlyAccessInvite({ value }: msgEarlyAccessInviteParams): EncodeObject {
1711
- try {
1712
- return { typeUrl: "/cardchain.cardchain.MsgEarlyAccessInvite", value: MsgEarlyAccessInvite.fromPartial( value ) }
1713
- } catch (e: any) {
1714
- throw new Error('TxClient:MsgEarlyAccessInvite: Could not create message: ' + e.message)
1715
- }
1716
- },
1717
-
1718
- msgZealyConnect({ value }: msgZealyConnectParams): EncodeObject {
1719
- try {
1720
- return { typeUrl: "/cardchain.cardchain.MsgZealyConnect", value: MsgZealyConnect.fromPartial( value ) }
1721
- } catch (e: any) {
1722
- throw new Error('TxClient:MsgZealyConnect: Could not create message: ' + e.message)
1723
- }
1724
- },
1725
-
1726
- msgEncounterCreate({ value }: msgEncounterCreateParams): EncodeObject {
1727
- try {
1728
- return { typeUrl: "/cardchain.cardchain.MsgEncounterCreate", value: MsgEncounterCreate.fromPartial( value ) }
1729
- } catch (e: any) {
1730
- throw new Error('TxClient:MsgEncounterCreate: Could not create message: ' + e.message)
1731
- }
1732
- },
1733
-
1734
- msgEncounterDo({ value }: msgEncounterDoParams): EncodeObject {
1735
- try {
1736
- return { typeUrl: "/cardchain.cardchain.MsgEncounterDo", value: MsgEncounterDo.fromPartial( value ) }
1737
- } catch (e: any) {
1738
- throw new Error('TxClient:MsgEncounterDo: Could not create message: ' + e.message)
1739
- }
1740
- },
1741
-
1742
- msgEncounterClose({ value }: msgEncounterCloseParams): EncodeObject {
1743
- try {
1744
- return { typeUrl: "/cardchain.cardchain.MsgEncounterClose", value: MsgEncounterClose.fromPartial( value ) }
1745
- } catch (e: any) {
1746
- throw new Error('TxClient:MsgEncounterClose: Could not create message: ' + e.message)
1747
- }
1748
- },
1749
-
1750
- msgEarlyAccessDisinvite({ value }: msgEarlyAccessDisinviteParams): EncodeObject {
1751
- try {
1752
- return { typeUrl: "/cardchain.cardchain.MsgEarlyAccessDisinvite", value: MsgEarlyAccessDisinvite.fromPartial( value ) }
1753
- } catch (e: any) {
1754
- throw new Error('TxClient:MsgEarlyAccessDisinvite: Could not create message: ' + e.message)
1755
- }
1756
- },
1757
-
1758
- msgCardBan({ value }: msgCardBanParams): EncodeObject {
1759
- try {
1760
- return { typeUrl: "/cardchain.cardchain.MsgCardBan", value: MsgCardBan.fromPartial( value ) }
1761
- } catch (e: any) {
1762
- throw new Error('TxClient:MsgCardBan: Could not create message: ' + e.message)
1763
- }
1764
- },
1765
-
1766
- msgEarlyAccessGrant({ value }: msgEarlyAccessGrantParams): EncodeObject {
1767
- try {
1768
- return { typeUrl: "/cardchain.cardchain.MsgEarlyAccessGrant", value: MsgEarlyAccessGrant.fromPartial( value ) }
1769
- } catch (e: any) {
1770
- throw new Error('TxClient:MsgEarlyAccessGrant: Could not create message: ' + e.message)
1771
- }
1772
- },
1773
-
1774
- msgSetActivate({ value }: msgSetActivateParams): EncodeObject {
1775
- try {
1776
- return { typeUrl: "/cardchain.cardchain.MsgSetActivate", value: MsgSetActivate.fromPartial( value ) }
1777
- } catch (e: any) {
1778
- throw new Error('TxClient:MsgSetActivate: Could not create message: ' + e.message)
1779
- }
1780
- },
1781
-
1782
- msgCardCopyrightClaim({ value }: msgCardCopyrightClaimParams): EncodeObject {
1783
- try {
1784
- return { typeUrl: "/cardchain.cardchain.MsgCardCopyrightClaim", value: MsgCardCopyrightClaim.fromPartial( value ) }
1785
- } catch (e: any) {
1786
- throw new Error('TxClient:MsgCardCopyrightClaim: Could not create message: ' + e.message)
1787
- }
1788
- },
1789
-
1790
- }
1791
- };
1792
-
1793
- interface QueryClientOptions {
1794
- addr: string
1795
- }
1796
-
1797
- export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => {
1798
- return new Api({ baseURL: addr });
1799
- };
1800
-
1801
- class SDKModule {
1802
- public query: ReturnType<typeof queryClient>;
1803
- public tx: ReturnType<typeof txClient>;
1804
- public structure: Record<string,unknown>;
1805
- public registry: Array<[string, GeneratedType]> = [];
1806
-
1807
- constructor(client: IgniteClient) {
1808
-
1809
- this.query = queryClient({ addr: client.env.apiURL });
1810
- this.updateTX(client);
1811
- this.structure = {
1812
- Card: getStructure(typeCard.fromPartial({})),
1813
- TimeStamp: getStructure(typeTimeStamp.fromPartial({})),
1814
- CardContent: getStructure(typeCardContent.fromPartial({})),
1815
- CardWithImage: getStructure(typeCardWithImage.fromPartial({})),
1816
- Council: getStructure(typeCouncil.fromPartial({})),
1817
- WrapClearResponse: getStructure(typeWrapClearResponse.fromPartial({})),
1818
- WrapHashResponse: getStructure(typeWrapHashResponse.fromPartial({})),
1819
- Parameter: getStructure(typeParameter.fromPartial({})),
1820
- Encounter: getStructure(typeEncounter.fromPartial({})),
1821
- EncounterWithImage: getStructure(typeEncounterWithImage.fromPartial({})),
1822
- Image: getStructure(typeImage.fromPartial({})),
1823
- Match: getStructure(typeMatch.fromPartial({})),
1824
- MatchPlayer: getStructure(typeMatchPlayer.fromPartial({})),
1825
- Params: getStructure(typeParams.fromPartial({})),
1826
- RunningAverage: getStructure(typeRunningAverage.fromPartial({})),
1827
- SellOffer: getStructure(typeSellOffer.fromPartial({})),
1828
- Server: getStructure(typeServer.fromPartial({})),
1829
- Set: getStructure(typeSet.fromPartial({})),
1830
- InnerRarities: getStructure(typeInnerRarities.fromPartial({})),
1831
- AddrWithQuantity: getStructure(typeAddrWithQuantity.fromPartial({})),
1832
- SetWithArtwork: getStructure(typeSetWithArtwork.fromPartial({})),
1833
- User: getStructure(typeUser.fromPartial({})),
1834
- EarlyAccess: getStructure(typeEarlyAccess.fromPartial({})),
1835
- BoosterPack: getStructure(typeBoosterPack.fromPartial({})),
1836
- AirDrops: getStructure(typeAirDrops.fromPartial({})),
1837
- VotingResult: getStructure(typeVotingResult.fromPartial({})),
1838
- SingleVote: getStructure(typeSingleVote.fromPartial({})),
1839
- VotingResults: getStructure(typeVotingResults.fromPartial({})),
1840
- Zealy: getStructure(typeZealy.fromPartial({})),
1841
-
1842
- };
1843
- client.on('signer-changed',(signer) => {
1844
- this.updateTX(client);
1845
- })
1846
- }
1847
- updateTX(client: IgniteClient) {
1848
- const methods = txClient({
1849
- signer: client.signer,
1850
- addr: client.env.rpcURL,
1851
- prefix: client.env.prefix ?? "cosmos",
1852
- })
1853
-
1854
- this.tx = methods;
1855
- for (let m in methods) {
1856
- this.tx[m] = methods[m].bind(this.tx);
1857
- }
1858
- }
1859
- };
1860
-
1861
- const IgntModule = (test: IgniteClient) => {
1862
- return {
1863
- module: {
1864
- CardchainCardchain: new SDKModule(test)
1865
- },
1866
- registry: msgTypes
1867
- }
1868
- }
1869
- export default IgntModule;