decentralcardgame-cardchain-client-ts 0.0.35 → 0.0.37

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 (141) hide show
  1. package/amino_adapter.d.ts +9 -0
  2. package/amino_adapter.js +22 -0
  3. package/cardchain.cardchain/module.js +53 -52
  4. package/cardchain.featureflag/module.js +3 -2
  5. package/client.js +2 -2
  6. package/cosmos.auth.v1beta1/module.js +2 -1
  7. package/cosmos.authz.v1beta1/module.js +4 -3
  8. package/cosmos.bank.v1beta1/module.js +5 -4
  9. package/cosmos.bank.v1beta1/rest.d.ts +20 -20
  10. package/cosmos.bank.v1beta1/rest.js +16 -16
  11. package/cosmos.circuit.v1/module.js +4 -3
  12. package/cosmos.consensus.v1/module.js +2 -1
  13. package/cosmos.crisis.v1beta1/module.js +3 -2
  14. package/cosmos.distribution.v1beta1/module.js +8 -7
  15. package/cosmos.evidence.v1beta1/module.js +2 -1
  16. package/cosmos.feegrant.v1beta1/module.js +4 -3
  17. package/cosmos.gov.v1/module.js +8 -7
  18. package/cosmos.gov.v1beta1/module.js +5 -4
  19. package/cosmos.group.v1/module.js +17 -14
  20. package/cosmos.group.v1/types.d.ts +2 -1
  21. package/cosmos.group.v1/types.js +2 -1
  22. package/cosmos.mint.v1beta1/module.js +2 -1
  23. package/cosmos.nft.v1beta1/module.js +2 -1
  24. package/cosmos.slashing.v1beta1/module.js +3 -2
  25. package/cosmos.staking.v1beta1/module.js +8 -7
  26. package/cosmos.tx.v1beta1/rest.d.ts +8 -0
  27. package/cosmos.upgrade.v1beta1/module.js +3 -2
  28. package/cosmos.vesting.v1beta1/module.js +4 -3
  29. package/ibc.applications.fee.v1/module.js +5 -4
  30. package/ibc.applications.interchain_accounts.controller.v1/module.js +4 -3
  31. package/ibc.applications.interchain_accounts.host.v1/module.js +3 -2
  32. package/ibc.applications.transfer.v1/module.js +3 -2
  33. package/ibc.core.channel.v1/module.js +20 -19
  34. package/ibc.core.client.v1/module.js +8 -7
  35. package/ibc.core.connection.v1/module.js +6 -5
  36. package/index.d.ts +68 -68
  37. package/index.js +19 -19
  38. package/package.json +2 -1
  39. package/types/cosmos/app/runtime/v1alpha1/module.d.ts +13 -1
  40. package/types/cosmos/app/runtime/v1alpha1/module.js +36 -0
  41. package/types/cosmos/app/v1alpha1/query.d.ts +6 -2
  42. package/types/cosmos/auth/module/v1/module.d.ts +6 -0
  43. package/types/cosmos/auth/module/v1/module.js +18 -1
  44. package/types/cosmos/auth/v1beta1/query.d.ts +21 -107
  45. package/types/cosmos/auth/v1beta1/tx.d.ts +1 -9
  46. package/types/cosmos/authz/v1beta1/authz.d.ts +0 -1
  47. package/types/cosmos/authz/v1beta1/event.d.ts +0 -1
  48. package/types/cosmos/authz/v1beta1/genesis.d.ts +0 -1
  49. package/types/cosmos/authz/v1beta1/query.d.ts +2 -11
  50. package/types/cosmos/authz/v1beta1/tx.d.ts +0 -1
  51. package/types/cosmos/autocli/v1/options.d.ts +21 -1
  52. package/types/cosmos/autocli/v1/options.js +65 -2
  53. package/types/cosmos/bank/v1beta1/authz.d.ts +0 -4
  54. package/types/cosmos/bank/v1beta1/bank.d.ts +2 -14
  55. package/types/cosmos/bank/v1beta1/genesis.d.ts +1 -5
  56. package/types/cosmos/bank/v1beta1/query.d.ts +12 -62
  57. package/types/cosmos/bank/v1beta1/query.js +6 -6
  58. package/types/cosmos/bank/v1beta1/tx.d.ts +2 -18
  59. package/types/cosmos/base/abci/v1beta1/abci.d.ts +2 -12
  60. package/types/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
  61. package/types/cosmos/base/tendermint/v1beta1/query.d.ts +0 -5
  62. package/types/cosmos/benchmark/module/v1/module.d.ts +52 -0
  63. package/types/cosmos/benchmark/module/v1/module.js +289 -0
  64. package/types/cosmos/benchmark/v1/benchmark.d.ts +32 -0
  65. package/types/cosmos/benchmark/v1/benchmark.js +164 -0
  66. package/types/cosmos/benchmark/v1/tx.d.ts +51 -0
  67. package/types/cosmos/benchmark/v1/tx.js +196 -0
  68. package/types/cosmos/consensus/v1/query.d.ts +0 -1
  69. package/types/cosmos/consensus/v1/tx.d.ts +0 -4
  70. package/types/cosmos/{orm/module/v1alpha1 → counter/module/v1}/module.d.ts +4 -6
  71. package/types/cosmos/counter/module/v1/module.js +62 -0
  72. package/types/cosmos/counter/v1/query.d.ts +47 -0
  73. package/types/cosmos/counter/v1/query.js +122 -0
  74. package/types/cosmos/counter/v1/tx.d.ts +52 -0
  75. package/types/cosmos/counter/v1/tx.js +153 -0
  76. package/types/cosmos/crisis/v1beta1/tx.d.ts +1 -9
  77. package/types/cosmos/crypto/hd/v1/hd.d.ts +0 -1
  78. package/types/cosmos/crypto/keyring/v1/record.d.ts +0 -1
  79. package/types/cosmos/crypto/secp256r1/keys.d.ts +0 -1
  80. package/types/cosmos/distribution/v1beta1/query.d.ts +5 -1
  81. package/types/cosmos/distribution/v1beta1/tx.d.ts +4 -22
  82. package/types/cosmos/epochs/module/v1/module.d.ts +25 -0
  83. package/types/cosmos/{orm/module/v1alpha1 → epochs/module/v1}/module.js +2 -2
  84. package/types/cosmos/epochs/v1beta1/events.d.ts +32 -0
  85. package/types/cosmos/epochs/v1beta1/events.js +140 -0
  86. package/types/cosmos/epochs/v1beta1/genesis.d.ts +86 -0
  87. package/types/cosmos/epochs/v1beta1/genesis.js +256 -0
  88. package/types/cosmos/epochs/v1beta1/query.d.ts +73 -0
  89. package/types/cosmos/epochs/v1beta1/query.js +233 -0
  90. package/types/cosmos/evidence/v1beta1/query.d.ts +1 -5
  91. package/types/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
  92. package/types/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
  93. package/types/cosmos/feegrant/v1beta1/query.d.ts +3 -16
  94. package/types/cosmos/feegrant/v1beta1/tx.d.ts +3 -16
  95. package/types/cosmos/gov/v1/genesis.d.ts +1 -8
  96. package/types/cosmos/gov/v1/gov.d.ts +9 -50
  97. package/types/cosmos/gov/v1/gov.js +0 -1
  98. package/types/cosmos/gov/v1/query.d.ts +1 -6
  99. package/types/cosmos/gov/v1/tx.d.ts +6 -37
  100. package/types/cosmos/gov/v1beta1/gov.d.ts +2 -10
  101. package/types/cosmos/gov/v1beta1/tx.d.ts +3 -15
  102. package/types/cosmos/group/v1/events.d.ts +8 -1
  103. package/types/cosmos/group/v1/events.js +68 -0
  104. package/types/cosmos/group/v1/genesis.d.ts +0 -1
  105. package/types/cosmos/group/v1/query.d.ts +3 -16
  106. package/types/cosmos/group/v1/tx.d.ts +2 -11
  107. package/types/cosmos/group/v1/tx.js +0 -1
  108. package/types/cosmos/group/v1/types.d.ts +2 -11
  109. package/types/cosmos/group/v1/types.js +0 -1
  110. package/types/cosmos/mint/v1beta1/tx.d.ts +1 -9
  111. package/types/cosmos/params/v1beta1/query.d.ts +1 -11
  112. package/types/cosmos/protocolpool/module/v1/module.d.ts +27 -0
  113. package/types/cosmos/protocolpool/module/v1/module.js +62 -0
  114. package/types/cosmos/protocolpool/v1/genesis.d.ts +33 -0
  115. package/types/cosmos/protocolpool/v1/genesis.js +84 -0
  116. package/types/cosmos/protocolpool/v1/query.d.ts +108 -0
  117. package/types/cosmos/protocolpool/v1/query.js +420 -0
  118. package/types/cosmos/protocolpool/v1/tx.d.ts +159 -0
  119. package/types/cosmos/protocolpool/v1/tx.js +700 -0
  120. package/types/cosmos/protocolpool/v1/types.d.ts +45 -0
  121. package/types/cosmos/protocolpool/v1/types.js +196 -0
  122. package/types/cosmos/slashing/v1beta1/tx.d.ts +1 -9
  123. package/types/cosmos/staking/v1beta1/authz.d.ts +2 -10
  124. package/types/cosmos/staking/v1beta1/authz.js +1 -5
  125. package/types/cosmos/staking/v1beta1/staking.d.ts +1 -5
  126. package/types/cosmos/staking/v1beta1/tx.d.ts +4 -25
  127. package/types/cosmos/store/snapshots/v1/snapshot.d.ts +5 -25
  128. package/types/cosmos/store/v1beta1/listening.d.ts +0 -2
  129. package/types/cosmos/tx/v1beta1/service.d.ts +6 -52
  130. package/types/cosmos/tx/v1beta1/tx.d.ts +37 -17
  131. package/types/cosmos/tx/v1beta1/tx.js +61 -1
  132. package/types/cosmos/upgrade/v1beta1/query.d.ts +4 -25
  133. package/types/cosmos/upgrade/v1beta1/tx.d.ts +5 -28
  134. package/types/cosmos/vesting/v1beta1/tx.d.ts +1 -15
  135. package/types/cosmos/vesting/v1beta1/vesting.d.ts +0 -2
  136. package/types/cosmos/orm/query/v1alpha1/query.d.ts +0 -148
  137. package/types/cosmos/orm/query/v1alpha1/query.js +0 -705
  138. package/types/cosmos/orm/v1/orm.d.ts +0 -115
  139. package/types/cosmos/orm/v1/orm.js +0 -300
  140. package/types/cosmos/orm/v1alpha1/schema.d.ts +0 -77
  141. package/types/cosmos/orm/v1alpha1/schema.js +0 -243
