decentralcardgame-cardchain-client-ts 0.0.17 → 0.0.19

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 (27) hide show
  1. package/DecentralCardGame.cardchain.cardchain/module.js +304 -310
  2. package/DecentralCardGame.cardchain.cardchain/module.ts +460 -466
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +60 -60
  4. package/DecentralCardGame.cardchain.cardchain/registry.ts +60 -60
  5. package/DecentralCardGame.cardchain.cardchain/rest.js +7 -31
  6. package/DecentralCardGame.cardchain.cardchain/rest.ts +9 -84
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/aminomessages.js +12 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/aminomessages.ts +32 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +0 -6
  10. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +0 -6
  11. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +11 -17
  12. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +11 -17
  13. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +0 -11
  14. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +0 -13
  15. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2 -331
  16. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2 -390
  17. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +8 -8
  18. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +9 -9
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +57 -81
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +56 -93
  21. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +50 -59
  22. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +53 -71
  23. package/DecentralCardGame.cardchain.cardchain/types.js +1 -4
  24. package/DecentralCardGame.cardchain.cardchain/types.ts +0 -6
  25. package/client.js +7 -2
  26. package/client.ts +165 -154
  27. package/package.json +1 -1
@@ -3,46 +3,46 @@ import { SigningStargateClient } from "@cosmjs/stargate";
3
3
  import { Registry } from "@cosmjs/proto-signing";
4
4
  import { msgTypes } from './registry';
5
5
  import { Api } from "./rest";
6
- import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
7
- import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
8
6
  import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
7
+ import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
8
+ import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
9
+ import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
10
+ import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
11
+ import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
12
+ import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
13
+ import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
14
+ import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
15
+ import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
16
+ import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
9
17
  import { MsgFinalizeSet } from "./types/cardchain/cardchain/tx";
18
+ import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
19
+ import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
20
+ import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
10
21
  import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
11
- import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
12
- import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
13
- import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
14
- import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
15
- import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
16
- import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
22
+ import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
17
23
  import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
18
24
  import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
19
- import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
20
- import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
21
- import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
22
- import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
25
+ import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
26
+ import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
27
+ import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
28
+ import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
29
+ import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
30
+ import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
23
31
  import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
24
- import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
32
+ import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
33
+ import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
34
+ import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
25
35
  import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
26
36
  import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
27
- import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
28
- import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
29
- import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
30
- import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
31
- import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
32
- import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
33
- import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
34
- import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
35
- import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
36
- import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
37
- import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
38
- import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
39
- import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
37
+ import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
40
38
  import { MsgAddArtworkToSet } from "./types/cardchain/cardchain/tx";
41
- import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
42
- import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
39
+ import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
40
+ import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
43
41
  import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
44
- import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
45
- import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
42
+ import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
43
+ import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
44
+ import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
45
+ import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
46
46
  import { Card as typeCard } from "./types";
47
47
  import { TimeStamp as typeTimeStamp } from "./types";
48
48
  import { CopyrightProposal as typeCopyrightProposal } from "./types";
@@ -56,18 +56,15 @@ import { Params as typeParams } from "./types";
56
56
  import { IgnoreMatches as typeIgnoreMatches } from "./types";
57
57
  import { IgnoreSellOffers as typeIgnoreSellOffers } from "./types";
58
58
  import { QueryQServerResponse as typeQueryQServerResponse } from "./types";
59
- import { IgnoreCouncils as typeIgnoreCouncils } from "./types";
60
59
  import { RunningAverage as typeRunningAverage } from "./types";
61
60
  import { Set as typeSet } from "./types";
62
61
  import { SetProposal as typeSetProposal } from "./types";
63
- import { CouncilParticipation as typeCouncilParticipation } from "./types";
64
62
  import { BoosterPack as typeBoosterPack } from "./types";
65
63
  import { AirDrops as typeAirDrops } from "./types";
66
64
  import { VotingResults as typeVotingResults } from "./types";
67
65
  import { VotingResult as typeVotingResult } from "./types";
68
66
  import { SingleVote as typeSingleVote } from "./types";
69
- import { VoteRight as typeVoteRight } from "./types";
70
- export { MsgAddArtwork, MsgSetSetStoryWriter, MsgBuyBoosterPack, MsgFinalizeSet, MsgSetUserWebsite, MsgBuyCardScheme, MsgSaveCardContent, MsgSetSetName, MsgVoteCard, MsgRewokeCouncilRegistration, MsgSetCardRarity, MsgDonateToCard, MsgRegisterForCouncil, MsgRemoveContributorFromSet, MsgConfirmMatch, MsgOpenMatch, MsgChangeArtist, MsgMultiVoteCard, MsgCreateSet, MsgSetProfileCard, MsgCommitCouncilResponse, MsgRestartCouncil, MsgReportMatch, MsgAddStoryToSet, MsgTransferBoosterPack, MsgTransferCard, MsgSetSetArtist, MsgOpenBoosterPack, MsgCreateSellOffer, MsgCreateCouncil, MsgRevealCouncilResponse, MsgSetUserBiography, MsgAddContributorToSet, MsgAddCardToSet, MsgAddArtworkToSet, MsgBuyCard, MsgCreateuser, MsgApointMatchReporter, MsgRemoveSellOffer, MsgRemoveCardFromSet };
67
+ export { MsgBuyBoosterPack, MsgAddCardToSet, MsgRemoveCardFromSet, MsgBuyCard, MsgChangeArtist, MsgTransferCard, MsgRemoveSellOffer, MsgRemoveContributorFromSet, MsgOpenMatch, MsgRestartCouncil, MsgAddContributorToSet, MsgFinalizeSet, MsgSetSetStoryWriter, MsgReportMatch, MsgRevealCouncilResponse, MsgSetUserWebsite, MsgCreateCouncil, MsgDonateToCard, MsgRegisterForCouncil, MsgSetSetArtist, MsgSetSetName, MsgVoteCard, MsgAddStoryToSet, MsgBuyCardScheme, MsgAddArtwork, MsgMultiVoteCard, MsgSetUserBiography, MsgRewokeCouncilRegistration, MsgCreateSellOffer, MsgSetProfileCard, MsgCommitCouncilResponse, MsgConfirmMatch, MsgAddArtworkToSet, MsgSetCardRarity, MsgSaveCardContent, MsgApointMatchReporter, MsgOpenBoosterPack, MsgCreateuser, MsgCreateSet, MsgTransferBoosterPack };
71
68
  export const registry = new Registry(msgTypes);
