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