decentralcardgame-cardchain-client-ts 0.0.17 → 0.0.18
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 +304 -310
- package/DecentralCardGame.cardchain.cardchain/module.ts +460 -466
- package/DecentralCardGame.cardchain.cardchain/registry.js +60 -60
- package/DecentralCardGame.cardchain.cardchain/registry.ts +60 -60
- package/DecentralCardGame.cardchain.cardchain/rest.js +7 -31
- package/DecentralCardGame.cardchain.cardchain/rest.ts +9 -84
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +0 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +0 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +0 -11
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +0 -13
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2 -331
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2 -390
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +9 -9
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +57 -81
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +56 -93
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +50 -59
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +53 -71
- package/DecentralCardGame.cardchain.cardchain/types.js +1 -4
- package/DecentralCardGame.cardchain.cardchain/types.ts +0 -6
- package/package.json +1 -1
|
@@ -7,46 +7,46 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
11
|
-
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
12
10
|
import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
12
|
+
import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
17
|
+
import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
|
|
19
|
+
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
20
|
+
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
13
21
|
import { MsgFinalizeSet } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
14
25
|
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
15
|
-
import {
|
|
16
|
-
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
17
|
-
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
18
|
-
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
19
|
-
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
20
|
-
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
21
27
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
22
28
|
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
29
|
+
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
31
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
34
|
+
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
27
35
|
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
28
|
-
import {
|
|
36
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
37
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
38
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
29
39
|
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
30
40
|
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
31
|
-
import {
|
|
32
|
-
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
33
|
-
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
35
|
-
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
37
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
38
|
-
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
39
|
-
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
40
|
-
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
41
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
42
|
-
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
43
|
-
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
41
|
+
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
44
42
|
import { MsgAddArtworkToSet } from "./types/cardchain/cardchain/tx";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
43
|
+
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
44
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
47
45
|
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
46
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
47
|
+
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
48
|
+
import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
|
|
49
|
+
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
50
50
|
|
|
51
51
|
import { Card as typeCard} from "./types"
|
|
52
52
|
import { TimeStamp as typeTimeStamp} from "./types"
|
|
@@ -61,184 +61,181 @@ import { Params as typeParams} from "./types"
|
|
|
61
61
|
import { IgnoreMatches as typeIgnoreMatches} from "./types"
|
|
62
62
|
import { IgnoreSellOffers as typeIgnoreSellOffers} from "./types"
|
|
63
63
|
import { QueryQServerResponse as typeQueryQServerResponse} from "./types"
|
|
64
|
-
import { IgnoreCouncils as typeIgnoreCouncils} from "./types"
|
|
65
64
|
import { RunningAverage as typeRunningAverage} from "./types"
|
|
66
65
|
import { Set as typeSet} from "./types"
|
|
67
66
|
import { SetProposal as typeSetProposal} from "./types"
|
|
68
|
-
import { CouncilParticipation as typeCouncilParticipation} from "./types"
|
|
69
67
|
import { BoosterPack as typeBoosterPack} from "./types"
|
|
70
68
|
import { AirDrops as typeAirDrops} from "./types"
|
|
71
69
|
import { VotingResults as typeVotingResults} from "./types"
|
|
72
70
|
import { VotingResult as typeVotingResult} from "./types"
|
|
73
71
|
import { SingleVote as typeSingleVote} from "./types"
|
|
74
|
-
import { VoteRight as typeVoteRight} from "./types"
|
|
75
72
|
|
|
76
|
-
export {
|
|
73
|
+
export { MsgBuyBoosterPack, MsgAddCardToSet, MsgRemoveCardFromSet, MsgBuyCard, MsgChangeArtist, MsgTransferCard, MsgRemoveSellOffer, MsgRemoveContributorFromSet, MsgOpenMatch, MsgRestartCouncil, MsgAddContributorToSet, MsgFinalizeSet, MsgSetSetStoryWriter, MsgReportMatch, MsgRevealCouncilResponse, MsgSetUserWebsite, MsgCreateCouncil, MsgDonateToCard, MsgRegisterForCouncil, MsgSetSetArtist, MsgSetSetName, MsgVoteCard, MsgAddStoryToSet, MsgBuyCardScheme, MsgAddArtwork, MsgMultiVoteCard, MsgSetUserBiography, MsgRewokeCouncilRegistration, MsgCreateSellOffer, MsgSetProfileCard, MsgCommitCouncilResponse, MsgConfirmMatch, MsgAddArtworkToSet, MsgSetCardRarity, MsgSaveCardContent, MsgApointMatchReporter, MsgOpenBoosterPack, MsgCreateuser, MsgCreateSet, MsgTransferBoosterPack };
|
|
77
74
|
|
|
78
|
-
type
|
|
79
|
-
value:
|
|
75
|
+
type sendMsgBuyBoosterPackParams = {
|
|
76
|
+
value: MsgBuyBoosterPack,
|
|
80
77
|
fee?: StdFee,
|
|
81
78
|
memo?: string
|
|
82
79
|
};
|
|
83
80
|
|
|
84
|
-
type
|
|
85
|
-
value:
|
|
81
|
+
type sendMsgAddCardToSetParams = {
|
|
82
|
+
value: MsgAddCardToSet,
|
|
86
83
|
fee?: StdFee,
|
|
87
84
|
memo?: string
|
|
88
85
|
};
|
|
89
86
|
|
|
90
|
-
type
|
|
91
|
-
value:
|
|
87
|
+
type sendMsgRemoveCardFromSetParams = {
|
|
88
|
+
value: MsgRemoveCardFromSet,
|
|
92
89
|
fee?: StdFee,
|
|
93
90
|
memo?: string
|
|
94
91
|
};
|
|
95
92
|
|
|
96
|
-
type
|
|
97
|
-
value:
|
|
93
|
+
type sendMsgBuyCardParams = {
|
|
94
|
+
value: MsgBuyCard,
|
|
98
95
|
fee?: StdFee,
|
|
99
96
|
memo?: string
|
|
100
97
|
};
|
|
101
98
|
|
|
102
|
-
type
|
|
103
|
-
value:
|
|
99
|
+
type sendMsgChangeArtistParams = {
|
|
100
|
+
value: MsgChangeArtist,
|
|
104
101
|
fee?: StdFee,
|
|
105
102
|
memo?: string
|
|
106
103
|
};
|
|
107
104
|
|
|
108
|
-
type
|
|
109
|
-
value:
|
|
105
|
+
type sendMsgTransferCardParams = {
|
|
106
|
+
value: MsgTransferCard,
|
|
110
107
|
fee?: StdFee,
|
|
111
108
|
memo?: string
|
|
112
109
|
};
|
|
113
110
|
|
|
114
|
-
type
|
|
115
|
-
value:
|
|
111
|
+
type sendMsgRemoveSellOfferParams = {
|
|
112
|
+
value: MsgRemoveSellOffer,
|
|
116
113
|
fee?: StdFee,
|
|
117
114
|
memo?: string
|
|
118
115
|
};
|
|
119
116
|
|
|
120
|
-
type
|
|
121
|
-
value:
|
|
117
|
+
type sendMsgRemoveContributorFromSetParams = {
|
|
118
|
+
value: MsgRemoveContributorFromSet,
|
|
122
119
|
fee?: StdFee,
|
|
123
120
|
memo?: string
|
|
124
121
|
};
|
|
125
122
|
|
|
126
|
-
type
|
|
127
|
-
value:
|
|
123
|
+
type sendMsgOpenMatchParams = {
|
|
124
|
+
value: MsgOpenMatch,
|
|
128
125
|
fee?: StdFee,
|
|
129
126
|
memo?: string
|
|
130
127
|
};
|
|
131
128
|
|
|
132
|
-
type
|
|
133
|
-
value:
|
|
129
|
+
type sendMsgRestartCouncilParams = {
|
|
130
|
+
value: MsgRestartCouncil,
|
|
134
131
|
fee?: StdFee,
|
|
135
132
|
memo?: string
|
|
136
133
|
};
|
|
137
134
|
|
|
138
|
-
type
|
|
139
|
-
value:
|
|
135
|
+
type sendMsgAddContributorToSetParams = {
|
|
136
|
+
value: MsgAddContributorToSet,
|
|
140
137
|
fee?: StdFee,
|
|
141
138
|
memo?: string
|
|
142
139
|
};
|
|
143
140
|
|
|
144
|
-
type
|
|
145
|
-
value:
|
|
141
|
+
type sendMsgFinalizeSetParams = {
|
|
142
|
+
value: MsgFinalizeSet,
|
|
146
143
|
fee?: StdFee,
|
|
147
144
|
memo?: string
|
|
148
145
|
};
|
|
149
146
|
|
|
150
|
-
type
|
|
151
|
-
value:
|
|
147
|
+
type sendMsgSetSetStoryWriterParams = {
|
|
148
|
+
value: MsgSetSetStoryWriter,
|
|
152
149
|
fee?: StdFee,
|
|
153
150
|
memo?: string
|
|
154
151
|
};
|
|
155
152
|
|
|
156
|
-
type
|
|
157
|
-
value:
|
|
153
|
+
type sendMsgReportMatchParams = {
|
|
154
|
+
value: MsgReportMatch,
|
|
158
155
|
fee?: StdFee,
|
|
159
156
|
memo?: string
|
|
160
157
|
};
|
|
161
158
|
|
|
162
|
-
type
|
|
163
|
-
value:
|
|
159
|
+
type sendMsgRevealCouncilResponseParams = {
|
|
160
|
+
value: MsgRevealCouncilResponse,
|
|
164
161
|
fee?: StdFee,
|
|
165
162
|
memo?: string
|
|
166
163
|
};
|
|
167
164
|
|
|
168
|
-
type
|
|
169
|
-
value:
|
|
165
|
+
type sendMsgSetUserWebsiteParams = {
|
|
166
|
+
value: MsgSetUserWebsite,
|
|
170
167
|
fee?: StdFee,
|
|
171
168
|
memo?: string
|
|
172
169
|
};
|
|
173
170
|
|
|
174
|
-
type
|
|
175
|
-
value:
|
|
171
|
+
type sendMsgCreateCouncilParams = {
|
|
172
|
+
value: MsgCreateCouncil,
|
|
176
173
|
fee?: StdFee,
|
|
177
174
|
memo?: string
|
|
178
175
|
};
|
|
179
176
|
|
|
180
|
-
type
|
|
181
|
-
value:
|
|
177
|
+
type sendMsgDonateToCardParams = {
|
|
178
|
+
value: MsgDonateToCard,
|
|
182
179
|
fee?: StdFee,
|
|
183
180
|
memo?: string
|
|
184
181
|
};
|
|
185
182
|
|
|
186
|
-
type
|
|
187
|
-
value:
|
|
183
|
+
type sendMsgRegisterForCouncilParams = {
|
|
184
|
+
value: MsgRegisterForCouncil,
|
|
188
185
|
fee?: StdFee,
|
|
189
186
|
memo?: string
|
|
190
187
|
};
|
|
191
188
|
|
|
192
|
-
type
|
|
193
|
-
value:
|
|
189
|
+
type sendMsgSetSetArtistParams = {
|
|
190
|
+
value: MsgSetSetArtist,
|
|
194
191
|
fee?: StdFee,
|
|
195
192
|
memo?: string
|
|
196
193
|
};
|
|
197
194
|
|
|
198
|
-
type
|
|
199
|
-
value:
|
|
195
|
+
type sendMsgSetSetNameParams = {
|
|
196
|
+
value: MsgSetSetName,
|
|
200
197
|
fee?: StdFee,
|
|
201
198
|
memo?: string
|
|
202
199
|
};
|
|
203
200
|
|
|
204
|
-
type
|
|
205
|
-
value:
|
|
201
|
+
type sendMsgVoteCardParams = {
|
|
202
|
+
value: MsgVoteCard,
|
|
206
203
|
fee?: StdFee,
|
|
207
204
|
memo?: string
|
|
208
205
|
};
|
|
209
206
|
|
|
210
|
-
type
|
|
211
|
-
value:
|
|
207
|
+
type sendMsgAddStoryToSetParams = {
|
|
208
|
+
value: MsgAddStoryToSet,
|
|
212
209
|
fee?: StdFee,
|
|
213
210
|
memo?: string
|
|
214
211
|
};
|
|
215
212
|
|
|
216
|
-
type
|
|
217
|
-
value:
|
|
213
|
+
type sendMsgBuyCardSchemeParams = {
|
|
214
|
+
value: MsgBuyCardScheme,
|
|
218
215
|
fee?: StdFee,
|
|
219
216
|
memo?: string
|
|
220
217
|
};
|
|
221
218
|
|
|
222
|
-
type
|
|
223
|
-
value:
|
|
219
|
+
type sendMsgAddArtworkParams = {
|
|
220
|
+
value: MsgAddArtwork,
|
|
224
221
|
fee?: StdFee,
|
|
225
222
|
memo?: string
|
|
226
223
|
};
|
|
227
224
|
|
|
228
|
-
type
|
|
229
|
-
value:
|
|
225
|
+
type sendMsgMultiVoteCardParams = {
|
|
226
|
+
value: MsgMultiVoteCard,
|
|
230
227
|
fee?: StdFee,
|
|
231
228
|
memo?: string
|
|
232
229
|
};
|
|
233
230
|
|
|
234
|
-
type
|
|
235
|
-
value:
|
|
231
|
+
type sendMsgSetUserBiographyParams = {
|
|
232
|
+
value: MsgSetUserBiography,
|
|
236
233
|
fee?: StdFee,
|
|
237
234
|
memo?: string
|
|
238
235
|
};
|
|
239
236
|
|
|
240
|
-
type
|
|
241
|
-
value:
|
|
237
|
+
type sendMsgRewokeCouncilRegistrationParams = {
|
|
238
|
+
value: MsgRewokeCouncilRegistration,
|
|
242
239
|
fee?: StdFee,
|
|
243
240
|
memo?: string
|
|
244
241
|
};
|
|
@@ -249,231 +246,231 @@ type sendMsgCreateSellOfferParams = {
|
|
|
249
246
|
memo?: string
|
|
250
247
|
};
|
|
251
248
|
|
|
252
|
-
type
|
|
253
|
-
value:
|
|
249
|
+
type sendMsgSetProfileCardParams = {
|
|
250
|
+
value: MsgSetProfileCard,
|
|
254
251
|
fee?: StdFee,
|
|
255
252
|
memo?: string
|
|
256
253
|
};
|
|
257
254
|
|
|
258
|
-
type
|
|
259
|
-
value:
|
|
255
|
+
type sendMsgCommitCouncilResponseParams = {
|
|
256
|
+
value: MsgCommitCouncilResponse,
|
|
260
257
|
fee?: StdFee,
|
|
261
258
|
memo?: string
|
|
262
259
|
};
|
|
263
260
|
|
|
264
|
-
type
|
|
265
|
-
value:
|
|
261
|
+
type sendMsgConfirmMatchParams = {
|
|
262
|
+
value: MsgConfirmMatch,
|
|
266
263
|
fee?: StdFee,
|
|
267
264
|
memo?: string
|
|
268
265
|
};
|
|
269
266
|
|
|
270
|
-
type
|
|
271
|
-
value:
|
|
267
|
+
type sendMsgAddArtworkToSetParams = {
|
|
268
|
+
value: MsgAddArtworkToSet,
|
|
272
269
|
fee?: StdFee,
|
|
273
270
|
memo?: string
|
|
274
271
|
};
|
|
275
272
|
|
|
276
|
-
type
|
|
277
|
-
value:
|
|
273
|
+
type sendMsgSetCardRarityParams = {
|
|
274
|
+
value: MsgSetCardRarity,
|
|
278
275
|
fee?: StdFee,
|
|
279
276
|
memo?: string
|
|
280
277
|
};
|
|
281
278
|
|
|
282
|
-
type
|
|
283
|
-
value:
|
|
279
|
+
type sendMsgSaveCardContentParams = {
|
|
280
|
+
value: MsgSaveCardContent,
|
|
284
281
|
fee?: StdFee,
|
|
285
282
|
memo?: string
|
|
286
283
|
};
|
|
287
284
|
|
|
288
|
-
type
|
|
289
|
-
value:
|
|
285
|
+
type sendMsgApointMatchReporterParams = {
|
|
286
|
+
value: MsgApointMatchReporter,
|
|
290
287
|
fee?: StdFee,
|
|
291
288
|
memo?: string
|
|
292
289
|
};
|
|
293
290
|
|
|
294
|
-
type
|
|
295
|
-
value:
|
|
291
|
+
type sendMsgOpenBoosterPackParams = {
|
|
292
|
+
value: MsgOpenBoosterPack,
|
|
296
293
|
fee?: StdFee,
|
|
297
294
|
memo?: string
|
|
298
295
|
};
|
|
299
296
|
|
|
300
|
-
type
|
|
301
|
-
value:
|
|
297
|
+
type sendMsgCreateuserParams = {
|
|
298
|
+
value: MsgCreateuser,
|
|
302
299
|
fee?: StdFee,
|
|
303
300
|
memo?: string
|
|
304
301
|
};
|
|
305
302
|
|
|
306
|
-
type
|
|
307
|
-
value:
|
|
303
|
+
type sendMsgCreateSetParams = {
|
|
304
|
+
value: MsgCreateSet,
|
|
308
305
|
fee?: StdFee,
|
|
309
306
|
memo?: string
|
|
310
307
|
};
|
|
311
308
|
|
|
312
|
-
type
|
|
313
|
-
value:
|
|
309
|
+
type sendMsgTransferBoosterPackParams = {
|
|
310
|
+
value: MsgTransferBoosterPack,
|
|
314
311
|
fee?: StdFee,
|
|
315
312
|
memo?: string
|
|
316
313
|
};
|
|
317
314
|
|
|
318
315
|
|
|
319
|
-
type msgAddArtworkParams = {
|
|
320
|
-
value: MsgAddArtwork,
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
type msgSetSetStoryWriterParams = {
|
|
324
|
-
value: MsgSetSetStoryWriter,
|
|
325
|
-
};
|
|
326
|
-
|
|
327
316
|
type msgBuyBoosterPackParams = {
|
|
328
317
|
value: MsgBuyBoosterPack,
|
|
329
318
|
};
|
|
330
319
|
|
|
331
|
-
type
|
|
332
|
-
value:
|
|
320
|
+
type msgAddCardToSetParams = {
|
|
321
|
+
value: MsgAddCardToSet,
|
|
333
322
|
};
|
|
334
323
|
|
|
335
|
-
type
|
|
336
|
-
value:
|
|
324
|
+
type msgRemoveCardFromSetParams = {
|
|
325
|
+
value: MsgRemoveCardFromSet,
|
|
337
326
|
};
|
|
338
327
|
|
|
339
|
-
type
|
|
340
|
-
value:
|
|
328
|
+
type msgBuyCardParams = {
|
|
329
|
+
value: MsgBuyCard,
|
|
341
330
|
};
|
|
342
331
|
|
|
343
|
-
type
|
|
344
|
-
value:
|
|
332
|
+
type msgChangeArtistParams = {
|
|
333
|
+
value: MsgChangeArtist,
|
|
345
334
|
};
|
|
346
335
|
|
|
347
|
-
type
|
|
348
|
-
value:
|
|
336
|
+
type msgTransferCardParams = {
|
|
337
|
+
value: MsgTransferCard,
|
|
349
338
|
};
|
|
350
339
|
|
|
351
|
-
type
|
|
352
|
-
value:
|
|
340
|
+
type msgRemoveSellOfferParams = {
|
|
341
|
+
value: MsgRemoveSellOffer,
|
|
353
342
|
};
|
|
354
343
|
|
|
355
|
-
type
|
|
356
|
-
value:
|
|
344
|
+
type msgRemoveContributorFromSetParams = {
|
|
345
|
+
value: MsgRemoveContributorFromSet,
|
|
357
346
|
};
|
|
358
347
|
|
|
359
|
-
type
|
|
360
|
-
value:
|
|
348
|
+
type msgOpenMatchParams = {
|
|
349
|
+
value: MsgOpenMatch,
|
|
361
350
|
};
|
|
362
351
|
|
|
363
|
-
type
|
|
364
|
-
value:
|
|
352
|
+
type msgRestartCouncilParams = {
|
|
353
|
+
value: MsgRestartCouncil,
|
|
365
354
|
};
|
|
366
355
|
|
|
367
|
-
type
|
|
368
|
-
value:
|
|
356
|
+
type msgAddContributorToSetParams = {
|
|
357
|
+
value: MsgAddContributorToSet,
|
|
369
358
|
};
|
|
370
359
|
|
|
371
|
-
type
|
|
372
|
-
value:
|
|
360
|
+
type msgFinalizeSetParams = {
|
|
361
|
+
value: MsgFinalizeSet,
|
|
373
362
|
};
|
|
374
363
|
|
|
375
|
-
type
|
|
376
|
-
value:
|
|
364
|
+
type msgSetSetStoryWriterParams = {
|
|
365
|
+
value: MsgSetSetStoryWriter,
|
|
377
366
|
};
|
|
378
367
|
|
|
379
|
-
type
|
|
380
|
-
value:
|
|
368
|
+
type msgReportMatchParams = {
|
|
369
|
+
value: MsgReportMatch,
|
|
381
370
|
};
|
|
382
371
|
|
|
383
|
-
type
|
|
384
|
-
value:
|
|
372
|
+
type msgRevealCouncilResponseParams = {
|
|
373
|
+
value: MsgRevealCouncilResponse,
|
|
385
374
|
};
|
|
386
375
|
|
|
387
|
-
type
|
|
388
|
-
value:
|
|
376
|
+
type msgSetUserWebsiteParams = {
|
|
377
|
+
value: MsgSetUserWebsite,
|
|
389
378
|
};
|
|
390
379
|
|
|
391
|
-
type
|
|
392
|
-
value:
|
|
380
|
+
type msgCreateCouncilParams = {
|
|
381
|
+
value: MsgCreateCouncil,
|
|
393
382
|
};
|
|
394
383
|
|
|
395
|
-
type
|
|
396
|
-
value:
|
|
384
|
+
type msgDonateToCardParams = {
|
|
385
|
+
value: MsgDonateToCard,
|
|
397
386
|
};
|
|
398
387
|
|
|
399
|
-
type
|
|
400
|
-
value:
|
|
388
|
+
type msgRegisterForCouncilParams = {
|
|
389
|
+
value: MsgRegisterForCouncil,
|
|
401
390
|
};
|
|
402
391
|
|
|
403
|
-
type
|
|
404
|
-
value:
|
|
392
|
+
type msgSetSetArtistParams = {
|
|
393
|
+
value: MsgSetSetArtist,
|
|
405
394
|
};
|
|
406
395
|
|
|
407
|
-
type
|
|
408
|
-
value:
|
|
396
|
+
type msgSetSetNameParams = {
|
|
397
|
+
value: MsgSetSetName,
|
|
409
398
|
};
|
|
410
399
|
|
|
411
|
-
type
|
|
412
|
-
value:
|
|
400
|
+
type msgVoteCardParams = {
|
|
401
|
+
value: MsgVoteCard,
|
|
413
402
|
};
|
|
414
403
|
|
|
415
|
-
type
|
|
416
|
-
value:
|
|
404
|
+
type msgAddStoryToSetParams = {
|
|
405
|
+
value: MsgAddStoryToSet,
|
|
417
406
|
};
|
|
418
407
|
|
|
419
|
-
type
|
|
420
|
-
value:
|
|
408
|
+
type msgBuyCardSchemeParams = {
|
|
409
|
+
value: MsgBuyCardScheme,
|
|
421
410
|
};
|
|
422
411
|
|
|
423
|
-
type
|
|
424
|
-
value:
|
|
412
|
+
type msgAddArtworkParams = {
|
|
413
|
+
value: MsgAddArtwork,
|
|
425
414
|
};
|
|
426
415
|
|
|
427
|
-
type
|
|
428
|
-
value:
|
|
416
|
+
type msgMultiVoteCardParams = {
|
|
417
|
+
value: MsgMultiVoteCard,
|
|
429
418
|
};
|
|
430
419
|
|
|
431
|
-
type
|
|
432
|
-
value:
|
|
420
|
+
type msgSetUserBiographyParams = {
|
|
421
|
+
value: MsgSetUserBiography,
|
|
433
422
|
};
|
|
434
423
|
|
|
435
|
-
type
|
|
436
|
-
value:
|
|
424
|
+
type msgRewokeCouncilRegistrationParams = {
|
|
425
|
+
value: MsgRewokeCouncilRegistration,
|
|
437
426
|
};
|
|
438
427
|
|
|
439
|
-
type
|
|
440
|
-
value:
|
|
428
|
+
type msgCreateSellOfferParams = {
|
|
429
|
+
value: MsgCreateSellOffer,
|
|
441
430
|
};
|
|
442
431
|
|
|
443
|
-
type
|
|
444
|
-
value:
|
|
432
|
+
type msgSetProfileCardParams = {
|
|
433
|
+
value: MsgSetProfileCard,
|
|
445
434
|
};
|
|
446
435
|
|
|
447
|
-
type
|
|
448
|
-
value:
|
|
436
|
+
type msgCommitCouncilResponseParams = {
|
|
437
|
+
value: MsgCommitCouncilResponse,
|
|
449
438
|
};
|
|
450
439
|
|
|
451
|
-
type
|
|
452
|
-
value:
|
|
440
|
+
type msgConfirmMatchParams = {
|
|
441
|
+
value: MsgConfirmMatch,
|
|
453
442
|
};
|
|
454
443
|
|
|
455
444
|
type msgAddArtworkToSetParams = {
|
|
456
445
|
value: MsgAddArtworkToSet,
|
|
457
446
|
};
|
|
458
447
|
|
|
459
|
-
type
|
|
460
|
-
value:
|
|
448
|
+
type msgSetCardRarityParams = {
|
|
449
|
+
value: MsgSetCardRarity,
|
|
461
450
|
};
|
|
462
451
|
|
|
463
|
-
type
|
|
464
|
-
value:
|
|
452
|
+
type msgSaveCardContentParams = {
|
|
453
|
+
value: MsgSaveCardContent,
|
|
465
454
|
};
|
|
466
455
|
|
|
467
456
|
type msgApointMatchReporterParams = {
|
|
468
457
|
value: MsgApointMatchReporter,
|
|
469
458
|
};
|
|
470
459
|
|
|
471
|
-
type
|
|
472
|
-
value:
|
|
460
|
+
type msgOpenBoosterPackParams = {
|
|
461
|
+
value: MsgOpenBoosterPack,
|
|
473
462
|
};
|
|
474
463
|
|
|
475
|
-
type
|
|
476
|
-
value:
|
|
464
|
+
type msgCreateuserParams = {
|
|
465
|
+
value: MsgCreateuser,
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
type msgCreateSetParams = {
|
|
469
|
+
value: MsgCreateSet,
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
type msgTransferBoosterPackParams = {
|
|
473
|
+
value: MsgTransferBoosterPack,
|
|
477
474
|
};
|
|
478
475
|
|
|
479
476
|
|
|
@@ -506,395 +503,395 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
506
503
|
|
|
507
504
|
return {
|
|
508
505
|
|
|
509
|
-
async
|
|
506
|
+
async sendMsgBuyBoosterPack({ value, fee, memo }: sendMsgBuyBoosterPackParams): Promise<DeliverTxResponse> {
|
|
510
507
|
if (!signer) {
|
|
511
|
-
throw new Error('TxClient:
|
|
508
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
512
509
|
}
|
|
513
510
|
try {
|
|
514
511
|
const { address } = (await signer.getAccounts())[0];
|
|
515
512
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
516
|
-
let msg = this.
|
|
513
|
+
let msg = this.msgBuyBoosterPack({ value: MsgBuyBoosterPack.fromPartial(value) })
|
|
517
514
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
518
515
|
} catch (e: any) {
|
|
519
|
-
throw new Error('TxClient:
|
|
516
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
520
517
|
}
|
|
521
518
|
},
|
|
522
519
|
|
|
523
|
-
async
|
|
520
|
+
async sendMsgAddCardToSet({ value, fee, memo }: sendMsgAddCardToSetParams): Promise<DeliverTxResponse> {
|
|
524
521
|
if (!signer) {
|
|
525
|
-
throw new Error('TxClient:
|
|
522
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.')
|
|
526
523
|
}
|
|
527
524
|
try {
|
|
528
525
|
const { address } = (await signer.getAccounts())[0];
|
|
529
526
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
530
|
-
let msg = this.
|
|
527
|
+
let msg = this.msgAddCardToSet({ value: MsgAddCardToSet.fromPartial(value) })
|
|
531
528
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
532
529
|
} catch (e: any) {
|
|
533
|
-
throw new Error('TxClient:
|
|
530
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: '+ e.message)
|
|
534
531
|
}
|
|
535
532
|
},
|
|
536
533
|
|
|
537
|
-
async
|
|
534
|
+
async sendMsgRemoveCardFromSet({ value, fee, memo }: sendMsgRemoveCardFromSetParams): Promise<DeliverTxResponse> {
|
|
538
535
|
if (!signer) {
|
|
539
|
-
throw new Error('TxClient:
|
|
536
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.')
|
|
540
537
|
}
|
|
541
538
|
try {
|
|
542
539
|
const { address } = (await signer.getAccounts())[0];
|
|
543
540
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
544
|
-
let msg = this.
|
|
541
|
+
let msg = this.msgRemoveCardFromSet({ value: MsgRemoveCardFromSet.fromPartial(value) })
|
|
545
542
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
546
543
|
} catch (e: any) {
|
|
547
|
-
throw new Error('TxClient:
|
|
544
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: '+ e.message)
|
|
548
545
|
}
|
|
549
546
|
},
|
|
550
547
|
|
|
551
|
-
async
|
|
548
|
+
async sendMsgBuyCard({ value, fee, memo }: sendMsgBuyCardParams): Promise<DeliverTxResponse> {
|
|
552
549
|
if (!signer) {
|
|
553
|
-
throw new Error('TxClient:
|
|
550
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.')
|
|
554
551
|
}
|
|
555
552
|
try {
|
|
556
553
|
const { address } = (await signer.getAccounts())[0];
|
|
557
554
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
558
|
-
let msg = this.
|
|
555
|
+
let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) })
|
|
559
556
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
560
557
|
} catch (e: any) {
|
|
561
|
-
throw new Error('TxClient:
|
|
558
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: '+ e.message)
|
|
562
559
|
}
|
|
563
560
|
},
|
|
564
561
|
|
|
565
|
-
async
|
|
562
|
+
async sendMsgChangeArtist({ value, fee, memo }: sendMsgChangeArtistParams): Promise<DeliverTxResponse> {
|
|
566
563
|
if (!signer) {
|
|
567
|
-
throw new Error('TxClient:
|
|
564
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.')
|
|
568
565
|
}
|
|
569
566
|
try {
|
|
570
567
|
const { address } = (await signer.getAccounts())[0];
|
|
571
568
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
572
|
-
let msg = this.
|
|
569
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) })
|
|
573
570
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
574
571
|
} catch (e: any) {
|
|
575
|
-
throw new Error('TxClient:
|
|
572
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: '+ e.message)
|
|
576
573
|
}
|
|
577
574
|
},
|
|
578
575
|
|
|
579
|
-
async
|
|
576
|
+
async sendMsgTransferCard({ value, fee, memo }: sendMsgTransferCardParams): Promise<DeliverTxResponse> {
|
|
580
577
|
if (!signer) {
|
|
581
|
-
throw new Error('TxClient:
|
|
578
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
582
579
|
}
|
|
583
580
|
try {
|
|
584
581
|
const { address } = (await signer.getAccounts())[0];
|
|
585
582
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
586
|
-
let msg = this.
|
|
583
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) })
|
|
587
584
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
588
585
|
} catch (e: any) {
|
|
589
|
-
throw new Error('TxClient:
|
|
586
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: '+ e.message)
|
|
590
587
|
}
|
|
591
588
|
},
|
|
592
589
|
|
|
593
|
-
async
|
|
590
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }: sendMsgRemoveSellOfferParams): Promise<DeliverTxResponse> {
|
|
594
591
|
if (!signer) {
|
|
595
|
-
throw new Error('TxClient:
|
|
592
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.')
|
|
596
593
|
}
|
|
597
594
|
try {
|
|
598
595
|
const { address } = (await signer.getAccounts())[0];
|
|
599
596
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
600
|
-
let msg = this.
|
|
597
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) })
|
|
601
598
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
602
599
|
} catch (e: any) {
|
|
603
|
-
throw new Error('TxClient:
|
|
600
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: '+ e.message)
|
|
604
601
|
}
|
|
605
602
|
},
|
|
606
603
|
|
|
607
|
-
async
|
|
604
|
+
async sendMsgRemoveContributorFromSet({ value, fee, memo }: sendMsgRemoveContributorFromSetParams): Promise<DeliverTxResponse> {
|
|
608
605
|
if (!signer) {
|
|
609
|
-
throw new Error('TxClient:
|
|
606
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.')
|
|
610
607
|
}
|
|
611
608
|
try {
|
|
612
609
|
const { address } = (await signer.getAccounts())[0];
|
|
613
610
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
614
|
-
let msg = this.
|
|
611
|
+
let msg = this.msgRemoveContributorFromSet({ value: MsgRemoveContributorFromSet.fromPartial(value) })
|
|
615
612
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
616
613
|
} catch (e: any) {
|
|
617
|
-
throw new Error('TxClient:
|
|
614
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: '+ e.message)
|
|
618
615
|
}
|
|
619
616
|
},
|
|
620
617
|
|
|
621
|
-
async
|
|
618
|
+
async sendMsgOpenMatch({ value, fee, memo }: sendMsgOpenMatchParams): Promise<DeliverTxResponse> {
|
|
622
619
|
if (!signer) {
|
|
623
|
-
throw new Error('TxClient:
|
|
620
|
+
throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.')
|
|
624
621
|
}
|
|
625
622
|
try {
|
|
626
623
|
const { address } = (await signer.getAccounts())[0];
|
|
627
624
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
628
|
-
let msg = this.
|
|
625
|
+
let msg = this.msgOpenMatch({ value: MsgOpenMatch.fromPartial(value) })
|
|
629
626
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
630
627
|
} catch (e: any) {
|
|
631
|
-
throw new Error('TxClient:
|
|
628
|
+
throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: '+ e.message)
|
|
632
629
|
}
|
|
633
630
|
},
|
|
634
631
|
|
|
635
|
-
async
|
|
632
|
+
async sendMsgRestartCouncil({ value, fee, memo }: sendMsgRestartCouncilParams): Promise<DeliverTxResponse> {
|
|
636
633
|
if (!signer) {
|
|
637
|
-
throw new Error('TxClient:
|
|
634
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.')
|
|
638
635
|
}
|
|
639
636
|
try {
|
|
640
637
|
const { address } = (await signer.getAccounts())[0];
|
|
641
638
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
642
|
-
let msg = this.
|
|
639
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) })
|
|
643
640
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
644
641
|
} catch (e: any) {
|
|
645
|
-
throw new Error('TxClient:
|
|
642
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: '+ e.message)
|
|
646
643
|
}
|
|
647
644
|
},
|
|
648
645
|
|
|
649
|
-
async
|
|
646
|
+
async sendMsgAddContributorToSet({ value, fee, memo }: sendMsgAddContributorToSetParams): Promise<DeliverTxResponse> {
|
|
650
647
|
if (!signer) {
|
|
651
|
-
throw new Error('TxClient:
|
|
648
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.')
|
|
652
649
|
}
|
|
653
650
|
try {
|
|
654
651
|
const { address } = (await signer.getAccounts())[0];
|
|
655
652
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
656
|
-
let msg = this.
|
|
653
|
+
let msg = this.msgAddContributorToSet({ value: MsgAddContributorToSet.fromPartial(value) })
|
|
657
654
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
658
655
|
} catch (e: any) {
|
|
659
|
-
throw new Error('TxClient:
|
|
656
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: '+ e.message)
|
|
660
657
|
}
|
|
661
658
|
},
|
|
662
659
|
|
|
663
|
-
async
|
|
660
|
+
async sendMsgFinalizeSet({ value, fee, memo }: sendMsgFinalizeSetParams): Promise<DeliverTxResponse> {
|
|
664
661
|
if (!signer) {
|
|
665
|
-
throw new Error('TxClient:
|
|
662
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.')
|
|
666
663
|
}
|
|
667
664
|
try {
|
|
668
665
|
const { address } = (await signer.getAccounts())[0];
|
|
669
666
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
670
|
-
let msg = this.
|
|
667
|
+
let msg = this.msgFinalizeSet({ value: MsgFinalizeSet.fromPartial(value) })
|
|
671
668
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
672
669
|
} catch (e: any) {
|
|
673
|
-
throw new Error('TxClient:
|
|
670
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: '+ e.message)
|
|
674
671
|
}
|
|
675
672
|
},
|
|
676
673
|
|
|
677
|
-
async
|
|
674
|
+
async sendMsgSetSetStoryWriter({ value, fee, memo }: sendMsgSetSetStoryWriterParams): Promise<DeliverTxResponse> {
|
|
678
675
|
if (!signer) {
|
|
679
|
-
throw new Error('TxClient:
|
|
676
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.')
|
|
680
677
|
}
|
|
681
678
|
try {
|
|
682
679
|
const { address } = (await signer.getAccounts())[0];
|
|
683
680
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
684
|
-
let msg = this.
|
|
681
|
+
let msg = this.msgSetSetStoryWriter({ value: MsgSetSetStoryWriter.fromPartial(value) })
|
|
685
682
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
686
683
|
} catch (e: any) {
|
|
687
|
-
throw new Error('TxClient:
|
|
684
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: '+ e.message)
|
|
688
685
|
}
|
|
689
686
|
},
|
|
690
687
|
|
|
691
|
-
async
|
|
688
|
+
async sendMsgReportMatch({ value, fee, memo }: sendMsgReportMatchParams): Promise<DeliverTxResponse> {
|
|
692
689
|
if (!signer) {
|
|
693
|
-
throw new Error('TxClient:
|
|
690
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.')
|
|
694
691
|
}
|
|
695
692
|
try {
|
|
696
693
|
const { address } = (await signer.getAccounts())[0];
|
|
697
694
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
698
|
-
let msg = this.
|
|
695
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) })
|
|
699
696
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
700
697
|
} catch (e: any) {
|
|
701
|
-
throw new Error('TxClient:
|
|
698
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: '+ e.message)
|
|
702
699
|
}
|
|
703
700
|
},
|
|
704
701
|
|
|
705
|
-
async
|
|
702
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
706
703
|
if (!signer) {
|
|
707
|
-
throw new Error('TxClient:
|
|
704
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
708
705
|
}
|
|
709
706
|
try {
|
|
710
707
|
const { address } = (await signer.getAccounts())[0];
|
|
711
708
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
712
|
-
let msg = this.
|
|
709
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) })
|
|
713
710
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
714
711
|
} catch (e: any) {
|
|
715
|
-
throw new Error('TxClient:
|
|
712
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
716
713
|
}
|
|
717
714
|
},
|
|
718
715
|
|
|
719
|
-
async
|
|
716
|
+
async sendMsgSetUserWebsite({ value, fee, memo }: sendMsgSetUserWebsiteParams): Promise<DeliverTxResponse> {
|
|
720
717
|
if (!signer) {
|
|
721
|
-
throw new Error('TxClient:
|
|
718
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.')
|
|
722
719
|
}
|
|
723
720
|
try {
|
|
724
721
|
const { address } = (await signer.getAccounts())[0];
|
|
725
722
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
726
|
-
let msg = this.
|
|
723
|
+
let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) })
|
|
727
724
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
728
725
|
} catch (e: any) {
|
|
729
|
-
throw new Error('TxClient:
|
|
726
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: '+ e.message)
|
|
730
727
|
}
|
|
731
728
|
},
|
|
732
729
|
|
|
733
|
-
async
|
|
730
|
+
async sendMsgCreateCouncil({ value, fee, memo }: sendMsgCreateCouncilParams): Promise<DeliverTxResponse> {
|
|
734
731
|
if (!signer) {
|
|
735
|
-
throw new Error('TxClient:
|
|
732
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.')
|
|
736
733
|
}
|
|
737
734
|
try {
|
|
738
735
|
const { address } = (await signer.getAccounts())[0];
|
|
739
736
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
740
|
-
let msg = this.
|
|
737
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) })
|
|
741
738
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
742
739
|
} catch (e: any) {
|
|
743
|
-
throw new Error('TxClient:
|
|
740
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: '+ e.message)
|
|
744
741
|
}
|
|
745
742
|
},
|
|
746
743
|
|
|
747
|
-
async
|
|
744
|
+
async sendMsgDonateToCard({ value, fee, memo }: sendMsgDonateToCardParams): Promise<DeliverTxResponse> {
|
|
748
745
|
if (!signer) {
|
|
749
|
-
throw new Error('TxClient:
|
|
746
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.')
|
|
750
747
|
}
|
|
751
748
|
try {
|
|
752
749
|
const { address } = (await signer.getAccounts())[0];
|
|
753
750
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
754
|
-
let msg = this.
|
|
751
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) })
|
|
755
752
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
756
753
|
} catch (e: any) {
|
|
757
|
-
throw new Error('TxClient:
|
|
754
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: '+ e.message)
|
|
758
755
|
}
|
|
759
756
|
},
|
|
760
757
|
|
|
761
|
-
async
|
|
758
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
762
759
|
if (!signer) {
|
|
763
|
-
throw new Error('TxClient:
|
|
760
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.')
|
|
764
761
|
}
|
|
765
762
|
try {
|
|
766
763
|
const { address } = (await signer.getAccounts())[0];
|
|
767
764
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
768
|
-
let msg = this.
|
|
765
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) })
|
|
769
766
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
770
767
|
} catch (e: any) {
|
|
771
|
-
throw new Error('TxClient:
|
|
768
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: '+ e.message)
|
|
772
769
|
}
|
|
773
770
|
},
|
|
774
771
|
|
|
775
|
-
async
|
|
772
|
+
async sendMsgSetSetArtist({ value, fee, memo }: sendMsgSetSetArtistParams): Promise<DeliverTxResponse> {
|
|
776
773
|
if (!signer) {
|
|
777
|
-
throw new Error('TxClient:
|
|
774
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.')
|
|
778
775
|
}
|
|
779
776
|
try {
|
|
780
777
|
const { address } = (await signer.getAccounts())[0];
|
|
781
778
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
782
|
-
let msg = this.
|
|
779
|
+
let msg = this.msgSetSetArtist({ value: MsgSetSetArtist.fromPartial(value) })
|
|
783
780
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
784
781
|
} catch (e: any) {
|
|
785
|
-
throw new Error('TxClient:
|
|
782
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: '+ e.message)
|
|
786
783
|
}
|
|
787
784
|
},
|
|
788
785
|
|
|
789
|
-
async
|
|
786
|
+
async sendMsgSetSetName({ value, fee, memo }: sendMsgSetSetNameParams): Promise<DeliverTxResponse> {
|
|
790
787
|
if (!signer) {
|
|
791
|
-
throw new Error('TxClient:
|
|
788
|
+
throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.')
|
|
792
789
|
}
|
|
793
790
|
try {
|
|
794
791
|
const { address } = (await signer.getAccounts())[0];
|
|
795
792
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
796
|
-
let msg = this.
|
|
793
|
+
let msg = this.msgSetSetName({ value: MsgSetSetName.fromPartial(value) })
|
|
797
794
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
798
795
|
} catch (e: any) {
|
|
799
|
-
throw new Error('TxClient:
|
|
796
|
+
throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: '+ e.message)
|
|
800
797
|
}
|
|
801
798
|
},
|
|
802
799
|
|
|
803
|
-
async
|
|
800
|
+
async sendMsgVoteCard({ value, fee, memo }: sendMsgVoteCardParams): Promise<DeliverTxResponse> {
|
|
804
801
|
if (!signer) {
|
|
805
|
-
throw new Error('TxClient:
|
|
802
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.')
|
|
806
803
|
}
|
|
807
804
|
try {
|
|
808
805
|
const { address } = (await signer.getAccounts())[0];
|
|
809
806
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
810
|
-
let msg = this.
|
|
807
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) })
|
|
811
808
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
812
809
|
} catch (e: any) {
|
|
813
|
-
throw new Error('TxClient:
|
|
810
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: '+ e.message)
|
|
814
811
|
}
|
|
815
812
|
},
|
|
816
813
|
|
|
817
|
-
async
|
|
814
|
+
async sendMsgAddStoryToSet({ value, fee, memo }: sendMsgAddStoryToSetParams): Promise<DeliverTxResponse> {
|
|
818
815
|
if (!signer) {
|
|
819
|
-
throw new Error('TxClient:
|
|
816
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.')
|
|
820
817
|
}
|
|
821
818
|
try {
|
|
822
819
|
const { address } = (await signer.getAccounts())[0];
|
|
823
820
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
824
|
-
let msg = this.
|
|
821
|
+
let msg = this.msgAddStoryToSet({ value: MsgAddStoryToSet.fromPartial(value) })
|
|
825
822
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
826
823
|
} catch (e: any) {
|
|
827
|
-
throw new Error('TxClient:
|
|
824
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: '+ e.message)
|
|
828
825
|
}
|
|
829
826
|
},
|
|
830
827
|
|
|
831
|
-
async
|
|
828
|
+
async sendMsgBuyCardScheme({ value, fee, memo }: sendMsgBuyCardSchemeParams): Promise<DeliverTxResponse> {
|
|
832
829
|
if (!signer) {
|
|
833
|
-
throw new Error('TxClient:
|
|
830
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.')
|
|
834
831
|
}
|
|
835
832
|
try {
|
|
836
833
|
const { address } = (await signer.getAccounts())[0];
|
|
837
834
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
838
|
-
let msg = this.
|
|
835
|
+
let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) })
|
|
839
836
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
840
837
|
} catch (e: any) {
|
|
841
|
-
throw new Error('TxClient:
|
|
838
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: '+ e.message)
|
|
842
839
|
}
|
|
843
840
|
},
|
|
844
841
|
|
|
845
|
-
async
|
|
842
|
+
async sendMsgAddArtwork({ value, fee, memo }: sendMsgAddArtworkParams): Promise<DeliverTxResponse> {
|
|
846
843
|
if (!signer) {
|
|
847
|
-
throw new Error('TxClient:
|
|
844
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.')
|
|
848
845
|
}
|
|
849
846
|
try {
|
|
850
847
|
const { address } = (await signer.getAccounts())[0];
|
|
851
848
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
852
|
-
let msg = this.
|
|
849
|
+
let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) })
|
|
853
850
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
854
851
|
} catch (e: any) {
|
|
855
|
-
throw new Error('TxClient:
|
|
852
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: '+ e.message)
|
|
856
853
|
}
|
|
857
854
|
},
|
|
858
855
|
|
|
859
|
-
async
|
|
856
|
+
async sendMsgMultiVoteCard({ value, fee, memo }: sendMsgMultiVoteCardParams): Promise<DeliverTxResponse> {
|
|
860
857
|
if (!signer) {
|
|
861
|
-
throw new Error('TxClient:
|
|
858
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.')
|
|
862
859
|
}
|
|
863
860
|
try {
|
|
864
861
|
const { address } = (await signer.getAccounts())[0];
|
|
865
862
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
866
|
-
let msg = this.
|
|
863
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) })
|
|
867
864
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
868
865
|
} catch (e: any) {
|
|
869
|
-
throw new Error('TxClient:
|
|
866
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: '+ e.message)
|
|
870
867
|
}
|
|
871
868
|
},
|
|
872
869
|
|
|
873
|
-
async
|
|
870
|
+
async sendMsgSetUserBiography({ value, fee, memo }: sendMsgSetUserBiographyParams): Promise<DeliverTxResponse> {
|
|
874
871
|
if (!signer) {
|
|
875
|
-
throw new Error('TxClient:
|
|
872
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.')
|
|
876
873
|
}
|
|
877
874
|
try {
|
|
878
875
|
const { address } = (await signer.getAccounts())[0];
|
|
879
876
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
880
|
-
let msg = this.
|
|
877
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) })
|
|
881
878
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
882
879
|
} catch (e: any) {
|
|
883
|
-
throw new Error('TxClient:
|
|
880
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: '+ e.message)
|
|
884
881
|
}
|
|
885
882
|
},
|
|
886
883
|
|
|
887
|
-
async
|
|
884
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
888
885
|
if (!signer) {
|
|
889
|
-
throw new Error('TxClient:
|
|
886
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.')
|
|
890
887
|
}
|
|
891
888
|
try {
|
|
892
889
|
const { address } = (await signer.getAccounts())[0];
|
|
893
890
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
894
|
-
let msg = this.
|
|
891
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) })
|
|
895
892
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
896
893
|
} catch (e: any) {
|
|
897
|
-
throw new Error('TxClient:
|
|
894
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: '+ e.message)
|
|
898
895
|
}
|
|
899
896
|
},
|
|
900
897
|
|
|
@@ -912,382 +909,382 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
912
909
|
}
|
|
913
910
|
},
|
|
914
911
|
|
|
915
|
-
async
|
|
912
|
+
async sendMsgSetProfileCard({ value, fee, memo }: sendMsgSetProfileCardParams): Promise<DeliverTxResponse> {
|
|
916
913
|
if (!signer) {
|
|
917
|
-
throw new Error('TxClient:
|
|
914
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.')
|
|
918
915
|
}
|
|
919
916
|
try {
|
|
920
917
|
const { address } = (await signer.getAccounts())[0];
|
|
921
918
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
922
|
-
let msg = this.
|
|
919
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) })
|
|
923
920
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
924
921
|
} catch (e: any) {
|
|
925
|
-
throw new Error('TxClient:
|
|
922
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: '+ e.message)
|
|
926
923
|
}
|
|
927
924
|
},
|
|
928
925
|
|
|
929
|
-
async
|
|
926
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }: sendMsgCommitCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
930
927
|
if (!signer) {
|
|
931
|
-
throw new Error('TxClient:
|
|
928
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
932
929
|
}
|
|
933
930
|
try {
|
|
934
931
|
const { address } = (await signer.getAccounts())[0];
|
|
935
932
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
936
|
-
let msg = this.
|
|
933
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) })
|
|
937
934
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
938
935
|
} catch (e: any) {
|
|
939
|
-
throw new Error('TxClient:
|
|
936
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
940
937
|
}
|
|
941
938
|
},
|
|
942
939
|
|
|
943
|
-
async
|
|
940
|
+
async sendMsgConfirmMatch({ value, fee, memo }: sendMsgConfirmMatchParams): Promise<DeliverTxResponse> {
|
|
944
941
|
if (!signer) {
|
|
945
|
-
throw new Error('TxClient:
|
|
942
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.')
|
|
946
943
|
}
|
|
947
944
|
try {
|
|
948
945
|
const { address } = (await signer.getAccounts())[0];
|
|
949
946
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
950
|
-
let msg = this.
|
|
947
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) })
|
|
951
948
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
952
949
|
} catch (e: any) {
|
|
953
|
-
throw new Error('TxClient:
|
|
950
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: '+ e.message)
|
|
954
951
|
}
|
|
955
952
|
},
|
|
956
953
|
|
|
957
|
-
async
|
|
954
|
+
async sendMsgAddArtworkToSet({ value, fee, memo }: sendMsgAddArtworkToSetParams): Promise<DeliverTxResponse> {
|
|
958
955
|
if (!signer) {
|
|
959
|
-
throw new Error('TxClient:
|
|
956
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.')
|
|
960
957
|
}
|
|
961
958
|
try {
|
|
962
959
|
const { address } = (await signer.getAccounts())[0];
|
|
963
960
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
964
|
-
let msg = this.
|
|
961
|
+
let msg = this.msgAddArtworkToSet({ value: MsgAddArtworkToSet.fromPartial(value) })
|
|
965
962
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
966
963
|
} catch (e: any) {
|
|
967
|
-
throw new Error('TxClient:
|
|
964
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: '+ e.message)
|
|
968
965
|
}
|
|
969
966
|
},
|
|
970
967
|
|
|
971
|
-
async
|
|
968
|
+
async sendMsgSetCardRarity({ value, fee, memo }: sendMsgSetCardRarityParams): Promise<DeliverTxResponse> {
|
|
972
969
|
if (!signer) {
|
|
973
|
-
throw new Error('TxClient:
|
|
970
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.')
|
|
974
971
|
}
|
|
975
972
|
try {
|
|
976
973
|
const { address } = (await signer.getAccounts())[0];
|
|
977
974
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
978
|
-
let msg = this.
|
|
975
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) })
|
|
979
976
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
980
977
|
} catch (e: any) {
|
|
981
|
-
throw new Error('TxClient:
|
|
978
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: '+ e.message)
|
|
982
979
|
}
|
|
983
980
|
},
|
|
984
981
|
|
|
985
|
-
async
|
|
982
|
+
async sendMsgSaveCardContent({ value, fee, memo }: sendMsgSaveCardContentParams): Promise<DeliverTxResponse> {
|
|
986
983
|
if (!signer) {
|
|
987
|
-
throw new Error('TxClient:
|
|
984
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.')
|
|
988
985
|
}
|
|
989
986
|
try {
|
|
990
987
|
const { address } = (await signer.getAccounts())[0];
|
|
991
988
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
992
|
-
let msg = this.
|
|
989
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) })
|
|
993
990
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
994
991
|
} catch (e: any) {
|
|
995
|
-
throw new Error('TxClient:
|
|
992
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: '+ e.message)
|
|
996
993
|
}
|
|
997
994
|
},
|
|
998
995
|
|
|
999
|
-
async
|
|
996
|
+
async sendMsgApointMatchReporter({ value, fee, memo }: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
1000
997
|
if (!signer) {
|
|
1001
|
-
throw new Error('TxClient:
|
|
998
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.')
|
|
1002
999
|
}
|
|
1003
1000
|
try {
|
|
1004
1001
|
const { address } = (await signer.getAccounts())[0];
|
|
1005
1002
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1006
|
-
let msg = this.
|
|
1003
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) })
|
|
1007
1004
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1008
1005
|
} catch (e: any) {
|
|
1009
|
-
throw new Error('TxClient:
|
|
1006
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: '+ e.message)
|
|
1010
1007
|
}
|
|
1011
1008
|
},
|
|
1012
1009
|
|
|
1013
|
-
async
|
|
1010
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
1014
1011
|
if (!signer) {
|
|
1015
|
-
throw new Error('TxClient:
|
|
1012
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
1016
1013
|
}
|
|
1017
1014
|
try {
|
|
1018
1015
|
const { address } = (await signer.getAccounts())[0];
|
|
1019
1016
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1020
|
-
let msg = this.
|
|
1017
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) })
|
|
1021
1018
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1022
1019
|
} catch (e: any) {
|
|
1023
|
-
throw new Error('TxClient:
|
|
1020
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
1024
1021
|
}
|
|
1025
1022
|
},
|
|
1026
1023
|
|
|
1027
|
-
async
|
|
1024
|
+
async sendMsgCreateuser({ value, fee, memo }: sendMsgCreateuserParams): Promise<DeliverTxResponse> {
|
|
1028
1025
|
if (!signer) {
|
|
1029
|
-
throw new Error('TxClient:
|
|
1026
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.')
|
|
1030
1027
|
}
|
|
1031
1028
|
try {
|
|
1032
1029
|
const { address } = (await signer.getAccounts())[0];
|
|
1033
1030
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1034
|
-
let msg = this.
|
|
1031
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) })
|
|
1035
1032
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1036
1033
|
} catch (e: any) {
|
|
1037
|
-
throw new Error('TxClient:
|
|
1034
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: '+ e.message)
|
|
1038
1035
|
}
|
|
1039
1036
|
},
|
|
1040
1037
|
|
|
1041
|
-
async
|
|
1038
|
+
async sendMsgCreateSet({ value, fee, memo }: sendMsgCreateSetParams): Promise<DeliverTxResponse> {
|
|
1042
1039
|
if (!signer) {
|
|
1043
|
-
throw new Error('TxClient:
|
|
1040
|
+
throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.')
|
|
1044
1041
|
}
|
|
1045
1042
|
try {
|
|
1046
1043
|
const { address } = (await signer.getAccounts())[0];
|
|
1047
1044
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1048
|
-
let msg = this.
|
|
1045
|
+
let msg = this.msgCreateSet({ value: MsgCreateSet.fromPartial(value) })
|
|
1049
1046
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1050
1047
|
} catch (e: any) {
|
|
1051
|
-
throw new Error('TxClient:
|
|
1048
|
+
throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: '+ e.message)
|
|
1052
1049
|
}
|
|
1053
1050
|
},
|
|
1054
1051
|
|
|
1055
|
-
async
|
|
1052
|
+
async sendMsgTransferBoosterPack({ value, fee, memo }: sendMsgTransferBoosterPackParams): Promise<DeliverTxResponse> {
|
|
1056
1053
|
if (!signer) {
|
|
1057
|
-
throw new Error('TxClient:
|
|
1054
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
1058
1055
|
}
|
|
1059
1056
|
try {
|
|
1060
1057
|
const { address } = (await signer.getAccounts())[0];
|
|
1061
1058
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1062
|
-
let msg = this.
|
|
1059
|
+
let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) })
|
|
1063
1060
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1064
1061
|
} catch (e: any) {
|
|
1065
|
-
throw new Error('TxClient:
|
|
1062
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
1066
1063
|
}
|
|
1067
1064
|
},
|
|
1068
1065
|
|
|
1069
1066
|
|
|
1070
|
-
|
|
1067
|
+
msgBuyBoosterPack({ value }: msgBuyBoosterPackParams): EncodeObject {
|
|
1071
1068
|
try {
|
|
1072
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1069
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack", value: MsgBuyBoosterPack.fromPartial( value ) }
|
|
1073
1070
|
} catch (e: any) {
|
|
1074
|
-
throw new Error('TxClient:
|
|
1071
|
+
throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message)
|
|
1075
1072
|
}
|
|
1076
1073
|
},
|
|
1077
1074
|
|
|
1078
|
-
|
|
1075
|
+
msgAddCardToSet({ value }: msgAddCardToSetParams): EncodeObject {
|
|
1079
1076
|
try {
|
|
1080
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1077
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet", value: MsgAddCardToSet.fromPartial( value ) }
|
|
1081
1078
|
} catch (e: any) {
|
|
1082
|
-
throw new Error('TxClient:
|
|
1079
|
+
throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message)
|
|
1083
1080
|
}
|
|
1084
1081
|
},
|
|
1085
1082
|
|
|
1086
|
-
|
|
1083
|
+
msgRemoveCardFromSet({ value }: msgRemoveCardFromSetParams): EncodeObject {
|
|
1087
1084
|
try {
|
|
1088
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1085
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet", value: MsgRemoveCardFromSet.fromPartial( value ) }
|
|
1089
1086
|
} catch (e: any) {
|
|
1090
|
-
throw new Error('TxClient:
|
|
1087
|
+
throw new Error('TxClient:MsgRemoveCardFromSet: Could not create message: ' + e.message)
|
|
1091
1088
|
}
|
|
1092
1089
|
},
|
|
1093
1090
|
|
|
1094
|
-
|
|
1091
|
+
msgBuyCard({ value }: msgBuyCardParams): EncodeObject {
|
|
1095
1092
|
try {
|
|
1096
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1093
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial( value ) }
|
|
1097
1094
|
} catch (e: any) {
|
|
1098
|
-
throw new Error('TxClient:
|
|
1095
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message)
|
|
1099
1096
|
}
|
|
1100
1097
|
},
|
|
1101
1098
|
|
|
1102
|
-
|
|
1099
|
+
msgChangeArtist({ value }: msgChangeArtistParams): EncodeObject {
|
|
1103
1100
|
try {
|
|
1104
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1101
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial( value ) }
|
|
1105
1102
|
} catch (e: any) {
|
|
1106
|
-
throw new Error('TxClient:
|
|
1103
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message)
|
|
1107
1104
|
}
|
|
1108
1105
|
},
|
|
1109
1106
|
|
|
1110
|
-
|
|
1107
|
+
msgTransferCard({ value }: msgTransferCardParams): EncodeObject {
|
|
1111
1108
|
try {
|
|
1112
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1109
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial( value ) }
|
|
1113
1110
|
} catch (e: any) {
|
|
1114
|
-
throw new Error('TxClient:
|
|
1111
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message)
|
|
1115
1112
|
}
|
|
1116
1113
|
},
|
|
1117
1114
|
|
|
1118
|
-
|
|
1115
|
+
msgRemoveSellOffer({ value }: msgRemoveSellOfferParams): EncodeObject {
|
|
1119
1116
|
try {
|
|
1120
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1117
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial( value ) }
|
|
1121
1118
|
} catch (e: any) {
|
|
1122
|
-
throw new Error('TxClient:
|
|
1119
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message)
|
|
1123
1120
|
}
|
|
1124
1121
|
},
|
|
1125
1122
|
|
|
1126
|
-
|
|
1123
|
+
msgRemoveContributorFromSet({ value }: msgRemoveContributorFromSetParams): EncodeObject {
|
|
1127
1124
|
try {
|
|
1128
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1125
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet", value: MsgRemoveContributorFromSet.fromPartial( value ) }
|
|
1129
1126
|
} catch (e: any) {
|
|
1130
|
-
throw new Error('TxClient:
|
|
1127
|
+
throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message)
|
|
1131
1128
|
}
|
|
1132
1129
|
},
|
|
1133
1130
|
|
|
1134
|
-
|
|
1131
|
+
msgOpenMatch({ value }: msgOpenMatchParams): EncodeObject {
|
|
1135
1132
|
try {
|
|
1136
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1133
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch", value: MsgOpenMatch.fromPartial( value ) }
|
|
1137
1134
|
} catch (e: any) {
|
|
1138
|
-
throw new Error('TxClient:
|
|
1135
|
+
throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message)
|
|
1139
1136
|
}
|
|
1140
1137
|
},
|
|
1141
1138
|
|
|
1142
|
-
|
|
1139
|
+
msgRestartCouncil({ value }: msgRestartCouncilParams): EncodeObject {
|
|
1143
1140
|
try {
|
|
1144
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1141
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial( value ) }
|
|
1145
1142
|
} catch (e: any) {
|
|
1146
|
-
throw new Error('TxClient:
|
|
1143
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message)
|
|
1147
1144
|
}
|
|
1148
1145
|
},
|
|
1149
1146
|
|
|
1150
|
-
|
|
1147
|
+
msgAddContributorToSet({ value }: msgAddContributorToSetParams): EncodeObject {
|
|
1151
1148
|
try {
|
|
1152
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1149
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet", value: MsgAddContributorToSet.fromPartial( value ) }
|
|
1153
1150
|
} catch (e: any) {
|
|
1154
|
-
throw new Error('TxClient:
|
|
1151
|
+
throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message)
|
|
1155
1152
|
}
|
|
1156
1153
|
},
|
|
1157
1154
|
|
|
1158
|
-
|
|
1155
|
+
msgFinalizeSet({ value }: msgFinalizeSetParams): EncodeObject {
|
|
1159
1156
|
try {
|
|
1160
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1157
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet", value: MsgFinalizeSet.fromPartial( value ) }
|
|
1161
1158
|
} catch (e: any) {
|
|
1162
|
-
throw new Error('TxClient:
|
|
1159
|
+
throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message)
|
|
1163
1160
|
}
|
|
1164
1161
|
},
|
|
1165
1162
|
|
|
1166
|
-
|
|
1163
|
+
msgSetSetStoryWriter({ value }: msgSetSetStoryWriterParams): EncodeObject {
|
|
1167
1164
|
try {
|
|
1168
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1165
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter", value: MsgSetSetStoryWriter.fromPartial( value ) }
|
|
1169
1166
|
} catch (e: any) {
|
|
1170
|
-
throw new Error('TxClient:
|
|
1167
|
+
throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message)
|
|
1171
1168
|
}
|
|
1172
1169
|
},
|
|
1173
1170
|
|
|
1174
|
-
|
|
1171
|
+
msgReportMatch({ value }: msgReportMatchParams): EncodeObject {
|
|
1175
1172
|
try {
|
|
1176
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1173
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial( value ) }
|
|
1177
1174
|
} catch (e: any) {
|
|
1178
|
-
throw new Error('TxClient:
|
|
1175
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message)
|
|
1179
1176
|
}
|
|
1180
1177
|
},
|
|
1181
1178
|
|
|
1182
|
-
|
|
1179
|
+
msgRevealCouncilResponse({ value }: msgRevealCouncilResponseParams): EncodeObject {
|
|
1183
1180
|
try {
|
|
1184
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1181
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial( value ) }
|
|
1185
1182
|
} catch (e: any) {
|
|
1186
|
-
throw new Error('TxClient:
|
|
1183
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message)
|
|
1187
1184
|
}
|
|
1188
1185
|
},
|
|
1189
1186
|
|
|
1190
|
-
|
|
1187
|
+
msgSetUserWebsite({ value }: msgSetUserWebsiteParams): EncodeObject {
|
|
1191
1188
|
try {
|
|
1192
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1189
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", value: MsgSetUserWebsite.fromPartial( value ) }
|
|
1193
1190
|
} catch (e: any) {
|
|
1194
|
-
throw new Error('TxClient:
|
|
1191
|
+
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message)
|
|
1195
1192
|
}
|
|
1196
1193
|
},
|
|
1197
1194
|
|
|
1198
|
-
|
|
1195
|
+
msgCreateCouncil({ value }: msgCreateCouncilParams): EncodeObject {
|
|
1199
1196
|
try {
|
|
1200
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1197
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial( value ) }
|
|
1201
1198
|
} catch (e: any) {
|
|
1202
|
-
throw new Error('TxClient:
|
|
1199
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message)
|
|
1203
1200
|
}
|
|
1204
1201
|
},
|
|
1205
1202
|
|
|
1206
|
-
|
|
1203
|
+
msgDonateToCard({ value }: msgDonateToCardParams): EncodeObject {
|
|
1207
1204
|
try {
|
|
1208
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1205
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial( value ) }
|
|
1209
1206
|
} catch (e: any) {
|
|
1210
|
-
throw new Error('TxClient:
|
|
1207
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message)
|
|
1211
1208
|
}
|
|
1212
1209
|
},
|
|
1213
1210
|
|
|
1214
|
-
|
|
1211
|
+
msgRegisterForCouncil({ value }: msgRegisterForCouncilParams): EncodeObject {
|
|
1215
1212
|
try {
|
|
1216
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1213
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial( value ) }
|
|
1217
1214
|
} catch (e: any) {
|
|
1218
|
-
throw new Error('TxClient:
|
|
1215
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message)
|
|
1219
1216
|
}
|
|
1220
1217
|
},
|
|
1221
1218
|
|
|
1222
|
-
|
|
1219
|
+
msgSetSetArtist({ value }: msgSetSetArtistParams): EncodeObject {
|
|
1223
1220
|
try {
|
|
1224
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1221
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist", value: MsgSetSetArtist.fromPartial( value ) }
|
|
1225
1222
|
} catch (e: any) {
|
|
1226
|
-
throw new Error('TxClient:
|
|
1223
|
+
throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message)
|
|
1227
1224
|
}
|
|
1228
1225
|
},
|
|
1229
1226
|
|
|
1230
|
-
|
|
1227
|
+
msgSetSetName({ value }: msgSetSetNameParams): EncodeObject {
|
|
1231
1228
|
try {
|
|
1232
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1229
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName", value: MsgSetSetName.fromPartial( value ) }
|
|
1233
1230
|
} catch (e: any) {
|
|
1234
|
-
throw new Error('TxClient:
|
|
1231
|
+
throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message)
|
|
1235
1232
|
}
|
|
1236
1233
|
},
|
|
1237
1234
|
|
|
1238
|
-
|
|
1235
|
+
msgVoteCard({ value }: msgVoteCardParams): EncodeObject {
|
|
1239
1236
|
try {
|
|
1240
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1237
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial( value ) }
|
|
1241
1238
|
} catch (e: any) {
|
|
1242
|
-
throw new Error('TxClient:
|
|
1239
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message)
|
|
1243
1240
|
}
|
|
1244
1241
|
},
|
|
1245
1242
|
|
|
1246
|
-
|
|
1243
|
+
msgAddStoryToSet({ value }: msgAddStoryToSetParams): EncodeObject {
|
|
1247
1244
|
try {
|
|
1248
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1245
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet", value: MsgAddStoryToSet.fromPartial( value ) }
|
|
1249
1246
|
} catch (e: any) {
|
|
1250
|
-
throw new Error('TxClient:
|
|
1247
|
+
throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message)
|
|
1251
1248
|
}
|
|
1252
1249
|
},
|
|
1253
1250
|
|
|
1254
|
-
|
|
1251
|
+
msgBuyCardScheme({ value }: msgBuyCardSchemeParams): EncodeObject {
|
|
1255
1252
|
try {
|
|
1256
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1253
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial( value ) }
|
|
1257
1254
|
} catch (e: any) {
|
|
1258
|
-
throw new Error('TxClient:
|
|
1255
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message)
|
|
1259
1256
|
}
|
|
1260
1257
|
},
|
|
1261
1258
|
|
|
1262
|
-
|
|
1259
|
+
msgAddArtwork({ value }: msgAddArtworkParams): EncodeObject {
|
|
1263
1260
|
try {
|
|
1264
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1261
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial( value ) }
|
|
1265
1262
|
} catch (e: any) {
|
|
1266
|
-
throw new Error('TxClient:
|
|
1263
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message)
|
|
1267
1264
|
}
|
|
1268
1265
|
},
|
|
1269
1266
|
|
|
1270
|
-
|
|
1267
|
+
msgMultiVoteCard({ value }: msgMultiVoteCardParams): EncodeObject {
|
|
1271
1268
|
try {
|
|
1272
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1269
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial( value ) }
|
|
1273
1270
|
} catch (e: any) {
|
|
1274
|
-
throw new Error('TxClient:
|
|
1271
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message)
|
|
1275
1272
|
}
|
|
1276
1273
|
},
|
|
1277
1274
|
|
|
1278
|
-
|
|
1275
|
+
msgSetUserBiography({ value }: msgSetUserBiographyParams): EncodeObject {
|
|
1279
1276
|
try {
|
|
1280
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1277
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial( value ) }
|
|
1281
1278
|
} catch (e: any) {
|
|
1282
|
-
throw new Error('TxClient:
|
|
1279
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1283
1280
|
}
|
|
1284
1281
|
},
|
|
1285
1282
|
|
|
1286
|
-
|
|
1283
|
+
msgRewokeCouncilRegistration({ value }: msgRewokeCouncilRegistrationParams): EncodeObject {
|
|
1287
1284
|
try {
|
|
1288
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1285
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial( value ) }
|
|
1289
1286
|
} catch (e: any) {
|
|
1290
|
-
throw new Error('TxClient:
|
|
1287
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message)
|
|
1291
1288
|
}
|
|
1292
1289
|
},
|
|
1293
1290
|
|
|
@@ -1299,91 +1296,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1299
1296
|
}
|
|
1300
1297
|
},
|
|
1301
1298
|
|
|
1302
|
-
|
|
1299
|
+
msgSetProfileCard({ value }: msgSetProfileCardParams): EncodeObject {
|
|
1303
1300
|
try {
|
|
1304
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1301
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial( value ) }
|
|
1305
1302
|
} catch (e: any) {
|
|
1306
|
-
throw new Error('TxClient:
|
|
1303
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message)
|
|
1307
1304
|
}
|
|
1308
1305
|
},
|
|
1309
1306
|
|
|
1310
|
-
|
|
1307
|
+
msgCommitCouncilResponse({ value }: msgCommitCouncilResponseParams): EncodeObject {
|
|
1311
1308
|
try {
|
|
1312
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1309
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial( value ) }
|
|
1313
1310
|
} catch (e: any) {
|
|
1314
|
-
throw new Error('TxClient:
|
|
1311
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message)
|
|
1315
1312
|
}
|
|
1316
1313
|
},
|
|
1317
1314
|
|
|
1318
|
-
|
|
1315
|
+
msgConfirmMatch({ value }: msgConfirmMatchParams): EncodeObject {
|
|
1319
1316
|
try {
|
|
1320
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1317
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial( value ) }
|
|
1321
1318
|
} catch (e: any) {
|
|
1322
|
-
throw new Error('TxClient:
|
|
1319
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message)
|
|
1323
1320
|
}
|
|
1324
1321
|
},
|
|
1325
1322
|
|
|
1326
|
-
|
|
1323
|
+
msgAddArtworkToSet({ value }: msgAddArtworkToSetParams): EncodeObject {
|
|
1327
1324
|
try {
|
|
1328
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1325
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet", value: MsgAddArtworkToSet.fromPartial( value ) }
|
|
1329
1326
|
} catch (e: any) {
|
|
1330
|
-
throw new Error('TxClient:
|
|
1327
|
+
throw new Error('TxClient:MsgAddArtworkToSet: Could not create message: ' + e.message)
|
|
1331
1328
|
}
|
|
1332
1329
|
},
|
|
1333
1330
|
|
|
1334
|
-
|
|
1331
|
+
msgSetCardRarity({ value }: msgSetCardRarityParams): EncodeObject {
|
|
1335
1332
|
try {
|
|
1336
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1333
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial( value ) }
|
|
1337
1334
|
} catch (e: any) {
|
|
1338
|
-
throw new Error('TxClient:
|
|
1335
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message)
|
|
1339
1336
|
}
|
|
1340
1337
|
},
|
|
1341
1338
|
|
|
1342
|
-
|
|
1339
|
+
msgSaveCardContent({ value }: msgSaveCardContentParams): EncodeObject {
|
|
1343
1340
|
try {
|
|
1344
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1341
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial( value ) }
|
|
1345
1342
|
} catch (e: any) {
|
|
1346
|
-
throw new Error('TxClient:
|
|
1343
|
+
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message)
|
|
1347
1344
|
}
|
|
1348
1345
|
},
|
|
1349
1346
|
|
|
1350
|
-
|
|
1347
|
+
msgApointMatchReporter({ value }: msgApointMatchReporterParams): EncodeObject {
|
|
1351
1348
|
try {
|
|
1352
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1349
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial( value ) }
|
|
1353
1350
|
} catch (e: any) {
|
|
1354
|
-
throw new Error('TxClient:
|
|
1351
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message)
|
|
1355
1352
|
}
|
|
1356
1353
|
},
|
|
1357
1354
|
|
|
1358
|
-
|
|
1355
|
+
msgOpenBoosterPack({ value }: msgOpenBoosterPackParams): EncodeObject {
|
|
1359
1356
|
try {
|
|
1360
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1357
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial( value ) }
|
|
1361
1358
|
} catch (e: any) {
|
|
1362
|
-
throw new Error('TxClient:
|
|
1359
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message)
|
|
1363
1360
|
}
|
|
1364
1361
|
},
|
|
1365
1362
|
|
|
1366
|
-
|
|
1363
|
+
msgCreateuser({ value }: msgCreateuserParams): EncodeObject {
|
|
1367
1364
|
try {
|
|
1368
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1365
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial( value ) }
|
|
1369
1366
|
} catch (e: any) {
|
|
1370
|
-
throw new Error('TxClient:
|
|
1367
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message)
|
|
1371
1368
|
}
|
|
1372
1369
|
},
|
|
1373
1370
|
|
|
1374
|
-
|
|
1371
|
+
msgCreateSet({ value }: msgCreateSetParams): EncodeObject {
|
|
1375
1372
|
try {
|
|
1376
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1373
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet", value: MsgCreateSet.fromPartial( value ) }
|
|
1377
1374
|
} catch (e: any) {
|
|
1378
|
-
throw new Error('TxClient:
|
|
1375
|
+
throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message)
|
|
1379
1376
|
}
|
|
1380
1377
|
},
|
|
1381
1378
|
|
|
1382
|
-
|
|
1379
|
+
msgTransferBoosterPack({ value }: msgTransferBoosterPackParams): EncodeObject {
|
|
1383
1380
|
try {
|
|
1384
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1381
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial( value ) }
|
|
1385
1382
|
} catch (e: any) {
|
|
1386
|
-
throw new Error('TxClient:
|
|
1383
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message)
|
|
1387
1384
|
}
|
|
1388
1385
|
},
|
|
1389
1386
|
|
|
@@ -1422,17 +1419,14 @@ class SDKModule {
|
|
|
1422
1419
|
IgnoreMatches: getStructure(typeIgnoreMatches.fromPartial({})),
|
|
1423
1420
|
IgnoreSellOffers: getStructure(typeIgnoreSellOffers.fromPartial({})),
|
|
1424
1421
|
QueryQServerResponse: getStructure(typeQueryQServerResponse.fromPartial({})),
|
|
1425
|
-
IgnoreCouncils: getStructure(typeIgnoreCouncils.fromPartial({})),
|
|
1426
1422
|
RunningAverage: getStructure(typeRunningAverage.fromPartial({})),
|
|
1427
1423
|
Set: getStructure(typeSet.fromPartial({})),
|
|
1428
1424
|
SetProposal: getStructure(typeSetProposal.fromPartial({})),
|
|
1429
|
-
CouncilParticipation: getStructure(typeCouncilParticipation.fromPartial({})),
|
|
1430
1425
|
BoosterPack: getStructure(typeBoosterPack.fromPartial({})),
|
|
1431
1426
|
AirDrops: getStructure(typeAirDrops.fromPartial({})),
|
|
1432
1427
|
VotingResults: getStructure(typeVotingResults.fromPartial({})),
|
|
1433
1428
|
VotingResult: getStructure(typeVotingResult.fromPartial({})),
|
|
1434
1429
|
SingleVote: getStructure(typeSingleVote.fromPartial({})),
|
|
1435
|
-
VoteRight: getStructure(typeVoteRight.fromPartial({})),
|
|
1436
1430
|
|
|
1437
1431
|
};
|
|
1438
1432
|
client.on('signer-changed',(signer) => {
|