72
69
  function getStructure(template) {
73
70
  const structure = { fields: [] };
@@ -83,396 +80,396 @@ const defaultFee = {
83
80
  };
84
81
  export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
85
82
  return {
86
- async sendMsgAddArtwork({ value, fee, memo }) {
83
+ async sendMsgBuyBoosterPack({ value, fee, memo }) {
87
84
  if (!signer) {
88
- throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.');
85
+ throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.');
89
86
  }
90
87
  try {
91
88
  const { address } = (await signer.getAccounts())[0];
92
89
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
93
- let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) });
90
+ let msg = this.msgBuyBoosterPack({ value: MsgBuyBoosterPack.fromPartial(value) });
94
91
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
95
92
  }
96
93
  catch (e) {
97
- throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message);
94
+ throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: ' + e.message);
98
95
  }
99
96
  },
100
- async sendMsgSetSetStoryWriter({ value, fee, memo }) {
97
+ async sendMsgAddCardToSet({ value, fee, memo }) {
101
98
  if (!signer) {
102
- throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.');
99
+ throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.');
103
100
  }
104
101
  try {
105
102
  const { address } = (await signer.getAccounts())[0];
106
103
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
107
- let msg = this.msgSetSetStoryWriter({ value: MsgSetSetStoryWriter.fromPartial(value) });
104
+ let msg = this.msgAddCardToSet({ value: MsgAddCardToSet.fromPartial(value) });
108
105
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
109
106
  }
110
107
  catch (e) {
111
- throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: ' + e.message);
108
+ throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: ' + e.message);
112
109
  }
113
110
  },
114
- async sendMsgBuyBoosterPack({ value, fee, memo }) {
111
+ async sendMsgRemoveCardFromSet({ value, fee, memo }) {
115
112
  if (!signer) {
116
- throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.');
113
+ throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.');
117
114
  }
118
115
  try {
119
116
  const { address } = (await signer.getAccounts())[0];
120
117
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
121
- let msg = this.msgBuyBoosterPack({ value: MsgBuyBoosterPack.fromPartial(value) });
118
+ let msg = this.msgRemoveCardFromSet({ value: MsgRemoveCardFromSet.fromPartial(value) });
122
119
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
123
120
  }
124
121
  catch (e) {
125
- throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: ' + e.message);
122
+ throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: ' + e.message);
126
123
  }
127
124
  },
128
- async sendMsgFinalizeSet({ value, fee, memo }) {
125
+ async sendMsgBuyCard({ value, fee, memo }) {
129
126
  if (!signer) {
130
- throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.');
127
+ throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.');
131
128
  }
132
129
  try {
133
130
  const { address } = (await signer.getAccounts())[0];
134
131
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
135
- let msg = this.msgFinalizeSet({ value: MsgFinalizeSet.fromPartial(value) });
132
+ let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) });
136
133
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
137
134
  }
138
135
  catch (e) {
139
- throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: ' + e.message);
136
+ throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message);
140
137
  }
141
138
  },
142
- async sendMsgSetUserWebsite({ value, fee, memo }) {
139
+ async sendMsgChangeArtist({ value, fee, memo }) {
143
140
  if (!signer) {
144
- throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.');
141
+ throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.');
145
142
  }
146
143
  try {
147
144
  const { address } = (await signer.getAccounts())[0];
148
145
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
149
- let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) });
146
+ let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) });
150
147
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
151
148
  }
152
149
  catch (e) {
153
- throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message);
150
+ throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message);
154
151
  }
155
152
  },
156
- async sendMsgBuyCardScheme({ value, fee, memo }) {
153
+ async sendMsgTransferCard({ value, fee, memo }) {
157
154
  if (!signer) {
158
- throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.');
155
+ throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.');
159
156
  }
160
157
  try {
161
158
  const { address } = (await signer.getAccounts())[0];
162
159
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
163
- let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) });
160
+ let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) });
164
161
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
165
162
  }
166
163
  catch (e) {
167
- throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message);
164
+ throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message);
168
165
  }
169
166
  },
170
- async sendMsgSaveCardContent({ value, fee, memo }) {
167
+ async sendMsgRemoveSellOffer({ value, fee, memo }) {
171
168
  if (!signer) {
172
- throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.');
169
+ throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
173
170
  }
174
171
  try {
175
172
  const { address } = (await signer.getAccounts())[0];
176
173
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
177
- let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) });
174
+ let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
178
175
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
179
176
  }
180
177
  catch (e) {
181
- throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message);
178
+ throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
182
179
  }
183
180
  },
