decentralcardgame-cardchain-client-ts 0.0.42 → 0.0.43

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.
@@ -50,12 +50,13 @@ import { MsgEncounterCreate } from "../types/cardchain/cardchain/tx";
50
50
  import { MsgEncounterEdit } from "../types/cardchain/cardchain/tx";
51
51
  import { MsgEncounterDo } from "../types/cardchain/cardchain/tx";
52
52
  import { MsgEncounterClose } from "../types/cardchain/cardchain/tx";
53
+ import { MsgEncounterDelete } from "../types/cardchain/cardchain/tx";
53
54
  import { MsgEarlyAccessDisinvite } from "../types/cardchain/cardchain/tx";
54
55
  import { MsgCardBan } from "../types/cardchain/cardchain/tx";
55
56
  import { MsgEarlyAccessGrant } from "../types/cardchain/cardchain/tx";
56
57
  import { MsgSetActivate } from "../types/cardchain/cardchain/tx";
57
58
  import { MsgCardCopyrightClaim } from "../types/cardchain/cardchain/tx";
58
- 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, MsgEncounterEdit, MsgEncounterDo, MsgEncounterClose, MsgEarlyAccessDisinvite, MsgCardBan, MsgEarlyAccessGrant, MsgSetActivate, MsgCardCopyrightClaim };
59
+ 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, MsgEncounterEdit, MsgEncounterDo, MsgEncounterClose, MsgEncounterDelete, MsgEarlyAccessDisinvite, MsgCardBan, MsgEarlyAccessGrant, MsgSetActivate, MsgCardCopyrightClaim };
59
60
  type sendMsgUpdateParamsParams = {
60
61
  value: MsgUpdateParams;
61
62
  fee?: StdFee;
@@ -296,6 +297,11 @@ type sendMsgEncounterCloseParams = {
296
297
  fee?: StdFee;
297
298
  memo?: string;
298
299
  };
300
+ type sendMsgEncounterDeleteParams = {
301
+ value: MsgEncounterDelete;
302
+ fee?: StdFee;
303
+ memo?: string;
304
+ };
299
305
  type sendMsgEarlyAccessDisinviteParams = {
300
306
  value: MsgEarlyAccessDisinvite;
301
307
  fee?: StdFee;
@@ -465,6 +471,9 @@ type msgEncounterDoParams = {
465
471
  type msgEncounterCloseParams = {
466
472
  value: MsgEncounterClose;
467
473
  };
474
+ type msgEncounterDeleteParams = {
475
+ value: MsgEncounterDelete;
476
+ };
468
477
  type msgEarlyAccessDisinviteParams = {
469
478
  value: MsgEarlyAccessDisinvite;
470
479
  };
@@ -535,6 +544,7 @@ export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
535
544
  sendMsgEncounterEdit({ value, fee, memo }: sendMsgEncounterEditParams): Promise<DeliverTxResponse>;
536
545
  sendMsgEncounterDo({ value, fee, memo }: sendMsgEncounterDoParams): Promise<DeliverTxResponse>;
537
546
  sendMsgEncounterClose({ value, fee, memo }: sendMsgEncounterCloseParams): Promise<DeliverTxResponse>;
547
+ sendMsgEncounterDelete({ value, fee, memo }: sendMsgEncounterDeleteParams): Promise<DeliverTxResponse>;
538
548
  sendMsgEarlyAccessDisinvite({ value, fee, memo }: sendMsgEarlyAccessDisinviteParams): Promise<DeliverTxResponse>;
539
549
  sendMsgCardBan({ value, fee, memo }: sendMsgCardBanParams): Promise<DeliverTxResponse>;
540
550
  sendMsgEarlyAccessGrant({ value, fee, memo }: sendMsgEarlyAccessGrantParams): Promise<DeliverTxResponse>;
@@ -588,6 +598,7 @@ export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
588
598
  msgEncounterEdit({ value }: msgEncounterEditParams): EncodeObject;
589
599
  msgEncounterDo({ value }: msgEncounterDoParams): EncodeObject;
590
600
  msgEncounterClose({ value }: msgEncounterCloseParams): EncodeObject;
601
+ msgEncounterDelete({ value }: msgEncounterDeleteParams): EncodeObject;
591
602
  msgEarlyAccessDisinvite({ value }: msgEarlyAccessDisinviteParams): EncodeObject;
592
603
  msgCardBan({ value }: msgCardBanParams): EncodeObject;
593
604
  msgEarlyAccessGrant({ value }: msgEarlyAccessGrantParams): EncodeObject;
@@ -52,6 +52,7 @@ import { MsgEncounterCreate } from "../types/cardchain/cardchain/tx";
52
52
  import { MsgEncounterEdit } from "../types/cardchain/cardchain/tx";
53
53
  import { MsgEncounterDo } from "../types/cardchain/cardchain/tx";
54
54
  import { MsgEncounterClose } from "../types/cardchain/cardchain/tx";
55
+ import { MsgEncounterDelete } from "../types/cardchain/cardchain/tx";
55
56
  import { MsgEarlyAccessDisinvite } from "../types/cardchain/cardchain/tx";
56
57
  import { MsgCardBan } from "../types/cardchain/cardchain/tx";
57
58
  import { MsgEarlyAccessGrant } from "../types/cardchain/cardchain/tx";
@@ -86,7 +87,7 @@ import { VotingResult as typeVotingResult } from "./types";
86
87
  import { SingleVote as typeSingleVote } from "./types";
87
88
  import { VotingResults as typeVotingResults } from "./types";
88
89
  import { Zealy as typeZealy } from "./types";
89
- 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, MsgEncounterEdit, MsgEncounterDo, MsgEncounterClose, MsgEarlyAccessDisinvite, MsgCardBan, MsgEarlyAccessGrant, MsgSetActivate, MsgCardCopyrightClaim };
90
+ 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, MsgEncounterEdit, MsgEncounterDo, MsgEncounterClose, MsgEncounterDelete, MsgEarlyAccessDisinvite, MsgCardBan, MsgEarlyAccessGrant, MsgSetActivate, MsgCardCopyrightClaim };
90
91
  export const registry = new Registry(msgTypes);
91
92
  function getStructure(template) {
92
93
  const structure = { fields: [] };
@@ -774,6 +775,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
774
775
  throw new Error('TxClient:sendMsgEncounterClose: Could not broadcast Tx: ' + e.message);
775
776
  }
776
777
  },