@@ -1,4 +1,5 @@
1
1
  // Generated by Ignite ignite.com/cli
2
+ import { AminoAdapter } from "../amino_adapter";
2
3
  import { SigningStargateClient } from "@cosmjs/stargate";
3
4
  import { Registry } from "@cosmjs/proto-signing";
4
5
  import { msgTypes } from './registry';
@@ -37,7 +38,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
37
38
  }
38
39
  try {
39
40
  const { address } = (await signer.getAccounts())[0];
40
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
41
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
41
42
  let msg = this.msgConnectionOpenInit({ value: MsgConnectionOpenInit.fromPartial(value) });
42
43
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
43
44
  }
@@ -51,7 +52,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
51
52
  }
52
53
  try {
53
54
  const { address } = (await signer.getAccounts())[0];
54
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
55
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
55
56
  let msg = this.msgConnectionOpenTry({ value: MsgConnectionOpenTry.fromPartial(value) });
56
57
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
57
58
  }
@@ -65,7 +66,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
65
66
  }
66
67
  try {
67
68
  const { address } = (await signer.getAccounts())[0];
68
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
69
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
69
70
  let msg = this.msgConnectionOpenAck({ value: MsgConnectionOpenAck.fromPartial(value) });
70
71
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
71
72
  }
@@ -79,7 +80,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
79
80
  }