184
- async sendMsgSetSetName({ value, fee, memo }) {
181
+ async sendMsgRemoveContributorFromSet({ value, fee, memo }) {
185
182
  if (!signer) {
186
- throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.');
183
+ throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.');
187
184
  }
188
185
  try {
189
186
  const { address } = (await signer.getAccounts())[0];
190
187
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
191
- let msg = this.msgSetSetName({ value: MsgSetSetName.fromPartial(value) });
188
+ let msg = this.msgRemoveContributorFromSet({ value: MsgRemoveContributorFromSet.fromPartial(value) });
192
189
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
193
190
  }
194
191
  catch (e) {
195
- throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: ' + e.message);
192
+ throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: ' + e.message);
196
193
  }
197
194
  },
198
- async sendMsgVoteCard({ value, fee, memo }) {
195
+ async sendMsgOpenMatch({ value, fee, memo }) {
199
196
  if (!signer) {
200
- throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.');
197
+ throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.');
201
198
  }
202
199
  try {
203
200
  const { address } = (await signer.getAccounts())[0];
204
201
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
205
- let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) });
202
+ let msg = this.msgOpenMatch({ value: MsgOpenMatch.fromPartial(value) });
206
203
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
207
204
  }
208
205
  catch (e) {
209
- throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message);
206
+ throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: ' + e.message);
210
207
  }
211
208
  },
212
- async sendMsgRewokeCouncilRegistration({ value, fee, memo }) {
209
+ async sendMsgRestartCouncil({ value, fee, memo }) {
213
210
  if (!signer) {
214
- throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.');
211
+ throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.');
215
212
  }
216
213
  try {
217
214
  const { address } = (await signer.getAccounts())[0];
218
215
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
219
- let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) });
216
+ let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) });
220
217
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
221
218
  }
222
219
  catch (e) {
223
- throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message);
220
+ throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message);
224
221
  }
225
222
  },
226
- async sendMsgSetCardRarity({ value, fee, memo }) {
223
+ async sendMsgAddContributorToSet({ value, fee, memo }) {
227
224
  if (!signer) {
228
- throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.');
225
+ throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.');
229
226
  }
230
227
  try {
231
228
  const { address } = (await signer.getAccounts())[0];
232
229
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
233
- let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) });
230
+ let msg = this.msgAddContributorToSet({ value: MsgAddContributorToSet.fromPartial(value) });
234
231
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
235
232
  }
236
233
  catch (e) {
237
- throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message);
234
+ throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: ' + e.message);
238
235
  }
239
236
  },
240
- async sendMsgDonateToCard({ value, fee, memo }) {
237
+ async sendMsgFinalizeSet({ value, fee, memo }) {
241
238
  if (!signer) {
242
- throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.');
239
+ throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.');
243
240
  }
244
241
  try {
245
242
  const { address } = (await signer.getAccounts())[0];
246
243
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
247
- let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) });
244
+ let msg = this.msgFinalizeSet({ value: MsgFinalizeSet.fromPartial(value) });
248
245
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
249
246
  }
250
247
  catch (e) {
251
- throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message);
248
+ throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: ' + e.message);
252
249
  }
253
250
  },
254
- async sendMsgRegisterForCouncil({ value, fee, memo }) {
251
+ async sendMsgSetSetStoryWriter({ value, fee, memo }) {
255
252
  if (!signer) {
256
- throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.');
253
+ throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.');
257
254
  }
258
255
  try {
259
256
  const { address } = (await signer.getAccounts())[0];
260
257
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
261
- let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) });
258
+ let msg = this.msgSetSetStoryWriter({ value: MsgSetSetStoryWriter.fromPartial(value) });
262
259
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
263
260
  }
264
261
  catch (e) {
265
- throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message);
262
+ throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: ' + e.message);
266
263
  }
267
264
  },
268
- async sendMsgRemoveContributorFromSet({ value, fee, memo }) {
265
+ async sendMsgReportMatch({ value, fee, memo }) {
269
266
  if (!signer) {
270
- throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.');
267
+ throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.');
271
268
  }
272
269
  try {
273
270
  const { address } = (await signer.getAccounts())[0];
274
271
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
275
- let msg = this.msgRemoveContributorFromSet({ value: MsgRemoveContributorFromSet.fromPartial(value) });
272
+ let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) });
276
273
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
277
274
  }
278
275
  catch (e) {
279
- throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: ' + e.message);
276
+ throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message);
280
277
  }
281
278
  },
282
- async sendMsgConfirmMatch({ value, fee, memo }) {
279
+ async sendMsgRevealCouncilResponse({ value, fee, memo }) {
283
280
  if (!signer) {
284
- throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.');
281
+ throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.');
285
282
  }
286
283
  try {
287
284
  const { address } = (await signer.getAccounts())[0];
288
285
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
289
- let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) });
286
+ let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) });
290
287
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
291
288
  }
292
289
  catch (e) {
293
- throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message);
290
+ throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message);
294
291
  }
295
292
  },
296
- async sendMsgOpenMatch({ value, fee, memo }) {
293
+ async sendMsgSetUserWebsite({ value, fee, memo }) {
297
294
  if (!signer) {
298
- throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.');
295
+ throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.');
299
296
  }
300
297
  try {
301
298
  const { address } = (await signer.getAccounts())[0];
302
299
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
303
- let msg = this.msgOpenMatch({ value: MsgOpenMatch.fromPartial(value) });
300
+ let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) });
304
301
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
305
302
  }
306
303
  catch (e) {
307
- throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: ' + e.message);
304
+ throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message);
308
305
  }
309
306
  },
310
- async sendMsgChangeArtist({ value, fee, memo }) {
307
+ async sendMsgCreateCouncil({ value, fee, memo }) {
311
308
  if (!signer) {
312
- throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.');
309
+ throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.');
313
310
  }
314
311
  try {
315
312
  const { address } = (await signer.getAccounts())[0];
316
313
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
317
- let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) });
314
+ let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) });
318
315
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
319
316
  }
