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