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