320
317
  catch (e) {
321
- throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message);
318
+ throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message);
322
319
  }
323
320
  },
324
- async sendMsgMultiVoteCard({ value, fee, memo }) {
321
+ async sendMsgDonateToCard({ value, fee, memo }) {
325
322
  if (!signer) {
326
- throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.');
323
+ throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.');
327
324
  }
328
325
  try {
329
326
  const { address } = (await signer.getAccounts())[0];
330
327
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
331
- let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) });
328
+ let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) });
332
329
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
333
330
  }
334
331
  catch (e) {
335
- throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message);
332
+ throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message);
336
333
  }
337
334
  },
338
- async sendMsgCreateSet({ value, fee, memo }) {
335
+ async sendMsgRegisterForCouncil({ value, fee, memo }) {
339
336
  if (!signer) {
340
- throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.');
337
+ throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.');
341
338
  }
342
339
  try {
343
340
  const { address } = (await signer.getAccounts())[0];
344
341
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
345
- let msg = this.msgCreateSet({ value: MsgCreateSet.fromPartial(value) });
342
+ let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) });
346
343
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
347
344
  }
348
345
  catch (e) {
349
- throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: ' + e.message);
346
+ throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message);
350
347
  }
351
348
  },
352
- async sendMsgSetProfileCard({ value, fee, memo }) {
349
+ async sendMsgSetSetArtist({ value, fee, memo }) {
353
350
  if (!signer) {
354
- throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.');
351
+ throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.');
355
352
  }
356
353
  try {
357
354
  const { address } = (await signer.getAccounts())[0];
358
355
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
359
- let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) });
356
+ let msg = this.msgSetSetArtist({ value: MsgSetSetArtist.fromPartial(value) });
360
357
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
361
358
  }
362
359
  catch (e) {
363
- throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message);
360
+ throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: ' + e.message);
364
361
  }
365
362
  },
366
- async sendMsgCommitCouncilResponse({ value, fee, memo }) {
363
+ async sendMsgSetSetName({ value, fee, memo }) {
367
364
  if (!signer) {
368
- throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.');
365
+ throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.');
369
366
  }
370
367
  try {
371
368
  const { address } = (await signer.getAccounts())[0];
372
369
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
373
- let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) });
370
+ let msg = this.msgSetSetName({ value: MsgSetSetName.fromPartial(value) });
374
371
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
375
372
  }
376
373
  catch (e) {
377
- throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message);
374
+ throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: ' + e.message);
378
375
  }
379
376
  },
380
- async sendMsgRestartCouncil({ value, fee, memo }) {
377
+ async sendMsgVoteCard({ value, fee, memo }) {
381
378
  if (!signer) {
382
- throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.');
379
+ throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.');
383
380
  }
384
381
  try {
385
382
  const { address } = (await signer.getAccounts())[0];
386
383
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
387
- let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) });
384
+ let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) });
388
385
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
389
386
  }
390
387
  catch (e) {
391
- throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message);
388
+ throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message);
392
389
  }
393
390
  },
394
- async sendMsgReportMatch({ value, fee, memo }) {
391
+ async sendMsgAddStoryToSet({ value, fee, memo }) {
395
392
  if (!signer) {
396
- throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.');
393
+ throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.');
397
394
  }
398
395
  try {
399
396
  const { address } = (await signer.getAccounts())[0];
400
397
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
401
- let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) });
398
+ let msg = this.msgAddStoryToSet({ value: MsgAddStoryToSet.fromPartial(value) });
402
399
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
403
400
  }
404
401
  catch (e) {
405
- throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message);
402
+ throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: ' + e.message);
406
403
  }
407
404
  },
408
- async sendMsgAddStoryToSet({ value, fee, memo }) {
405
+ async sendMsgBuyCardScheme({ value, fee, memo }) {
409
406
  if (!signer) {
410
- throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.');
407
+ throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.');
411
408
  }
412
409
  try {
413
410
  const { address } = (await signer.getAccounts())[0];
414
411
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
415
- let msg = this.msgAddStoryToSet({ value: MsgAddStoryToSet.fromPartial(value) });
412
+ let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) });
416
413
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
417
414
  }
418
415
  catch (e) {
419
- throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: ' + e.message);
416
+ throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message);
420
417
  }
421
418
  },
422
- async sendMsgTransferBoosterPack({ value, fee, memo }) {
419
+ async sendMsgAddArtwork({ value, fee, memo }) {
423
420
  if (!signer) {
424
- throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.');
421
+ throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.');
425
422
  }
426
423
  try {
427
424
  const { address } = (await signer.getAccounts())[0];
428
425
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
429
- let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) });
426
+ let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) });
430
427
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
431
428
  }
432
429
  catch (e) {
433
- throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message);
430
+ throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message);
434
431
  }
435
432
  },
436
- async sendMsgTransferCard({ value, fee, memo }) {
433
+ async sendMsgMultiVoteCard({ value, fee, memo }) {
437
434
  if (!signer) {
438
- throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.');
435
+ throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.');
439
436
  }
440
437
  try {
441
438
  const { address } = (await signer.getAccounts())[0];
442
439
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
443
- let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) });
440
+ let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) });
444
441
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
445
442
  }
446
443
  catch (e) {
447
- throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message);
444
+ throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message);
448
445
  }
449
446
  },
