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