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