450
- async sendMsgSetSetArtist({ value, fee, memo }) {
447
+ async sendMsgSetUserBiography({ value, fee, memo }) {
451
448
  if (!signer) {
452
- throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.');
449
+ throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.');
453
450
  }
454
451
  try {
455
452
  const { address } = (await signer.getAccounts())[0];
456
453
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
457
- let msg = this.msgSetSetArtist({ value: MsgSetSetArtist.fromPartial(value) });
454
+ let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) });
458
455
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
459
456
  }
460
457
  catch (e) {
461
- throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: ' + e.message);
458
+ throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message);
462
459
  }
463
460
  },
464
- async sendMsgOpenBoosterPack({ value, fee, memo }) {
461
+ async sendMsgRewokeCouncilRegistration({ value, fee, memo }) {
465
462
  if (!signer) {
466
- throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.');
463
+ throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.');
467
464
  }
468
465
  try {
469
466
  const { address } = (await signer.getAccounts())[0];
470
467
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
471
- let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) });
468
+ let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) });
472
469
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
473
470
  }
474
471
  catch (e) {
475
- throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message);
472
+ throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message);
476
473
  }
477
474
  },
478
475
  async sendMsgCreateSellOffer({ value, fee, memo }) {
@@ -489,382 +486,382 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
489
486
  throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message);
490
487
  }
491
488
  },
492
- async sendMsgCreateCouncil({ value, fee, memo }) {
489
+ async sendMsgSetProfileCard({ value, fee, memo }) {
493
490
  if (!signer) {
494
- throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.');
491
+ throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.');
495
492
  }
496
493
  try {
497
494
  const { address } = (await signer.getAccounts())[0];
498
495
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
499
- let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) });
496
+ let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) });
500
497
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
501
498
  }
502
499
  catch (e) {
503
- throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message);
500
+ throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message);
504
501
  }
505
502
  },
506
- async sendMsgRevealCouncilResponse({ value, fee, memo }) {
503
+ async sendMsgCommitCouncilResponse({ value, fee, memo }) {
507
504
  if (!signer) {
508
- throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.');
505
+ throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.');
509
506
  }
510
507
  try {
511
508
  const { address } = (await signer.getAccounts())[0];
512
509
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
513
- let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) });
510
+ let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) });
514
511
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
515
512
  }
516
513
  catch (e) {
517
- throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message);
514
+ throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message);
518
515
  }
519
516
  },
520
- async sendMsgSetUserBiography({ value, fee, memo }) {
517
+ async sendMsgConfirmMatch({ value, fee, memo }) {
521
518
  if (!signer) {
522
- throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.');
519
+ throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.');
523
520
  }
524
521
  try {
525
522
  const { address } = (await signer.getAccounts())[0];
526
523
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
527
- let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) });
524
+ let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) });
528
525
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
529
526
  }
530
527
  catch (e) {
531
- throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message);
528
+ throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message);
532
529
  }
533
530
  },
534
- async sendMsgAddContributorToSet({ value, fee, memo }) {
531
+ async sendMsgAddArtworkToSet({ value, fee, memo }) {
535
532
  if (!signer) {
536
- throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.');
533
+ throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.');
537
534
  }
538
535
  try {
539
536
  const { address } = (await signer.getAccounts())[0];
540
537
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
541
- let msg = this.msgAddContributorToSet({ value: MsgAddContributorToSet.fromPartial(value) });
538
+ let msg = this.msgAddArtworkToSet({ value: MsgAddArtworkToSet.fromPartial(value) });
542
539
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
543
540
  }
544
541
  catch (e) {
545
- throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: ' + e.message);
542
+ throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: ' + e.message);
546
543
  }
547
544
  },
548
- async sendMsgAddCardToSet({ value, fee, memo }) {
545
+ async sendMsgSetCardRarity({ value, fee, memo }) {
549
546
  if (!signer) {
550
- throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.');
547
+ throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.');
551
548
  }
552
549
  try {
553
550
  const { address } = (await signer.getAccounts())[0];
554
551
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
555
- let msg = this.msgAddCardToSet({ value: MsgAddCardToSet.fromPartial(value) });
552
+ let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) });
556
553
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
557
554
  }
558
555
  catch (e) {
559
- throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: ' + e.message);
556
+ throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message);
560
557
  }
561
558
  },
562
- async sendMsgAddArtworkToSet({ value, fee, memo }) {
559
+ async sendMsgSaveCardContent({ value, fee, memo }) {
563
560
  if (!signer) {
564
- throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.');
561
+ throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.');
565
562
  }
566
563
  try {
567
564
  const { address } = (await signer.getAccounts())[0];
568
565
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
569
- let msg = this.msgAddArtworkToSet({ value: MsgAddArtworkToSet.fromPartial(value) });
566
+ let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) });
570
567
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
571
568
  }
572
569
  catch (e) {
573
- throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: ' + e.message);
570
+ throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message);
574
571
  }
575
572
  },
576
- async sendMsgBuyCard({ value, fee, memo }) {
573
+ async sendMsgApointMatchReporter({ value, fee, memo }) {
577
574
  if (!signer) {
578
- throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.');
575
+ throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.');
579
576
  }
580
577
  try {
581
578
  const { address } = (await signer.getAccounts())[0];
582
579
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
583
- let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) });
580
+ let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) });
584
581
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
585
582
  }
586
583
  catch (e) {
587
- throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message);
584
+ throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message);
588
585
  }
589
586
  },
590
- async sendMsgCreateuser({ value, fee, memo }) {
587
+ async sendMsgOpenBoosterPack({ value, fee, memo }) {
591
588
  if (!signer) {
592
- throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.');
589
+ throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.');
593
590
  }
594
591
  try {
595
592
  const { address } = (await signer.getAccounts())[0];
596
593
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
597
- let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) });
594
+ let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) });
598
595
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
599
596
  }
