decentralcardgame-cardchain-client-ts 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,48 +3,48 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
7
|
+
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
8
|
+
import { MsgSetSetName } from "./types/cardchain/cardchain/tx";
|
|
9
|
+
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
10
10
|
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
11
|
-
import {
|
|
12
|
-
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
13
|
-
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
14
|
-
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
15
12
|
import { MsgFinalizeSet } from "./types/cardchain/cardchain/tx";
|
|
16
|
-
import {
|
|
13
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgRemoveContributorFromSet } from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgChangeAlias } from "./types/cardchain/cardchain/tx";
|
|
17
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
17
19
|
import { MsgAddArtworkToSet } from "./types/cardchain/cardchain/tx";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
+
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgSetSetArtist } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
27
|
+
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgCreateSet } from "./types/cardchain/cardchain/tx";
|
|
20
29
|
import { MsgDisinviteEarlyAccess } from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
31
|
+
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgSetSetStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
21
34
|
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
25
|
-
import { MsgAddStoryToSet } from "./types/cardchain/cardchain/tx";
|
|
35
|
+
import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
36
|
+
import { MsgAddContributorToSet } from "./types/cardchain/cardchain/tx";
|
|
26
37
|
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
30
|
-
import { MsgAddCardToSet } from "./types/cardchain/cardchain/tx";
|
|
38
|
+
import { MsgOpenMatch } from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
31
40
|
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
32
|
-
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
33
|
-
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
35
|
-
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
37
|
-
import { MsgBuyBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
38
|
-
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
39
41
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
40
|
-
import {
|
|
41
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
42
|
-
import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
|
|
43
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
42
|
+
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
44
43
|
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
44
|
+
import { MsgRemoveCardFromSet } from "./types/cardchain/cardchain/tx";
|
|
45
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
46
|
+
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
47
|
+
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
48
48
|
import { MsgInviteEarlyAccess } from "./types/cardchain/cardchain/tx";
|
|
49
49
|
import { Card as typeCard } from "./types";
|
|
50
50
|
import { TimeStamp as typeTimeStamp } from "./types";
|
|
@@ -70,7 +70,7 @@ import { AirDrops as typeAirDrops } from "./types";
|
|
|
70
70
|
import { VotingResults as typeVotingResults } from "./types";
|
|
71
71
|
import { VotingResult as typeVotingResult } from "./types";
|
|
72
72
|
import { SingleVote as typeSingleVote } from "./types";
|
|
73
|
-
export {
|
|
73
|
+
export { MsgBuyCardScheme, MsgAddArtwork, MsgSetSetName, MsgConfirmMatch, MsgTransferBoosterPack, MsgMultiVoteCard, MsgFinalizeSet, MsgOpenBoosterPack, MsgTransferCard, MsgRemoveContributorFromSet, MsgChangeAlias, MsgRemoveSellOffer, MsgApointMatchReporter, MsgAddArtworkToSet, MsgAddStoryToSet, MsgRevealCouncilResponse, MsgSetSetArtist, MsgReportMatch, MsgCreateCouncil, MsgSaveCardContent, MsgSetUserBiography, MsgAddCardToSet, MsgCreateSet, MsgDisinviteEarlyAccess, MsgVoteCard, MsgSetUserWebsite, MsgSetSetStoryWriter, MsgRewokeCouncilRegistration, MsgCommitCouncilResponse, MsgBuyBoosterPack, MsgAddContributorToSet, MsgRegisterForCouncil, MsgOpenMatch, MsgSetProfileCard, MsgChangeArtist, MsgDonateToCard, MsgBuyCard, MsgCreateuser, MsgRemoveCardFromSet, MsgCreateSellOffer, MsgRestartCouncil, MsgSetCardRarity, MsgInviteEarlyAccess };
|
|
74
74
|
export const registry = new Registry(msgTypes);
|
|
75
75
|
function getStructure(template) {
|
|
76
76
|
const structure = { fields: [] };
|
|
@@ -89,60 +89,60 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
89
89
|
prefix: "cosmos"
|
|
90
90
|
}) => {
|
|
91
91
|
return {
|
|
92
|
-
async
|
|
92
|
+
async sendMsgBuyCardScheme({ value, fee, memo }) {
|
|
93
93
|
if (!signer) {
|
|
94
|
-
throw new Error('TxClient:
|
|
94
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.');
|
|
95
95
|
}
|
|
96
96
|
try {
|
|
97
97
|
const { address } = (await signer.getAccounts())[0];
|
|
98
98
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
99
|
-
let msg = this.
|
|
99
|
+
let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) });
|
|
100
100
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
101
101
|
}
|
|
102
102
|
catch (e) {
|
|
103
|
-
throw new Error('TxClient:
|
|
103
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message);
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
async
|
|
106
|
+
async sendMsgAddArtwork({ value, fee, memo }) {
|
|
107
107
|
if (!signer) {
|
|
108
|
-
throw new Error('TxClient:
|
|
108
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.');
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
111
|
const { address } = (await signer.getAccounts())[0];
|
|
112
112
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
113
|
-
let msg = this.
|
|
113
|
+
let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) });
|
|
114
114
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
115
115
|
}
|
|
116
116
|
catch (e) {
|
|
117
|
-
throw new Error('TxClient:
|
|
117
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message);
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
async
|
|
120
|
+
async sendMsgSetSetName({ value, fee, memo }) {
|
|
121
121
|
if (!signer) {
|
|
122
|
-
throw new Error('TxClient:
|
|
122
|
+
throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.');
|
|
123
123
|
}
|
|
124
124
|
try {
|
|
125
125
|
const { address } = (await signer.getAccounts())[0];
|
|
126
126
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
127
|
-
let msg = this.
|
|
127
|
+
let msg = this.msgSetSetName({ value: MsgSetSetName.fromPartial(value) });
|
|
128
128
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
129
129
|
}
|
|
130
130
|
catch (e) {
|
|
131
|
-
throw new Error('TxClient:
|
|
131
|
+
throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: ' + e.message);
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
-
async
|
|
134
|
+
async sendMsgConfirmMatch({ value, fee, memo }) {
|
|
135
135
|
if (!signer) {
|
|
136
|
-
throw new Error('TxClient:
|
|
136
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.');
|
|
137
137
|
}
|
|
138
138
|
try {
|
|
139
139
|
const { address } = (await signer.getAccounts())[0];
|
|
140
140
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
141
|
-
let msg = this.
|
|
141
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) });
|
|
142
142
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
143
143
|
}
|
|
144
144
|
catch (e) {
|
|
145
|
-
throw new Error('TxClient:
|
|
145
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message);
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
async sendMsgTransferBoosterPack({ value, fee, memo }) {
|
|
@@ -159,522 +159,522 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
159
159
|
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
async
|
|
162
|
+
async sendMsgMultiVoteCard({ value, fee, memo }) {
|
|
163
163
|
if (!signer) {
|
|
164
|
-
throw new Error('TxClient:
|
|
164
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.');
|
|
165
165
|
}
|
|
166
166
|
try {
|
|
167
167
|
const { address } = (await signer.getAccounts())[0];
|
|
168
168
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
169
|
-
let msg = this.
|
|
169
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) });
|
|
170
170
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
171
171
|
}
|
|
172
172
|
catch (e) {
|
|
173
|
-
throw new Error('TxClient:
|
|
173
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message);
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
-
async
|
|
176
|
+
async sendMsgFinalizeSet({ value, fee, memo }) {
|
|
177
177
|
if (!signer) {
|
|
178
|
-
throw new Error('TxClient:
|
|
178
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.');
|
|
179
179
|
}
|
|
180
180
|
try {
|
|
181
181
|
const { address } = (await signer.getAccounts())[0];
|
|
182
182
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
183
|
-
let msg = this.
|
|
183
|
+
let msg = this.msgFinalizeSet({ value: MsgFinalizeSet.fromPartial(value) });
|
|
184
184
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
185
185
|
}
|
|
186
186
|
catch (e) {
|
|
187
|
-
throw new Error('TxClient:
|
|
187
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: ' + e.message);
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
-
async
|
|
190
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }) {
|
|
191
191
|
if (!signer) {
|
|
192
|
-
throw new Error('TxClient:
|
|
192
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
193
193
|
}
|
|
194
194
|
try {
|
|
195
195
|
const { address } = (await signer.getAccounts())[0];
|
|
196
196
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
197
|
-
let msg = this.
|
|
197
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) });
|
|
198
198
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
199
199
|
}
|
|
200
200
|
catch (e) {
|
|
201
|
-
throw new Error('TxClient:
|
|
201
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
async
|
|
204
|
+
async sendMsgTransferCard({ value, fee, memo }) {
|
|
205
205
|
if (!signer) {
|
|
206
|
-
throw new Error('TxClient:
|
|
206
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.');
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
209
|
const { address } = (await signer.getAccounts())[0];
|
|
210
210
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
211
|
-
let msg = this.
|
|
211
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) });
|
|
212
212
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
213
213
|
}
|
|
214
214
|
catch (e) {
|
|
215
|
-
throw new Error('TxClient:
|
|
215
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message);
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
|
-
async
|
|
218
|
+
async sendMsgRemoveContributorFromSet({ value, fee, memo }) {
|
|
219
219
|
if (!signer) {
|
|
220
|
-
throw new Error('TxClient:
|
|
220
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.');
|
|
221
221
|
}
|
|
222
222
|
try {
|
|
223
223
|
const { address } = (await signer.getAccounts())[0];
|
|
224
224
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
225
|
-
let msg = this.
|
|
225
|
+
let msg = this.msgRemoveContributorFromSet({ value: MsgRemoveContributorFromSet.fromPartial(value) });
|
|
226
226
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
227
227
|
}
|
|
228
228
|
catch (e) {
|
|
229
|
-
throw new Error('TxClient:
|
|
229
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: ' + e.message);
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
|
-
async
|
|
232
|
+
async sendMsgChangeAlias({ value, fee, memo }) {
|
|
233
233
|
if (!signer) {
|
|
234
|
-
throw new Error('TxClient:
|
|
234
|
+
throw new Error('TxClient:sendMsgChangeAlias: Unable to sign Tx. Signer is not present.');
|
|
235
235
|
}
|
|
236
236
|
try {
|
|
237
237
|
const { address } = (await signer.getAccounts())[0];
|
|
238
238
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
239
|
-
let msg = this.
|
|
239
|
+
let msg = this.msgChangeAlias({ value: MsgChangeAlias.fromPartial(value) });
|
|
240
240
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
241
241
|
}
|
|
242
242
|
catch (e) {
|
|
243
|
-
throw new Error('TxClient:
|
|
243
|
+
throw new Error('TxClient:sendMsgChangeAlias: Could not broadcast Tx: ' + e.message);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
async
|
|
246
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }) {
|
|
247
247
|
if (!signer) {
|
|
248
|
-
throw new Error('TxClient:
|
|
248
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
|
|
249
249
|
}
|
|
250
250
|
try {
|
|
251
251
|
const { address } = (await signer.getAccounts())[0];
|
|
252
252
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
253
|
-
let msg = this.
|
|
253
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
|
|
254
254
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
255
255
|
}
|
|
256
256
|
catch (e) {
|
|
257
|
-
throw new Error('TxClient:
|
|
257
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
|
-
async
|
|
260
|
+
async sendMsgApointMatchReporter({ value, fee, memo }) {
|
|
261
261
|
if (!signer) {
|
|
262
|
-
throw new Error('TxClient:
|
|
262
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.');
|
|
263
263
|
}
|
|
264
264
|
try {
|
|
265
265
|
const { address } = (await signer.getAccounts())[0];
|
|
266
266
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
267
|
-
let msg = this.
|
|
267
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) });
|
|
268
268
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
269
269
|
}
|
|
270
270
|
catch (e) {
|
|
271
|
-
throw new Error('TxClient:
|
|
271
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message);
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
async
|
|
274
|
+
async sendMsgAddArtworkToSet({ value, fee, memo }) {
|
|
275
275
|
if (!signer) {
|
|
276
|
-
throw new Error('TxClient:
|
|
276
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.');
|
|
277
277
|
}
|
|
278
278
|
try {
|
|
279
279
|
const { address } = (await signer.getAccounts())[0];
|
|
280
280
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
281
|
-
let msg = this.
|
|
281
|
+
let msg = this.msgAddArtworkToSet({ value: MsgAddArtworkToSet.fromPartial(value) });
|
|
282
282
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
283
283
|
}
|
|
284
284
|
catch (e) {
|
|
285
|
-
throw new Error('TxClient:
|
|
285
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: ' + e.message);
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
|
-
async
|
|
288
|
+
async sendMsgAddStoryToSet({ value, fee, memo }) {
|
|
289
289
|
if (!signer) {
|
|
290
|
-
throw new Error('TxClient:
|
|
290
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.');
|
|
291
291
|
}
|
|
292
292
|
try {
|
|
293
293
|
const { address } = (await signer.getAccounts())[0];
|
|
294
294
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
295
|
-
let msg = this.
|
|
295
|
+
let msg = this.msgAddStoryToSet({ value: MsgAddStoryToSet.fromPartial(value) });
|
|
296
296
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
297
297
|
}
|
|
298
298
|
catch (e) {
|
|
299
|
-
throw new Error('TxClient:
|
|
299
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: ' + e.message);
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
-
async
|
|
302
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }) {
|
|
303
303
|
if (!signer) {
|
|
304
|
-
throw new Error('TxClient:
|
|
304
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
305
305
|
}
|
|
306
306
|
try {
|
|
307
307
|
const { address } = (await signer.getAccounts())[0];
|
|
308
308
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
309
|
-
let msg = this.
|
|
309
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) });
|
|
310
310
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
311
311
|
}
|
|
312
312
|
catch (e) {
|
|
313
|
-
throw new Error('TxClient:
|
|
313
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
|
-
async
|
|
316
|
+
async sendMsgSetSetArtist({ value, fee, memo }) {
|
|
317
317
|
if (!signer) {
|
|
318
|
-
throw new Error('TxClient:
|
|
318
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.');
|
|
319
319
|
}
|
|
320
320
|
try {
|
|
321
321
|
const { address } = (await signer.getAccounts())[0];
|
|
322
322
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
323
|
-
let msg = this.
|
|
323
|
+
let msg = this.msgSetSetArtist({ value: MsgSetSetArtist.fromPartial(value) });
|
|
324
324
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
325
325
|
}
|
|
326
326
|
catch (e) {
|
|
327
|
-
throw new Error('TxClient:
|
|
327
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: ' + e.message);
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
|
-
async
|
|
330
|
+
async sendMsgReportMatch({ value, fee, memo }) {
|
|
331
331
|
if (!signer) {
|
|
332
|
-
throw new Error('TxClient:
|
|
332
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.');
|
|
333
333
|
}
|
|
334
334
|
try {
|
|
335
335
|
const { address } = (await signer.getAccounts())[0];
|
|
336
336
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
337
|
-
let msg = this.
|
|
337
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) });
|
|
338
338
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
339
339
|
}
|
|
340
340
|
catch (e) {
|
|
341
|
-
throw new Error('TxClient:
|
|
341
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message);
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
|
-
async
|
|
344
|
+
async sendMsgCreateCouncil({ value, fee, memo }) {
|
|
345
345
|
if (!signer) {
|
|
346
|
-
throw new Error('TxClient:
|
|
346
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.');
|
|
347
347
|
}
|
|
348
348
|
try {
|
|
349
349
|
const { address } = (await signer.getAccounts())[0];
|
|
350
350
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
351
|
-
let msg = this.
|
|
351
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) });
|
|
352
352
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
353
353
|
}
|
|
354
354
|
catch (e) {
|
|
355
|
-
throw new Error('TxClient:
|
|
355
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message);
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
async
|
|
358
|
+
async sendMsgSaveCardContent({ value, fee, memo }) {
|
|
359
359
|
if (!signer) {
|
|
360
|
-
throw new Error('TxClient:
|
|
360
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.');
|
|
361
361
|
}
|
|
362
362
|
try {
|
|
363
363
|
const { address } = (await signer.getAccounts())[0];
|
|
364
364
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
365
|
-
let msg = this.
|
|
365
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) });
|
|
366
366
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
367
367
|
}
|
|
368
368
|
catch (e) {
|
|
369
|
-
throw new Error('TxClient:
|
|
369
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message);
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
|
-
async
|
|
372
|
+
async sendMsgSetUserBiography({ value, fee, memo }) {
|
|
373
373
|
if (!signer) {
|
|
374
|
-
throw new Error('TxClient:
|
|
374
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.');
|
|
375
375
|
}
|
|
376
376
|
try {
|
|
377
377
|
const { address } = (await signer.getAccounts())[0];
|
|
378
378
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
379
|
-
let msg = this.
|
|
379
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) });
|
|
380
380
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
381
381
|
}
|
|
382
382
|
catch (e) {
|
|
383
|
-
throw new Error('TxClient:
|
|
383
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message);
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
async
|
|
386
|
+
async sendMsgAddCardToSet({ value, fee, memo }) {
|
|
387
387
|
if (!signer) {
|
|
388
|
-
throw new Error('TxClient:
|
|
388
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.');
|
|
389
389
|
}
|
|
390
390
|
try {
|
|
391
391
|
const { address } = (await signer.getAccounts())[0];
|
|
392
392
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
393
|
-
let msg = this.
|
|
393
|
+
let msg = this.msgAddCardToSet({ value: MsgAddCardToSet.fromPartial(value) });
|
|
394
394
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
395
395
|
}
|
|
396
396
|
catch (e) {
|
|
397
|
-
throw new Error('TxClient:
|
|
397
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: ' + e.message);
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
|
-
async
|
|
400
|
+
async sendMsgCreateSet({ value, fee, memo }) {
|
|
401
401
|
if (!signer) {
|
|
402
|
-
throw new Error('TxClient:
|
|
402
|
+
throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.');
|
|
403
403
|
}
|
|
404
404
|
try {
|
|
405
405
|
const { address } = (await signer.getAccounts())[0];
|
|
406
406
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
407
|
-
let msg = this.
|
|
407
|
+
let msg = this.msgCreateSet({ value: MsgCreateSet.fromPartial(value) });
|
|
408
408
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
409
409
|
}
|
|
410
410
|
catch (e) {
|
|
411
|
-
throw new Error('TxClient:
|
|
411
|
+
throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: ' + e.message);
|
|
412
412
|
}
|
|
413
413
|
},
|
|
414
|
-
async
|
|
414
|
+
async sendMsgDisinviteEarlyAccess({ value, fee, memo }) {
|
|
415
415
|
if (!signer) {
|
|
416
|
-
throw new Error('TxClient:
|
|
416
|
+
throw new Error('TxClient:sendMsgDisinviteEarlyAccess: Unable to sign Tx. Signer is not present.');
|
|
417
417
|
}
|
|
418
418
|
try {
|
|
419
419
|
const { address } = (await signer.getAccounts())[0];
|
|
420
420
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
421
|
-
let msg = this.
|
|
421
|
+
let msg = this.msgDisinviteEarlyAccess({ value: MsgDisinviteEarlyAccess.fromPartial(value) });
|
|
422
422
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
423
423
|
}
|
|
424
424
|
catch (e) {
|
|
425
|
-
throw new Error('TxClient:
|
|
425
|
+
throw new Error('TxClient:sendMsgDisinviteEarlyAccess: Could not broadcast Tx: ' + e.message);
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
|
-
async
|
|
428
|
+
async sendMsgVoteCard({ value, fee, memo }) {
|
|
429
429
|
if (!signer) {
|
|
430
|
-
throw new Error('TxClient:
|
|
430
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.');
|
|
431
431
|
}
|
|
432
432
|
try {
|
|
433
433
|
const { address } = (await signer.getAccounts())[0];
|
|
434
434
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
435
|
-
let msg = this.
|
|
435
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) });
|
|
436
436
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
437
437
|
}
|
|
438
438
|
catch (e) {
|
|
439
|
-
throw new Error('TxClient:
|
|
439
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message);
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
|
-
async
|
|
442
|
+
async sendMsgSetUserWebsite({ value, fee, memo }) {
|
|
443
443
|
if (!signer) {
|
|
444
|
-
throw new Error('TxClient:
|
|
444
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.');
|
|
445
445
|
}
|
|
446
446
|
try {
|
|
447
447
|
const { address } = (await signer.getAccounts())[0];
|
|
448
448
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
449
|
-
let msg = this.
|
|
449
|
+
let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) });
|
|
450
450
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
451
451
|
}
|
|
452
452
|
catch (e) {
|
|
453
|
-
throw new Error('TxClient:
|
|
453
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message);
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
|
-
async
|
|
456
|
+
async sendMsgSetSetStoryWriter({ value, fee, memo }) {
|
|
457
457
|
if (!signer) {
|
|
458
|
-
throw new Error('TxClient:
|
|
458
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.');
|
|
459
459
|
}
|
|
460
460
|
try {
|
|
461
461
|
const { address } = (await signer.getAccounts())[0];
|
|
462
462
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
463
|
-
let msg = this.
|
|
463
|
+
let msg = this.msgSetSetStoryWriter({ value: MsgSetSetStoryWriter.fromPartial(value) });
|
|
464
464
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
465
465
|
}
|
|
466
466
|
catch (e) {
|
|
467
|
-
throw new Error('TxClient:
|
|
467
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: ' + e.message);
|
|
468
468
|
}
|
|
469
469
|
},
|
|
470
|
-
async
|
|
470
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }) {
|
|
471
471
|
if (!signer) {
|
|
472
|
-
throw new Error('TxClient:
|
|
472
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.');
|
|
473
473
|
}
|
|
474
474
|
try {
|
|
475
475
|
const { address } = (await signer.getAccounts())[0];
|
|
476
476
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
477
|
-
let msg = this.
|
|
477
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) });
|
|
478
478
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
479
479
|
}
|
|
480
480
|
catch (e) {
|
|
481
|
-
throw new Error('TxClient:
|
|
481
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message);
|
|
482
482
|
}
|
|
483
483
|
},
|
|
484
|
-
async
|
|
484
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }) {
|
|
485
485
|
if (!signer) {
|
|
486
|
-
throw new Error('TxClient:
|
|
486
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
487
487
|
}
|
|
488
488
|
try {
|
|
489
489
|
const { address } = (await signer.getAccounts())[0];
|
|
490
490
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
491
|
-
let msg = this.
|
|
491
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) });
|
|
492
492
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
493
493
|
}
|
|
494
494
|
catch (e) {
|
|
495
|
-
throw new Error('TxClient:
|
|
495
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
|
-
async
|
|
498
|
+
async sendMsgBuyBoosterPack({ value, fee, memo }) {
|
|
499
499
|
if (!signer) {
|
|
500
|
-
throw new Error('TxClient:
|
|
500
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
501
501
|
}
|
|
502
502
|
try {
|
|
503
503
|
const { address } = (await signer.getAccounts())[0];
|
|
504
504
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
505
|
-
let msg = this.
|
|
505
|
+
let msg = this.msgBuyBoosterPack({ value: MsgBuyBoosterPack.fromPartial(value) });
|
|
506
506
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
507
507
|
}
|
|
508
508
|
catch (e) {
|
|
509
|
-
throw new Error('TxClient:
|
|
509
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
-
async
|
|
512
|
+
async sendMsgAddContributorToSet({ value, fee, memo }) {
|
|
513
513
|
if (!signer) {
|
|
514
|
-
throw new Error('TxClient:
|
|
514
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.');
|
|
515
515
|
}
|
|
516
516
|
try {
|
|
517
517
|
const { address } = (await signer.getAccounts())[0];
|
|
518
518
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
519
|
-
let msg = this.
|
|
519
|
+
let msg = this.msgAddContributorToSet({ value: MsgAddContributorToSet.fromPartial(value) });
|
|
520
520
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
521
521
|
}
|
|
522
522
|
catch (e) {
|
|
523
|
-
throw new Error('TxClient:
|
|
523
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: ' + e.message);
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
|
-
async
|
|
526
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }) {
|
|
527
527
|
if (!signer) {
|
|
528
|
-
throw new Error('TxClient:
|
|
528
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.');
|
|
529
529
|
}
|
|
530
530
|
try {
|
|
531
531
|
const { address } = (await signer.getAccounts())[0];
|
|
532
532
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
533
|
-
let msg = this.
|
|
533
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) });
|
|
534
534
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
535
535
|
}
|
|
536
536
|
catch (e) {
|
|
537
|
-
throw new Error('TxClient:
|
|
537
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message);
|
|
538
538
|
}
|
|
539
539
|
},
|
|
540
|
-
async
|
|
540
|
+
async sendMsgOpenMatch({ value, fee, memo }) {
|
|
541
541
|
if (!signer) {
|
|
542
|
-
throw new Error('TxClient:
|
|
542
|
+
throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.');
|
|
543
543
|
}
|
|
544
544
|
try {
|
|
545
545
|
const { address } = (await signer.getAccounts())[0];
|
|
546
546
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
547
|
-
let msg = this.
|
|
547
|
+
let msg = this.msgOpenMatch({ value: MsgOpenMatch.fromPartial(value) });
|
|
548
548
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
549
549
|
}
|
|
550
550
|
catch (e) {
|
|
551
|
-
throw new Error('TxClient:
|
|
551
|
+
throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: ' + e.message);
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
|
-
async
|
|
554
|
+
async sendMsgSetProfileCard({ value, fee, memo }) {
|
|
555
555
|
if (!signer) {
|
|
556
|
-
throw new Error('TxClient:
|
|
556
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.');
|
|
557
557
|
}
|
|
558
558
|
try {
|
|
559
559
|
const { address } = (await signer.getAccounts())[0];
|
|
560
560
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
561
|
-
let msg = this.
|
|
561
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) });
|
|
562
562
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
563
563
|
}
|
|
564
564
|
catch (e) {
|
|
565
|
-
throw new Error('TxClient:
|
|
565
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message);
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
|
-
async
|
|
568
|
+
async sendMsgChangeArtist({ value, fee, memo }) {
|
|
569
569
|
if (!signer) {
|
|
570
|
-
throw new Error('TxClient:
|
|
570
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.');
|
|
571
571
|
}
|
|
572
572
|
try {
|
|
573
573
|
const { address } = (await signer.getAccounts())[0];
|
|
574
574
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
575
|
-
let msg = this.
|
|
575
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) });
|
|
576
576
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
577
577
|
}
|
|
578
578
|
catch (e) {
|
|
579
|
-
throw new Error('TxClient:
|
|
579
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message);
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
|
-
async
|
|
582
|
+
async sendMsgDonateToCard({ value, fee, memo }) {
|
|
583
583
|
if (!signer) {
|
|
584
|
-
throw new Error('TxClient:
|
|
584
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.');
|
|
585
585
|
}
|
|
586
586
|
try {
|
|
587
587
|
const { address } = (await signer.getAccounts())[0];
|
|
588
588
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
589
|
-
let msg = this.
|
|
589
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) });
|
|
590
590
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
591
591
|
}
|
|
592
592
|
catch (e) {
|
|
593
|
-
throw new Error('TxClient:
|
|
593
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message);
|
|
594
594
|
}
|
|
595
595
|
},
|
|
596
|
-
async
|
|
596
|
+
async sendMsgBuyCard({ value, fee, memo }) {
|
|
597
597
|
if (!signer) {
|
|
598
|
-
throw new Error('TxClient:
|
|
598
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.');
|
|
599
599
|
}
|
|
600
600
|
try {
|
|
601
601
|
const { address } = (await signer.getAccounts())[0];
|
|
602
602
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
603
|
-
let msg = this.
|
|
603
|
+
let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) });
|
|
604
604
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
605
605
|
}
|
|
606
606
|
catch (e) {
|
|
607
|
-
throw new Error('TxClient:
|
|
607
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message);
|
|
608
608
|
}
|
|
609
609
|
},
|
|
610
|
-
async
|
|
610
|
+
async sendMsgCreateuser({ value, fee, memo }) {
|
|
611
611
|
if (!signer) {
|
|
612
|
-
throw new Error('TxClient:
|
|
612
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.');
|
|
613
613
|
}
|
|
614
614
|
try {
|
|
615
615
|
const { address } = (await signer.getAccounts())[0];
|
|
616
616
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
617
|
-
let msg = this.
|
|
617
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) });
|
|
618
618
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
619
619
|
}
|
|
620
620
|
catch (e) {
|
|
621
|
-
throw new Error('TxClient:
|
|
621
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message);
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
|
-
async
|
|
624
|
+
async sendMsgRemoveCardFromSet({ value, fee, memo }) {
|
|
625
625
|
if (!signer) {
|
|
626
|
-
throw new Error('TxClient:
|
|
626
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.');
|
|
627
627
|
}
|
|
628
628
|
try {
|
|
629
629
|
const { address } = (await signer.getAccounts())[0];
|
|
630
630
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
631
|
-
let msg = this.
|
|
631
|
+
let msg = this.msgRemoveCardFromSet({ value: MsgRemoveCardFromSet.fromPartial(value) });
|
|
632
632
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
633
633
|
}
|
|
634
634
|
catch (e) {
|
|
635
|
-
throw new Error('TxClient:
|
|
635
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: ' + e.message);
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
|
-
async
|
|
638
|
+
async sendMsgCreateSellOffer({ value, fee, memo }) {
|
|
639
639
|
if (!signer) {
|
|
640
|
-
throw new Error('TxClient:
|
|
640
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.');
|
|
641
641
|
}
|
|
642
642
|
try {
|
|
643
643
|
const { address } = (await signer.getAccounts())[0];
|
|
644
644
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
645
|
-
let msg = this.
|
|
645
|
+
let msg = this.msgCreateSellOffer({ value: MsgCreateSellOffer.fromPartial(value) });
|
|
646
646
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
647
647
|
}
|
|
648
648
|
catch (e) {
|
|
649
|
-
throw new Error('TxClient:
|
|
649
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message);
|
|
650
650
|
}
|
|
651
651
|
},
|
|
652
|
-
async
|
|
652
|
+
async sendMsgRestartCouncil({ value, fee, memo }) {
|
|
653
653
|
if (!signer) {
|
|
654
|
-
throw new Error('TxClient:
|
|
654
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.');
|
|
655
655
|
}
|
|
656
656
|
try {
|
|
657
657
|
const { address } = (await signer.getAccounts())[0];
|
|
658
658
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
659
|
-
let msg = this.
|
|
659
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) });
|
|
660
660
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
661
661
|
}
|
|
662
662
|
catch (e) {
|
|
663
|
-
throw new Error('TxClient:
|
|
663
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message);
|
|
664
664
|
}
|
|
665
665
|
},
|
|
666
|
-
async
|
|
666
|
+
async sendMsgSetCardRarity({ value, fee, memo }) {
|
|
667
667
|
if (!signer) {
|
|
668
|
-
throw new Error('TxClient:
|
|
668
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.');
|
|
669
669
|
}
|
|
670
670
|
try {
|
|
671
671
|
const { address } = (await signer.getAccounts())[0];
|
|
672
672
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
673
|
-
let msg = this.
|
|
673
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) });
|
|
674
674
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
675
675
|
}
|
|
676
676
|
catch (e) {
|
|
677
|
-
throw new Error('TxClient:
|
|
677
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message);
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
680
|
async sendMsgInviteEarlyAccess({ value, fee, memo }) {
|
|
@@ -691,48 +691,48 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
691
691
|
throw new Error('TxClient:sendMsgInviteEarlyAccess: Could not broadcast Tx: ' + e.message);
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
msgBuyCardScheme({ value }) {
|
|
695
695
|
try {
|
|
696
696
|
return {
|
|
697
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
698
|
-
value:
|
|
697
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme",
|
|
698
|
+
value: MsgBuyCardScheme.fromPartial(value)
|
|
699
699
|
};
|
|
700
700
|
}
|
|
701
701
|
catch (e) {
|
|
702
|
-
throw new Error('TxClient:
|
|
702
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message);
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
|
-
|
|
705
|
+
msgAddArtwork({ value }) {
|
|
706
706
|
try {
|
|
707
707
|
return {
|
|
708
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
709
|
-
value:
|
|
708
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork",
|
|
709
|
+
value: MsgAddArtwork.fromPartial(value)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
catch (e) {
|
|
713
|
-
throw new Error('TxClient:
|
|
713
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message);
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
|
-
|
|
716
|
+
msgSetSetName({ value }) {
|
|
717
717
|
try {
|
|
718
718
|
return {
|
|
719
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
720
|
-
value:
|
|
719
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName",
|
|
720
|
+
value: MsgSetSetName.fromPartial(value)
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
catch (e) {
|
|
724
|
-
throw new Error('TxClient:
|
|
724
|
+
throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message);
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
|
-
|
|
727
|
+
msgConfirmMatch({ value }) {
|
|
728
728
|
try {
|
|
729
729
|
return {
|
|
730
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
731
|
-
value:
|
|
730
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch",
|
|
731
|
+
value: MsgConfirmMatch.fromPartial(value)
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
catch (e) {
|
|
735
|
-
throw new Error('TxClient:
|
|
735
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message);
|
|
736
736
|
}
|
|
737
737
|
},
|
|
738
738
|
msgTransferBoosterPack({ value }) {
|
|
@@ -746,70 +746,92 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
746
746
|
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message);
|
|
747
747
|
}
|
|
748
748
|
},
|
|
749
|
-
|
|
749
|
+
msgMultiVoteCard({ value }) {
|
|
750
750
|
try {
|
|
751
751
|
return {
|
|
752
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
753
|
-
value:
|
|
752
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard",
|
|
753
|
+
value: MsgMultiVoteCard.fromPartial(value)
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
756
|
catch (e) {
|
|
757
|
-
throw new Error('TxClient:
|
|
757
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message);
|
|
758
758
|
}
|
|
759
759
|
},
|
|
760
|
-
|
|
760
|
+
msgFinalizeSet({ value }) {
|
|
761
761
|
try {
|
|
762
762
|
return {
|
|
763
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
764
|
-
value:
|
|
763
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet",
|
|
764
|
+
value: MsgFinalizeSet.fromPartial(value)
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
catch (e) {
|
|
768
|
-
throw new Error('TxClient:
|
|
768
|
+
throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message);
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
|
-
|
|
771
|
+
msgOpenBoosterPack({ value }) {
|
|
772
772
|
try {
|
|
773
773
|
return {
|
|
774
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
775
|
-
value:
|
|
774
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack",
|
|
775
|
+
value: MsgOpenBoosterPack.fromPartial(value)
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
778
|
catch (e) {
|
|
779
|
-
throw new Error('TxClient:
|
|
779
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message);
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
|
-
|
|
782
|
+
msgTransferCard({ value }) {
|
|
783
783
|
try {
|
|
784
784
|
return {
|
|
785
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
786
|
-
value:
|
|
785
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard",
|
|
786
|
+
value: MsgTransferCard.fromPartial(value)
|
|
787
787
|
};
|
|
788
788
|
}
|
|
789
789
|
catch (e) {
|
|
790
|
-
throw new Error('TxClient:
|
|
790
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message);
|
|
791
791
|
}
|
|
792
792
|
},
|
|
793
|
-
|
|
793
|
+
msgRemoveContributorFromSet({ value }) {
|
|
794
794
|
try {
|
|
795
795
|
return {
|
|
796
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
797
|
-
value:
|
|
796
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet",
|
|
797
|
+
value: MsgRemoveContributorFromSet.fromPartial(value)
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
800
|
catch (e) {
|
|
801
|
-
throw new Error('TxClient:
|
|
801
|
+
throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message);
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
|
|
804
|
+
msgChangeAlias({ value }) {
|
|
805
805
|
try {
|
|
806
806
|
return {
|
|
807
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
808
|
-
value:
|
|
807
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeAlias",
|
|
808
|
+
value: MsgChangeAlias.fromPartial(value)
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
811
|
catch (e) {
|
|
812
|
-
throw new Error('TxClient:
|
|
812
|
+
throw new Error('TxClient:MsgChangeAlias: Could not create message: ' + e.message);
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
msgRemoveSellOffer({ value }) {
|
|
816
|
+
try {
|
|
817
|
+
return {
|
|
818
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer",
|
|
819
|
+
value: MsgRemoveSellOffer.fromPartial(value)
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
catch (e) {
|
|
823
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message);
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
msgApointMatchReporter({ value }) {
|
|
827
|
+
try {
|
|
828
|
+
return {
|
|
829
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter",
|
|
830
|
+
value: MsgApointMatchReporter.fromPartial(value)
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
catch (e) {
|
|
834
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message);
|
|
813
835
|
}
|
|
814
836
|
},
|
|
815
837
|
msgAddArtworkToSet({ value }) {
|
|
@@ -823,59 +845,59 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
823
845
|
throw new Error('TxClient:MsgAddArtworkToSet: Could not create message: ' + e.message);
|
|
824
846
|
}
|
|
825
847
|
},
|
|
826
|
-
|
|
848
|
+
msgAddStoryToSet({ value }) {
|
|
827
849
|
try {
|
|
828
850
|
return {
|
|
829
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
830
|
-
value:
|
|
851
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet",
|
|
852
|
+
value: MsgAddStoryToSet.fromPartial(value)
|
|
831
853
|
};
|
|
832
854
|
}
|
|
833
855
|
catch (e) {
|
|
834
|
-
throw new Error('TxClient:
|
|
856
|
+
throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message);
|
|
835
857
|
}
|
|
836
858
|
},
|
|
837
|
-
|
|
859
|
+
msgRevealCouncilResponse({ value }) {
|
|
838
860
|
try {
|
|
839
861
|
return {
|
|
840
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
841
|
-
value:
|
|
862
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse",
|
|
863
|
+
value: MsgRevealCouncilResponse.fromPartial(value)
|
|
842
864
|
};
|
|
843
865
|
}
|
|
844
866
|
catch (e) {
|
|
845
|
-
throw new Error('TxClient:
|
|
867
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message);
|
|
846
868
|
}
|
|
847
869
|
},
|
|
848
|
-
|
|
870
|
+
msgSetSetArtist({ value }) {
|
|
849
871
|
try {
|
|
850
872
|
return {
|
|
851
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
852
|
-
value:
|
|
873
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist",
|
|
874
|
+
value: MsgSetSetArtist.fromPartial(value)
|
|
853
875
|
};
|
|
854
876
|
}
|
|
855
877
|
catch (e) {
|
|
856
|
-
throw new Error('TxClient:
|
|
878
|
+
throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message);
|
|
857
879
|
}
|
|
858
880
|
},
|
|
859
|
-
|
|
881
|
+
msgReportMatch({ value }) {
|
|
860
882
|
try {
|
|
861
883
|
return {
|
|
862
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
863
|
-
value:
|
|
884
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch",
|
|
885
|
+
value: MsgReportMatch.fromPartial(value)
|
|
864
886
|
};
|
|
865
887
|
}
|
|
866
888
|
catch (e) {
|
|
867
|
-
throw new Error('TxClient:
|
|
889
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message);
|
|
868
890
|
}
|
|
869
891
|
},
|
|
870
|
-
|
|
892
|
+
msgCreateCouncil({ value }) {
|
|
871
893
|
try {
|
|
872
894
|
return {
|
|
873
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
874
|
-
value:
|
|
895
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil",
|
|
896
|
+
value: MsgCreateCouncil.fromPartial(value)
|
|
875
897
|
};
|
|
876
898
|
}
|
|
877
899
|
catch (e) {
|
|
878
|
-
throw new Error('TxClient:
|
|
900
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message);
|
|
879
901
|
}
|
|
880
902
|
},
|
|
881
903
|
msgSaveCardContent({ value }) {
|
|
@@ -889,169 +911,169 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
889
911
|
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message);
|
|
890
912
|
}
|
|
891
913
|
},
|
|
892
|
-
|
|
914
|
+
msgSetUserBiography({ value }) {
|
|
893
915
|
try {
|
|
894
916
|
return {
|
|
895
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
896
|
-
value:
|
|
917
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography",
|
|
918
|
+
value: MsgSetUserBiography.fromPartial(value)
|
|
897
919
|
};
|
|
898
920
|
}
|
|
899
921
|
catch (e) {
|
|
900
|
-
throw new Error('TxClient:
|
|
922
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
|
|
901
923
|
}
|
|
902
924
|
},
|
|
903
|
-
|
|
925
|
+
msgAddCardToSet({ value }) {
|
|
904
926
|
try {
|
|
905
927
|
return {
|
|
906
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
907
|
-
value:
|
|
928
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet",
|
|
929
|
+
value: MsgAddCardToSet.fromPartial(value)
|
|
908
930
|
};
|
|
909
931
|
}
|
|
910
932
|
catch (e) {
|
|
911
|
-
throw new Error('TxClient:
|
|
933
|
+
throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message);
|
|
912
934
|
}
|
|
913
935
|
},
|
|
914
|
-
|
|
936
|
+
msgCreateSet({ value }) {
|
|
915
937
|
try {
|
|
916
938
|
return {
|
|
917
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
918
|
-
value:
|
|
939
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet",
|
|
940
|
+
value: MsgCreateSet.fromPartial(value)
|
|
919
941
|
};
|
|
920
942
|
}
|
|
921
943
|
catch (e) {
|
|
922
|
-
throw new Error('TxClient:
|
|
944
|
+
throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message);
|
|
923
945
|
}
|
|
924
946
|
},
|
|
925
|
-
|
|
947
|
+
msgDisinviteEarlyAccess({ value }) {
|
|
926
948
|
try {
|
|
927
949
|
return {
|
|
928
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
929
|
-
value:
|
|
950
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDisinviteEarlyAccess",
|
|
951
|
+
value: MsgDisinviteEarlyAccess.fromPartial(value)
|
|
930
952
|
};
|
|
931
953
|
}
|
|
932
954
|
catch (e) {
|
|
933
|
-
throw new Error('TxClient:
|
|
955
|
+
throw new Error('TxClient:MsgDisinviteEarlyAccess: Could not create message: ' + e.message);
|
|
934
956
|
}
|
|
935
957
|
},
|
|
936
|
-
|
|
958
|
+
msgVoteCard({ value }) {
|
|
937
959
|
try {
|
|
938
960
|
return {
|
|
939
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
940
|
-
value:
|
|
961
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard",
|
|
962
|
+
value: MsgVoteCard.fromPartial(value)
|
|
941
963
|
};
|
|
942
964
|
}
|
|
943
965
|
catch (e) {
|
|
944
|
-
throw new Error('TxClient:
|
|
966
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
|
|
945
967
|
}
|
|
946
968
|
},
|
|
947
|
-
|
|
969
|
+
msgSetUserWebsite({ value }) {
|
|
948
970
|
try {
|
|
949
971
|
return {
|
|
950
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
951
|
-
value:
|
|
972
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite",
|
|
973
|
+
value: MsgSetUserWebsite.fromPartial(value)
|
|
952
974
|
};
|
|
953
975
|
}
|
|
954
976
|
catch (e) {
|
|
955
|
-
throw new Error('TxClient:
|
|
977
|
+
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message);
|
|
956
978
|
}
|
|
957
979
|
},
|
|
958
|
-
|
|
980
|
+
msgSetSetStoryWriter({ value }) {
|
|
959
981
|
try {
|
|
960
982
|
return {
|
|
961
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
962
|
-
value:
|
|
983
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter",
|
|
984
|
+
value: MsgSetSetStoryWriter.fromPartial(value)
|
|
963
985
|
};
|
|
964
986
|
}
|
|
965
987
|
catch (e) {
|
|
966
|
-
throw new Error('TxClient:
|
|
988
|
+
throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message);
|
|
967
989
|
}
|
|
968
990
|
},
|
|
969
|
-
|
|
991
|
+
msgRewokeCouncilRegistration({ value }) {
|
|
970
992
|
try {
|
|
971
993
|
return {
|
|
972
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
973
|
-
value:
|
|
994
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration",
|
|
995
|
+
value: MsgRewokeCouncilRegistration.fromPartial(value)
|
|
974
996
|
};
|
|
975
997
|
}
|
|
976
998
|
catch (e) {
|
|
977
|
-
throw new Error('TxClient:
|
|
999
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message);
|
|
978
1000
|
}
|
|
979
1001
|
},
|
|
980
|
-
|
|
1002
|
+
msgCommitCouncilResponse({ value }) {
|
|
981
1003
|
try {
|
|
982
1004
|
return {
|
|
983
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
984
|
-
value:
|
|
1005
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse",
|
|
1006
|
+
value: MsgCommitCouncilResponse.fromPartial(value)
|
|
985
1007
|
};
|
|
986
1008
|
}
|
|
987
1009
|
catch (e) {
|
|
988
|
-
throw new Error('TxClient:
|
|
1010
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message);
|
|
989
1011
|
}
|
|
990
1012
|
},
|
|
991
|
-
|
|
1013
|
+
msgBuyBoosterPack({ value }) {
|
|
992
1014
|
try {
|
|
993
1015
|
return {
|
|
994
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
995
|
-
value:
|
|
1016
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack",
|
|
1017
|
+
value: MsgBuyBoosterPack.fromPartial(value)
|
|
996
1018
|
};
|
|
997
1019
|
}
|
|
998
1020
|
catch (e) {
|
|
999
|
-
throw new Error('TxClient:
|
|
1021
|
+
throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message);
|
|
1000
1022
|
}
|
|
1001
1023
|
},
|
|
1002
|
-
|
|
1024
|
+
msgAddContributorToSet({ value }) {
|
|
1003
1025
|
try {
|
|
1004
1026
|
return {
|
|
1005
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1006
|
-
value:
|
|
1027
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet",
|
|
1028
|
+
value: MsgAddContributorToSet.fromPartial(value)
|
|
1007
1029
|
};
|
|
1008
1030
|
}
|
|
1009
1031
|
catch (e) {
|
|
1010
|
-
throw new Error('TxClient:
|
|
1032
|
+
throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message);
|
|
1011
1033
|
}
|
|
1012
1034
|
},
|
|
1013
|
-
|
|
1035
|
+
msgRegisterForCouncil({ value }) {
|
|
1014
1036
|
try {
|
|
1015
1037
|
return {
|
|
1016
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1017
|
-
value:
|
|
1038
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil",
|
|
1039
|
+
value: MsgRegisterForCouncil.fromPartial(value)
|
|
1018
1040
|
};
|
|
1019
1041
|
}
|
|
1020
1042
|
catch (e) {
|
|
1021
|
-
throw new Error('TxClient:
|
|
1043
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message);
|
|
1022
1044
|
}
|
|
1023
1045
|
},
|
|
1024
|
-
|
|
1046
|
+
msgOpenMatch({ value }) {
|
|
1025
1047
|
try {
|
|
1026
1048
|
return {
|
|
1027
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1028
|
-
value:
|
|
1049
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch",
|
|
1050
|
+
value: MsgOpenMatch.fromPartial(value)
|
|
1029
1051
|
};
|
|
1030
1052
|
}
|
|
1031
1053
|
catch (e) {
|
|
1032
|
-
throw new Error('TxClient:
|
|
1054
|
+
throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message);
|
|
1033
1055
|
}
|
|
1034
1056
|
},
|
|
1035
|
-
|
|
1057
|
+
msgSetProfileCard({ value }) {
|
|
1036
1058
|
try {
|
|
1037
1059
|
return {
|
|
1038
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1039
|
-
value:
|
|
1060
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard",
|
|
1061
|
+
value: MsgSetProfileCard.fromPartial(value)
|
|
1040
1062
|
};
|
|
1041
1063
|
}
|
|
1042
1064
|
catch (e) {
|
|
1043
|
-
throw new Error('TxClient:
|
|
1065
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message);
|
|
1044
1066
|
}
|
|
1045
1067
|
},
|
|
1046
|
-
|
|
1068
|
+
msgChangeArtist({ value }) {
|
|
1047
1069
|
try {
|
|
1048
1070
|
return {
|
|
1049
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1050
|
-
value:
|
|
1071
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist",
|
|
1072
|
+
value: MsgChangeArtist.fromPartial(value)
|
|
1051
1073
|
};
|
|
1052
1074
|
}
|
|
1053
1075
|
catch (e) {
|
|
1054
|
-
throw new Error('TxClient:
|
|
1076
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message);
|
|
1055
1077
|
}
|
|
1056
1078
|
},
|
|
1057
1079
|
msgDonateToCard({ value }) {
|
|
@@ -1065,26 +1087,26 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
1065
1087
|
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message);
|
|
1066
1088
|
}
|
|
1067
1089
|
},
|
|
1068
|
-
|
|
1090
|
+
msgBuyCard({ value }) {
|
|
1069
1091
|
try {
|
|
1070
1092
|
return {
|
|
1071
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1072
|
-
value:
|
|
1093
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard",
|
|
1094
|
+
value: MsgBuyCard.fromPartial(value)
|
|
1073
1095
|
};
|
|
1074
1096
|
}
|
|
1075
1097
|
catch (e) {
|
|
1076
|
-
throw new Error('TxClient:
|
|
1098
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message);
|
|
1077
1099
|
}
|
|
1078
1100
|
},
|
|
1079
|
-
|
|
1101
|
+
msgCreateuser({ value }) {
|
|
1080
1102
|
try {
|
|
1081
1103
|
return {
|
|
1082
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1083
|
-
value:
|
|
1104
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser",
|
|
1105
|
+
value: MsgCreateuser.fromPartial(value)
|
|
1084
1106
|
};
|
|
1085
1107
|
}
|
|
1086
1108
|
catch (e) {
|
|
1087
|
-
throw new Error('TxClient:
|
|
1109
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
|
|
1088
1110
|
}
|
|
1089
1111
|
},
|
|
1090
1112
|
msgRemoveCardFromSet({ value }) {
|
|
@@ -1098,59 +1120,37 @@ export const txClient = ({ signer, prefix, addr } = {
|
|
|
1098
1120
|
throw new Error('TxClient:MsgRemoveCardFromSet: Could not create message: ' + e.message);
|
|
1099
1121
|
}
|
|
1100
1122
|
},
|
|
1101
|
-
|
|
1102
|
-
try {
|
|
1103
|
-
return {
|
|
1104
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography",
|
|
1105
|
-
value: MsgSetUserBiography.fromPartial(value)
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
catch (e) {
|
|
1109
|
-
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
msgCreateuser({ value }) {
|
|
1113
|
-
try {
|
|
1114
|
-
return {
|
|
1115
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser",
|
|
1116
|
-
value: MsgCreateuser.fromPartial(value)
|
|
1117
|
-
};
|
|
1118
|
-
}
|
|
1119
|
-
catch (e) {
|
|
1120
|
-
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
|
|
1121
|
-
}
|
|
1122
|
-
},
|
|
1123
|
-
msgCreateSet({ value }) {
|
|
1123
|
+
msgCreateSellOffer({ value }) {
|
|
1124
1124
|
try {
|
|
1125
1125
|
return {
|
|
1126
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1127
|
-
value:
|
|
1126
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer",
|
|
1127
|
+
value: MsgCreateSellOffer.fromPartial(value)
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
catch (e) {
|
|
1131
|
-
throw new Error('TxClient:
|
|
1131
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message);
|
|
1132
1132
|
}
|
|
1133
1133
|
},
|
|
1134
|
-
|
|
1134
|
+
msgRestartCouncil({ value }) {
|
|
1135
1135
|
try {
|
|
1136
1136
|
return {
|
|
1137
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1138
|
-
value:
|
|
1137
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil",
|
|
1138
|
+
value: MsgRestartCouncil.fromPartial(value)
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
1141
|
catch (e) {
|
|
1142
|
-
throw new Error('TxClient:
|
|
1142
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message);
|
|
1143
1143
|
}
|
|
1144
1144
|
},
|
|
1145
|
-
|
|
1145
|
+
msgSetCardRarity({ value }) {
|
|
1146
1146
|
try {
|
|
1147
1147
|
return {
|
|
1148
|
-
typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1149
|
-
value:
|
|
1148
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity",
|
|
1149
|
+
value: MsgSetCardRarity.fromPartial(value)
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
1152
|
catch (e) {
|
|
1153
|
-
throw new Error('TxClient:
|
|
1153
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message);
|
|
1154
1154
|
}
|
|
1155
1155
|
},
|
|
1156
1156
|
msgInviteEarlyAccess({ value }) {
|