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