600
597
  catch (e) {
601
- throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message);
598
+ throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message);
602
599
  }
603
600
  },
604
- async sendMsgApointMatchReporter({ value, fee, memo }) {
601
+ async sendMsgCreateuser({ value, fee, memo }) {
605
602
  if (!signer) {
606
- throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.');
603
+ throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.');
607
604
  }
608
605
  try {
609
606
  const { address } = (await signer.getAccounts())[0];
610
607
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
611
- let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) });
608
+ let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) });
612
609
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
613
610
  }
614
611
  catch (e) {
615
- throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message);
612
+ throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message);
616
613
  }
617
614
  },
618
- async sendMsgRemoveSellOffer({ value, fee, memo }) {
615
+ async sendMsgCreateSet({ value, fee, memo }) {
619
616
  if (!signer) {
620
- throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
617
+ throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.');
621
618
  }
622
619
  try {
623
620
  const { address } = (await signer.getAccounts())[0];
624
621
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
625
- let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
622
+ let msg = this.msgCreateSet({ value: MsgCreateSet.fromPartial(value) });
626
623
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
627
624
  }
628
625
  catch (e) {
629
- throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
626
+ throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: ' + e.message);
630
627
  }
631
628
  },
632
- async sendMsgRemoveCardFromSet({ value, fee, memo }) {
629
+ async sendMsgTransferBoosterPack({ value, fee, memo }) {
633
630
  if (!signer) {
634
- throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.');
631
+ throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.');
635
632
  }
636
633
  try {
637
634
  const { address } = (await signer.getAccounts())[0];
638
635
  const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
639
- let msg = this.msgRemoveCardFromSet({ value: MsgRemoveCardFromSet.fromPartial(value) });
636
+ let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) });
640
637
  return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
641
638
  }
642
639
  catch (e) {
643
- throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: ' + e.message);
640
+ throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message);
644
641
  }
645
642
  },
646
- msgAddArtwork({ value }) {
643
+ msgBuyBoosterPack({ value }) {
647
644
  try {
648
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial(value) };
645
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack", value: MsgBuyBoosterPack.fromPartial(value) };
649
646
  }
650
647
  catch (e) {
651
- throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message);
648
+ throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message);
652
649
  }
653
650
  },
654
- msgSetSetStoryWriter({ value }) {
651
+ msgAddCardToSet({ value }) {
655
652
  try {
656
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", value: MsgSetSetStoryWriter.fromPartial(value) };
653
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", value: MsgAddCardToSet.fromPartial(value) };
657
654
  }
658
655
  catch (e) {
659
- throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message);
656
+ throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message);
660
657
  }
661
658
  },
662
- msgBuyBoosterPack({ value }) {
659
+ msgRemoveCardFromSet({ value }) {
663
660
  try {
664
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack", value: MsgBuyBoosterPack.fromPartial(value) };
661
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet", value: MsgRemoveCardFromSet.fromPartial(value) };
665
662
  }
666
663
  catch (e) {
667
- throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message);
664
+ throw new Error('TxClient:MsgRemoveCardFromSet: Could not create message: ' + e.message);
668
665
  }
669
666
  },
670
- msgFinalizeSet({ value }) {
667
+ msgBuyCard({ value }) {
671
668
  try {
672
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet", value: MsgFinalizeSet.fromPartial(value) };
669
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial(value) };
673
670
  }
674
671
  catch (e) {
675
- throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message);
672
+ throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message);
676
673
  }
677
674
  },
678
- msgSetUserWebsite({ value }) {
675
+ msgChangeArtist({ value }) {
679
676
  try {
680
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", value: MsgSetUserWebsite.fromPartial(value) };
677
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial(value) };
681
678
  }
682
679
  catch (e) {
683
- throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message);
680
+ throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message);
684
681
  }
685
682
  },
686
- msgBuyCardScheme({ value }) {
683
+ msgTransferCard({ value }) {
687
684
  try {
688
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial(value) };
685
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial(value) };
689
686
  }
690
687
  catch (e) {
691
- throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message);
688
+ throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message);
692
689
  }
693
690
  },
694
- msgSaveCardContent({ value }) {
691
+ msgRemoveSellOffer({ value }) {
695
692
  try {
696
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial(value) };
693
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial(value) };
697
694
  }
698
695
  catch (e) {
699
- throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message);
696
+ throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message);
700
697
  }
701
698
  },
702
- msgSetSetName({ value }) {
699
+ msgRemoveContributorFromSet({ value }) {
703
700
  try {
704
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName", value: MsgSetSetName.fromPartial(value) };
701
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet", value: MsgRemoveContributorFromSet.fromPartial(value) };
705
702
  }
706
703
  catch (e) {
707
- throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message);
704
+ throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message);
708
705
  }
709
706
  },
710
- msgVoteCard({ value }) {
707
+ msgOpenMatch({ value }) {
711
708
  try {
712
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial(value) };
709
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch", value: MsgOpenMatch.fromPartial(value) };
713
710
  }
714
711
  catch (e) {
715
- throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
712
+ throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message);
716
713
  }
717
714
  },
718
- msgRewokeCouncilRegistration({ value }) {
715
+ msgRestartCouncil({ value }) {
719
716
  try {
720
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial(value) };
717
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial(value) };
721
718
  }
722
719
  catch (e) {
723
- throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message);
720
+ throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message);
724
721
  }
725
722
  },
