decentralcardgame-cardchain-client-ts 0.0.28 → 0.0.29
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.
|
@@ -7,48 +7,48 @@ import {msgTypes} from './registry';
|
|
|
7
7
|
import {IgniteClient} from "../client"
|
|
8
8
|
import {MissingWalletError} from "../helpers"
|
|
9
9
|
import {Api} from "./rest";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import {MsgBuyCardScheme} from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import {MsgAddArtwork} from "./types/cardchain/cardchain/tx";
|
|
12
|
+
import {MsgSetSetName} from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import {MsgConfirmMatch} from "./types/cardchain/cardchain/tx";
|
|
14
14
|
import {MsgTransferBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
15
|
-
import {
|
|
16
|
-
import {MsgRewokeCouncilRegistration} from "./types/cardchain/cardchain/tx";
|
|
17
|
-
import {MsgRestartCouncil} from "./types/cardchain/cardchain/tx";
|
|
18
|
-
import {MsgSetSetArtist} from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import {MsgMultiVoteCard} from "./types/cardchain/cardchain/tx";
|
|
19
16
|
import {MsgFinalizeSet} from "./types/cardchain/cardchain/tx";
|
|
20
|
-
import {
|
|
17
|
+
import {MsgOpenBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import {MsgTransferCard} from "./types/cardchain/cardchain/tx";
|
|
19
|
+
import {MsgRemoveContributorFromSet} from "./types/cardchain/cardchain/tx";
|
|
20
|
+
import {MsgChangeAlias} from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import {MsgRemoveSellOffer} from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import {MsgApointMatchReporter} from "./types/cardchain/cardchain/tx";
|
|
21
23
|
import {MsgAddArtworkToSet} from "./types/cardchain/cardchain/tx";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
+
import {MsgAddStoryToSet} from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import {MsgRevealCouncilResponse} from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import {MsgSetSetArtist} from "./types/cardchain/cardchain/tx";
|
|
27
|
+
import {MsgReportMatch} from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import {MsgCreateCouncil} from "./types/cardchain/cardchain/tx";
|
|
29
|
+
import {MsgSaveCardContent} from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import {MsgSetUserBiography} from "./types/cardchain/cardchain/tx";
|
|
31
|
+
import {MsgAddCardToSet} from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import {MsgCreateSet} from "./types/cardchain/cardchain/tx";
|
|
24
33
|
import {MsgDisinviteEarlyAccess} from "./types/cardchain/cardchain/tx";
|
|
34
|
+
import {MsgVoteCard} from "./types/cardchain/cardchain/tx";
|
|
35
|
+
import {MsgSetUserWebsite} from "./types/cardchain/cardchain/tx";
|
|
36
|
+
import {MsgSetSetStoryWriter} from "./types/cardchain/cardchain/tx";
|
|
37
|
+
import {MsgRewokeCouncilRegistration} from "./types/cardchain/cardchain/tx";
|
|
25
38
|
import {MsgCommitCouncilResponse} from "./types/cardchain/cardchain/tx";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {MsgApointMatchReporter} from "./types/cardchain/cardchain/tx";
|
|
29
|
-
import {MsgAddStoryToSet} from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import {MsgBuyBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
40
|
+
import {MsgAddContributorToSet} from "./types/cardchain/cardchain/tx";
|
|
30
41
|
import {MsgRegisterForCouncil} from "./types/cardchain/cardchain/tx";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {MsgSetCardRarity} from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import {MsgAddCardToSet} from "./types/cardchain/cardchain/tx";
|
|
42
|
+
import {MsgOpenMatch} from "./types/cardchain/cardchain/tx";
|
|
43
|
+
import {MsgSetProfileCard} from "./types/cardchain/cardchain/tx";
|
|
35
44
|
import {MsgChangeArtist} from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import {MsgReportMatch} from "./types/cardchain/cardchain/tx";
|
|
37
|
-
import {MsgRemoveSellOffer} from "./types/cardchain/cardchain/tx";
|
|
38
|
-
import {MsgMultiVoteCard} from "./types/cardchain/cardchain/tx";
|
|
39
|
-
import {MsgBuyCardScheme} from "./types/cardchain/cardchain/tx";
|
|
40
|
-
import {MsgTransferCard} from "./types/cardchain/cardchain/tx";
|
|
41
|
-
import {MsgBuyBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
42
|
-
import {MsgCreateCouncil} from "./types/cardchain/cardchain/tx";
|
|
43
45
|
import {MsgDonateToCard} from "./types/cardchain/cardchain/tx";
|
|
44
|
-
import {
|
|
45
|
-
import {MsgOpenBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
46
|
-
import {MsgRemoveCardFromSet} from "./types/cardchain/cardchain/tx";
|
|
47
|
-
import {MsgSetUserBiography} from "./types/cardchain/cardchain/tx";
|
|
46
|
+
import {MsgBuyCard} from "./types/cardchain/cardchain/tx";
|
|
48
47
|
import {MsgCreateuser} from "./types/cardchain/cardchain/tx";
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
48
|
+
import {MsgRemoveCardFromSet} from "./types/cardchain/cardchain/tx";
|
|
49
|
+
import {MsgCreateSellOffer} from "./types/cardchain/cardchain/tx";
|
|
50
|
+
import {MsgRestartCouncil} from "./types/cardchain/cardchain/tx";
|
|
51
|
+
import {MsgSetCardRarity} from "./types/cardchain/cardchain/tx";
|
|
52
52
|
import {MsgInviteEarlyAccess} from "./types/cardchain/cardchain/tx";
|
|
53
53
|
|
|
54
54
|
import {Card as typeCard} from "./types"
|
|
@@ -77,71 +77,71 @@ import {VotingResult as typeVotingResult} from "./types"
|
|
|
77
77
|
import {SingleVote as typeSingleVote} from "./types"
|
|
78
78
|
|
|
79
79
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
MsgBuyCardScheme,
|
|
81
|
+
MsgAddArtwork,
|
|
82
|
+
MsgSetSetName,
|
|
83
|
+
MsgConfirmMatch,
|
|
84
84
|
MsgTransferBoosterPack,
|
|
85
|
-
|
|
86
|
-
MsgRewokeCouncilRegistration,
|
|
87
|
-
MsgRestartCouncil,
|
|
88
|
-
MsgSetSetArtist,
|
|
85
|
+
MsgMultiVoteCard,
|
|
89
86
|
MsgFinalizeSet,
|
|
90
|
-
|
|
87
|
+
MsgOpenBoosterPack,
|
|
88
|
+
MsgTransferCard,
|
|
89
|
+
MsgRemoveContributorFromSet,
|
|
90
|
+
MsgChangeAlias,
|
|
91
|
+
MsgRemoveSellOffer,
|
|
92
|
+
MsgApointMatchReporter,
|
|
91
93
|
MsgAddArtworkToSet,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
MsgAddStoryToSet,
|
|
95
|
+
MsgRevealCouncilResponse,
|
|
96
|
+
MsgSetSetArtist,
|
|
97
|
+
MsgReportMatch,
|
|
98
|
+
MsgCreateCouncil,
|
|
99
|
+
MsgSaveCardContent,
|
|
100
|
+
MsgSetUserBiography,
|
|
101
|
+
MsgAddCardToSet,
|
|
102
|
+
MsgCreateSet,
|
|
94
103
|
MsgDisinviteEarlyAccess,
|
|
104
|
+
MsgVoteCard,
|
|
105
|
+
MsgSetUserWebsite,
|
|
106
|
+
MsgSetSetStoryWriter,
|
|
107
|
+
MsgRewokeCouncilRegistration,
|
|
95
108
|
MsgCommitCouncilResponse,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
MsgApointMatchReporter,
|
|
99
|
-
MsgAddStoryToSet,
|
|
109
|
+
MsgBuyBoosterPack,
|
|
110
|
+
MsgAddContributorToSet,
|
|
100
111
|
MsgRegisterForCouncil,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
MsgSetCardRarity,
|
|
104
|
-
MsgAddCardToSet,
|
|
112
|
+
MsgOpenMatch,
|
|
113
|
+
MsgSetProfileCard,
|
|
105
114
|
MsgChangeArtist,
|
|
106
|
-
MsgReportMatch,
|
|
107
|
-
MsgRemoveSellOffer,
|
|
108
|
-
MsgMultiVoteCard,
|
|
109
|
-
MsgBuyCardScheme,
|
|
110
|
-
MsgTransferCard,
|
|
111
|
-
MsgBuyBoosterPack,
|
|
112
|
-
MsgCreateCouncil,
|
|
113
115
|
MsgDonateToCard,
|
|
114
|
-
|
|
115
|
-
MsgOpenBoosterPack,
|
|
116
|
-
MsgRemoveCardFromSet,
|
|
117
|
-
MsgSetUserBiography,
|
|
116
|
+
MsgBuyCard,
|
|
118
117
|
MsgCreateuser,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
MsgRemoveCardFromSet,
|
|
119
|
+
MsgCreateSellOffer,
|
|
120
|
+
MsgRestartCouncil,
|
|
121
|
+
MsgSetCardRarity,
|
|
122
122
|
MsgInviteEarlyAccess
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
type
|
|
126
|
-
value:
|
|
125
|
+
type sendMsgBuyCardSchemeParams = {
|
|
126
|
+
value: MsgBuyCardScheme,
|
|
127
127
|
fee?: StdFee,
|
|
128
128
|
memo?: string
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
type
|
|
132
|
-
value:
|
|
131
|
+
type sendMsgAddArtworkParams = {
|
|
132
|
+
value: MsgAddArtwork,
|
|
133
133
|
fee?: StdFee,
|
|
134
134
|
memo?: string
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
type
|
|
138
|
-
value:
|
|
137
|
+
type sendMsgSetSetNameParams = {
|
|
138
|
+
value: MsgSetSetName,
|
|
139
139
|
fee?: StdFee,
|
|
140
140
|
memo?: string
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
type
|
|
144
|
-
value:
|
|
143
|
+
type sendMsgConfirmMatchParams = {
|
|
144
|
+
value: MsgConfirmMatch,
|
|
145
145
|
fee?: StdFee,
|
|
146
146
|
memo?: string
|
|
147
147
|
};
|
|
@@ -152,224 +152,224 @@ type sendMsgTransferBoosterPackParams = {
|
|
|
152
152
|
memo?: string
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
type
|
|
156
|
-
value:
|
|
155
|
+
type sendMsgMultiVoteCardParams = {
|
|
156
|
+
value: MsgMultiVoteCard,
|
|
157
157
|
fee?: StdFee,
|
|
158
158
|
memo?: string
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
type
|
|
162
|
-
value:
|
|
161
|
+
type sendMsgFinalizeSetParams = {
|
|
162
|
+
value: MsgFinalizeSet,
|
|
163
163
|
fee?: StdFee,
|
|
164
164
|
memo?: string
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
type
|
|
168
|
-
value:
|
|
167
|
+
type sendMsgOpenBoosterPackParams = {
|
|
168
|
+
value: MsgOpenBoosterPack,
|
|
169
169
|
fee?: StdFee,
|
|
170
170
|
memo?: string
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
type
|
|
174
|
-
value:
|
|
173
|
+
type sendMsgTransferCardParams = {
|
|
174
|
+
value: MsgTransferCard,
|
|
175
175
|
fee?: StdFee,
|
|
176
176
|
memo?: string
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
type
|
|
180
|
-
value:
|
|
179
|
+
type sendMsgRemoveContributorFromSetParams = {
|
|
180
|
+
value: MsgRemoveContributorFromSet,
|
|
181
181
|
fee?: StdFee,
|
|
182
182
|
memo?: string
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
type
|
|
186
|
-
value:
|
|
185
|
+
type sendMsgChangeAliasParams = {
|
|
186
|
+
value: MsgChangeAlias,
|
|
187
187
|
fee?: StdFee,
|
|
188
188
|
memo?: string
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
-
type
|
|
192
|
-
value:
|
|
191
|
+
type sendMsgRemoveSellOfferParams = {
|
|
192
|
+
value: MsgRemoveSellOffer,
|
|
193
193
|
fee?: StdFee,
|
|
194
194
|
memo?: string
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
type
|
|
198
|
-
value:
|
|
197
|
+
type sendMsgApointMatchReporterParams = {
|
|
198
|
+
value: MsgApointMatchReporter,
|
|
199
199
|
fee?: StdFee,
|
|
200
200
|
memo?: string
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
type
|
|
204
|
-
value:
|
|
203
|
+
type sendMsgAddArtworkToSetParams = {
|
|
204
|
+
value: MsgAddArtworkToSet,
|
|
205
205
|
fee?: StdFee,
|
|
206
206
|
memo?: string
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
type
|
|
210
|
-
value:
|
|
209
|
+
type sendMsgAddStoryToSetParams = {
|
|
210
|
+
value: MsgAddStoryToSet,
|
|
211
211
|
fee?: StdFee,
|
|
212
212
|
memo?: string
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
type
|
|
216
|
-
value:
|
|
215
|
+
type sendMsgRevealCouncilResponseParams = {
|
|
216
|
+
value: MsgRevealCouncilResponse,
|
|
217
217
|
fee?: StdFee,
|
|
218
218
|
memo?: string
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
type
|
|
222
|
-
value:
|
|
221
|
+
type sendMsgSetSetArtistParams = {
|
|
222
|
+
value: MsgSetSetArtist,
|
|
223
223
|
fee?: StdFee,
|
|
224
224
|
memo?: string
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
type
|
|
228
|
-
value:
|
|
227
|
+
type sendMsgReportMatchParams = {
|
|
228
|
+
value: MsgReportMatch,
|
|
229
229
|
fee?: StdFee,
|
|
230
230
|
memo?: string
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
type
|
|
234
|
-
value:
|
|
233
|
+
type sendMsgCreateCouncilParams = {
|
|
234
|
+
value: MsgCreateCouncil,
|
|
235
235
|
fee?: StdFee,
|
|
236
236
|
memo?: string
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
type
|
|
240
|
-
value:
|
|
239
|
+
type sendMsgSaveCardContentParams = {
|
|
240
|
+
value: MsgSaveCardContent,
|
|
241
241
|
fee?: StdFee,
|
|
242
242
|
memo?: string
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
-
type
|
|
246
|
-
value:
|
|
245
|
+
type sendMsgSetUserBiographyParams = {
|
|
246
|
+
value: MsgSetUserBiography,
|
|
247
247
|
fee?: StdFee,
|
|
248
248
|
memo?: string
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
type
|
|
252
|
-
value:
|
|
251
|
+
type sendMsgAddCardToSetParams = {
|
|
252
|
+
value: MsgAddCardToSet,
|
|
253
253
|
fee?: StdFee,
|
|
254
254
|
memo?: string
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
type
|
|
258
|
-
value:
|
|
257
|
+
type sendMsgCreateSetParams = {
|
|
258
|
+
value: MsgCreateSet,
|
|
259
259
|
fee?: StdFee,
|
|
260
260
|
memo?: string
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
type
|
|
264
|
-
value:
|
|
263
|
+
type sendMsgDisinviteEarlyAccessParams = {
|
|
264
|
+
value: MsgDisinviteEarlyAccess,
|
|
265
265
|
fee?: StdFee,
|
|
266
266
|
memo?: string
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
type
|
|
270
|
-
value:
|
|
269
|
+
type sendMsgVoteCardParams = {
|
|
270
|
+
value: MsgVoteCard,
|
|
271
271
|
fee?: StdFee,
|
|
272
272
|
memo?: string
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
type
|
|
276
|
-
value:
|
|
275
|
+
type sendMsgSetUserWebsiteParams = {
|
|
276
|
+
value: MsgSetUserWebsite,
|
|
277
277
|
fee?: StdFee,
|
|
278
278
|
memo?: string
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
type
|
|
282
|
-
value:
|
|
281
|
+
type sendMsgSetSetStoryWriterParams = {
|
|
282
|
+
value: MsgSetSetStoryWriter,
|
|
283
283
|
fee?: StdFee,
|
|
284
284
|
memo?: string
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
type
|
|
288
|
-
value:
|
|
287
|
+
type sendMsgRewokeCouncilRegistrationParams = {
|
|
288
|
+
value: MsgRewokeCouncilRegistration,
|
|
289
289
|
fee?: StdFee,
|
|
290
290
|
memo?: string
|
|
291
291
|
};
|
|
292
292
|
|
|
293
|
-
type
|
|
294
|
-
value:
|
|
293
|
+
type sendMsgCommitCouncilResponseParams = {
|
|
294
|
+
value: MsgCommitCouncilResponse,
|
|
295
295
|
fee?: StdFee,
|
|
296
296
|
memo?: string
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
type
|
|
300
|
-
value:
|
|
299
|
+
type sendMsgBuyBoosterPackParams = {
|
|
300
|
+
value: MsgBuyBoosterPack,
|
|
301
301
|
fee?: StdFee,
|
|
302
302
|
memo?: string
|
|
303
303
|
};
|
|
304
304
|
|
|
305
|
-
type
|
|
306
|
-
value:
|
|
305
|
+
type sendMsgAddContributorToSetParams = {
|
|
306
|
+
value: MsgAddContributorToSet,
|
|
307
307
|
fee?: StdFee,
|
|
308
308
|
memo?: string
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
type
|
|
312
|
-
value:
|
|
311
|
+
type sendMsgRegisterForCouncilParams = {
|
|
312
|
+
value: MsgRegisterForCouncil,
|
|
313
313
|
fee?: StdFee,
|
|
314
314
|
memo?: string
|
|
315
315
|
};
|
|
316
316
|
|
|
317
|
-
type
|
|
318
|
-
value:
|
|
317
|
+
type sendMsgOpenMatchParams = {
|
|
318
|
+
value: MsgOpenMatch,
|
|
319
319
|
fee?: StdFee,
|
|
320
320
|
memo?: string
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
-
type
|
|
324
|
-
value:
|
|
323
|
+
type sendMsgSetProfileCardParams = {
|
|
324
|
+
value: MsgSetProfileCard,
|
|
325
325
|
fee?: StdFee,
|
|
326
326
|
memo?: string
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
type
|
|
330
|
-
value:
|
|
329
|
+
type sendMsgChangeArtistParams = {
|
|
330
|
+
value: MsgChangeArtist,
|
|
331
331
|
fee?: StdFee,
|
|
332
332
|
memo?: string
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
type
|
|
336
|
-
value:
|
|
335
|
+
type sendMsgDonateToCardParams = {
|
|
336
|
+
value: MsgDonateToCard,
|
|
337
337
|
fee?: StdFee,
|
|
338
338
|
memo?: string
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
-
type
|
|
342
|
-
value:
|
|
341
|
+
type sendMsgBuyCardParams = {
|
|
342
|
+
value: MsgBuyCard,
|
|
343
343
|
fee?: StdFee,
|
|
344
344
|
memo?: string
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
type
|
|
348
|
-
value:
|
|
347
|
+
type sendMsgCreateuserParams = {
|
|
348
|
+
value: MsgCreateuser,
|
|
349
349
|
fee?: StdFee,
|
|
350
350
|
memo?: string
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
-
type
|
|
354
|
-
value:
|
|
353
|
+
type sendMsgRemoveCardFromSetParams = {
|
|
354
|
+
value: MsgRemoveCardFromSet,
|
|
355
355
|
fee?: StdFee,
|
|
356
356
|
memo?: string
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
type
|
|
360
|
-
value:
|
|
359
|
+
type sendMsgCreateSellOfferParams = {
|
|
360
|
+
value: MsgCreateSellOffer,
|
|
361
361
|
fee?: StdFee,
|
|
362
362
|
memo?: string
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
type
|
|
366
|
-
value:
|
|
365
|
+
type sendMsgRestartCouncilParams = {
|
|
366
|
+
value: MsgRestartCouncil,
|
|
367
367
|
fee?: StdFee,
|
|
368
368
|
memo?: string
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
type
|
|
372
|
-
value:
|
|
371
|
+
type sendMsgSetCardRarityParams = {
|
|
372
|
+
value: MsgSetCardRarity,
|
|
373
373
|
fee?: StdFee,
|
|
374
374
|
memo?: string
|
|
375
375
|
};
|
|
@@ -381,172 +381,172 @@ type sendMsgInviteEarlyAccessParams = {
|
|
|
381
381
|
};
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
type
|
|
385
|
-
value:
|
|
384
|
+
type msgBuyCardSchemeParams = {
|
|
385
|
+
value: MsgBuyCardScheme,
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
-
type
|
|
389
|
-
value:
|
|
388
|
+
type msgAddArtworkParams = {
|
|
389
|
+
value: MsgAddArtwork,
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
type
|
|
393
|
-
value:
|
|
392
|
+
type msgSetSetNameParams = {
|
|
393
|
+
value: MsgSetSetName,
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
type
|
|
397
|
-
value:
|
|
396
|
+
type msgConfirmMatchParams = {
|
|
397
|
+
value: MsgConfirmMatch,
|
|
398
398
|
};
|
|
399
399
|
|
|
400
400
|
type msgTransferBoosterPackParams = {
|
|
401
401
|
value: MsgTransferBoosterPack,
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
type
|
|
405
|
-
value:
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
type msgRewokeCouncilRegistrationParams = {
|
|
409
|
-
value: MsgRewokeCouncilRegistration,
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
type msgRestartCouncilParams = {
|
|
413
|
-
value: MsgRestartCouncil,
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
type msgSetSetArtistParams = {
|
|
417
|
-
value: MsgSetSetArtist,
|
|
404
|
+
type msgMultiVoteCardParams = {
|
|
405
|
+
value: MsgMultiVoteCard,
|
|
418
406
|
};
|
|
419
407
|
|
|
420
408
|
type msgFinalizeSetParams = {
|
|
421
409
|
value: MsgFinalizeSet,
|
|
422
410
|
};
|
|
423
411
|
|
|
424
|
-
type
|
|
425
|
-
value:
|
|
412
|
+
type msgOpenBoosterPackParams = {
|
|
413
|
+
value: MsgOpenBoosterPack,
|
|
426
414
|
};
|
|
427
415
|
|
|
428
|
-
type
|
|
429
|
-
value:
|
|
416
|
+
type msgTransferCardParams = {
|
|
417
|
+
value: MsgTransferCard,
|
|
430
418
|
};
|
|
431
419
|
|
|
432
|
-
type
|
|
433
|
-
value:
|
|
420
|
+
type msgRemoveContributorFromSetParams = {
|
|
421
|
+
value: MsgRemoveContributorFromSet,
|
|
434
422
|
};
|
|
435
423
|
|
|
436
|
-
type
|
|
437
|
-
value:
|
|
424
|
+
type msgChangeAliasParams = {
|
|
425
|
+
value: MsgChangeAlias,
|
|
438
426
|
};
|
|
439
427
|
|
|
440
|
-
type
|
|
441
|
-
value:
|
|
428
|
+
type msgRemoveSellOfferParams = {
|
|
429
|
+
value: MsgRemoveSellOffer,
|
|
442
430
|
};
|
|
443
431
|
|
|
444
|
-
type
|
|
445
|
-
value:
|
|
432
|
+
type msgApointMatchReporterParams = {
|
|
433
|
+
value: MsgApointMatchReporter,
|
|
446
434
|
};
|
|
447
435
|
|
|
448
|
-
type
|
|
449
|
-
value:
|
|
436
|
+
type msgAddArtworkToSetParams = {
|
|
437
|
+
value: MsgAddArtworkToSet,
|
|
450
438
|
};
|
|
451
439
|
|
|
452
|
-
type
|
|
453
|
-
value:
|
|
440
|
+
type msgAddStoryToSetParams = {
|
|
441
|
+
value: MsgAddStoryToSet,
|
|
454
442
|
};
|
|
455
443
|
|
|
456
|
-
type
|
|
457
|
-
value:
|
|
444
|
+
type msgRevealCouncilResponseParams = {
|
|
445
|
+
value: MsgRevealCouncilResponse,
|
|
458
446
|
};
|
|
459
447
|
|
|
460
|
-
type
|
|
461
|
-
value:
|
|
448
|
+
type msgSetSetArtistParams = {
|
|
449
|
+
value: MsgSetSetArtist,
|
|
462
450
|
};
|
|
463
451
|
|
|
464
|
-
type
|
|
465
|
-
value:
|
|
452
|
+
type msgReportMatchParams = {
|
|
453
|
+
value: MsgReportMatch,
|
|
466
454
|
};
|
|
467
455
|
|
|
468
|
-
type
|
|
469
|
-
value:
|
|
456
|
+
type msgCreateCouncilParams = {
|
|
457
|
+
value: MsgCreateCouncil,
|
|
470
458
|
};
|
|
471
459
|
|
|
472
|
-
type
|
|
473
|
-
value:
|
|
460
|
+
type msgSaveCardContentParams = {
|
|
461
|
+
value: MsgSaveCardContent,
|
|
474
462
|
};
|
|
475
463
|
|
|
476
|
-
type
|
|
477
|
-
value:
|
|
464
|
+
type msgSetUserBiographyParams = {
|
|
465
|
+
value: MsgSetUserBiography,
|
|
478
466
|
};
|
|
479
467
|
|
|
480
468
|
type msgAddCardToSetParams = {
|
|
481
469
|
value: MsgAddCardToSet,
|
|
482
470
|
};
|
|
483
471
|
|
|
484
|
-
type
|
|
485
|
-
value:
|
|
472
|
+
type msgCreateSetParams = {
|
|
473
|
+
value: MsgCreateSet,
|
|
486
474
|
};
|
|
487
475
|
|
|
488
|
-
type
|
|
489
|
-
value:
|
|
476
|
+
type msgDisinviteEarlyAccessParams = {
|
|
477
|
+
value: MsgDisinviteEarlyAccess,
|
|
490
478
|
};
|
|
491
479
|
|
|
492
|
-
type
|
|
493
|
-
value:
|
|
480
|
+
type msgVoteCardParams = {
|
|
481
|
+
value: MsgVoteCard,
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
type msgSetUserWebsiteParams = {
|
|
485
|
+
value: MsgSetUserWebsite,
|
|
494
486
|
};
|
|
495
487
|
|
|
496
|
-
type
|
|
497
|
-
value:
|
|
488
|
+
type msgSetSetStoryWriterParams = {
|
|
489
|
+
value: MsgSetSetStoryWriter,
|
|
498
490
|
};
|
|
499
491
|
|
|
500
|
-
type
|
|
501
|
-
value:
|
|
492
|
+
type msgRewokeCouncilRegistrationParams = {
|
|
493
|
+
value: MsgRewokeCouncilRegistration,
|
|
502
494
|
};
|
|
503
495
|
|
|
504
|
-
type
|
|
505
|
-
value:
|
|
496
|
+
type msgCommitCouncilResponseParams = {
|
|
497
|
+
value: MsgCommitCouncilResponse,
|
|
506
498
|
};
|
|
507
499
|
|
|
508
500
|
type msgBuyBoosterPackParams = {
|
|
509
501
|
value: MsgBuyBoosterPack,
|
|
510
502
|
};
|
|
511
503
|
|
|
512
|
-
type
|
|
513
|
-
value:
|
|
504
|
+
type msgAddContributorToSetParams = {
|
|
505
|
+
value: MsgAddContributorToSet,
|
|
514
506
|
};
|
|
515
507
|
|
|
516
|
-
type
|
|
517
|
-
value:
|
|
508
|
+
type msgRegisterForCouncilParams = {
|
|
509
|
+
value: MsgRegisterForCouncil,
|
|
518
510
|
};
|
|
519
511
|
|
|
520
|
-
type
|
|
521
|
-
value:
|
|
512
|
+
type msgOpenMatchParams = {
|
|
513
|
+
value: MsgOpenMatch,
|
|
522
514
|
};
|
|
523
515
|
|
|
524
|
-
type
|
|
525
|
-
value:
|
|
516
|
+
type msgSetProfileCardParams = {
|
|
517
|
+
value: MsgSetProfileCard,
|
|
526
518
|
};
|
|
527
519
|
|
|
528
|
-
type
|
|
529
|
-
value:
|
|
520
|
+
type msgChangeArtistParams = {
|
|
521
|
+
value: MsgChangeArtist,
|
|
530
522
|
};
|
|
531
523
|
|
|
532
|
-
type
|
|
533
|
-
value:
|
|
524
|
+
type msgDonateToCardParams = {
|
|
525
|
+
value: MsgDonateToCard,
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
type msgBuyCardParams = {
|
|
529
|
+
value: MsgBuyCard,
|
|
534
530
|
};
|
|
535
531
|
|
|
536
532
|
type msgCreateuserParams = {
|
|
537
533
|
value: MsgCreateuser,
|
|
538
534
|
};
|
|
539
535
|
|
|
540
|
-
type
|
|
541
|
-
value:
|
|
536
|
+
type msgRemoveCardFromSetParams = {
|
|
537
|
+
value: MsgRemoveCardFromSet,
|
|
542
538
|
};
|
|
543
539
|
|
|
544
|
-
type
|
|
545
|
-
value:
|
|
540
|
+
type msgCreateSellOfferParams = {
|
|
541
|
+
value: MsgCreateSellOffer,
|
|
546
542
|
};
|
|
547
543
|
|
|
548
|
-
type
|
|
549
|
-
value:
|
|
544
|
+
type msgRestartCouncilParams = {
|
|
545
|
+
value: MsgRestartCouncil,
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
type msgSetCardRarityParams = {
|
|
549
|
+
value: MsgSetCardRarity,
|
|
550
550
|
};
|
|
551
551
|
|
|
552
552
|
type msgInviteEarlyAccessParams = {
|
|
@@ -588,59 +588,59 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
588
588
|
|
|
589
589
|
return {
|
|
590
590
|
|
|
591
|
-
async
|
|
591
|
+
async sendMsgBuyCardScheme({value, fee, memo}: sendMsgBuyCardSchemeParams): Promise<DeliverTxResponse> {
|
|
592
592
|
if (!signer) {
|
|
593
|
-
throw new Error('TxClient:
|
|
593
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.')
|
|
594
594
|
}
|
|
595
595
|
try {
|
|
596
596
|
const {address} = (await signer.getAccounts())[0];
|
|
597
597
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
598
|
-
let msg = this.
|
|
598
|
+
let msg = this.msgBuyCardScheme({value: MsgBuyCardScheme.fromPartial(value)})
|
|
599
599
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
600
600
|
} catch (e: any) {
|
|
601
|
-
throw new Error('TxClient:
|
|
601
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message)
|
|
602
602
|
}
|
|
603
603
|
},
|
|
604
604
|
|
|
605
|
-
async
|
|
605
|
+
async sendMsgAddArtwork({value, fee, memo}: sendMsgAddArtworkParams): Promise<DeliverTxResponse> {
|
|
606
606
|
if (!signer) {
|
|
607
|
-
throw new Error('TxClient:
|
|
607
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.')
|
|
608
608
|
}
|
|
609
609
|
try {
|
|
610
610
|
const {address} = (await signer.getAccounts())[0];
|
|
611
611
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
612
|
-
let msg = this.
|
|
612
|
+
let msg = this.msgAddArtwork({value: MsgAddArtwork.fromPartial(value)})
|
|
613
613
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
614
614
|
} catch (e: any) {
|
|
615
|
-
throw new Error('TxClient:
|
|
615
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message)
|
|
616
616
|
}
|
|
617
617
|
},
|
|
618
618
|
|
|
619
|
-
async
|
|
619
|
+
async sendMsgSetSetName({value, fee, memo}: sendMsgSetSetNameParams): Promise<DeliverTxResponse> {
|
|
620
620
|
if (!signer) {
|
|
621
|
-
throw new Error('TxClient:
|
|
621
|
+
throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.')
|
|
622
622
|
}
|
|
623
623
|
try {
|
|
624
624
|
const {address} = (await signer.getAccounts())[0];
|
|
625
625
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
626
|
-
let msg = this.
|
|
626
|
+
let msg = this.msgSetSetName({value: MsgSetSetName.fromPartial(value)})
|
|
627
627
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
628
628
|
} catch (e: any) {
|
|
629
|
-
throw new Error('TxClient:
|
|
629
|
+
throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: ' + e.message)
|
|
630
630
|
}
|
|
631
631
|
},
|
|
632
632
|
|
|
633
|
-
async
|
|
633
|
+
async sendMsgConfirmMatch({value, fee, memo}: sendMsgConfirmMatchParams): Promise<DeliverTxResponse> {
|
|
634
634
|
if (!signer) {
|
|
635
|
-
throw new Error('TxClient:
|
|
635
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.')
|
|
636
636
|
}
|
|
637
637
|
try {
|
|
638
638
|
const {address} = (await signer.getAccounts())[0];
|
|
639
639
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
640
|
-
let msg = this.
|
|
640
|
+
let msg = this.msgConfirmMatch({value: MsgConfirmMatch.fromPartial(value)})
|
|
641
641
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
642
642
|
} catch (e: any) {
|
|
643
|
-
throw new Error('TxClient:
|
|
643
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message)
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
646
|
|
|
@@ -662,553 +662,553 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
664
|
|
|
665
|
-
async
|
|
666
|
-
value,
|
|
667
|
-
fee,
|
|
668
|
-
memo
|
|
669
|
-
}: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
665
|
+
async sendMsgMultiVoteCard({value, fee, memo}: sendMsgMultiVoteCardParams): Promise<DeliverTxResponse> {
|
|
670
666
|
if (!signer) {
|
|
671
|
-
throw new Error('TxClient:
|
|
667
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.')
|
|
672
668
|
}
|
|
673
669
|
try {
|
|
674
670
|
const {address} = (await signer.getAccounts())[0];
|
|
675
671
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
676
|
-
let msg = this.
|
|
672
|
+
let msg = this.msgMultiVoteCard({value: MsgMultiVoteCard.fromPartial(value)})
|
|
677
673
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
678
674
|
} catch (e: any) {
|
|
679
|
-
throw new Error('TxClient:
|
|
675
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message)
|
|
680
676
|
}
|
|
681
677
|
},
|
|
682
678
|
|
|
683
|
-
async
|
|
684
|
-
value,
|
|
685
|
-
fee,
|
|
686
|
-
memo
|
|
687
|
-
}: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
679
|
+
async sendMsgFinalizeSet({value, fee, memo}: sendMsgFinalizeSetParams): Promise<DeliverTxResponse> {
|
|
688
680
|
if (!signer) {
|
|
689
|
-
throw new Error('TxClient:
|
|
681
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.')
|
|
690
682
|
}
|
|
691
683
|
try {
|
|
692
684
|
const {address} = (await signer.getAccounts())[0];
|
|
693
685
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
694
|
-
let msg = this.
|
|
686
|
+
let msg = this.msgFinalizeSet({value: MsgFinalizeSet.fromPartial(value)})
|
|
695
687
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
696
688
|
} catch (e: any) {
|
|
697
|
-
throw new Error('TxClient:
|
|
689
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: ' + e.message)
|
|
698
690
|
}
|
|
699
691
|
},
|
|
700
692
|
|
|
701
|
-
async
|
|
693
|
+
async sendMsgOpenBoosterPack({value, fee, memo}: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
702
694
|
if (!signer) {
|
|
703
|
-
throw new Error('TxClient:
|
|
695
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
704
696
|
}
|
|
705
697
|
try {
|
|
706
698
|
const {address} = (await signer.getAccounts())[0];
|
|
707
699
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
708
|
-
let msg = this.
|
|
700
|
+
let msg = this.msgOpenBoosterPack({value: MsgOpenBoosterPack.fromPartial(value)})
|
|
709
701
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
710
702
|
} catch (e: any) {
|
|
711
|
-
throw new Error('TxClient:
|
|
703
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message)
|
|
712
704
|
}
|
|
713
705
|
},
|
|
714
706
|
|
|
715
|
-
async
|
|
707
|
+
async sendMsgTransferCard({value, fee, memo}: sendMsgTransferCardParams): Promise<DeliverTxResponse> {
|
|
716
708
|
if (!signer) {
|
|
717
|
-
throw new Error('TxClient:
|
|
709
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
718
710
|
}
|
|
719
711
|
try {
|
|
720
712
|
const {address} = (await signer.getAccounts())[0];
|
|
721
713
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
722
|
-
let msg = this.
|
|
714
|
+
let msg = this.msgTransferCard({value: MsgTransferCard.fromPartial(value)})
|
|
723
715
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
724
716
|
} catch (e: any) {
|
|
725
|
-
throw new Error('TxClient:
|
|
717
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message)
|
|
726
718
|
}
|
|
727
719
|
},
|
|
728
720
|
|
|
729
|
-
async
|
|
721
|
+
async sendMsgRemoveContributorFromSet({
|
|
722
|
+
value,
|
|
723
|
+
fee,
|
|
724
|
+
memo
|
|
725
|
+
}: sendMsgRemoveContributorFromSetParams): Promise<DeliverTxResponse> {
|
|
730
726
|
if (!signer) {
|
|
731
|
-
throw new Error('TxClient:
|
|
727
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.')
|
|
732
728
|
}
|
|
733
729
|
try {
|
|
734
730
|
const {address} = (await signer.getAccounts())[0];
|
|
735
731
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
736
|
-
let msg = this.
|
|
732
|
+
let msg = this.msgRemoveContributorFromSet({value: MsgRemoveContributorFromSet.fromPartial(value)})
|
|
737
733
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
738
734
|
} catch (e: any) {
|
|
739
|
-
throw new Error('TxClient:
|
|
735
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: ' + e.message)
|
|
740
736
|
}
|
|
741
737
|
},
|
|
742
738
|
|
|
743
|
-
async
|
|
739
|
+
async sendMsgChangeAlias({value, fee, memo}: sendMsgChangeAliasParams): Promise<DeliverTxResponse> {
|
|
744
740
|
if (!signer) {
|
|
745
|
-
throw new Error('TxClient:
|
|
741
|
+
throw new Error('TxClient:sendMsgChangeAlias: Unable to sign Tx. Signer is not present.')
|
|
746
742
|
}
|
|
747
743
|
try {
|
|
748
744
|
const {address} = (await signer.getAccounts())[0];
|
|
749
745
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
750
|
-
let msg = this.
|
|
746
|
+
let msg = this.msgChangeAlias({value: MsgChangeAlias.fromPartial(value)})
|
|
751
747
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
752
748
|
} catch (e: any) {
|
|
753
|
-
throw new Error('TxClient:
|
|
749
|
+
throw new Error('TxClient:sendMsgChangeAlias: Could not broadcast Tx: ' + e.message)
|
|
754
750
|
}
|
|
755
751
|
},
|
|
756
752
|
|
|
757
|
-
async
|
|
753
|
+
async sendMsgRemoveSellOffer({value, fee, memo}: sendMsgRemoveSellOfferParams): Promise<DeliverTxResponse> {
|
|
758
754
|
if (!signer) {
|
|
759
|
-
throw new Error('TxClient:
|
|
755
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.')
|
|
760
756
|
}
|
|
761
757
|
try {
|
|
762
758
|
const {address} = (await signer.getAccounts())[0];
|
|
763
759
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
764
|
-
let msg = this.
|
|
760
|
+
let msg = this.msgRemoveSellOffer({value: MsgRemoveSellOffer.fromPartial(value)})
|
|
765
761
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
766
762
|
} catch (e: any) {
|
|
767
|
-
throw new Error('TxClient:
|
|
763
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message)
|
|
768
764
|
}
|
|
769
765
|
},
|
|
770
766
|
|
|
771
|
-
async
|
|
767
|
+
async sendMsgApointMatchReporter({
|
|
768
|
+
value,
|
|
769
|
+
fee,
|
|
770
|
+
memo
|
|
771
|
+
}: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
772
772
|
if (!signer) {
|
|
773
|
-
throw new Error('TxClient:
|
|
773
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.')
|
|
774
774
|
}
|
|
775
775
|
try {
|
|
776
776
|
const {address} = (await signer.getAccounts())[0];
|
|
777
777
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
778
|
-
let msg = this.
|
|
778
|
+
let msg = this.msgApointMatchReporter({value: MsgApointMatchReporter.fromPartial(value)})
|
|
779
779
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
780
780
|
} catch (e: any) {
|
|
781
|
-
throw new Error('TxClient:
|
|
781
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message)
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
784
|
|
|
785
|
-
async
|
|
785
|
+
async sendMsgAddArtworkToSet({value, fee, memo}: sendMsgAddArtworkToSetParams): Promise<DeliverTxResponse> {
|
|
786
786
|
if (!signer) {
|
|
787
|
-
throw new Error('TxClient:
|
|
787
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.')
|
|
788
788
|
}
|
|
789
789
|
try {
|
|
790
790
|
const {address} = (await signer.getAccounts())[0];
|
|
791
791
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
792
|
-
let msg = this.
|
|
792
|
+
let msg = this.msgAddArtworkToSet({value: MsgAddArtworkToSet.fromPartial(value)})
|
|
793
793
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
794
794
|
} catch (e: any) {
|
|
795
|
-
throw new Error('TxClient:
|
|
795
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: ' + e.message)
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
|
|
799
|
-
async
|
|
800
|
-
value,
|
|
801
|
-
fee,
|
|
802
|
-
memo
|
|
803
|
-
}: sendMsgDisinviteEarlyAccessParams): Promise<DeliverTxResponse> {
|
|
799
|
+
async sendMsgAddStoryToSet({value, fee, memo}: sendMsgAddStoryToSetParams): Promise<DeliverTxResponse> {
|
|
804
800
|
if (!signer) {
|
|
805
|
-
throw new Error('TxClient:
|
|
801
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.')
|
|
806
802
|
}
|
|
807
803
|
try {
|
|
808
804
|
const {address} = (await signer.getAccounts())[0];
|
|
809
805
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
810
|
-
let msg = this.
|
|
806
|
+
let msg = this.msgAddStoryToSet({value: MsgAddStoryToSet.fromPartial(value)})
|
|
811
807
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
812
808
|
} catch (e: any) {
|
|
813
|
-
throw new Error('TxClient:
|
|
809
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: ' + e.message)
|
|
814
810
|
}
|
|
815
811
|
},
|
|
816
812
|
|
|
817
|
-
async
|
|
813
|
+
async sendMsgRevealCouncilResponse({
|
|
818
814
|
value,
|
|
819
815
|
fee,
|
|
820
816
|
memo
|
|
821
|
-
}:
|
|
817
|
+
}: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
822
818
|
if (!signer) {
|
|
823
|
-
throw new Error('TxClient:
|
|
819
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
824
820
|
}
|
|
825
821
|
try {
|
|
826
822
|
const {address} = (await signer.getAccounts())[0];
|
|
827
823
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
828
|
-
let msg = this.
|
|
824
|
+
let msg = this.msgRevealCouncilResponse({value: MsgRevealCouncilResponse.fromPartial(value)})
|
|
829
825
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
830
826
|
} catch (e: any) {
|
|
831
|
-
throw new Error('TxClient:
|
|
827
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message)
|
|
832
828
|
}
|
|
833
829
|
},
|
|
834
830
|
|
|
835
|
-
async
|
|
831
|
+
async sendMsgSetSetArtist({value, fee, memo}: sendMsgSetSetArtistParams): Promise<DeliverTxResponse> {
|
|
836
832
|
if (!signer) {
|
|
837
|
-
throw new Error('TxClient:
|
|
833
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.')
|
|
838
834
|
}
|
|
839
835
|
try {
|
|
840
836
|
const {address} = (await signer.getAccounts())[0];
|
|
841
837
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
842
|
-
let msg = this.
|
|
838
|
+
let msg = this.msgSetSetArtist({value: MsgSetSetArtist.fromPartial(value)})
|
|
843
839
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
844
840
|
} catch (e: any) {
|
|
845
|
-
throw new Error('TxClient:
|
|
841
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: ' + e.message)
|
|
846
842
|
}
|
|
847
843
|
},
|
|
848
844
|
|
|
849
|
-
async
|
|
845
|
+
async sendMsgReportMatch({value, fee, memo}: sendMsgReportMatchParams): Promise<DeliverTxResponse> {
|
|
850
846
|
if (!signer) {
|
|
851
|
-
throw new Error('TxClient:
|
|
847
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.')
|
|
852
848
|
}
|
|
853
849
|
try {
|
|
854
850
|
const {address} = (await signer.getAccounts())[0];
|
|
855
851
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
856
|
-
let msg = this.
|
|
852
|
+
let msg = this.msgReportMatch({value: MsgReportMatch.fromPartial(value)})
|
|
857
853
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
858
854
|
} catch (e: any) {
|
|
859
|
-
throw new Error('TxClient:
|
|
855
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message)
|
|
860
856
|
}
|
|
861
857
|
},
|
|
862
858
|
|
|
863
|
-
async
|
|
864
|
-
value,
|
|
865
|
-
fee,
|
|
866
|
-
memo
|
|
867
|
-
}: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
859
|
+
async sendMsgCreateCouncil({value, fee, memo}: sendMsgCreateCouncilParams): Promise<DeliverTxResponse> {
|
|
868
860
|
if (!signer) {
|
|
869
|
-
throw new Error('TxClient:
|
|
861
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.')
|
|
870
862
|
}
|
|
871
863
|
try {
|
|
872
864
|
const {address} = (await signer.getAccounts())[0];
|
|
873
865
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
874
|
-
let msg = this.
|
|
866
|
+
let msg = this.msgCreateCouncil({value: MsgCreateCouncil.fromPartial(value)})
|
|
875
867
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
876
868
|
} catch (e: any) {
|
|
877
|
-
throw new Error('TxClient:
|
|
869
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message)
|
|
878
870
|
}
|
|
879
871
|
},
|
|
880
872
|
|
|
881
|
-
async
|
|
873
|
+
async sendMsgSaveCardContent({value, fee, memo}: sendMsgSaveCardContentParams): Promise<DeliverTxResponse> {
|
|
882
874
|
if (!signer) {
|
|
883
|
-
throw new Error('TxClient:
|
|
875
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.')
|
|
884
876
|
}
|
|
885
877
|
try {
|
|
886
878
|
const {address} = (await signer.getAccounts())[0];
|
|
887
879
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
888
|
-
let msg = this.
|
|
880
|
+
let msg = this.msgSaveCardContent({value: MsgSaveCardContent.fromPartial(value)})
|
|
889
881
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
890
882
|
} catch (e: any) {
|
|
891
|
-
throw new Error('TxClient:
|
|
883
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message)
|
|
892
884
|
}
|
|
893
885
|
},
|
|
894
886
|
|
|
895
|
-
async
|
|
896
|
-
value,
|
|
897
|
-
fee,
|
|
898
|
-
memo
|
|
899
|
-
}: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
887
|
+
async sendMsgSetUserBiography({value, fee, memo}: sendMsgSetUserBiographyParams): Promise<DeliverTxResponse> {
|
|
900
888
|
if (!signer) {
|
|
901
|
-
throw new Error('TxClient:
|
|
889
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.')
|
|
902
890
|
}
|
|
903
891
|
try {
|
|
904
892
|
const {address} = (await signer.getAccounts())[0];
|
|
905
893
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
906
|
-
let msg = this.
|
|
894
|
+
let msg = this.msgSetUserBiography({value: MsgSetUserBiography.fromPartial(value)})
|
|
907
895
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
908
896
|
} catch (e: any) {
|
|
909
|
-
throw new Error('TxClient:
|
|
897
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message)
|
|
910
898
|
}
|
|
911
899
|
},
|
|
912
900
|
|
|
913
|
-
async
|
|
901
|
+
async sendMsgAddCardToSet({value, fee, memo}: sendMsgAddCardToSetParams): Promise<DeliverTxResponse> {
|
|
914
902
|
if (!signer) {
|
|
915
|
-
throw new Error('TxClient:
|
|
903
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.')
|
|
916
904
|
}
|
|
917
905
|
try {
|
|
918
906
|
const {address} = (await signer.getAccounts())[0];
|
|
919
907
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
920
|
-
let msg = this.
|
|
908
|
+
let msg = this.msgAddCardToSet({value: MsgAddCardToSet.fromPartial(value)})
|
|
921
909
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
922
910
|
} catch (e: any) {
|
|
923
|
-
throw new Error('TxClient:
|
|
911
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: ' + e.message)
|
|
924
912
|
}
|
|
925
913
|
},
|
|
926
914
|
|
|
927
|
-
async
|
|
915
|
+
async sendMsgCreateSet({value, fee, memo}: sendMsgCreateSetParams): Promise<DeliverTxResponse> {
|
|
928
916
|
if (!signer) {
|
|
929
|
-
throw new Error('TxClient:
|
|
917
|
+
throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.')
|
|
930
918
|
}
|
|
931
919
|
try {
|
|
932
920
|
const {address} = (await signer.getAccounts())[0];
|
|
933
921
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
934
|
-
let msg = this.
|
|
922
|
+
let msg = this.msgCreateSet({value: MsgCreateSet.fromPartial(value)})
|
|
935
923
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
936
924
|
} catch (e: any) {
|
|
937
|
-
throw new Error('TxClient:
|
|
925
|
+
throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: ' + e.message)
|
|
938
926
|
}
|
|
939
927
|
},
|
|
940
928
|
|
|
941
|
-
async
|
|
929
|
+
async sendMsgDisinviteEarlyAccess({
|
|
930
|
+
value,
|
|
931
|
+
fee,
|
|
932
|
+
memo
|
|
933
|
+
}: sendMsgDisinviteEarlyAccessParams): Promise<DeliverTxResponse> {
|
|
942
934
|
if (!signer) {
|
|
943
|
-
throw new Error('TxClient:
|
|
935
|
+
throw new Error('TxClient:sendMsgDisinviteEarlyAccess: Unable to sign Tx. Signer is not present.')
|
|
944
936
|
}
|
|
945
937
|
try {
|
|
946
938
|
const {address} = (await signer.getAccounts())[0];
|
|
947
939
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
948
|
-
let msg = this.
|
|
940
|
+
let msg = this.msgDisinviteEarlyAccess({value: MsgDisinviteEarlyAccess.fromPartial(value)})
|
|
949
941
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
950
942
|
} catch (e: any) {
|
|
951
|
-
throw new Error('TxClient:
|
|
943
|
+
throw new Error('TxClient:sendMsgDisinviteEarlyAccess: Could not broadcast Tx: ' + e.message)
|
|
952
944
|
}
|
|
953
945
|
},
|
|
954
946
|
|
|
955
|
-
async
|
|
947
|
+
async sendMsgVoteCard({value, fee, memo}: sendMsgVoteCardParams): Promise<DeliverTxResponse> {
|
|
956
948
|
if (!signer) {
|
|
957
|
-
throw new Error('TxClient:
|
|
949
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.')
|
|
958
950
|
}
|
|
959
951
|
try {
|
|
960
952
|
const {address} = (await signer.getAccounts())[0];
|
|
961
953
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
962
|
-
let msg = this.
|
|
954
|
+
let msg = this.msgVoteCard({value: MsgVoteCard.fromPartial(value)})
|
|
963
955
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
964
956
|
} catch (e: any) {
|
|
965
|
-
throw new Error('TxClient:
|
|
957
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message)
|
|
966
958
|
}
|
|
967
959
|
},
|
|
968
960
|
|
|
969
|
-
async
|
|
961
|
+
async sendMsgSetUserWebsite({value, fee, memo}: sendMsgSetUserWebsiteParams): Promise<DeliverTxResponse> {
|
|
970
962
|
if (!signer) {
|
|
971
|
-
throw new Error('TxClient:
|
|
963
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.')
|
|
972
964
|
}
|
|
973
965
|
try {
|
|
974
966
|
const {address} = (await signer.getAccounts())[0];
|
|
975
967
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
976
|
-
let msg = this.
|
|
968
|
+
let msg = this.msgSetUserWebsite({value: MsgSetUserWebsite.fromPartial(value)})
|
|
977
969
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
978
970
|
} catch (e: any) {
|
|
979
|
-
throw new Error('TxClient:
|
|
971
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message)
|
|
980
972
|
}
|
|
981
973
|
},
|
|
982
974
|
|
|
983
|
-
async
|
|
975
|
+
async sendMsgSetSetStoryWriter({value, fee, memo}: sendMsgSetSetStoryWriterParams): Promise<DeliverTxResponse> {
|
|
984
976
|
if (!signer) {
|
|
985
|
-
throw new Error('TxClient:
|
|
977
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.')
|
|
986
978
|
}
|
|
987
979
|
try {
|
|
988
980
|
const {address} = (await signer.getAccounts())[0];
|
|
989
981
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
990
|
-
let msg = this.
|
|
982
|
+
let msg = this.msgSetSetStoryWriter({value: MsgSetSetStoryWriter.fromPartial(value)})
|
|
991
983
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
992
984
|
} catch (e: any) {
|
|
993
|
-
throw new Error('TxClient:
|
|
985
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: ' + e.message)
|
|
994
986
|
}
|
|
995
987
|
},
|
|
996
988
|
|
|
997
|
-
async
|
|
989
|
+
async sendMsgRewokeCouncilRegistration({
|
|
990
|
+
value,
|
|
991
|
+
fee,
|
|
992
|
+
memo
|
|
993
|
+
}: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
998
994
|
if (!signer) {
|
|
999
|
-
throw new Error('TxClient:
|
|
995
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.')
|
|
1000
996
|
}
|
|
1001
997
|
try {
|
|
1002
998
|
const {address} = (await signer.getAccounts())[0];
|
|
1003
999
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1004
|
-
let msg = this.
|
|
1000
|
+
let msg = this.msgRewokeCouncilRegistration({value: MsgRewokeCouncilRegistration.fromPartial(value)})
|
|
1005
1001
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1006
1002
|
} catch (e: any) {
|
|
1007
|
-
throw new Error('TxClient:
|
|
1003
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message)
|
|
1008
1004
|
}
|
|
1009
1005
|
},
|
|
1010
1006
|
|
|
1011
|
-
async
|
|
1007
|
+
async sendMsgCommitCouncilResponse({
|
|
1008
|
+
value,
|
|
1009
|
+
fee,
|
|
1010
|
+
memo
|
|
1011
|
+
}: sendMsgCommitCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
1012
1012
|
if (!signer) {
|
|
1013
|
-
throw new Error('TxClient:
|
|
1013
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
1014
1014
|
}
|
|
1015
1015
|
try {
|
|
1016
1016
|
const {address} = (await signer.getAccounts())[0];
|
|
1017
1017
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1018
|
-
let msg = this.
|
|
1018
|
+
let msg = this.msgCommitCouncilResponse({value: MsgCommitCouncilResponse.fromPartial(value)})
|
|
1019
1019
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1020
1020
|
} catch (e: any) {
|
|
1021
|
-
throw new Error('TxClient:
|
|
1021
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message)
|
|
1022
1022
|
}
|
|
1023
1023
|
},
|
|
1024
1024
|
|
|
1025
|
-
async
|
|
1025
|
+
async sendMsgBuyBoosterPack({value, fee, memo}: sendMsgBuyBoosterPackParams): Promise<DeliverTxResponse> {
|
|
1026
1026
|
if (!signer) {
|
|
1027
|
-
throw new Error('TxClient:
|
|
1027
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
1028
1028
|
}
|
|
1029
1029
|
try {
|
|
1030
1030
|
const {address} = (await signer.getAccounts())[0];
|
|
1031
1031
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1032
|
-
let msg = this.
|
|
1032
|
+
let msg = this.msgBuyBoosterPack({value: MsgBuyBoosterPack.fromPartial(value)})
|
|
1033
1033
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1034
1034
|
} catch (e: any) {
|
|
1035
|
-
throw new Error('TxClient:
|
|
1035
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: ' + e.message)
|
|
1036
1036
|
}
|
|
1037
1037
|
},
|
|
1038
1038
|
|
|
1039
|
-
async
|
|
1039
|
+
async sendMsgAddContributorToSet({
|
|
1040
|
+
value,
|
|
1041
|
+
fee,
|
|
1042
|
+
memo
|
|
1043
|
+
}: sendMsgAddContributorToSetParams): Promise<DeliverTxResponse> {
|
|
1040
1044
|
if (!signer) {
|
|
1041
|
-
throw new Error('TxClient:
|
|
1045
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.')
|
|
1042
1046
|
}
|
|
1043
1047
|
try {
|
|
1044
1048
|
const {address} = (await signer.getAccounts())[0];
|
|
1045
1049
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1046
|
-
let msg = this.
|
|
1050
|
+
let msg = this.msgAddContributorToSet({value: MsgAddContributorToSet.fromPartial(value)})
|
|
1047
1051
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1048
1052
|
} catch (e: any) {
|
|
1049
|
-
throw new Error('TxClient:
|
|
1053
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: ' + e.message)
|
|
1050
1054
|
}
|
|
1051
1055
|
},
|
|
1052
1056
|
|
|
1053
|
-
async
|
|
1057
|
+
async sendMsgRegisterForCouncil({
|
|
1058
|
+
value,
|
|
1059
|
+
fee,
|
|
1060
|
+
memo
|
|
1061
|
+
}: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
1054
1062
|
if (!signer) {
|
|
1055
|
-
throw new Error('TxClient:
|
|
1063
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.')
|
|
1056
1064
|
}
|
|
1057
1065
|
try {
|
|
1058
1066
|
const {address} = (await signer.getAccounts())[0];
|
|
1059
1067
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1060
|
-
let msg = this.
|
|
1068
|
+
let msg = this.msgRegisterForCouncil({value: MsgRegisterForCouncil.fromPartial(value)})
|
|
1061
1069
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1062
1070
|
} catch (e: any) {
|
|
1063
|
-
throw new Error('TxClient:
|
|
1071
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message)
|
|
1064
1072
|
}
|
|
1065
1073
|
},
|
|
1066
1074
|
|
|
1067
|
-
async
|
|
1075
|
+
async sendMsgOpenMatch({value, fee, memo}: sendMsgOpenMatchParams): Promise<DeliverTxResponse> {
|
|
1068
1076
|
if (!signer) {
|
|
1069
|
-
throw new Error('TxClient:
|
|
1077
|
+
throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.')
|
|
1070
1078
|
}
|
|
1071
1079
|
try {
|
|
1072
1080
|
const {address} = (await signer.getAccounts())[0];
|
|
1073
1081
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1074
|
-
let msg = this.
|
|
1082
|
+
let msg = this.msgOpenMatch({value: MsgOpenMatch.fromPartial(value)})
|
|
1075
1083
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1076
1084
|
} catch (e: any) {
|
|
1077
|
-
throw new Error('TxClient:
|
|
1085
|
+
throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: ' + e.message)
|
|
1078
1086
|
}
|
|
1079
1087
|
},
|
|
1080
1088
|
|
|
1081
|
-
async
|
|
1089
|
+
async sendMsgSetProfileCard({value, fee, memo}: sendMsgSetProfileCardParams): Promise<DeliverTxResponse> {
|
|
1082
1090
|
if (!signer) {
|
|
1083
|
-
throw new Error('TxClient:
|
|
1091
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.')
|
|
1084
1092
|
}
|
|
1085
1093
|
try {
|
|
1086
1094
|
const {address} = (await signer.getAccounts())[0];
|
|
1087
1095
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1088
|
-
let msg = this.
|
|
1096
|
+
let msg = this.msgSetProfileCard({value: MsgSetProfileCard.fromPartial(value)})
|
|
1089
1097
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1090
1098
|
} catch (e: any) {
|
|
1091
|
-
throw new Error('TxClient:
|
|
1099
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message)
|
|
1092
1100
|
}
|
|
1093
1101
|
},
|
|
1094
1102
|
|
|
1095
|
-
async
|
|
1096
|
-
value,
|
|
1097
|
-
fee,
|
|
1098
|
-
memo
|
|
1099
|
-
}: sendMsgAddContributorToSetParams): Promise<DeliverTxResponse> {
|
|
1103
|
+
async sendMsgChangeArtist({value, fee, memo}: sendMsgChangeArtistParams): Promise<DeliverTxResponse> {
|
|
1100
1104
|
if (!signer) {
|
|
1101
|
-
throw new Error('TxClient:
|
|
1105
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.')
|
|
1102
1106
|
}
|
|
1103
1107
|
try {
|
|
1104
1108
|
const {address} = (await signer.getAccounts())[0];
|
|
1105
1109
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1106
|
-
let msg = this.
|
|
1110
|
+
let msg = this.msgChangeArtist({value: MsgChangeArtist.fromPartial(value)})
|
|
1107
1111
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1108
1112
|
} catch (e: any) {
|
|
1109
|
-
throw new Error('TxClient:
|
|
1113
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message)
|
|
1110
1114
|
}
|
|
1111
1115
|
},
|
|
1112
1116
|
|
|
1113
|
-
async
|
|
1117
|
+
async sendMsgDonateToCard({value, fee, memo}: sendMsgDonateToCardParams): Promise<DeliverTxResponse> {
|
|
1114
1118
|
if (!signer) {
|
|
1115
|
-
throw new Error('TxClient:
|
|
1119
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.')
|
|
1116
1120
|
}
|
|
1117
1121
|
try {
|
|
1118
1122
|
const {address} = (await signer.getAccounts())[0];
|
|
1119
1123
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1120
|
-
let msg = this.
|
|
1124
|
+
let msg = this.msgDonateToCard({value: MsgDonateToCard.fromPartial(value)})
|
|
1121
1125
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1122
1126
|
} catch (e: any) {
|
|
1123
|
-
throw new Error('TxClient:
|
|
1127
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message)
|
|
1124
1128
|
}
|
|
1125
1129
|
},
|
|
1126
1130
|
|
|
1127
|
-
async
|
|
1131
|
+
async sendMsgBuyCard({value, fee, memo}: sendMsgBuyCardParams): Promise<DeliverTxResponse> {
|
|
1128
1132
|
if (!signer) {
|
|
1129
|
-
throw new Error('TxClient:
|
|
1133
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.')
|
|
1130
1134
|
}
|
|
1131
1135
|
try {
|
|
1132
1136
|
const {address} = (await signer.getAccounts())[0];
|
|
1133
1137
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1134
|
-
let msg = this.
|
|
1138
|
+
let msg = this.msgBuyCard({value: MsgBuyCard.fromPartial(value)})
|
|
1135
1139
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1136
1140
|
} catch (e: any) {
|
|
1137
|
-
throw new Error('TxClient:
|
|
1141
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message)
|
|
1138
1142
|
}
|
|
1139
1143
|
},
|
|
1140
1144
|
|
|
1141
|
-
async
|
|
1145
|
+
async sendMsgCreateuser({value, fee, memo}: sendMsgCreateuserParams): Promise<DeliverTxResponse> {
|
|
1142
1146
|
if (!signer) {
|
|
1143
|
-
throw new Error('TxClient:
|
|
1147
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.')
|
|
1144
1148
|
}
|
|
1145
1149
|
try {
|
|
1146
1150
|
const {address} = (await signer.getAccounts())[0];
|
|
1147
1151
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1148
|
-
let msg = this.
|
|
1152
|
+
let msg = this.msgCreateuser({value: MsgCreateuser.fromPartial(value)})
|
|
1149
1153
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1150
1154
|
} catch (e: any) {
|
|
1151
|
-
throw new Error('TxClient:
|
|
1155
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message)
|
|
1152
1156
|
}
|
|
1153
1157
|
},
|
|
1154
1158
|
|
|
1155
|
-
async
|
|
1159
|
+
async sendMsgRemoveCardFromSet({value, fee, memo}: sendMsgRemoveCardFromSetParams): Promise<DeliverTxResponse> {
|
|
1156
1160
|
if (!signer) {
|
|
1157
|
-
throw new Error('TxClient:
|
|
1161
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.')
|
|
1158
1162
|
}
|
|
1159
1163
|
try {
|
|
1160
1164
|
const {address} = (await signer.getAccounts())[0];
|
|
1161
1165
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1162
|
-
let msg = this.
|
|
1166
|
+
let msg = this.msgRemoveCardFromSet({value: MsgRemoveCardFromSet.fromPartial(value)})
|
|
1163
1167
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1164
1168
|
} catch (e: any) {
|
|
1165
|
-
throw new Error('TxClient:
|
|
1169
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: ' + e.message)
|
|
1166
1170
|
}
|
|
1167
1171
|
},
|
|
1168
1172
|
|
|
1169
|
-
async
|
|
1173
|
+
async sendMsgCreateSellOffer({value, fee, memo}: sendMsgCreateSellOfferParams): Promise<DeliverTxResponse> {
|
|
1170
1174
|
if (!signer) {
|
|
1171
|
-
throw new Error('TxClient:
|
|
1175
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.')
|
|
1172
1176
|
}
|
|
1173
1177
|
try {
|
|
1174
1178
|
const {address} = (await signer.getAccounts())[0];
|
|
1175
1179
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1176
|
-
let msg = this.
|
|
1180
|
+
let msg = this.msgCreateSellOffer({value: MsgCreateSellOffer.fromPartial(value)})
|
|
1177
1181
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1178
1182
|
} catch (e: any) {
|
|
1179
|
-
throw new Error('TxClient:
|
|
1183
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message)
|
|
1180
1184
|
}
|
|
1181
1185
|
},
|
|
1182
1186
|
|
|
1183
|
-
async
|
|
1184
|
-
value,
|
|
1185
|
-
fee,
|
|
1186
|
-
memo
|
|
1187
|
-
}: sendMsgRemoveContributorFromSetParams): Promise<DeliverTxResponse> {
|
|
1187
|
+
async sendMsgRestartCouncil({value, fee, memo}: sendMsgRestartCouncilParams): Promise<DeliverTxResponse> {
|
|
1188
1188
|
if (!signer) {
|
|
1189
|
-
throw new Error('TxClient:
|
|
1189
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.')
|
|
1190
1190
|
}
|
|
1191
1191
|
try {
|
|
1192
1192
|
const {address} = (await signer.getAccounts())[0];
|
|
1193
1193
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1194
|
-
let msg = this.
|
|
1194
|
+
let msg = this.msgRestartCouncil({value: MsgRestartCouncil.fromPartial(value)})
|
|
1195
1195
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1196
1196
|
} catch (e: any) {
|
|
1197
|
-
throw new Error('TxClient:
|
|
1197
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message)
|
|
1198
1198
|
}
|
|
1199
1199
|
},
|
|
1200
1200
|
|
|
1201
|
-
async
|
|
1201
|
+
async sendMsgSetCardRarity({value, fee, memo}: sendMsgSetCardRarityParams): Promise<DeliverTxResponse> {
|
|
1202
1202
|
if (!signer) {
|
|
1203
|
-
throw new Error('TxClient:
|
|
1203
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.')
|
|
1204
1204
|
}
|
|
1205
1205
|
try {
|
|
1206
1206
|
const {address} = (await signer.getAccounts())[0];
|
|
1207
1207
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1208
|
-
let msg = this.
|
|
1208
|
+
let msg = this.msgSetCardRarity({value: MsgSetCardRarity.fromPartial(value)})
|
|
1209
1209
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1210
1210
|
} catch (e: any) {
|
|
1211
|
-
throw new Error('TxClient:
|
|
1211
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message)
|
|
1212
1212
|
}
|
|
1213
1213
|
},
|
|
1214
1214
|
|
|
@@ -1227,47 +1227,47 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1227
1227
|
},
|
|
1228
1228
|
|
|
1229
1229
|
|
|
1230
|
-
|
|
1230
|
+
msgBuyCardScheme({value}: msgBuyCardSchemeParams): EncodeObject {
|
|
1231
1231
|
try {
|
|
1232
1232
|
return {
|
|
1233
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1234
|
-
value:
|
|
1233
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme",
|
|
1234
|
+
value: MsgBuyCardScheme.fromPartial(value)
|
|
1235
1235
|
}
|
|
1236
1236
|
} catch (e: any) {
|
|
1237
|
-
throw new Error('TxClient:
|
|
1237
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message)
|
|
1238
1238
|
}
|
|
1239
1239
|
},
|
|
1240
1240
|
|
|
1241
|
-
|
|
1241
|
+
msgAddArtwork({value}: msgAddArtworkParams): EncodeObject {
|
|
1242
1242
|
try {
|
|
1243
1243
|
return {
|
|
1244
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1245
|
-
value:
|
|
1244
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork",
|
|
1245
|
+
value: MsgAddArtwork.fromPartial(value)
|
|
1246
1246
|
}
|
|
1247
1247
|
} catch (e: any) {
|
|
1248
|
-
throw new Error('TxClient:
|
|
1248
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message)
|
|
1249
1249
|
}
|
|
1250
1250
|
},
|
|
1251
1251
|
|
|
1252
|
-
|
|
1252
|
+
msgSetSetName({value}: msgSetSetNameParams): EncodeObject {
|
|
1253
1253
|
try {
|
|
1254
1254
|
return {
|
|
1255
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1256
|
-
value:
|
|
1255
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName",
|
|
1256
|
+
value: MsgSetSetName.fromPartial(value)
|
|
1257
1257
|
}
|
|
1258
1258
|
} catch (e: any) {
|
|
1259
|
-
throw new Error('TxClient:
|
|
1259
|
+
throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message)
|
|
1260
1260
|
}
|
|
1261
1261
|
},
|
|
1262
1262
|
|
|
1263
|
-
|
|
1263
|
+
msgConfirmMatch({value}: msgConfirmMatchParams): EncodeObject {
|
|
1264
1264
|
try {
|
|
1265
1265
|
return {
|
|
1266
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1267
|
-
value:
|
|
1266
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch",
|
|
1267
|
+
value: MsgConfirmMatch.fromPartial(value)
|
|
1268
1268
|
}
|
|
1269
1269
|
} catch (e: any) {
|
|
1270
|
-
throw new Error('TxClient:
|
|
1270
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message)
|
|
1271
1271
|
}
|
|
1272
1272
|
},
|
|
1273
1273
|
|
|
@@ -1282,69 +1282,91 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
|
|
1285
|
-
|
|
1285
|
+
msgMultiVoteCard({value}: msgMultiVoteCardParams): EncodeObject {
|
|
1286
1286
|
try {
|
|
1287
1287
|
return {
|
|
1288
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1289
|
-
value:
|
|
1288
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard",
|
|
1289
|
+
value: MsgMultiVoteCard.fromPartial(value)
|
|
1290
1290
|
}
|
|
1291
1291
|
} catch (e: any) {
|
|
1292
|
-
throw new Error('TxClient:
|
|
1292
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message)
|
|
1293
1293
|
}
|
|
1294
1294
|
},
|
|
1295
1295
|
|
|
1296
|
-
|
|
1296
|
+
msgFinalizeSet({value}: msgFinalizeSetParams): EncodeObject {
|
|
1297
1297
|
try {
|
|
1298
1298
|
return {
|
|
1299
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1300
|
-
value:
|
|
1299
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet",
|
|
1300
|
+
value: MsgFinalizeSet.fromPartial(value)
|
|
1301
|
+
}
|
|
1302
|
+
} catch (e: any) {
|
|
1303
|
+
throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message)
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
|
|
1307
|
+
msgOpenBoosterPack({value}: msgOpenBoosterPackParams): EncodeObject {
|
|
1308
|
+
try {
|
|
1309
|
+
return {
|
|
1310
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack",
|
|
1311
|
+
value: MsgOpenBoosterPack.fromPartial(value)
|
|
1312
|
+
}
|
|
1313
|
+
} catch (e: any) {
|
|
1314
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message)
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
|
|
1318
|
+
msgTransferCard({value}: msgTransferCardParams): EncodeObject {
|
|
1319
|
+
try {
|
|
1320
|
+
return {
|
|
1321
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard",
|
|
1322
|
+
value: MsgTransferCard.fromPartial(value)
|
|
1301
1323
|
}
|
|
1302
1324
|
} catch (e: any) {
|
|
1303
|
-
throw new Error('TxClient:
|
|
1325
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message)
|
|
1304
1326
|
}
|
|
1305
1327
|
},
|
|
1306
1328
|
|
|
1307
|
-
|
|
1329
|
+
msgRemoveContributorFromSet({value}: msgRemoveContributorFromSetParams): EncodeObject {
|
|
1308
1330
|
try {
|
|
1309
1331
|
return {
|
|
1310
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1311
|
-
value:
|
|
1332
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet",
|
|
1333
|
+
value: MsgRemoveContributorFromSet.fromPartial(value)
|
|
1312
1334
|
}
|
|
1313
1335
|
} catch (e: any) {
|
|
1314
|
-
throw new Error('TxClient:
|
|
1336
|
+
throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message)
|
|
1315
1337
|
}
|
|
1316
1338
|
},
|
|
1317
1339
|
|
|
1318
|
-
|
|
1340
|
+
msgChangeAlias({value}: msgChangeAliasParams): EncodeObject {
|
|
1319
1341
|
try {
|
|
1320
1342
|
return {
|
|
1321
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1322
|
-
value:
|
|
1343
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeAlias",
|
|
1344
|
+
value: MsgChangeAlias.fromPartial(value)
|
|
1323
1345
|
}
|
|
1324
1346
|
} catch (e: any) {
|
|
1325
|
-
throw new Error('TxClient:
|
|
1347
|
+
throw new Error('TxClient:MsgChangeAlias: Could not create message: ' + e.message)
|
|
1326
1348
|
}
|
|
1327
1349
|
},
|
|
1328
1350
|
|
|
1329
|
-
|
|
1351
|
+
msgRemoveSellOffer({value}: msgRemoveSellOfferParams): EncodeObject {
|
|
1330
1352
|
try {
|
|
1331
1353
|
return {
|
|
1332
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1333
|
-
value:
|
|
1354
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer",
|
|
1355
|
+
value: MsgRemoveSellOffer.fromPartial(value)
|
|
1334
1356
|
}
|
|
1335
1357
|
} catch (e: any) {
|
|
1336
|
-
throw new Error('TxClient:
|
|
1358
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message)
|
|
1337
1359
|
}
|
|
1338
1360
|
},
|
|
1339
1361
|
|
|
1340
|
-
|
|
1362
|
+
msgApointMatchReporter({value}: msgApointMatchReporterParams): EncodeObject {
|
|
1341
1363
|
try {
|
|
1342
1364
|
return {
|
|
1343
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1344
|
-
value:
|
|
1365
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter",
|
|
1366
|
+
value: MsgApointMatchReporter.fromPartial(value)
|
|
1345
1367
|
}
|
|
1346
1368
|
} catch (e: any) {
|
|
1347
|
-
throw new Error('TxClient:
|
|
1369
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message)
|
|
1348
1370
|
}
|
|
1349
1371
|
},
|
|
1350
1372
|
|
|
@@ -1359,58 +1381,58 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1359
1381
|
}
|
|
1360
1382
|
},
|
|
1361
1383
|
|
|
1362
|
-
|
|
1384
|
+
msgAddStoryToSet({value}: msgAddStoryToSetParams): EncodeObject {
|
|
1363
1385
|
try {
|
|
1364
1386
|
return {
|
|
1365
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1366
|
-
value:
|
|
1387
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet",
|
|
1388
|
+
value: MsgAddStoryToSet.fromPartial(value)
|
|
1367
1389
|
}
|
|
1368
1390
|
} catch (e: any) {
|
|
1369
|
-
throw new Error('TxClient:
|
|
1391
|
+
throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message)
|
|
1370
1392
|
}
|
|
1371
1393
|
},
|
|
1372
1394
|
|
|
1373
|
-
|
|
1395
|
+
msgRevealCouncilResponse({value}: msgRevealCouncilResponseParams): EncodeObject {
|
|
1374
1396
|
try {
|
|
1375
1397
|
return {
|
|
1376
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1377
|
-
value:
|
|
1398
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse",
|
|
1399
|
+
value: MsgRevealCouncilResponse.fromPartial(value)
|
|
1378
1400
|
}
|
|
1379
1401
|
} catch (e: any) {
|
|
1380
|
-
throw new Error('TxClient:
|
|
1402
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message)
|
|
1381
1403
|
}
|
|
1382
1404
|
},
|
|
1383
1405
|
|
|
1384
|
-
|
|
1406
|
+
msgSetSetArtist({value}: msgSetSetArtistParams): EncodeObject {
|
|
1385
1407
|
try {
|
|
1386
1408
|
return {
|
|
1387
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1388
|
-
value:
|
|
1409
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist",
|
|
1410
|
+
value: MsgSetSetArtist.fromPartial(value)
|
|
1389
1411
|
}
|
|
1390
1412
|
} catch (e: any) {
|
|
1391
|
-
throw new Error('TxClient:
|
|
1413
|
+
throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message)
|
|
1392
1414
|
}
|
|
1393
1415
|
},
|
|
1394
1416
|
|
|
1395
|
-
|
|
1417
|
+
msgReportMatch({value}: msgReportMatchParams): EncodeObject {
|
|
1396
1418
|
try {
|
|
1397
1419
|
return {
|
|
1398
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1399
|
-
value:
|
|
1420
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch",
|
|
1421
|
+
value: MsgReportMatch.fromPartial(value)
|
|
1400
1422
|
}
|
|
1401
1423
|
} catch (e: any) {
|
|
1402
|
-
throw new Error('TxClient:
|
|
1424
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message)
|
|
1403
1425
|
}
|
|
1404
1426
|
},
|
|
1405
1427
|
|
|
1406
|
-
|
|
1428
|
+
msgCreateCouncil({value}: msgCreateCouncilParams): EncodeObject {
|
|
1407
1429
|
try {
|
|
1408
1430
|
return {
|
|
1409
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1410
|
-
value:
|
|
1431
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil",
|
|
1432
|
+
value: MsgCreateCouncil.fromPartial(value)
|
|
1411
1433
|
}
|
|
1412
1434
|
} catch (e: any) {
|
|
1413
|
-
throw new Error('TxClient:
|
|
1435
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message)
|
|
1414
1436
|
}
|
|
1415
1437
|
},
|
|
1416
1438
|
|
|
@@ -1425,168 +1447,168 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1425
1447
|
}
|
|
1426
1448
|
},
|
|
1427
1449
|
|
|
1428
|
-
|
|
1450
|
+
msgSetUserBiography({value}: msgSetUserBiographyParams): EncodeObject {
|
|
1429
1451
|
try {
|
|
1430
1452
|
return {
|
|
1431
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1432
|
-
value:
|
|
1453
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography",
|
|
1454
|
+
value: MsgSetUserBiography.fromPartial(value)
|
|
1433
1455
|
}
|
|
1434
1456
|
} catch (e: any) {
|
|
1435
|
-
throw new Error('TxClient:
|
|
1457
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1436
1458
|
}
|
|
1437
1459
|
},
|
|
1438
1460
|
|
|
1439
|
-
|
|
1461
|
+
msgAddCardToSet({value}: msgAddCardToSetParams): EncodeObject {
|
|
1440
1462
|
try {
|
|
1441
1463
|
return {
|
|
1442
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1443
|
-
value:
|
|
1464
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet",
|
|
1465
|
+
value: MsgAddCardToSet.fromPartial(value)
|
|
1444
1466
|
}
|
|
1445
1467
|
} catch (e: any) {
|
|
1446
|
-
throw new Error('TxClient:
|
|
1468
|
+
throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message)
|
|
1447
1469
|
}
|
|
1448
1470
|
},
|
|
1449
1471
|
|
|
1450
|
-
|
|
1472
|
+
msgCreateSet({value}: msgCreateSetParams): EncodeObject {
|
|
1451
1473
|
try {
|
|
1452
1474
|
return {
|
|
1453
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1454
|
-
value:
|
|
1475
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet",
|
|
1476
|
+
value: MsgCreateSet.fromPartial(value)
|
|
1455
1477
|
}
|
|
1456
1478
|
} catch (e: any) {
|
|
1457
|
-
throw new Error('TxClient:
|
|
1479
|
+
throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message)
|
|
1458
1480
|
}
|
|
1459
1481
|
},
|
|
1460
1482
|
|
|
1461
|
-
|
|
1483
|
+
msgDisinviteEarlyAccess({value}: msgDisinviteEarlyAccessParams): EncodeObject {
|
|
1462
1484
|
try {
|
|
1463
1485
|
return {
|
|
1464
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1465
|
-
value:
|
|
1486
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDisinviteEarlyAccess",
|
|
1487
|
+
value: MsgDisinviteEarlyAccess.fromPartial(value)
|
|
1466
1488
|
}
|
|
1467
1489
|
} catch (e: any) {
|
|
1468
|
-
throw new Error('TxClient:
|
|
1490
|
+
throw new Error('TxClient:MsgDisinviteEarlyAccess: Could not create message: ' + e.message)
|
|
1469
1491
|
}
|
|
1470
1492
|
},
|
|
1471
1493
|
|
|
1472
|
-
|
|
1494
|
+
msgVoteCard({value}: msgVoteCardParams): EncodeObject {
|
|
1473
1495
|
try {
|
|
1474
1496
|
return {
|
|
1475
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1476
|
-
value:
|
|
1497
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard",
|
|
1498
|
+
value: MsgVoteCard.fromPartial(value)
|
|
1477
1499
|
}
|
|
1478
1500
|
} catch (e: any) {
|
|
1479
|
-
throw new Error('TxClient:
|
|
1501
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message)
|
|
1480
1502
|
}
|
|
1481
1503
|
},
|
|
1482
1504
|
|
|
1483
|
-
|
|
1505
|
+
msgSetUserWebsite({value}: msgSetUserWebsiteParams): EncodeObject {
|
|
1484
1506
|
try {
|
|
1485
1507
|
return {
|
|
1486
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1487
|
-
value:
|
|
1508
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite",
|
|
1509
|
+
value: MsgSetUserWebsite.fromPartial(value)
|
|
1488
1510
|
}
|
|
1489
1511
|
} catch (e: any) {
|
|
1490
|
-
throw new Error('TxClient:
|
|
1512
|
+
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message)
|
|
1491
1513
|
}
|
|
1492
1514
|
},
|
|
1493
1515
|
|
|
1494
|
-
|
|
1516
|
+
msgSetSetStoryWriter({value}: msgSetSetStoryWriterParams): EncodeObject {
|
|
1495
1517
|
try {
|
|
1496
1518
|
return {
|
|
1497
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1498
|
-
value:
|
|
1519
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter",
|
|
1520
|
+
value: MsgSetSetStoryWriter.fromPartial(value)
|
|
1499
1521
|
}
|
|
1500
1522
|
} catch (e: any) {
|
|
1501
|
-
throw new Error('TxClient:
|
|
1523
|
+
throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message)
|
|
1502
1524
|
}
|
|
1503
1525
|
},
|
|
1504
1526
|
|
|
1505
|
-
|
|
1527
|
+
msgRewokeCouncilRegistration({value}: msgRewokeCouncilRegistrationParams): EncodeObject {
|
|
1506
1528
|
try {
|
|
1507
1529
|
return {
|
|
1508
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1509
|
-
value:
|
|
1530
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration",
|
|
1531
|
+
value: MsgRewokeCouncilRegistration.fromPartial(value)
|
|
1510
1532
|
}
|
|
1511
1533
|
} catch (e: any) {
|
|
1512
|
-
throw new Error('TxClient:
|
|
1534
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message)
|
|
1513
1535
|
}
|
|
1514
1536
|
},
|
|
1515
1537
|
|
|
1516
|
-
|
|
1538
|
+
msgCommitCouncilResponse({value}: msgCommitCouncilResponseParams): EncodeObject {
|
|
1517
1539
|
try {
|
|
1518
1540
|
return {
|
|
1519
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1520
|
-
value:
|
|
1541
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse",
|
|
1542
|
+
value: MsgCommitCouncilResponse.fromPartial(value)
|
|
1521
1543
|
}
|
|
1522
1544
|
} catch (e: any) {
|
|
1523
|
-
throw new Error('TxClient:
|
|
1545
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message)
|
|
1524
1546
|
}
|
|
1525
1547
|
},
|
|
1526
1548
|
|
|
1527
|
-
|
|
1549
|
+
msgBuyBoosterPack({value}: msgBuyBoosterPackParams): EncodeObject {
|
|
1528
1550
|
try {
|
|
1529
1551
|
return {
|
|
1530
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1531
|
-
value:
|
|
1552
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack",
|
|
1553
|
+
value: MsgBuyBoosterPack.fromPartial(value)
|
|
1532
1554
|
}
|
|
1533
1555
|
} catch (e: any) {
|
|
1534
|
-
throw new Error('TxClient:
|
|
1556
|
+
throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message)
|
|
1535
1557
|
}
|
|
1536
1558
|
},
|
|
1537
1559
|
|
|
1538
|
-
|
|
1560
|
+
msgAddContributorToSet({value}: msgAddContributorToSetParams): EncodeObject {
|
|
1539
1561
|
try {
|
|
1540
1562
|
return {
|
|
1541
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1542
|
-
value:
|
|
1563
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet",
|
|
1564
|
+
value: MsgAddContributorToSet.fromPartial(value)
|
|
1543
1565
|
}
|
|
1544
1566
|
} catch (e: any) {
|
|
1545
|
-
throw new Error('TxClient:
|
|
1567
|
+
throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message)
|
|
1546
1568
|
}
|
|
1547
1569
|
},
|
|
1548
1570
|
|
|
1549
|
-
|
|
1571
|
+
msgRegisterForCouncil({value}: msgRegisterForCouncilParams): EncodeObject {
|
|
1550
1572
|
try {
|
|
1551
1573
|
return {
|
|
1552
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1553
|
-
value:
|
|
1574
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil",
|
|
1575
|
+
value: MsgRegisterForCouncil.fromPartial(value)
|
|
1554
1576
|
}
|
|
1555
1577
|
} catch (e: any) {
|
|
1556
|
-
throw new Error('TxClient:
|
|
1578
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message)
|
|
1557
1579
|
}
|
|
1558
1580
|
},
|
|
1559
1581
|
|
|
1560
|
-
|
|
1582
|
+
msgOpenMatch({value}: msgOpenMatchParams): EncodeObject {
|
|
1561
1583
|
try {
|
|
1562
1584
|
return {
|
|
1563
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1564
|
-
value:
|
|
1585
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch",
|
|
1586
|
+
value: MsgOpenMatch.fromPartial(value)
|
|
1565
1587
|
}
|
|
1566
1588
|
} catch (e: any) {
|
|
1567
|
-
throw new Error('TxClient:
|
|
1589
|
+
throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message)
|
|
1568
1590
|
}
|
|
1569
1591
|
},
|
|
1570
1592
|
|
|
1571
|
-
|
|
1593
|
+
msgSetProfileCard({value}: msgSetProfileCardParams): EncodeObject {
|
|
1572
1594
|
try {
|
|
1573
1595
|
return {
|
|
1574
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1575
|
-
value:
|
|
1596
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard",
|
|
1597
|
+
value: MsgSetProfileCard.fromPartial(value)
|
|
1576
1598
|
}
|
|
1577
1599
|
} catch (e: any) {
|
|
1578
|
-
throw new Error('TxClient:
|
|
1600
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message)
|
|
1579
1601
|
}
|
|
1580
1602
|
},
|
|
1581
1603
|
|
|
1582
|
-
|
|
1604
|
+
msgChangeArtist({value}: msgChangeArtistParams): EncodeObject {
|
|
1583
1605
|
try {
|
|
1584
1606
|
return {
|
|
1585
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1586
|
-
value:
|
|
1607
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist",
|
|
1608
|
+
value: MsgChangeArtist.fromPartial(value)
|
|
1587
1609
|
}
|
|
1588
1610
|
} catch (e: any) {
|
|
1589
|
-
throw new Error('TxClient:
|
|
1611
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message)
|
|
1590
1612
|
}
|
|
1591
1613
|
},
|
|
1592
1614
|
|
|
@@ -1601,25 +1623,25 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1601
1623
|
}
|
|
1602
1624
|
},
|
|
1603
1625
|
|
|
1604
|
-
|
|
1626
|
+
msgBuyCard({value}: msgBuyCardParams): EncodeObject {
|
|
1605
1627
|
try {
|
|
1606
1628
|
return {
|
|
1607
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1608
|
-
value:
|
|
1629
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard",
|
|
1630
|
+
value: MsgBuyCard.fromPartial(value)
|
|
1609
1631
|
}
|
|
1610
1632
|
} catch (e: any) {
|
|
1611
|
-
throw new Error('TxClient:
|
|
1633
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message)
|
|
1612
1634
|
}
|
|
1613
1635
|
},
|
|
1614
1636
|
|
|
1615
|
-
|
|
1637
|
+
msgCreateuser({value}: msgCreateuserParams): EncodeObject {
|
|
1616
1638
|
try {
|
|
1617
1639
|
return {
|
|
1618
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1619
|
-
value:
|
|
1640
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser",
|
|
1641
|
+
value: MsgCreateuser.fromPartial(value)
|
|
1620
1642
|
}
|
|
1621
1643
|
} catch (e: any) {
|
|
1622
|
-
throw new Error('TxClient:
|
|
1644
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message)
|
|
1623
1645
|
}
|
|
1624
1646
|
},
|
|
1625
1647
|
|
|
@@ -1634,58 +1656,36 @@ export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
|
1634
1656
|
}
|
|
1635
1657
|
},
|
|
1636
1658
|
|
|
1637
|
-
|
|
1638
|
-
try {
|
|
1639
|
-
return {
|
|
1640
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography",
|
|
1641
|
-
value: MsgSetUserBiography.fromPartial(value)
|
|
1642
|
-
}
|
|
1643
|
-
} catch (e: any) {
|
|
1644
|
-
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1645
|
-
}
|
|
1646
|
-
},
|
|
1647
|
-
|
|
1648
|
-
msgCreateuser({value}: msgCreateuserParams): EncodeObject {
|
|
1649
|
-
try {
|
|
1650
|
-
return {
|
|
1651
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser",
|
|
1652
|
-
value: MsgCreateuser.fromPartial(value)
|
|
1653
|
-
}
|
|
1654
|
-
} catch (e: any) {
|
|
1655
|
-
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message)
|
|
1656
|
-
}
|
|
1657
|
-
},
|
|
1658
|
-
|
|
1659
|
-
msgCreateSet({value}: msgCreateSetParams): EncodeObject {
|
|
1659
|
+
msgCreateSellOffer({value}: msgCreateSellOfferParams): EncodeObject {
|
|
1660
1660
|
try {
|
|
1661
1661
|
return {
|
|
1662
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1663
|
-
value:
|
|
1662
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer",
|
|
1663
|
+
value: MsgCreateSellOffer.fromPartial(value)
|
|
1664
1664
|
}
|
|
1665
1665
|
} catch (e: any) {
|
|
1666
|
-
throw new Error('TxClient:
|
|
1666
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message)
|
|
1667
1667
|
}
|
|
1668
1668
|
},
|
|
1669
1669
|
|
|
1670
|
-
|
|
1670
|
+
msgRestartCouncil({value}: msgRestartCouncilParams): EncodeObject {
|
|
1671
1671
|
try {
|
|
1672
1672
|
return {
|
|
1673
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1674
|
-
value:
|
|
1673
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil",
|
|
1674
|
+
value: MsgRestartCouncil.fromPartial(value)
|
|
1675
1675
|
}
|
|
1676
1676
|
} catch (e: any) {
|
|
1677
|
-
throw new Error('TxClient:
|
|
1677
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message)
|
|
1678
1678
|
}
|
|
1679
1679
|
},
|
|
1680
1680
|
|
|
1681
|
-
|
|
1681
|
+
msgSetCardRarity({value}: msgSetCardRarityParams): EncodeObject {
|
|
1682
1682
|
try {
|
|
1683
1683
|
return {
|
|
1684
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1685
|
-
value:
|
|
1684
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity",
|
|
1685
|
+
value: MsgSetCardRarity.fromPartial(value)
|
|
1686
1686
|
}
|
|
1687
1687
|
} catch (e: any) {
|
|
1688
|
-
throw new Error('TxClient:
|
|
1688
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message)
|
|
1689
1689
|
}
|
|
1690
1690
|
},
|
|
1691
1691
|
|