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