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