80
81
  try {
81
82
  const { address } = (await signer.getAccounts())[0];
82
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
83
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
83
84
  let msg = this.msgConnectionOpenConfirm({ value: MsgConnectionOpenConfirm.fromPartial(value) });
84
85
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
85
86
  }
@@ -93,7 +94,7 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
93
94
  }
94
95
  try {
95
96
  const { address } = (await signer.getAccounts())[0];
96
- const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry });
97
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
97
98
  let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
98
99
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
99
100
  }
package/index.d.ts CHANGED
@@ -41,62 +41,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
41
41
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
42
42
  updateTX(client: IgniteClient): void;
43
43
  };
44
- } & {
45
- IbcApplicationsFeeV_1: {
46
- query: ReturnType<typeof import("./ibc.applications.fee.v1").queryClient>;
47
- tx: ReturnType<typeof import("./ibc.applications.fee.v1").txClient>;
48
- structure: Record<string, unknown>;
49
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
50
- updateTX(client: IgniteClient): void;
51
- };
52
- } & {
53
- IbcApplicationsInterchainAccountsControllerV_1: {
54
- query: ReturnType<typeof import("./ibc.applications.interchain_accounts.controller.v1").queryClient>;
55
- tx: ReturnType<typeof import("./ibc.applications.interchain_accounts.controller.v1").txClient>;
56
- structure: Record<string, unknown>;
57
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
58
- updateTX(client: IgniteClient): void;
59
- };
60
- } & {
61
- IbcApplicationsInterchainAccountsHostV_1: {
62
- query: ReturnType<typeof import("./ibc.applications.interchain_accounts.host.v1").queryClient>;
63
- tx: ReturnType<typeof import("./ibc.applications.interchain_accounts.host.v1").txClient>;
64
- structure: Record<string, unknown>;
65
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
66
- updateTX(client: IgniteClient): void;
67
- };
68
- } & {
69
- IbcApplicationsTransferV_1: {
70
- query: ReturnType<typeof import("./ibc.applications.transfer.v1").queryClient>;
71
- tx: ReturnType<typeof import("./ibc.applications.transfer.v1").txClient>;
72
- structure: Record<string, unknown>;
73
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
74
- updateTX(client: IgniteClient): void;
75
- };
76
- } & {
77
- IbcCoreChannelV_1: {
78
- query: ReturnType<typeof import("./ibc.core.channel.v1").queryClient>;
79
- tx: ReturnType<typeof import("./ibc.core.channel.v1").txClient>;
80
- structure: Record<string, unknown>;
81
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
82
- updateTX(client: IgniteClient): void;
83
- };
84
- } & {
85
- IbcCoreClientV_1: {
86
- query: ReturnType<typeof import("./ibc.core.client.v1").queryClient>;
87
- tx: ReturnType<typeof import("./ibc.core.client.v1").txClient>;
88
- structure: Record<string, unknown>;
89
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
90
- updateTX(client: IgniteClient): void;
91
- };
92
- } & {
93
- IbcCoreConnectionV_1: {
94
- query: ReturnType<typeof import("./ibc.core.connection.v1").queryClient>;
95
- tx: ReturnType<typeof import("./ibc.core.connection.v1").txClient>;
96
- structure: Record<string, unknown>;
97
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
98
- updateTX(client: IgniteClient): void;
99
- };
100
44
  } & {
101
45
  CosmosAuthV_1Beta_1: {
102
46
  query: ReturnType<typeof import("./cosmos.auth.v1beta1").queryClient>;
@@ -209,6 +153,22 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
209
153
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
210
154
  updateTX(client: IgniteClient): void;
211
155
  };
156
+ } & {
157
+ CosmosFeegrantV_1Beta_1: {
158
+ query: ReturnType<typeof import("./cosmos.feegrant.v1beta1").queryClient>;
159
+ tx: ReturnType<typeof import("./cosmos.feegrant.v1beta1").txClient>;
160
+ structure: Record<string, unknown>;
161
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
162
+ updateTX(client: IgniteClient): void;
163
+ };
164
+ } & {
165
+ CosmosNftV_1Beta_1: {
166
+ query: ReturnType<typeof import("./cosmos.nft.v1beta1").queryClient>;
167
+ tx: ReturnType<typeof import("./cosmos.nft.v1beta1").txClient>;
168
+ structure: Record<string, unknown>;
169
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
170
+ updateTX(client: IgniteClient): void;
171
+ };
212
172
  } & {
213
173
  CosmosCircuitV_1: {
214
174
  query: ReturnType<typeof import("./cosmos.circuit.v1").queryClient>;
@@ -218,33 +178,73 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
218
178
  updateTX(client: IgniteClient): void;
219
179
  };
220
180
  } & {
221
- CosmosUpgradeV_1Beta_1: {
222
- query: ReturnType<typeof import("./cosmos.upgrade.v1beta1").queryClient>;
223
- tx: ReturnType<typeof import("./cosmos.upgrade.v1beta1").txClient>;
181
+ IbcApplicationsFeeV_1: {
182
+ query: ReturnType<typeof import("./ibc.applications.fee.v1").queryClient>;
183
+ tx: ReturnType<typeof import("./ibc.applications.fee.v1").txClient>;
224
184
  structure: Record<string, unknown>;
225
185
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
226
186
  updateTX(client: IgniteClient): void;
227
187
  };
228
188
  } & {
229
- CosmosNftV_1Beta_1: {
230
- query: ReturnType<typeof import("./cosmos.nft.v1beta1").queryClient>;
231
- tx: ReturnType<typeof import("./cosmos.nft.v1beta1").txClient>;
189
+ IbcApplicationsInterchainAccountsControllerV_1: {
190
+ query: ReturnType<typeof import("./ibc.applications.interchain_accounts.controller.v1").queryClient>;
191
+ tx: ReturnType<typeof import("./ibc.applications.interchain_accounts.controller.v1").txClient>;
232
192
  structure: Record<string, unknown>;
233
193
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
234
194
  updateTX(client: IgniteClient): void;
235
195
  };
236
196
  } & {
237
- CosmosEvidenceV_1Beta_1: {
238
- query: ReturnType<typeof import("./cosmos.evidence.v1beta1").queryClient>;
239
- tx: ReturnType<typeof import("./cosmos.evidence.v1beta1").txClient>;
197
+ IbcApplicationsInterchainAccountsHostV_1: {
198
+ query: ReturnType<typeof import("./ibc.applications.interchain_accounts.host.v1").queryClient>;
199
+ tx: ReturnType<typeof import("./ibc.applications.interchain_accounts.host.v1").txClient>;
240
200
  structure: Record<string, unknown>;
241
201
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
242
202
  updateTX(client: IgniteClient): void;
243
203
  };
244
204
  } & {
245
- CosmosFeegrantV_1Beta_1: {
246
- query: ReturnType<typeof import("./cosmos.feegrant.v1beta1").queryClient>;
247
- tx: ReturnType<typeof import("./cosmos.feegrant.v1beta1").txClient>;
205
+ IbcApplicationsTransferV_1: {
206
+ query: ReturnType<typeof import("./ibc.applications.transfer.v1").queryClient>;
207
+ tx: ReturnType<typeof import("./ibc.applications.transfer.v1").txClient>;
208
+ structure: Record<string, unknown>;
209
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
210
+ updateTX(client: IgniteClient): void;
211
+ };
212
+ } & {
213
+ IbcCoreChannelV_1: {
214
+ query: ReturnType<typeof import("./ibc.core.channel.v1").queryClient>;
215
+ tx: ReturnType<typeof import("./ibc.core.channel.v1").txClient>;
216
+ structure: Record<string, unknown>;
217
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
218
+ updateTX(client: IgniteClient): void;
219
+ };
220
+ } & {
221
+ IbcCoreClientV_1: {
222
+ query: ReturnType<typeof import("./ibc.core.client.v1").queryClient>;
223
+ tx: ReturnType<typeof import("./ibc.core.client.v1").txClient>;
224
+ structure: Record<string, unknown>;
225
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
226
+ updateTX(client: IgniteClient): void;
227
+ };
228
+ } & {
229
+ IbcCoreConnectionV_1: {
230
+ query: ReturnType<typeof import("./ibc.core.connection.v1").queryClient>;
231
+ tx: ReturnType<typeof import("./ibc.core.connection.v1").txClient>;
232
+ structure: Record<string, unknown>;
233
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
234
+ updateTX(client: IgniteClient): void;
235
+ };
236
+ } & {
237
+ CosmosUpgradeV_1Beta_1: {
238
+ query: ReturnType<typeof import("./cosmos.upgrade.v1beta1").queryClient>;
239
+ tx: ReturnType<typeof import("./cosmos.upgrade.v1beta1").txClient>;
240
+ structure: Record<string, unknown>;
241
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
242
+ updateTX(client: IgniteClient): void;
243
+ };
244
+ } & {
245
+ CosmosEvidenceV_1Beta_1: {
246
+ query: ReturnType<typeof import("./cosmos.evidence.v1beta1").queryClient>;
247
+ tx: ReturnType<typeof import("./cosmos.evidence.v1beta1").txClient>;
248
248
  structure: Record<string, unknown>;
249
249
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
250
250
  updateTX(client: IgniteClient): void;
package/index.js CHANGED
@@ -4,13 +4,6 @@ import { IgniteClient } from "./client";
4
4
  import { MissingWalletError } from "./helpers";
5
5
  import { IgntModule as CardchainCardchain, msgTypes as CardchainCardchainMsgTypes } from './cardchain.cardchain';
6
6
  import { IgntModule as CardchainFeatureflag, msgTypes as CardchainFeatureflagMsgTypes } from './cardchain.featureflag';
7
- import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
8
- import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
9
- import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1';
10
- import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1';
11
- import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
12
- import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
13
- import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
14
7
  import { IgntModule as CosmosAuthV_1Beta_1, msgTypes as CosmosAuthV_1Beta_1MsgTypes } from './cosmos.auth.v1beta1';
15
8
  import { IgntModule as CosmosAuthzV_1Beta_1, msgTypes as CosmosAuthzV_1Beta_1MsgTypes } from './cosmos.authz.v1beta1';
16
9
  import { IgntModule as CosmosBankV_1Beta_1, msgTypes as CosmosBankV_1Beta_1MsgTypes } from './cosmos.bank.v1beta1';
@@ -28,24 +21,24 @@ import { IgntModule as CosmosSlashingV_1Beta_1, msgTypes as CosmosSlashingV_1Bet
28
21
  import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_1MsgTypes } from './cosmos.staking.v1beta1';
29
22
  import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1';
30
23
  import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1';
24
+ import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
25
+ import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
31
26
  import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
27
+ import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
28
+ import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
29
+ import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1';
30
+ import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1';
31
+ import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
32
+ import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
33
+ import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
32
34
  import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
33
- import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
34
35
  import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1';
35
- import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
36
36
  const Client = IgniteClient.plugin([
37
- CardchainCardchain, CardchainFeatureflag, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosCircuitV_1, CosmosUpgradeV_1Beta_1, CosmosNftV_1Beta_1, CosmosEvidenceV_1Beta_1, CosmosFeegrantV_1Beta_1
37
+ CardchainCardchain, CardchainFeatureflag, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosFeegrantV_1Beta_1, CosmosNftV_1Beta_1, CosmosCircuitV_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosUpgradeV_1Beta_1, CosmosEvidenceV_1Beta_1
38
38
  ]);
39
39
  const registry = new Registry([
40
40
  ...CardchainCardchainMsgTypes,
41
41
  ...CardchainFeatureflagMsgTypes,
42
- ...IbcApplicationsFeeV_1MsgTypes,
43
- ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
44
- ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
45
- ...IbcApplicationsTransferV_1MsgTypes,
46
- ...IbcCoreChannelV_1MsgTypes,
47
- ...IbcCoreClientV_1MsgTypes,
48
- ...IbcCoreConnectionV_1MsgTypes,
49
42
  ...CosmosAuthV_1Beta_1MsgTypes,
50
43
  ...CosmosAuthzV_1Beta_1MsgTypes,
51
44
  ...CosmosBankV_1Beta_1MsgTypes,
@@ -63,10 +56,17 @@ const registry = new Registry([
63
56
  ...CosmosStakingV_1Beta_1MsgTypes,
64
57
  ...CosmosTxV_1Beta_1MsgTypes,
65
58
  ...CosmosVestingV_1Beta_1MsgTypes,
59
+ ...CosmosFeegrantV_1Beta_1MsgTypes,
60
+ ...CosmosNftV_1Beta_1MsgTypes,
66
61
  ...CosmosCircuitV_1MsgTypes,
62
+ ...IbcApplicationsFeeV_1MsgTypes,
63
+ ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
64
+ ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
65
+ ...IbcApplicationsTransferV_1MsgTypes,
66
+ ...IbcCoreChannelV_1MsgTypes,
67
+ ...IbcCoreClientV_1MsgTypes,
68
+ ...IbcCoreConnectionV_1MsgTypes,
67
69
  ...CosmosUpgradeV_1Beta_1MsgTypes,
68
- ...CosmosNftV_1Beta_1MsgTypes,
69
70
  ...CosmosEvidenceV_1Beta_1MsgTypes,
70
- ...CosmosFeegrantV_1Beta_1MsgTypes,
71
71
  ]);
72
72
  export { Client, registry, MissingWalletError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentralcardgame-cardchain-client-ts",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "Autogenerated Typescript Client for crowdcontrol cardchain",
5
5
  "author": "Lxgr <lxgr@protonmail.com>",
6
6
  "license": "Apache-2.0",
@@ -18,6 +18,7 @@
18
18
  "upload": "npm run build && cp package.json lib/ && cd lib && npm publish"
19
19
  },
20
20
  "dependencies": {
21
+ "@bufbuild/protobuf": "^2.4.0",
21
22
  "@cosmjs/proto-signing": "0.33.1",
22
23
  "@cosmjs/stargate": "0.33.1",
23
24
  "@keplr-wallet/types": "^0.12.234",
@@ -33,10 +33,16 @@ export interface Module {
33
33
  * to be used in keeper construction.
34
34
  */
35
35
  overrideStoreKeys: StoreKeyConfig[];
36
+ /**
37
+ * skip_store_keys is an optional list of store keys to skip when constructing the
38
+ * module's keeper. This is useful when a module does not have a store key.
39
+ * NOTE: the provided environment variable will have a fake store service.
40
+ */
41
+ skipStoreKeys: string[];
36
42
  /**
37
43
  * order_migrations defines the order in which module migrations are performed.
38
44
  * If this is left empty, it uses the default migration order.
39
- * https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder
45
+ * https://pkg.go.dev/github.com/cosmos/cosmos-sdk/types/module#DefaultMigrationsOrder
40
46
  */
41
47
  orderMigrations: string[];
42
48
  /**
@@ -51,6 +57,12 @@ export interface Module {
51
57
  * no preparecheckstate function will be registered.
52
58
  */
53
59
  prepareCheckStaters: string[];
60
+ /**
61
+ * pre_blockers specifies the module names of pre blockers
62
+ * to call in the order in which they should be called. If this is left empty
63
+ * no pre blocker will be registered.
64
+ */
65
+ preBlockers: string[];
54
66
  }
55
67
  /**
56
68
  * StoreKeyConfig may be supplied to override the default module store key, which
@@ -14,9 +14,11 @@ function createBaseModule() {
14
14
  initGenesis: [],
15
15
  exportGenesis: [],
16
16
  overrideStoreKeys: [],
17
+ skipStoreKeys: [],
17
18
  orderMigrations: [],
18
19
  precommiters: [],
19
20
  prepareCheckStaters: [],
21
+ preBlockers: [],
20
22
  };
21
23
  }
22
24
  export const Module = {
@@ -39,6 +41,9 @@ export const Module = {
39
41
  for (const v of message.overrideStoreKeys) {
40
42
  StoreKeyConfig.encode(v, writer.uint32(50).fork()).join();
41
43
  }
44
+ for (const v of message.skipStoreKeys) {
45
+ writer.uint32(90).string(v);
46
+ }
42
47
  for (const v of message.orderMigrations) {
43
48
  writer.uint32(58).string(v);
44
49
  }
@@ -48,6 +53,9 @@ export const Module = {
48
53
  for (const v of message.prepareCheckStaters) {
49
54
  writer.uint32(74).string(v);
50
55
  }
56
+ for (const v of message.preBlockers) {
57
+ writer.uint32(82).string(v);
58
+ }
51
59
  return writer;
52
60
  },
53
61
  decode(input, length) {
@@ -99,6 +107,13 @@ export const Module = {
99
107
  message.overrideStoreKeys.push(StoreKeyConfig.decode(reader, reader.uint32()));
100
108
  continue;
101
109
  }
110
+ case 11: {
111
+ if (tag !== 90) {
112
+ break;
113
+ }
114
+ message.skipStoreKeys.push(reader.string());
115
+ continue;
116
+ }
102
117
  case 7: {
103
118
  if (tag !== 58) {
104
119
  break;
@@ -120,6 +135,13 @@ export const Module = {
120
135
  message.prepareCheckStaters.push(reader.string());
121
136
  continue;
122
137
  }
138
+ case 10: {
139
+ if (tag !== 82) {
140
+ break;
141
+ }
142
+ message.preBlockers.push(reader.string());
143
+ continue;
144
+ }
123
145
  }
124
146
  if ((tag & 7) === 4 || tag === 0) {
125
147
  break;
@@ -146,6 +168,9 @@ export const Module = {
146
168
  overrideStoreKeys: globalThis.Array.isArray(object?.overrideStoreKeys)
147
169
  ? object.overrideStoreKeys.map((e) => StoreKeyConfig.fromJSON(e))
148
170
  : [],
171
+ skipStoreKeys: globalThis.Array.isArray(object?.skipStoreKeys)
172
+ ? object.skipStoreKeys.map((e) => globalThis.String(e))
173
+ : [],
149
174
  orderMigrations: globalThis.Array.isArray(object?.orderMigrations)
150
175
  ? object.orderMigrations.map((e) => globalThis.String(e))
151
176
  : [],
@@ -155,6 +180,9 @@ export const Module = {
155
180
  prepareCheckStaters: globalThis.Array.isArray(object?.prepareCheckStaters)
156
181
  ? object.prepareCheckStaters.map((e) => globalThis.String(e))
157
182
  : [],
183
+ preBlockers: globalThis.Array.isArray(object?.preBlockers)
184
+ ? object.preBlockers.map((e) => globalThis.String(e))
185
+ : [],
158
186
  };
159
187
  },
160
188
  toJSON(message) {
@@ -177,6 +205,9 @@ export const Module = {
177
205
  if (message.overrideStoreKeys?.length) {
178
206
  obj.overrideStoreKeys = message.overrideStoreKeys.map((e) => StoreKeyConfig.toJSON(e));
179
207
  }
208
+ if (message.skipStoreKeys?.length) {
209
+ obj.skipStoreKeys = message.skipStoreKeys;
210
+ }
180
211
  if (message.orderMigrations?.length) {
181
212
  obj.orderMigrations = message.orderMigrations;
182
213
  }
@@ -186,6 +217,9 @@ export const Module = {
186
217
  if (message.prepareCheckStaters?.length) {
187
218
  obj.prepareCheckStaters = message.prepareCheckStaters;
188
219
  }
220
+ if (message.preBlockers?.length) {
221
+ obj.preBlockers = message.preBlockers;
222
+ }
189
223
  return obj;
190
224
  },
191
225
  create(base) {
@@ -199,9 +233,11 @@ export const Module = {
199
233
  message.initGenesis = object.initGenesis?.map((e) => e) || [];
200
234
  message.exportGenesis = object.exportGenesis?.map((e) => e) || [];
201
235
  message.overrideStoreKeys = object.overrideStoreKeys?.map((e) => StoreKeyConfig.fromPartial(e)) || [];
236
+ message.skipStoreKeys = object.skipStoreKeys?.map((e) => e) || [];
202
237
  message.orderMigrations = object.orderMigrations?.map((e) => e) || [];
203
238
  message.precommiters = object.precommiters?.map((e) => e) || [];
204
239
  message.prepareCheckStaters = object.prepareCheckStaters?.map((e) => e) || [];
240
+ message.preBlockers = object.preBlockers?.map((e) => e) || [];
205
241
  return message;
206
242
  },
207
243
  };
@@ -4,7 +4,7 @@ export declare const protobufPackage = "cosmos.app.v1alpha1";
4
4
  /** QueryConfigRequest is the Query/Config request type. */
5
5
  export interface QueryConfigRequest {
6
6
  }
7
- /** QueryConfigRequest is the Query/Config response type. */
7
+ /** QueryConfigResponse is the Query/Config response type. */
8
8
  export interface QueryConfigResponse {
9
9
  /** config is the current app config. */
10
10
  config: Config | undefined;
@@ -13,7 +13,11 @@ export declare const QueryConfigRequest: MessageFns<QueryConfigRequest>;
13
13
  export declare const QueryConfigResponse: MessageFns<QueryConfigResponse>;
14
14
  /** Query is the app module query service. */
15
15
  export interface Query {
16
- /** Config returns the current app config. */
16
+ /**
17
+ * Config returns the current app config.
18
+ *
19
+ * @deprecated
20
+ */
17
21
  Config(request: QueryConfigRequest): Promise<QueryConfigResponse>;
18
22
  }
19
23
  export declare const QueryServiceName = "cosmos.app.v1alpha1.Query";
@@ -8,6 +8,12 @@ export interface Module {
8
8
  moduleAccountPermissions: ModuleAccountPermission[];
9
9
  /** authority defines the custom module authority. If not set, defaults to the governance module. */
10
10
  authority: string;
11
+ /**
12
+ * enable_unordered_transactions determines whether unordered transactions should be supported or not.
13
+ * When true, unordered transactions will be validated and processed.
14
+ * When false, unordered transactions will be rejected.
15
+ */
16
+ enableUnorderedTransactions: boolean;
11
17
  }
12
18
  /** ModuleAccountPermission represents permissions for a module account. */
13
19
  export interface ModuleAccountPermission {
@@ -7,7 +7,7 @@
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  export const protobufPackage = "cosmos.auth.module.v1";
9
9
  function createBaseModule() {
10
- return { bech32Prefix: "", moduleAccountPermissions: [], authority: "" };
10
+ return { bech32Prefix: "", moduleAccountPermissions: [], authority: "", enableUnorderedTransactions: false };
11
11
  }
12
12
  export const Module = {
13
13
  encode(message, writer = new BinaryWriter()) {
@@ -20,6 +20,9 @@ export const Module = {
20
20
  if (message.authority !== "") {
21
21
  writer.uint32(26).string(message.authority);
22
22
  }
23
+ if (message.enableUnorderedTransactions !== false) {
24
+ writer.uint32(32).bool(message.enableUnorderedTransactions);
25
+ }
23
26
  return writer;
24
27
  },
25
28
  decode(input, length) {
@@ -50,6 +53,13 @@ export const Module = {
50
53
  message.authority = reader.string();
51
54
  continue;
52
55
  }
56
+ case 4: {
57
+ if (tag !== 32) {
58
+ break;
59
+ }
60
+ message.enableUnorderedTransactions = reader.bool();
61
+ continue;
62
+ }
53
63
  }
54
64
  if ((tag & 7) === 4 || tag === 0) {
55
65
  break;
@@ -65,6 +75,9 @@ export const Module = {
65
75
  ? object.moduleAccountPermissions.map((e) => ModuleAccountPermission.fromJSON(e))
66
76
  : [],
67
77
  authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
78
+ enableUnorderedTransactions: isSet(object.enableUnorderedTransactions)
79
+ ? globalThis.Boolean(object.enableUnorderedTransactions)
80
+ : false,
68
81
  };
69
82
  },
70
83
  toJSON(message) {
@@ -78,6 +91,9 @@ export const Module = {
78
91
  if (message.authority !== "") {
79
92
  obj.authority = message.authority;
80
93
  }
94
+ if (message.enableUnorderedTransactions !== false) {
95
+ obj.enableUnorderedTransactions = message.enableUnorderedTransactions;
96
+ }
81
97
  return obj;
82
98
  },
83
99
  create(base) {
@@ -89,6 +105,7 @@ export const Module = {
89
105
  message.moduleAccountPermissions =
90
106
  object.moduleAccountPermissions?.map((e) => ModuleAccountPermission.fromPartial(e)) || [];
91
107
  message.authority = object.authority ?? "";
108
+ message.enableUnorderedTransactions = object.enableUnorderedTransactions ?? false;
92
109
  return message;
93
110
  },
94
111
  };