726
- msgSetCardRarity({ value }) {
723
+ msgAddContributorToSet({ value }) {
727
724
  try {
728
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial(value) };
725
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", value: MsgAddContributorToSet.fromPartial(value) };
729
726
  }
730
727
  catch (e) {
731
- throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message);
728
+ throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message);
732
729
  }
733
730
  },
734
- msgDonateToCard({ value }) {
731
+ msgFinalizeSet({ value }) {
735
732
  try {
736
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial(value) };
733
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet", value: MsgFinalizeSet.fromPartial(value) };
737
734
  }
738
735
  catch (e) {
739
- throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message);
736
+ throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message);
740
737
  }
741
738
  },
742
- msgRegisterForCouncil({ value }) {
739
+ msgSetSetStoryWriter({ value }) {
743
740
  try {
744
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial(value) };
741
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", value: MsgSetSetStoryWriter.fromPartial(value) };
745
742
  }
746
743
  catch (e) {
747
- throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message);
744
+ throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message);
748
745
  }
749
746
  },
750
- msgRemoveContributorFromSet({ value }) {
747
+ msgReportMatch({ value }) {
751
748
  try {
752
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet", value: MsgRemoveContributorFromSet.fromPartial(value) };
749
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial(value) };
753
750
  }
754
751
  catch (e) {
755
- throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message);
752
+ throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message);
756
753
  }
757
754
  },
758
- msgConfirmMatch({ value }) {
755
+ msgRevealCouncilResponse({ value }) {
759
756
  try {
760
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial(value) };
757
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial(value) };
761
758
  }
762
759
  catch (e) {
763
- throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message);
760
+ throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message);
764
761
  }
765
762
  },
766
- msgOpenMatch({ value }) {
763
+ msgSetUserWebsite({ value }) {
767
764
  try {
768
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch", value: MsgOpenMatch.fromPartial(value) };
765
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", value: MsgSetUserWebsite.fromPartial(value) };
769
766
  }
770
767
  catch (e) {
771
- throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message);
768
+ throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message);
772
769
  }
773
770
  },
774
- msgChangeArtist({ value }) {
771
+ msgCreateCouncil({ value }) {
775
772
  try {
776
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial(value) };
773
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial(value) };
777
774
  }
778
775
  catch (e) {
779
- throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message);
776
+ throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message);
780
777
  }
781
778
  },
782
- msgMultiVoteCard({ value }) {
779
+ msgDonateToCard({ value }) {
783
780
  try {
784
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial(value) };
781
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial(value) };
785
782
  }
786
783
  catch (e) {
787
- throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message);
784
+ throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message);
788
785
  }
789
786
  },
790
- msgCreateSet({ value }) {
787
+ msgRegisterForCouncil({ value }) {
791
788
  try {
792
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet", value: MsgCreateSet.fromPartial(value) };
789
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial(value) };
793
790
  }
794
791
  catch (e) {
795
- throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message);
792
+ throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message);
796
793
  }
797
794
  },
798
- msgSetProfileCard({ value }) {
795
+ msgSetSetArtist({ value }) {
799
796
  try {
800
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial(value) };
797
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", value: MsgSetSetArtist.fromPartial(value) };
801
798
  }
802
799
  catch (e) {
803
- throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message);
800
+ throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message);
804
801
  }
805
802
  },
806
- msgCommitCouncilResponse({ value }) {
803
+ msgSetSetName({ value }) {
807
804
  try {
808
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial(value) };
805
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName", value: MsgSetSetName.fromPartial(value) };
809
806
  }
810
807
  catch (e) {
811
- throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message);
808
+ throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message);
812
809
  }
813
810
  },
814
- msgRestartCouncil({ value }) {
811
+ msgVoteCard({ value }) {
815
812
  try {
816
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial(value) };
813
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial(value) };
817
814
  }
818
815
  catch (e) {
819
- throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message);
816
+ throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
820
817
  }
821
818
  },
822
- msgReportMatch({ value }) {
819
+ msgAddStoryToSet({ value }) {
823
820
  try {
824
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial(value) };
821
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", value: MsgAddStoryToSet.fromPartial(value) };
825
822
  }
826
823
  catch (e) {
827
- throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message);
824
+ throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message);
828
825
  }
829
826
  },
830
- msgAddStoryToSet({ value }) {
827
+ msgBuyCardScheme({ value }) {
831
828
  try {
832
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", value: MsgAddStoryToSet.fromPartial(value) };
829
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial(value) };
833
830
  }
834
831
  catch (e) {
835
- throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message);
832
+ throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message);
836
833
  }
837
834
  },
838
- msgTransferBoosterPack({ value }) {
835
+ msgAddArtwork({ value }) {
839
836
  try {
840
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial(value) };
837
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial(value) };
841
838
  }
842
839
  catch (e) {
843
- throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message);
840
+ throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message);
844
841
  }
845
842
  },
846
- msgTransferCard({ value }) {
843
+ msgMultiVoteCard({ value }) {
847
844
  try {
848
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial(value) };
845
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial(value) };
849
846
  }
850
847
  catch (e) {
851
- throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message);
848
+ throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message);
852
849
  }
853
850
  },
854
- msgSetSetArtist({ value }) {
851
+ msgSetUserBiography({ value }) {
855
852
  try {
856
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", value: MsgSetSetArtist.fromPartial(value) };
853
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial(value) };
857
854
  }
858
855
  catch (e) {
859
- throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message);
856
+ throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
860
857
  }
861
858
  },