778
+ async sendMsgEncounterDelete({ value, fee, memo }) {
779
+ if (!signer) {
780
+ throw new Error('TxClient:sendMsgEncounterDelete: Unable to sign Tx. Signer is not present.');
781
+ }
782
+ try {
783
+ const { address } = (await signer.getAccounts())[0];
784
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, aminoTypes: new AminoAdapter(registry) });
785
+ let msg = this.msgEncounterDelete({ value: MsgEncounterDelete.fromPartial(value) });
786
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
787
+ }
788
+ catch (e) {
789
+ throw new Error('TxClient:sendMsgEncounterDelete: Could not broadcast Tx: ' + e.message);
790
+ }
791
+ },
777
792
  async sendMsgEarlyAccessDisinvite({ value, fee, memo }) {
778
793
  if (!signer) {
779
794
  throw new Error('TxClient:sendMsgEarlyAccessDisinvite: Unable to sign Tx. Signer is not present.');
@@ -1228,6 +1243,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
1228
1243
  throw new Error('TxClient:MsgEncounterClose: Could not create message: ' + e.message);
1229
1244
  }
1230
1245
  },
1246
+ msgEncounterDelete({ value }) {
1247
+ try {
1248
+ return { typeUrl: "/cardchain.cardchain.MsgEncounterDelete", value: MsgEncounterDelete.fromPartial(value) };
1249
+ }
1250
+ catch (e) {
1251
+ throw new Error('TxClient:MsgEncounterDelete: Could not create message: ' + e.message);
1252
+ }
1253
+ },
1231
1254
  msgEarlyAccessDisinvite({ value }) {
1232
1255
  try {
1233
1256
  return { typeUrl: "/cardchain.cardchain.MsgEarlyAccessDisinvite", value: MsgEarlyAccessDisinvite.fromPartial(value) };
@@ -46,6 +46,7 @@ import { MsgEncounterCreate } from "../types/cardchain/cardchain/tx";
46
46
  import { MsgEncounterEdit } from "../types/cardchain/cardchain/tx";
47
47
  import { MsgEncounterDo } from "../types/cardchain/cardchain/tx";
48
48
  import { MsgEncounterClose } from "../types/cardchain/cardchain/tx";
49
+ import { MsgEncounterDelete } from "../types/cardchain/cardchain/tx";
49
50
  import { MsgEarlyAccessDisinvite } from "../types/cardchain/cardchain/tx";
50
51
  import { MsgCardBan } from "../types/cardchain/cardchain/tx";
51
52
  import { MsgEarlyAccessGrant } from "../types/cardchain/cardchain/tx";
@@ -100,6 +101,7 @@ const msgTypes = [
100
101
  ["/cardchain.cardchain.MsgEncounterEdit", MsgEncounterEdit],
101
102
  ["/cardchain.cardchain.MsgEncounterDo", MsgEncounterDo],
102
103
  ["/cardchain.cardchain.MsgEncounterClose", MsgEncounterClose],
104
+ ["/cardchain.cardchain.MsgEncounterDelete", MsgEncounterDelete],
103
105
  ["/cardchain.cardchain.MsgEarlyAccessDisinvite", MsgEarlyAccessDisinvite],
104
106
  ["/cardchain.cardchain.MsgCardBan", MsgCardBan],
105
107
  ["/cardchain.cardchain.MsgEarlyAccessGrant", MsgEarlyAccessGrant],
package/lib/index.d.ts CHANGED
@@ -42,17 +42,17 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
42
42
  updateTX(client: IgniteClient): void;
43
43
  };
44
44
  } & {
45
- CosmosFeegrantV_1Beta_1: {
46
- query: ReturnType<typeof import("./cosmos.feegrant.v1beta1").queryClient>;
47
- tx: ReturnType<typeof import("./cosmos.feegrant.v1beta1").txClient>;
45
+ CosmosEvidenceV_1Beta_1: {
46
+ query: ReturnType<typeof import("./cosmos.evidence.v1beta1").queryClient>;
47
+ tx: ReturnType<typeof import("./cosmos.evidence.v1beta1").txClient>;
48
48
  structure: Record<string, unknown>;
49
49
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
50
50
  updateTX(client: IgniteClient): void;
51
51
  };
52
52
  } & {
53
- CosmosUpgradeV_1Beta_1: {
54
- query: ReturnType<typeof import("./cosmos.upgrade.v1beta1").queryClient>;
55
- tx: ReturnType<typeof import("./cosmos.upgrade.v1beta1").txClient>;
53
+ CosmosFeegrantV_1Beta_1: {
54
+ query: ReturnType<typeof import("./cosmos.feegrant.v1beta1").queryClient>;
55
+ tx: ReturnType<typeof import("./cosmos.feegrant.v1beta1").txClient>;
56
56
  structure: Record<string, unknown>;
57
57
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
58
58
  updateTX(client: IgniteClient): void;
@@ -169,6 +169,22 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
169
169
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
170
170
  updateTX(client: IgniteClient): void;
171
171
  };
172
+ } & {
173
+ CosmosUpgradeV_1Beta_1: {
174
+ query: ReturnType<typeof import("./cosmos.upgrade.v1beta1").queryClient>;
175
+ tx: ReturnType<typeof import("./cosmos.upgrade.v1beta1").txClient>;
176
+ structure: Record<string, unknown>;
177
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
178
+ updateTX(client: IgniteClient): void;
179
+ };
180
+ } & {
181
+ CosmosCircuitV_1: {
182
+ query: ReturnType<typeof import("./cosmos.circuit.v1").queryClient>;
183
+ tx: ReturnType<typeof import("./cosmos.circuit.v1").txClient>;
184
+ structure: Record<string, unknown>;
185
+ registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
186
+ updateTX(client: IgniteClient): void;
187
+ };
172
188
  } & {
173
189
  IbcApplicationsFeeV_1: {
174
190
  query: ReturnType<typeof import("./ibc.applications.fee.v1").queryClient>;
@@ -225,22 +241,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
225
241
  registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
226
242
  updateTX(client: IgniteClient): void;
227
243
  };
228
- } & {
229
- CosmosCircuitV_1: {
230
- query: ReturnType<typeof import("./cosmos.circuit.v1").queryClient>;
231
- tx: ReturnType<typeof import("./cosmos.circuit.v1").txClient>;
232
- structure: Record<string, unknown>;
233
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
234
- updateTX(client: IgniteClient): void;
235
- };
236
- } & {
237
- CosmosEvidenceV_1Beta_1: {
238
- query: ReturnType<typeof import("./cosmos.evidence.v1beta1").queryClient>;
239
- tx: ReturnType<typeof import("./cosmos.evidence.v1beta1").txClient>;
240
- structure: Record<string, unknown>;
241
- registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
242
- updateTX(client: IgniteClient): void;
243
- };
244
244
  } & {
245
245
  CosmosNftV_1Beta_1: {
246
246
  query: ReturnType<typeof import("./cosmos.nft.v1beta1").queryClient>;
package/lib/index.js CHANGED
@@ -4,8 +4,8 @@ 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 CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1';
7
8
  import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
8
- import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
9
9
  import { IgntModule as CosmosAuthV_1Beta_1, msgTypes as CosmosAuthV_1Beta_1MsgTypes } from './cosmos.auth.v1beta1';
10
10
  import { IgntModule as CosmosAuthzV_1Beta_1, msgTypes as CosmosAuthzV_1Beta_1MsgTypes } from './cosmos.authz.v1beta1';
11
11
  import { IgntModule as CosmosBankV_1Beta_1, msgTypes as CosmosBankV_1Beta_1MsgTypes } from './cosmos.bank.v1beta1';
@@ -23,6 +23,8 @@ import { IgntModule as CosmosSlashingV_1Beta_1, msgTypes as CosmosSlashingV_1Bet
23
23
  import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_1MsgTypes } from './cosmos.staking.v1beta1';
24
24
  import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1';
25
25
  import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1';
26
+ import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
27
+ import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
26
28
  import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
27
29
  import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
28
30
  import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1';
@@ -30,17 +32,15 @@ import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTr
30
32
  import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
31
33
  import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
32
34
  import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
33
- import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
34
- import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1';
35
35
  import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
36
36
  const Client = IgniteClient.plugin([
37
- CardchainCardchain, CardchainFeatureflag, CosmosFeegrantV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosCircuitV_1, CosmosEvidenceV_1Beta_1, CosmosNftV_1Beta_1
37
+ CardchainCardchain, CardchainFeatureflag, CosmosEvidenceV_1Beta_1, CosmosFeegrantV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosCircuitV_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosNftV_1Beta_1
38
38
  ]);
39
39
  const registry = new Registry([
40
40
  ...CardchainCardchainMsgTypes,
41
41
  ...CardchainFeatureflagMsgTypes,
42
+ ...CosmosEvidenceV_1Beta_1MsgTypes,
42
43
  ...CosmosFeegrantV_1Beta_1MsgTypes,
43
- ...CosmosUpgradeV_1Beta_1MsgTypes,
44
44
  ...CosmosAuthV_1Beta_1MsgTypes,
45
45
  ...CosmosAuthzV_1Beta_1MsgTypes,
46
46
  ...CosmosBankV_1Beta_1MsgTypes,
@@ -58,6 +58,8 @@ const registry = new Registry([
58
58
  ...CosmosStakingV_1Beta_1MsgTypes,
59
59
  ...CosmosTxV_1Beta_1MsgTypes,
60
60
  ...CosmosVestingV_1Beta_1MsgTypes,
61
+ ...CosmosUpgradeV_1Beta_1MsgTypes,
62
+ ...CosmosCircuitV_1MsgTypes,
61
63
  ...IbcApplicationsFeeV_1MsgTypes,
62
64
  ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
63
65
  ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
@@ -65,8 +67,6 @@ const registry = new Registry([
65
67
  ...IbcCoreChannelV_1MsgTypes,
66
68
  ...IbcCoreClientV_1MsgTypes,
67
69
  ...IbcCoreConnectionV_1MsgTypes,
68
- ...CosmosCircuitV_1MsgTypes,
69
- ...CosmosEvidenceV_1Beta_1MsgTypes,
70
70
  ...CosmosNftV_1Beta_1MsgTypes,
71
71
  ]);
72
72
  export { Client, registry, MissingWalletError };
@@ -391,6 +391,14 @@ export interface MsgCardCopyrightClaim {
391
391
  }
392
392
  export interface MsgCardCopyrightClaimResponse {
393
393
  }
394
+ /** MsgEncounterDelete defines the MsgEncounterDelete message. */
395
+ export interface MsgEncounterDelete {
396
+ creator: string;
397
+ id: number;
398
+ }
399
+ /** MsgEncounterDeleteResponse defines the MsgEncounterDeleteResponse message. */
400
+ export interface MsgEncounterDeleteResponse {
401
+ }
394
402
  export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
395
403
  export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
396
404
  export declare const MsgUserCreate: MessageFns<MsgUserCreate>;
@@ -497,6 +505,8 @@ export declare const MsgSetActivate: MessageFns<MsgSetActivate>;
497
505
  export declare const MsgSetActivateResponse: MessageFns<MsgSetActivateResponse>;
498
506
  export declare const MsgCardCopyrightClaim: MessageFns<MsgCardCopyrightClaim>;
499
507
  export declare const MsgCardCopyrightClaimResponse: MessageFns<MsgCardCopyrightClaimResponse>;
508
+ export declare const MsgEncounterDelete: MessageFns<MsgEncounterDelete>;
509
+ export declare const MsgEncounterDeleteResponse: MessageFns<MsgEncounterDeleteResponse>;
500
510
  /** Msg defines the Msg service. */
501
511
  export interface Msg {
502
512
  /**
@@ -551,6 +561,7 @@ export interface Msg {
551
561
  EncounterEdit(request: MsgEncounterEdit): Promise<MsgEncounterEditResponse>;
552
562
  EncounterDo(request: MsgEncounterDo): Promise<MsgEncounterDoResponse>;
553
563
  EncounterClose(request: MsgEncounterClose): Promise<MsgEncounterCloseResponse>;
564
+ EncounterDelete(request: MsgEncounterDelete): Promise<MsgEncounterDeleteResponse>;
554
565
  EarlyAccessDisinvite(request: MsgEarlyAccessDisinvite): Promise<MsgEarlyAccessDisinviteResponse>;
555
566
  CardBan(request: MsgCardBan): Promise<MsgCardBanResponse>;
556
567
  EarlyAccessGrant(request: MsgEarlyAccessGrant): Promise<MsgEarlyAccessGrantResponse>;
@@ -612,6 +623,7 @@ export declare class MsgClientImpl implements Msg {
612
623
  EncounterEdit(request: MsgEncounterEdit): Promise<MsgEncounterEditResponse>;
613
624
  EncounterDo(request: MsgEncounterDo): Promise<MsgEncounterDoResponse>;
614
625
  EncounterClose(request: MsgEncounterClose): Promise<MsgEncounterCloseResponse>;
626
+ EncounterDelete(request: MsgEncounterDelete): Promise<MsgEncounterDeleteResponse>;
615
627
  EarlyAccessDisinvite(request: MsgEarlyAccessDisinvite): Promise<MsgEarlyAccessDisinviteResponse>;
616
628
  CardBan(request: MsgCardBan): Promise<MsgCardBanResponse>;
617
629
  EarlyAccessGrant(request: MsgEarlyAccessGrant): Promise<MsgEarlyAccessGrantResponse>;
@@ -6474,6 +6474,111 @@ export const MsgCardCopyrightClaimResponse = {
6474
6474
  return message;
6475
6475
  },
6476
6476
  };
6477
+ function createBaseMsgEncounterDelete() {
6478
+ return { creator: "", id: 0 };
6479
+ }
6480
+ export const MsgEncounterDelete = {
6481
+ encode(message, writer = new BinaryWriter()) {
6482
+ if (message.creator !== "") {
6483
+ writer.uint32(10).string(message.creator);
6484
+ }
6485
+ if (message.id !== 0) {
6486
+ writer.uint32(16).uint64(message.id);
6487
+ }
6488
+ return writer;
6489
+ },
6490
+ decode(input, length) {
6491
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6492
+ let end = length === undefined ? reader.len : reader.pos + length;
6493
+ const message = createBaseMsgEncounterDelete();
6494
+ while (reader.pos < end) {
6495
+ const tag = reader.uint32();
6496
+ switch (tag >>> 3) {
6497
+ case 1: {
6498
+ if (tag !== 10) {
6499
+ break;
6500
+ }
6501
+ message.creator = reader.string();
6502
+ continue;
6503
+ }
6504
+ case 2: {
6505
+ if (tag !== 16) {
6506
+ break;
6507
+ }
6508
+ message.id = longToNumber(reader.uint64());
6509
+ continue;
6510
+ }
6511
+ }
6512
+ if ((tag & 7) === 4 || tag === 0) {
6513
+ break;
6514
+ }
6515
+ reader.skip(tag & 7);
6516
+ }
6517
+ return message;
6518
+ },
6519
+ fromJSON(object) {
6520
+ return {
6521
+ creator: isSet(object.creator) ? globalThis.String(object.creator) : "",
6522
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
6523
+ };
6524
+ },
6525
+ toJSON(message) {
6526
+ const obj = {};
6527
+ if (message.creator !== "") {
6528
+ obj.creator = message.creator;
6529
+ }
6530
+ if (message.id !== 0) {
6531
+ obj.id = Math.round(message.id);
6532
+ }
6533
+ return obj;
6534
+ },
6535
+ create(base) {
6536
+ return MsgEncounterDelete.fromPartial(base ?? {});
6537
+ },
6538
+ fromPartial(object) {
6539
+ const message = createBaseMsgEncounterDelete();
6540
+ message.creator = object.creator ?? "";
6541
+ message.id = object.id ?? 0;
6542
+ return message;
6543
+ },
6544
+ };
6545
+ function createBaseMsgEncounterDeleteResponse() {
6546
+ return {};
6547
+ }
6548
+ export const MsgEncounterDeleteResponse = {
6549
+ encode(_, writer = new BinaryWriter()) {
6550
+ return writer;
6551
+ },
6552
+ decode(input, length) {
6553
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6554
+ let end = length === undefined ? reader.len : reader.pos + length;
6555
+ const message = createBaseMsgEncounterDeleteResponse();
6556
+ while (reader.pos < end) {
6557
+ const tag = reader.uint32();
6558
+ switch (tag >>> 3) {
6559
+ }
6560
+ if ((tag & 7) === 4 || tag === 0) {
6561
+ break;
6562
+ }
6563
+ reader.skip(tag & 7);
6564
+ }
6565
+ return message;
6566
+ },
6567
+ fromJSON(_) {
6568
+ return {};
6569
+ },
6570
+ toJSON(_) {
6571
+ const obj = {};
6572
+ return obj;
6573
+ },
6574
+ create(base) {
6575
+ return MsgEncounterDeleteResponse.fromPartial(base ?? {});
6576
+ },
6577
+ fromPartial(_) {
6578
+ const message = createBaseMsgEncounterDeleteResponse();
6579
+ return message;
6580
+ },
6581
+ };
6477
6582
  export const MsgServiceName = "cardchain.cardchain.Msg";
6478
6583
  export class MsgClientImpl {
6479
6584
  constructor(rpc, opts) {
@@ -6527,6 +6632,7 @@ export class MsgClientImpl {
6527
6632
  this.EncounterEdit = this.EncounterEdit.bind(this);
6528
6633
  this.EncounterDo = this.EncounterDo.bind(this);
6529
6634
  this.EncounterClose = this.EncounterClose.bind(this);
6635
+ this.EncounterDelete = this.EncounterDelete.bind(this);
6530
6636
  this.EarlyAccessDisinvite = this.EarlyAccessDisinvite.bind(this);
6531
6637
  this.CardBan = this.CardBan.bind(this);
6532
6638
  this.EarlyAccessGrant = this.EarlyAccessGrant.bind(this);
@@ -6773,6 +6879,11 @@ export class MsgClientImpl {
6773
6879
  const promise = this.rpc.request(this.service, "EncounterClose", data);
6774
6880
  return promise.then((data) => MsgEncounterCloseResponse.decode(new BinaryReader(data)));
6775
6881
  }
6882
+ EncounterDelete(request) {
6883
+ const data = MsgEncounterDelete.encode(request).finish();
6884
+ const promise = this.rpc.request(this.service, "EncounterDelete", data);
6885
+ return promise.then((data) => MsgEncounterDeleteResponse.decode(new BinaryReader(data)));
6886
+ }
6776
6887
  EarlyAccessDisinvite(request) {
6777
6888
  const data = MsgEarlyAccessDisinvite.encode(request).finish();
6778
6889
  const promise = this.rpc.request(this.service, "EarlyAccessDisinvite", data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentralcardgame-cardchain-client-ts",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "Autogenerated Typescript Client for crowdcontrol cardchain",
5
5
  "author": "Lxgr <lxgr@protonmail.com>",
6
6
  "license": "Apache-2.0",