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.
|
@@ -3,47 +3,47 @@ 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 {
|
|
6
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
7
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
7
8
|
import { MsgCreateCollection } from "./types/cardchain/cardchain/tx";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
10
|
+
import { MsgSubmitMatchReporterProposal } from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgRemoveContributorFromCollection } from "./types/cardchain/cardchain/tx";
|
|
12
|
+
import { MsgSubmitCopyrightProposal } from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgSubmitCollectionProposal } from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
13
17
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
14
|
-
import {
|
|
18
|
+
import { MsgAddStoryToCollection } from "./types/cardchain/cardchain/tx";
|
|
19
|
+
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
20
|
+
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgRemoveCardFromCollection } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgAddArtworkToCollection } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgAddCardToCollection } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgFinalizeCollection } from "./types/cardchain/cardchain/tx";
|
|
15
26
|
import { MsgAddContributorToCollection } from "./types/cardchain/cardchain/tx";
|
|
16
|
-
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
17
27
|
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
18
|
-
import {
|
|
19
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
20
|
-
import { MsgRemoveCardFromCollection } from "./types/cardchain/cardchain/tx";
|
|
21
|
-
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
22
|
-
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
23
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
24
29
|
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
25
|
-
import { MsgSubmitCopyrightProposal } from "./types/cardchain/cardchain/tx";
|
|
26
|
-
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
27
|
-
import { MsgRemoveContributorFromCollection } from "./types/cardchain/cardchain/tx";
|
|
28
30
|
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
29
|
-
import {
|
|
31
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
30
33
|
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
31
|
-
import {
|
|
32
|
-
import { MsgAddCardToCollection } from "./types/cardchain/cardchain/tx";
|
|
33
|
-
import { MsgFinalizeCollection } from "./types/cardchain/cardchain/tx";
|
|
34
|
-
import { MsgAddStoryToCollection } from "./types/cardchain/cardchain/tx";
|
|
34
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
35
35
|
import { MsgSetCollectionStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import {
|
|
36
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
37
37
|
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
38
|
-
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
39
|
-
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
40
|
-
import { MsgSubmitCollectionProposal } from "./types/cardchain/cardchain/tx";
|
|
41
|
-
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
42
|
-
import { MsgSubmitMatchReporterProposal } from "./types/cardchain/cardchain/tx";
|
|
43
|
-
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
44
38
|
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
40
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
41
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
42
|
+
import { MsgSetCollectionArtist } from "./types/cardchain/cardchain/tx";
|
|
43
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
44
|
+
import { MsgBuyCollection } from "./types/cardchain/cardchain/tx";
|
|
45
45
|
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
46
|
-
import {
|
|
46
|
+
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
47
47
|
import { Card as typeCard } from "./types";
|
|
48
48
|
import { TimeStamp as typeTimeStamp } from "./types";
|
|
49
49
|
import { Collection as typeCollection } from "./types";
|
|
@@ -66,7 +66,7 @@ import { AirDrops as typeAirDrops } from "./types";
|
|
|
66
66
|
import { VoteRight as typeVoteRight } from "./types";
|
|
67
67
|
import { VotingResult as typeVotingResult } from "./types";
|
|
68
68
|
import { VotingResults as typeVotingResults } from "./types";
|
|
69
|
-
export {
|
|
69
|
+
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 };
|
|
70
70
|
export const registry = new Registry(msgTypes);
|
|
71
71
|
function getStructure(template) {
|
|
72
72
|
const structure = { fields: [] };
|
|
@@ -82,18 +82,32 @@ const defaultFee = {
|
|
|
82
82
|
};
|
|
83
83
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
84
84
|
return {
|
|
85
|
-
async
|
|
85
|
+
async sendMsgTransferCard({ value, fee, memo }) {
|
|
86
86
|
if (!signer) {
|
|
87
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.');
|
|
88
88
|
}
|
|
89
89
|
try {
|
|
90
90
|
const { address } = (await signer.getAccounts())[0];
|
|
91
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
92
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) });
|
|
93
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
94
94
|
}
|
|
95
95
|
catch (e) {
|
|
96
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }) {
|
|
100
|
+
if (!signer) {
|
|
101
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
const { address } = (await signer.getAccounts())[0];
|
|
105
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
106
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) });
|
|
107
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
108
|
+
}
|
|
109
|
+
catch (e) {
|
|
110
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
97
111
|
}
|
|
98
112
|
},
|
|
99
113
|
async sendMsgCreateCollection({ value, fee, memo }) {
|
|
@@ -110,172 +124,172 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
110
124
|
throw new Error('TxClient:sendMsgCreateCollection: Could not broadcast Tx: ' + e.message);
|
|
111
125
|
}
|
|
112
126
|
},
|
|
113
|
-
async
|
|
127
|
+
async sendMsgCreateuser({ value, fee, memo }) {
|
|
114
128
|
if (!signer) {
|
|
115
|
-
throw new Error('TxClient:
|
|
129
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.');
|
|
116
130
|
}
|
|
117
131
|
try {
|
|
118
132
|
const { address } = (await signer.getAccounts())[0];
|
|
119
133
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
120
|
-
let msg = this.
|
|
134
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) });
|
|
121
135
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
122
136
|
}
|
|
123
137
|
catch (e) {
|
|
124
|
-
throw new Error('TxClient:
|
|
138
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message);
|
|
125
139
|
}
|
|
126
140
|
},
|
|
127
|
-
async
|
|
141
|
+
async sendMsgSubmitMatchReporterProposal({ value, fee, memo }) {
|
|
128
142
|
if (!signer) {
|
|
129
|
-
throw new Error('TxClient:
|
|
143
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Unable to sign Tx. Signer is not present.');
|
|
130
144
|
}
|
|
131
145
|
try {
|
|
132
146
|
const { address } = (await signer.getAccounts())[0];
|
|
133
147
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
134
|
-
let msg = this.
|
|
148
|
+
let msg = this.msgSubmitMatchReporterProposal({ value: MsgSubmitMatchReporterProposal.fromPartial(value) });
|
|
135
149
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
136
150
|
}
|
|
137
151
|
catch (e) {
|
|
138
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Could not broadcast Tx: ' + e.message);
|
|
139
153
|
}
|
|
140
154
|
},
|
|
141
|
-
async
|
|
155
|
+
async sendMsgRemoveContributorFromCollection({ value, fee, memo }) {
|
|
142
156
|
if (!signer) {
|
|
143
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Unable to sign Tx. Signer is not present.');
|
|
144
158
|
}
|
|
145
159
|
try {
|
|
146
160
|
const { address } = (await signer.getAccounts())[0];
|
|
147
161
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
148
|
-
let msg = this.
|
|
162
|
+
let msg = this.msgRemoveContributorFromCollection({ value: MsgRemoveContributorFromCollection.fromPartial(value) });
|
|
149
163
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
150
164
|
}
|
|
151
165
|
catch (e) {
|
|
152
|
-
throw new Error('TxClient:
|
|
166
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Could not broadcast Tx: ' + e.message);
|
|
153
167
|
}
|
|
154
168
|
},
|
|
155
|
-
async
|
|
169
|
+
async sendMsgSubmitCopyrightProposal({ value, fee, memo }) {
|
|
156
170
|
if (!signer) {
|
|
157
|
-
throw new Error('TxClient:
|
|
171
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Unable to sign Tx. Signer is not present.');
|
|
158
172
|
}
|
|
159
173
|
try {
|
|
160
174
|
const { address } = (await signer.getAccounts())[0];
|
|
161
175
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
162
|
-
let msg = this.
|
|
176
|
+
let msg = this.msgSubmitCopyrightProposal({ value: MsgSubmitCopyrightProposal.fromPartial(value) });
|
|
163
177
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
164
178
|
}
|
|
165
179
|
catch (e) {
|
|
166
|
-
throw new Error('TxClient:
|
|
180
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Could not broadcast Tx: ' + e.message);
|
|
167
181
|
}
|
|
168
182
|
},
|
|
169
|
-
async
|
|
183
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }) {
|
|
170
184
|
if (!signer) {
|
|
171
|
-
throw new Error('TxClient:
|
|
185
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.');
|
|
172
186
|
}
|
|
173
187
|
try {
|
|
174
188
|
const { address } = (await signer.getAccounts())[0];
|
|
175
189
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
176
|
-
let msg = this.
|
|
190
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) });
|
|
177
191
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
178
192
|
}
|
|
179
193
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
194
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message);
|
|
181
195
|
}
|
|
182
196
|
},
|
|
183
|
-
async
|
|
197
|
+
async sendMsgReportMatch({ value, fee, memo }) {
|
|
184
198
|
if (!signer) {
|
|
185
|
-
throw new Error('TxClient:
|
|
199
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.');
|
|
186
200
|
}
|
|
187
201
|
try {
|
|
188
202
|
const { address } = (await signer.getAccounts())[0];
|
|
189
203
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
190
|
-
let msg = this.
|
|
204
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) });
|
|
191
205
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
192
206
|
}
|
|
193
207
|
catch (e) {
|
|
194
|
-
throw new Error('TxClient:
|
|
208
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message);
|
|
195
209
|
}
|
|
196
210
|
},
|
|
197
|
-
async
|
|
211
|
+
async sendMsgSubmitCollectionProposal({ value, fee, memo }) {
|
|
198
212
|
if (!signer) {
|
|
199
|
-
throw new Error('TxClient:
|
|
213
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Unable to sign Tx. Signer is not present.');
|
|
200
214
|
}
|
|
201
215
|
try {
|
|
202
216
|
const { address } = (await signer.getAccounts())[0];
|
|
203
217
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
204
|
-
let msg = this.
|
|
218
|
+
let msg = this.msgSubmitCollectionProposal({ value: MsgSubmitCollectionProposal.fromPartial(value) });
|
|
205
219
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
206
220
|
}
|
|
207
221
|
catch (e) {
|
|
208
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Could not broadcast Tx: ' + e.message);
|
|
209
223
|
}
|
|
210
224
|
},
|
|
211
|
-
async
|
|
225
|
+
async sendMsgSaveCardContent({ value, fee, memo }) {
|
|
212
226
|
if (!signer) {
|
|
213
|
-
throw new Error('TxClient:
|
|
227
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.');
|
|
214
228
|
}
|
|
215
229
|
try {
|
|
216
230
|
const { address } = (await signer.getAccounts())[0];
|
|
217
231
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
218
|
-
let msg = this.
|
|
232
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) });
|
|
219
233
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
220
234
|
}
|
|
221
235
|
catch (e) {
|
|
222
|
-
throw new Error('TxClient:
|
|
236
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message);
|
|
223
237
|
}
|
|
224
238
|
},
|
|
225
|
-
async
|
|
239
|
+
async sendMsgDonateToCard({ value, fee, memo }) {
|
|
226
240
|
if (!signer) {
|
|
227
|
-
throw new Error('TxClient:
|
|
241
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.');
|
|
228
242
|
}
|
|
229
243
|
try {
|
|
230
244
|
const { address } = (await signer.getAccounts())[0];
|
|
231
245
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
232
|
-
let msg = this.
|
|
246
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) });
|
|
233
247
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
234
248
|
}
|
|
235
249
|
catch (e) {
|
|
236
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message);
|
|
237
251
|
}
|
|
238
252
|
},
|
|
239
|
-
async
|
|
253
|
+
async sendMsgAddStoryToCollection({ value, fee, memo }) {
|
|
240
254
|
if (!signer) {
|
|
241
|
-
throw new Error('TxClient:
|
|
255
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Unable to sign Tx. Signer is not present.');
|
|
242
256
|
}
|
|
243
257
|
try {
|
|
244
258
|
const { address } = (await signer.getAccounts())[0];
|
|
245
259
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
-
let msg = this.
|
|
260
|
+
let msg = this.msgAddStoryToCollection({ value: MsgAddStoryToCollection.fromPartial(value) });
|
|
247
261
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
248
262
|
}
|
|
249
263
|
catch (e) {
|
|
250
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Could not broadcast Tx: ' + e.message);
|
|
251
265
|
}
|
|
252
266
|
},
|
|
253
|
-
async
|
|
267
|
+
async sendMsgTransferBoosterPack({ value, fee, memo }) {
|
|
254
268
|
if (!signer) {
|
|
255
|
-
throw new Error('TxClient:
|
|
269
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
256
270
|
}
|
|
257
271
|
try {
|
|
258
272
|
const { address } = (await signer.getAccounts())[0];
|
|
259
273
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
260
|
-
let msg = this.
|
|
274
|
+
let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) });
|
|
261
275
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
262
276
|
}
|
|
263
277
|
catch (e) {
|
|
264
|
-
throw new Error('TxClient:
|
|
278
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
265
279
|
}
|
|
266
280
|
},
|
|
267
|
-
async
|
|
281
|
+
async sendMsgSetProfileCard({ value, fee, memo }) {
|
|
268
282
|
if (!signer) {
|
|
269
|
-
throw new Error('TxClient:
|
|
283
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.');
|
|
270
284
|
}
|
|
271
285
|
try {
|
|
272
286
|
const { address } = (await signer.getAccounts())[0];
|
|
273
287
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
274
|
-
let msg = this.
|
|
288
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) });
|
|
275
289
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
276
290
|
}
|
|
277
291
|
catch (e) {
|
|
278
|
-
throw new Error('TxClient:
|
|
292
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message);
|
|
279
293
|
}
|
|
280
294
|
},
|
|
281
295
|
async sendMsgRemoveCardFromCollection({ value, fee, memo }) {
|
|
@@ -292,200 +306,186 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
292
306
|
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Could not broadcast Tx: ' + e.message);
|
|
293
307
|
}
|
|
294
308
|
},
|
|
295
|
-
async
|
|
309
|
+
async sendMsgAddArtworkToCollection({ value, fee, memo }) {
|
|
296
310
|
if (!signer) {
|
|
297
|
-
throw new Error('TxClient:
|
|
311
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Unable to sign Tx. Signer is not present.');
|
|
298
312
|
}
|
|
299
313
|
try {
|
|
300
314
|
const { address } = (await signer.getAccounts())[0];
|
|
301
315
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
302
|
-
let msg = this.
|
|
316
|
+
let msg = this.msgAddArtworkToCollection({ value: MsgAddArtworkToCollection.fromPartial(value) });
|
|
303
317
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
304
318
|
}
|
|
305
319
|
catch (e) {
|
|
306
|
-
throw new Error('TxClient:
|
|
320
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Could not broadcast Tx: ' + e.message);
|
|
307
321
|
}
|
|
308
322
|
},
|
|
309
|
-
async
|
|
323
|
+
async sendMsgAddCardToCollection({ value, fee, memo }) {
|
|
310
324
|
if (!signer) {
|
|
311
|
-
throw new Error('TxClient:
|
|
325
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Unable to sign Tx. Signer is not present.');
|
|
312
326
|
}
|
|
313
327
|
try {
|
|
314
328
|
const { address } = (await signer.getAccounts())[0];
|
|
315
329
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
316
|
-
let msg = this.
|
|
330
|
+
let msg = this.msgAddCardToCollection({ value: MsgAddCardToCollection.fromPartial(value) });
|
|
317
331
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
318
332
|
}
|
|
319
333
|
catch (e) {
|
|
320
|
-
throw new Error('TxClient:
|
|
334
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Could not broadcast Tx: ' + e.message);
|
|
321
335
|
}
|
|
322
336
|
},
|
|
323
|
-
async
|
|
337
|
+
async sendMsgSetCardRarity({ value, fee, memo }) {
|
|
324
338
|
if (!signer) {
|
|
325
|
-
throw new Error('TxClient:
|
|
339
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.');
|
|
326
340
|
}
|
|
327
341
|
try {
|
|
328
342
|
const { address } = (await signer.getAccounts())[0];
|
|
329
343
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
330
|
-
let msg = this.
|
|
344
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) });
|
|
331
345
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
332
346
|
}
|
|
333
347
|
catch (e) {
|
|
334
|
-
throw new Error('TxClient:
|
|
348
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message);
|
|
335
349
|
}
|
|
336
350
|
},
|
|
337
|
-
async
|
|
351
|
+
async sendMsgFinalizeCollection({ value, fee, memo }) {
|
|
338
352
|
if (!signer) {
|
|
339
|
-
throw new Error('TxClient:
|
|
353
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Unable to sign Tx. Signer is not present.');
|
|
340
354
|
}
|
|
341
355
|
try {
|
|
342
356
|
const { address } = (await signer.getAccounts())[0];
|
|
343
357
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
344
|
-
let msg = this.
|
|
358
|
+
let msg = this.msgFinalizeCollection({ value: MsgFinalizeCollection.fromPartial(value) });
|
|
345
359
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
346
360
|
}
|
|
347
361
|
catch (e) {
|
|
348
|
-
throw new Error('TxClient:
|
|
362
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Could not broadcast Tx: ' + e.message);
|
|
349
363
|
}
|
|
350
364
|
},
|
|
351
|
-
async
|
|
365
|
+
async sendMsgAddContributorToCollection({ value, fee, memo }) {
|
|
352
366
|
if (!signer) {
|
|
353
|
-
throw new Error('TxClient:
|
|
367
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Unable to sign Tx. Signer is not present.');
|
|
354
368
|
}
|
|
355
369
|
try {
|
|
356
370
|
const { address } = (await signer.getAccounts())[0];
|
|
357
371
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
358
|
-
let msg = this.
|
|
372
|
+
let msg = this.msgAddContributorToCollection({ value: MsgAddContributorToCollection.fromPartial(value) });
|
|
359
373
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
360
374
|
}
|
|
361
375
|
catch (e) {
|
|
362
|
-
throw new Error('TxClient:
|
|
376
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Could not broadcast Tx: ' + e.message);
|
|
363
377
|
}
|
|
364
378
|
},
|
|
365
|
-
async
|
|
379
|
+
async sendMsgCreateCouncil({ value, fee, memo }) {
|
|
366
380
|
if (!signer) {
|
|
367
|
-
throw new Error('TxClient:
|
|
381
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.');
|
|
368
382
|
}
|
|
369
383
|
try {
|
|
370
384
|
const { address } = (await signer.getAccounts())[0];
|
|
371
385
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
372
|
-
let msg = this.
|
|
386
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) });
|
|
373
387
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
374
388
|
}
|
|
375
389
|
catch (e) {
|
|
376
|
-
throw new Error('TxClient:
|
|
390
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message);
|
|
377
391
|
}
|
|
378
392
|
},
|
|
379
|
-
async
|
|
393
|
+
async sendMsgRestartCouncil({ value, fee, memo }) {
|
|
380
394
|
if (!signer) {
|
|
381
|
-
throw new Error('TxClient:
|
|
395
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.');
|
|
382
396
|
}
|
|
383
397
|
try {
|
|
384
398
|
const { address } = (await signer.getAccounts())[0];
|
|
385
399
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
386
|
-
let msg = this.
|
|
400
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) });
|
|
387
401
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
388
402
|
}
|
|
389
403
|
catch (e) {
|
|
390
|
-
throw new Error('TxClient:
|
|
404
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message);
|
|
391
405
|
}
|
|
392
406
|
},
|
|
393
|
-
async
|
|
407
|
+
async sendMsgSetUserWebsite({ value, fee, memo }) {
|
|
394
408
|
if (!signer) {
|
|
395
|
-
throw new Error('TxClient:
|
|
409
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.');
|
|
396
410
|
}
|
|
397
411
|
try {
|
|
398
412
|
const { address } = (await signer.getAccounts())[0];
|
|
399
413
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
400
|
-
let msg = this.
|
|
414
|
+
let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) });
|
|
401
415
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
402
416
|
}
|
|
403
417
|
catch (e) {
|
|
404
|
-
throw new Error('TxClient:
|
|
418
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message);
|
|
405
419
|
}
|
|
406
420
|
},
|
|
407
|
-
async
|
|
421
|
+
async sendMsgConfirmMatch({ value, fee, memo }) {
|
|
408
422
|
if (!signer) {
|
|
409
|
-
throw new Error('TxClient:
|
|
423
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.');
|
|
410
424
|
}
|
|
411
425
|
try {
|
|
412
426
|
const { address } = (await signer.getAccounts())[0];
|
|
413
427
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
414
|
-
let msg = this.
|
|
428
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) });
|
|
415
429
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
416
430
|
}
|
|
417
431
|
catch (e) {
|
|
418
|
-
throw new Error('TxClient:
|
|
432
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message);
|
|
419
433
|
}
|
|
420
434
|
},
|
|
421
|
-
async
|
|
435
|
+
async sendMsgSetUserBiography({ value, fee, memo }) {
|
|
422
436
|
if (!signer) {
|
|
423
|
-
throw new Error('TxClient:
|
|
437
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.');
|
|
424
438
|
}
|
|
425
439
|
try {
|
|
426
440
|
const { address } = (await signer.getAccounts())[0];
|
|
427
441
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
428
|
-
let msg = this.
|
|
442
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) });
|
|
429
443
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
430
444
|
}
|
|
431
445
|
catch (e) {
|
|
432
|
-
throw new Error('TxClient:
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
async sendMsgRemoveSellOffer({ value, fee, memo }) {
|
|
436
|
-
if (!signer) {
|
|
437
|
-
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
|
|
438
|
-
}
|
|
439
|
-
try {
|
|
440
|
-
const { address } = (await signer.getAccounts())[0];
|
|
441
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
442
|
-
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
|
|
443
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
444
|
-
}
|
|
445
|
-
catch (e) {
|
|
446
|
-
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
|
|
446
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message);
|
|
447
447
|
}
|
|
448
448
|
},
|
|
449
|
-
async
|
|
449
|
+
async sendMsgMultiVoteCard({ value, fee, memo }) {
|
|
450
450
|
if (!signer) {
|
|
451
|
-
throw new Error('TxClient:
|
|
451
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.');
|
|
452
452
|
}
|
|
453
453
|
try {
|
|
454
454
|
const { address } = (await signer.getAccounts())[0];
|
|
455
455
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
456
|
-
let msg = this.
|
|
456
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) });
|
|
457
457
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
458
458
|
}
|
|
459
459
|
catch (e) {
|
|
460
|
-
throw new Error('TxClient:
|
|
460
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message);
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
|
-
async
|
|
463
|
+
async sendMsgChangeArtist({ value, fee, memo }) {
|
|
464
464
|
if (!signer) {
|
|
465
|
-
throw new Error('TxClient:
|
|
465
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.');
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
468
|
const { address } = (await signer.getAccounts())[0];
|
|
469
469
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
470
|
-
let msg = this.
|
|
470
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) });
|
|
471
471
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
472
472
|
}
|
|
473
473
|
catch (e) {
|
|
474
|
-
throw new Error('TxClient:
|
|
474
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message);
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
|
-
async
|
|
477
|
+
async sendMsgCreateSellOffer({ value, fee, memo }) {
|
|
478
478
|
if (!signer) {
|
|
479
|
-
throw new Error('TxClient:
|
|
479
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.');
|
|
480
480
|
}
|
|
481
481
|
try {
|
|
482
482
|
const { address } = (await signer.getAccounts())[0];
|
|
483
483
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
484
|
-
let msg = this.
|
|
484
|
+
let msg = this.msgCreateSellOffer({ value: MsgCreateSellOffer.fromPartial(value) });
|
|
485
485
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
486
486
|
}
|
|
487
487
|
catch (e) {
|
|
488
|
-
throw new Error('TxClient:
|
|
488
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message);
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
async sendMsgSetCollectionStoryWriter({ value, fee, memo }) {
|
|
@@ -502,18 +502,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
502
502
|
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Could not broadcast Tx: ' + e.message);
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
|
-
async
|
|
505
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }) {
|
|
506
506
|
if (!signer) {
|
|
507
|
-
throw new Error('TxClient:
|
|
507
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
|
|
508
508
|
}
|
|
509
509
|
try {
|
|
510
510
|
const { address } = (await signer.getAccounts())[0];
|
|
511
511
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
512
|
-
let msg = this.
|
|
512
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
|
|
513
513
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
514
514
|
}
|
|
515
515
|
catch (e) {
|
|
516
|
-
throw new Error('TxClient:
|
|
516
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
519
|
async sendMsgAddArtwork({ value, fee, memo }) {
|
|
@@ -530,102 +530,102 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
530
530
|
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message);
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
|
-
async
|
|
533
|
+
async sendMsgApointMatchReporter({ value, fee, memo }) {
|
|
534
534
|
if (!signer) {
|
|
535
|
-
throw new Error('TxClient:
|
|
535
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.');
|
|
536
536
|
}
|
|
537
537
|
try {
|
|
538
538
|
const { address } = (await signer.getAccounts())[0];
|
|
539
539
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
540
|
-
let msg = this.
|
|
540
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) });
|
|
541
541
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
542
542
|
}
|
|
543
543
|
catch (e) {
|
|
544
|
-
throw new Error('TxClient:
|
|
544
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message);
|
|
545
545
|
}
|
|
546
546
|
},
|
|
547
|
-
async
|
|
547
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }) {
|
|
548
548
|
if (!signer) {
|
|
549
|
-
throw new Error('TxClient:
|
|
549
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.');
|
|
550
550
|
}
|
|
551
551
|
try {
|
|
552
552
|
const { address } = (await signer.getAccounts())[0];
|
|
553
553
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
554
|
-
let msg = this.
|
|
554
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) });
|
|
555
555
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
556
556
|
}
|
|
557
557
|
catch (e) {
|
|
558
|
-
throw new Error('TxClient:
|
|
558
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message);
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
async
|
|
561
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }) {
|
|
562
562
|
if (!signer) {
|
|
563
|
-
throw new Error('TxClient:
|
|
563
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
564
564
|
}
|
|
565
565
|
try {
|
|
566
566
|
const { address } = (await signer.getAccounts())[0];
|
|
567
567
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
568
|
-
let msg = this.
|
|
568
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) });
|
|
569
569
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
570
570
|
}
|
|
571
571
|
catch (e) {
|
|
572
|
-
throw new Error('TxClient:
|
|
572
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
573
573
|
}
|
|
574
574
|
},
|
|
575
|
-
async
|
|
575
|
+
async sendMsgVoteCard({ value, fee, memo }) {
|
|
576
576
|
if (!signer) {
|
|
577
|
-
throw new Error('TxClient:
|
|
577
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.');
|
|
578
578
|
}
|
|
579
579
|
try {
|
|
580
580
|
const { address } = (await signer.getAccounts())[0];
|
|
581
581
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
582
|
-
let msg = this.
|
|
582
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) });
|
|
583
583
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
584
584
|
}
|
|
585
585
|
catch (e) {
|
|
586
|
-
throw new Error('TxClient:
|
|
586
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message);
|
|
587
587
|
}
|
|
588
588
|
},
|
|
589
|
-
async
|
|
589
|
+
async sendMsgSetCollectionArtist({ value, fee, memo }) {
|
|
590
590
|
if (!signer) {
|
|
591
|
-
throw new Error('TxClient:
|
|
591
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Unable to sign Tx. Signer is not present.');
|
|
592
592
|
}
|
|
593
593
|
try {
|
|
594
594
|
const { address } = (await signer.getAccounts())[0];
|
|
595
595
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
596
|
-
let msg = this.
|
|
596
|
+
let msg = this.msgSetCollectionArtist({ value: MsgSetCollectionArtist.fromPartial(value) });
|
|
597
597
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
598
598
|
}
|
|
599
599
|
catch (e) {
|
|
600
|
-
throw new Error('TxClient:
|
|
600
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Could not broadcast Tx: ' + e.message);
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
|
-
async
|
|
603
|
+
async sendMsgBuyCardScheme({ value, fee, memo }) {
|
|
604
604
|
if (!signer) {
|
|
605
|
-
throw new Error('TxClient:
|
|
605
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.');
|
|
606
606
|
}
|
|
607
607
|
try {
|
|
608
608
|
const { address } = (await signer.getAccounts())[0];
|
|
609
609
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
610
|
-
let msg = this.
|
|
610
|
+
let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) });
|
|
611
611
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
612
612
|
}
|
|
613
613
|
catch (e) {
|
|
614
|
-
throw new Error('TxClient:
|
|
614
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message);
|
|
615
615
|
}
|
|
616
616
|
},
|
|
617
|
-
async
|
|
617
|
+
async sendMsgBuyCollection({ value, fee, memo }) {
|
|
618
618
|
if (!signer) {
|
|
619
|
-
throw new Error('TxClient:
|
|
619
|
+
throw new Error('TxClient:sendMsgBuyCollection: Unable to sign Tx. Signer is not present.');
|
|
620
620
|
}
|
|
621
621
|
try {
|
|
622
622
|
const { address } = (await signer.getAccounts())[0];
|
|
623
623
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
624
|
-
let msg = this.
|
|
624
|
+
let msg = this.msgBuyCollection({ value: MsgBuyCollection.fromPartial(value) });
|
|
625
625
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
626
626
|
}
|
|
627
627
|
catch (e) {
|
|
628
|
-
throw new Error('TxClient:
|
|
628
|
+
throw new Error('TxClient:sendMsgBuyCollection: Could not broadcast Tx: ' + e.message);
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
async sendMsgBuyCard({ value, fee, memo }) {
|
|
@@ -642,26 +642,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
642
642
|
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message);
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
|
-
async
|
|
645
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }) {
|
|
646
646
|
if (!signer) {
|
|
647
|
-
throw new Error('TxClient:
|
|
647
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
648
648
|
}
|
|
649
649
|
try {
|
|
650
650
|
const { address } = (await signer.getAccounts())[0];
|
|
651
651
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
652
|
-
let msg = this.
|
|
652
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) });
|
|
653
653
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
654
654
|
}
|
|
655
655
|
catch (e) {
|
|
656
|
-
throw new Error('TxClient:
|
|
656
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
657
657
|
}
|
|
658
658
|
},
|
|
659
|
-
|
|
659
|
+
msgTransferCard({ value }) {
|
|
660
660
|
try {
|
|
661
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
661
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial(value) };
|
|
662
662
|
}
|
|
663
663
|
catch (e) {
|
|
664
|
-
throw new Error('TxClient:
|
|
664
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message);
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
msgOpenBoosterPack({ value }) {
|
|
668
|
+
try {
|
|
669
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial(value) };
|
|
670
|
+
}
|
|
671
|
+
catch (e) {
|
|
672
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message);
|
|
665
673
|
}
|
|
666
674
|
},
|
|
667
675
|
msgCreateCollection({ value }) {
|
|
@@ -672,100 +680,100 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
672
680
|
throw new Error('TxClient:MsgCreateCollection: Could not create message: ' + e.message);
|
|
673
681
|
}
|
|
674
682
|
},
|
|
675
|
-
|
|
683
|
+
msgCreateuser({ value }) {
|
|
676
684
|
try {
|
|
677
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
685
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial(value) };
|
|
678
686
|
}
|
|
679
687
|
catch (e) {
|
|
680
|
-
throw new Error('TxClient:
|
|
688
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
|
|
681
689
|
}
|
|
682
690
|
},
|
|
683
|
-
|
|
691
|
+
msgSubmitMatchReporterProposal({ value }) {
|
|
684
692
|
try {
|
|
685
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
693
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitMatchReporterProposal", value: MsgSubmitMatchReporterProposal.fromPartial(value) };
|
|
686
694
|
}
|
|
687
695
|
catch (e) {
|
|
688
|
-
throw new Error('TxClient:
|
|
696
|
+
throw new Error('TxClient:MsgSubmitMatchReporterProposal: Could not create message: ' + e.message);
|
|
689
697
|
}
|
|
690
698
|
},
|
|
691
|
-
|
|
699
|
+
msgRemoveContributorFromCollection({ value }) {
|
|
692
700
|
try {
|
|
693
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
701
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromCollection", value: MsgRemoveContributorFromCollection.fromPartial(value) };
|
|
694
702
|
}
|
|
695
703
|
catch (e) {
|
|
696
|
-
throw new Error('TxClient:
|
|
704
|
+
throw new Error('TxClient:MsgRemoveContributorFromCollection: Could not create message: ' + e.message);
|
|
697
705
|
}
|
|
698
706
|
},
|
|
699
|
-
|
|
707
|
+
msgSubmitCopyrightProposal({ value }) {
|
|
700
708
|
try {
|
|
701
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
709
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCopyrightProposal", value: MsgSubmitCopyrightProposal.fromPartial(value) };
|
|
702
710
|
}
|
|
703
711
|
catch (e) {
|
|
704
|
-
throw new Error('TxClient:
|
|
712
|
+
throw new Error('TxClient:MsgSubmitCopyrightProposal: Could not create message: ' + e.message);
|
|
705
713
|
}
|
|
706
714
|
},
|
|
707
|
-
|
|
715
|
+
msgRewokeCouncilRegistration({ value }) {
|
|
708
716
|
try {
|
|
709
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
717
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial(value) };
|
|
710
718
|
}
|
|
711
719
|
catch (e) {
|
|
712
|
-
throw new Error('TxClient:
|
|
720
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message);
|
|
713
721
|
}
|
|
714
722
|
},
|
|
715
|
-
|
|
723
|
+
msgReportMatch({ value }) {
|
|
716
724
|
try {
|
|
717
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
725
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial(value) };
|
|
718
726
|
}
|
|
719
727
|
catch (e) {
|
|
720
|
-
throw new Error('TxClient:
|
|
728
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message);
|
|
721
729
|
}
|
|
722
730
|
},
|
|
723
|
-
|
|
731
|
+
msgSubmitCollectionProposal({ value }) {
|
|
724
732
|
try {
|
|
725
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
733
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCollectionProposal", value: MsgSubmitCollectionProposal.fromPartial(value) };
|
|
726
734
|
}
|
|
727
735
|
catch (e) {
|
|
728
|
-
throw new Error('TxClient:
|
|
736
|
+
throw new Error('TxClient:MsgSubmitCollectionProposal: Could not create message: ' + e.message);
|
|
729
737
|
}
|
|
730
738
|
},
|
|
731
|
-
|
|
739
|
+
msgSaveCardContent({ value }) {
|
|
732
740
|
try {
|
|
733
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
741
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial(value) };
|
|
734
742
|
}
|
|
735
743
|
catch (e) {
|
|
736
|
-
throw new Error('TxClient:
|
|
744
|
+
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message);
|
|
737
745
|
}
|
|
738
746
|
},
|
|
739
|
-
|
|
747
|
+
msgDonateToCard({ value }) {
|
|
740
748
|
try {
|
|
741
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
749
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial(value) };
|
|
742
750
|
}
|
|
743
751
|
catch (e) {
|
|
744
|
-
throw new Error('TxClient:
|
|
752
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message);
|
|
745
753
|
}
|
|
746
754
|
},
|
|
747
|
-
|
|
755
|
+
msgAddStoryToCollection({ value }) {
|
|
748
756
|
try {
|
|
749
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
757
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToCollection", value: MsgAddStoryToCollection.fromPartial(value) };
|
|
750
758
|
}
|
|
751
759
|
catch (e) {
|
|
752
|
-
throw new Error('TxClient:
|
|
760
|
+
throw new Error('TxClient:MsgAddStoryToCollection: Could not create message: ' + e.message);
|
|
753
761
|
}
|
|
754
762
|
},
|
|
755
|
-
|
|
763
|
+
msgTransferBoosterPack({ value }) {
|
|
756
764
|
try {
|
|
757
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
765
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial(value) };
|
|
758
766
|
}
|
|
759
767
|
catch (e) {
|
|
760
|
-
throw new Error('TxClient:
|
|
768
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message);
|
|
761
769
|
}
|
|
762
770
|
},
|
|
763
|
-
|
|
771
|
+
msgSetProfileCard({ value }) {
|
|
764
772
|
try {
|
|
765
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
773
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial(value) };
|
|
766
774
|
}
|
|
767
775
|
catch (e) {
|
|
768
|
-
throw new Error('TxClient:
|
|
776
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message);
|
|
769
777
|
}
|
|
770
778
|
},
|
|
771
779
|
msgRemoveCardFromCollection({ value }) {
|
|
@@ -776,116 +784,108 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
776
784
|
throw new Error('TxClient:MsgRemoveCardFromCollection: Could not create message: ' + e.message);
|
|
777
785
|
}
|
|
778
786
|
},
|
|
779
|
-
|
|
780
|
-
try {
|
|
781
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial(value) };
|
|
782
|
-
}
|
|
783
|
-
catch (e) {
|
|
784
|
-
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
msgCommitCouncilResponse({ value }) {
|
|
787
|
+
msgAddArtworkToCollection({ value }) {
|
|
788
788
|
try {
|
|
789
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
789
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToCollection", value: MsgAddArtworkToCollection.fromPartial(value) };
|
|
790
790
|
}
|
|
791
791
|
catch (e) {
|
|
792
|
-
throw new Error('TxClient:
|
|
792
|
+
throw new Error('TxClient:MsgAddArtworkToCollection: Could not create message: ' + e.message);
|
|
793
793
|
}
|
|
794
794
|
},
|
|
795
|
-
|
|
795
|
+
msgAddCardToCollection({ value }) {
|
|
796
796
|
try {
|
|
797
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
797
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToCollection", value: MsgAddCardToCollection.fromPartial(value) };
|
|
798
798
|
}
|
|
799
799
|
catch (e) {
|
|
800
|
-
throw new Error('TxClient:
|
|
800
|
+
throw new Error('TxClient:MsgAddCardToCollection: Could not create message: ' + e.message);
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
|
-
|
|
803
|
+
msgSetCardRarity({ value }) {
|
|
804
804
|
try {
|
|
805
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
805
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial(value) };
|
|
806
806
|
}
|
|
807
807
|
catch (e) {
|
|
808
|
-
throw new Error('TxClient:
|
|
808
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message);
|
|
809
809
|
}
|
|
810
810
|
},
|
|
811
|
-
|
|
811
|
+
msgFinalizeCollection({ value }) {
|
|
812
812
|
try {
|
|
813
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
813
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeCollection", value: MsgFinalizeCollection.fromPartial(value) };
|
|
814
814
|
}
|
|
815
815
|
catch (e) {
|
|
816
|
-
throw new Error('TxClient:
|
|
816
|
+
throw new Error('TxClient:MsgFinalizeCollection: Could not create message: ' + e.message);
|
|
817
817
|
}
|
|
818
818
|
},
|
|
819
|
-
|
|
819
|
+
msgAddContributorToCollection({ value }) {
|
|
820
820
|
try {
|
|
821
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
821
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToCollection", value: MsgAddContributorToCollection.fromPartial(value) };
|
|
822
822
|
}
|
|
823
823
|
catch (e) {
|
|
824
|
-
throw new Error('TxClient:
|
|
824
|
+
throw new Error('TxClient:MsgAddContributorToCollection: Could not create message: ' + e.message);
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
|
-
|
|
827
|
+
msgCreateCouncil({ value }) {
|
|
828
828
|
try {
|
|
829
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
829
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial(value) };
|
|
830
830
|
}
|
|
831
831
|
catch (e) {
|
|
832
|
-
throw new Error('TxClient:
|
|
832
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message);
|
|
833
833
|
}
|
|
834
834
|
},
|
|
835
|
-
|
|
835
|
+
msgRestartCouncil({ value }) {
|
|
836
836
|
try {
|
|
837
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
837
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial(value) };
|
|
838
838
|
}
|
|
839
839
|
catch (e) {
|
|
840
|
-
throw new Error('TxClient:
|
|
840
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message);
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
|
-
|
|
843
|
+
msgSetUserWebsite({ value }) {
|
|
844
844
|
try {
|
|
845
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
845
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite", value: MsgSetUserWebsite.fromPartial(value) };
|
|
846
846
|
}
|
|
847
847
|
catch (e) {
|
|
848
|
-
throw new Error('TxClient:
|
|
848
|
+
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message);
|
|
849
849
|
}
|
|
850
850
|
},
|
|
851
|
-
|
|
851
|
+
msgConfirmMatch({ value }) {
|
|
852
852
|
try {
|
|
853
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
853
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial(value) };
|
|
854
854
|
}
|
|
855
855
|
catch (e) {
|
|
856
|
-
throw new Error('TxClient:
|
|
856
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message);
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
|
-
|
|
859
|
+
msgSetUserBiography({ value }) {
|
|
860
860
|
try {
|
|
861
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
861
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial(value) };
|
|
862
862
|
}
|
|
863
863
|
catch (e) {
|
|
864
|
-
throw new Error('TxClient:
|
|
864
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
|
|
865
865
|
}
|
|
866
866
|
},
|
|
867
|
-
|
|
867
|
+
msgMultiVoteCard({ value }) {
|
|
868
868
|
try {
|
|
869
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
869
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial(value) };
|
|
870
870
|
}
|
|
871
871
|
catch (e) {
|
|
872
|
-
throw new Error('TxClient:
|
|
872
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message);
|
|
873
873
|
}
|
|
874
874
|
},
|
|
875
|
-
|
|
875
|
+
msgChangeArtist({ value }) {
|
|
876
876
|
try {
|
|
877
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
877
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial(value) };
|
|
878
878
|
}
|
|
879
879
|
catch (e) {
|
|
880
|
-
throw new Error('TxClient:
|
|
880
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message);
|
|
881
881
|
}
|
|
882
882
|
},
|
|
883
|
-
|
|
883
|
+
msgCreateSellOffer({ value }) {
|
|
884
884
|
try {
|
|
885
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
885
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", value: MsgCreateSellOffer.fromPartial(value) };
|
|
886
886
|
}
|
|
887
887
|
catch (e) {
|
|
888
|
-
throw new Error('TxClient:
|
|
888
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message);
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
891
|
msgSetCollectionStoryWriter({ value }) {
|
|
@@ -896,12 +896,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
896
896
|
throw new Error('TxClient:MsgSetCollectionStoryWriter: Could not create message: ' + e.message);
|
|
897
897
|
}
|
|
898
898
|
},
|
|
899
|
-
|
|
899
|
+
msgRemoveSellOffer({ value }) {
|
|
900
900
|
try {
|
|
901
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
901
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial(value) };
|
|
902
902
|
}
|
|
903
903
|
catch (e) {
|
|
904
|
-
throw new Error('TxClient:
|
|
904
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message);
|
|
905
905
|
}
|
|
906
906
|
},
|
|
907
907
|
msgAddArtwork({ value }) {
|
|
@@ -912,60 +912,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
912
912
|
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message);
|
|
913
913
|
}
|
|
914
914
|
},
|
|
915
|
-
|
|
915
|
+
msgApointMatchReporter({ value }) {
|
|
916
916
|
try {
|
|
917
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
917
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial(value) };
|
|
918
918
|
}
|
|
919
919
|
catch (e) {
|
|
920
|
-
throw new Error('TxClient:
|
|
920
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message);
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
|
-
|
|
923
|
+
msgRegisterForCouncil({ value }) {
|
|
924
924
|
try {
|
|
925
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
925
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial(value) };
|
|
926
926
|
}
|
|
927
927
|
catch (e) {
|
|
928
|
-
throw new Error('TxClient:
|
|
928
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message);
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
|
-
|
|
931
|
+
msgRevealCouncilResponse({ value }) {
|
|
932
932
|
try {
|
|
933
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
933
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial(value) };
|
|
934
934
|
}
|
|
935
935
|
catch (e) {
|
|
936
|
-
throw new Error('TxClient:
|
|
936
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message);
|
|
937
937
|
}
|
|
938
938
|
},
|
|
939
|
-
|
|
939
|
+
msgVoteCard({ value }) {
|
|
940
940
|
try {
|
|
941
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
941
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial(value) };
|
|
942
942
|
}
|
|
943
943
|
catch (e) {
|
|
944
|
-
throw new Error('TxClient:
|
|
944
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
|
|
945
945
|
}
|
|
946
946
|
},
|
|
947
|
-
|
|
947
|
+
msgSetCollectionArtist({ value }) {
|
|
948
948
|
try {
|
|
949
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
949
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionArtist", value: MsgSetCollectionArtist.fromPartial(value) };
|
|
950
950
|
}
|
|
951
951
|
catch (e) {
|
|
952
|
-
throw new Error('TxClient:
|
|
952
|
+
throw new Error('TxClient:MsgSetCollectionArtist: Could not create message: ' + e.message);
|
|
953
953
|
}
|
|
954
954
|
},
|
|
955
|
-
|
|
955
|
+
msgBuyCardScheme({ value }) {
|
|
956
956
|
try {
|
|
957
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
957
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial(value) };
|
|
958
958
|
}
|
|
959
959
|
catch (e) {
|
|
960
|
-
throw new Error('TxClient:
|
|
960
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message);
|
|
961
961
|
}
|
|
962
962
|
},
|
|
963
|
-
|
|
963
|
+
msgBuyCollection({ value }) {
|
|
964
964
|
try {
|
|
965
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
965
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCollection", value: MsgBuyCollection.fromPartial(value) };
|
|
966
966
|
}
|
|
967
967
|
catch (e) {
|
|
968
|
-
throw new Error('TxClient:
|
|
968
|
+
throw new Error('TxClient:MsgBuyCollection: Could not create message: ' + e.message);
|
|
969
969
|
}
|
|
970
970
|
},
|
|
971
971
|
msgBuyCard({ value }) {
|
|
@@ -976,12 +976,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
976
976
|
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message);
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
|
-
|
|
979
|
+
msgCommitCouncilResponse({ value }) {
|
|
980
980
|
try {
|
|
981
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
981
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial(value) };
|
|
982
982
|
}
|
|
983
983
|
catch (e) {
|
|
984
|
-
throw new Error('TxClient:
|
|
984
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message);
|
|
985
985
|
}
|
|
986
986
|
},
|
|
987
987
|
};
|