862
- msgOpenBoosterPack({ value }) {
859
+ msgRewokeCouncilRegistration({ value }) {
863
860
  try {
864
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial(value) };
861
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial(value) };
865
862
  }
866
863
  catch (e) {
867
- throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message);
864
+ throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message);
868
865
  }
869
866
  },
870
867
  msgCreateSellOffer({ value }) {
@@ -875,92 +872,92 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
875
872
  throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message);
876
873
  }
877
874
  },
878
- msgCreateCouncil({ value }) {
875
+ msgSetProfileCard({ value }) {
879
876
  try {
880
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial(value) };
877
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial(value) };
881
878
  }
882
879
  catch (e) {
883
- throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message);
880
+ throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message);
884
881
  }
885
882
  },
886
- msgRevealCouncilResponse({ value }) {
883
+ msgCommitCouncilResponse({ value }) {
887
884
  try {
888
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial(value) };
885
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial(value) };
889
886
  }
890
887
  catch (e) {
891
- throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message);
888
+ throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message);
892
889
  }
893
890
  },
894
- msgSetUserBiography({ value }) {
891
+ msgConfirmMatch({ value }) {
895
892
  try {
896
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial(value) };
893
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial(value) };
897
894
  }
898
895
  catch (e) {
899
- throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
896
+ throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message);
900
897
  }
901
898
  },
902
- msgAddContributorToSet({ value }) {
899
+ msgAddArtworkToSet({ value }) {
903
900
  try {
904
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", value: MsgAddContributorToSet.fromPartial(value) };
901
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet", value: MsgAddArtworkToSet.fromPartial(value) };
905
902
  }
906
903
  catch (e) {
907
- throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message);
904
+ throw new Error('TxClient:MsgAddArtworkToSet: Could not create message: ' + e.message);
908
905
  }
909
906
  },
910
- msgAddCardToSet({ value }) {
907
+ msgSetCardRarity({ value }) {
911
908
  try {
912
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", value: MsgAddCardToSet.fromPartial(value) };
909
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial(value) };
913
910
  }
914
911
  catch (e) {
915
- throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message);
912
+ throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message);
916
913
  }
917
914
  },
918
- msgAddArtworkToSet({ value }) {
915
+ msgSaveCardContent({ value }) {
919
916
  try {
920
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet", value: MsgAddArtworkToSet.fromPartial(value) };
917
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial(value) };
921
918
  }
922
919
  catch (e) {
923
- throw new Error('TxClient:MsgAddArtworkToSet: Could not create message: ' + e.message);
920
+ throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message);
924
921
  }
925
922
  },
926
- msgBuyCard({ value }) {
923
+ msgApointMatchReporter({ value }) {
927
924
  try {
928
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial(value) };
925
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial(value) };
929
926
  }
930
927
  catch (e) {
931
- throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message);
928
+ throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message);
932
929
  }
933
930
  },
934
- msgCreateuser({ value }) {
931
+ msgOpenBoosterPack({ value }) {
935
932
  try {
936
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial(value) };
933
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial(value) };
937
934
  }
938
935
  catch (e) {
939
- throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
936
+ throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message);
940
937
  }
941
938
  },
942
- msgApointMatchReporter({ value }) {
939
+ msgCreateuser({ value }) {
943
940
  try {
944
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial(value) };
941
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial(value) };
945
942
  }
946
943
  catch (e) {
947
- throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message);
944
+ throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
948
945
  }
949
946
  },
950
- msgRemoveSellOffer({ value }) {
947
+ msgCreateSet({ value }) {
951
948
  try {
952
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial(value) };
949
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet", value: MsgCreateSet.fromPartial(value) };
953
950
  }
954
951
  catch (e) {
955
- throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message);
952
+ throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message);
956
953
  }
957
954
  },
958
- msgRemoveCardFromSet({ value }) {
955
+ msgTransferBoosterPack({ value }) {
959
956
  try {
960
- return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet", value: MsgRemoveCardFromSet.fromPartial(value) };
957
+ return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial(value) };
961
958
  }
962
959
  catch (e) {
963
- throw new Error('TxClient:MsgRemoveCardFromSet: Could not create message: ' + e.message);
960
+ throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message);
964
961
  }
965
962
  },
966
963
  };
@@ -987,17 +984,14 @@ class SDKModule {
987
984
  IgnoreMatches: getStructure(typeIgnoreMatches.fromPartial({})),
988
985
  IgnoreSellOffers: getStructure(typeIgnoreSellOffers.fromPartial({})),
989
986
  QueryQServerResponse: getStructure(typeQueryQServerResponse.fromPartial({})),
990
- IgnoreCouncils: getStructure(typeIgnoreCouncils.fromPartial({})),
991
987
  RunningAverage: getStructure(typeRunningAverage.fromPartial({})),
992
988
  Set: getStructure(typeSet.fromPartial({})),
993
989
  SetProposal: getStructure(typeSetProposal.fromPartial({})),
994
- CouncilParticipation: getStructure(typeCouncilParticipation.fromPartial({})),
995
990
  BoosterPack: getStructure(typeBoosterPack.fromPartial({})),
996
991
  AirDrops: getStructure(typeAirDrops.fromPartial({})),
997
992
  VotingResults: getStructure(typeVotingResults.fromPartial({})),
998
993
  VotingResult: getStructure(typeVotingResult.fromPartial({})),
999
994
  SingleVote: getStructure(typeSingleVote.fromPartial({})),
1000
- VoteRight: getStructure(typeVoteRight.fromPartial({})),
1001
995
  };
1002
996
  client.on('signer-changed', (signer) => {
1003
997
  this.updateTX(client);