decentralcardgame-cardchain-client-ts 0.0.5 → 0.0.6
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 +311 -309
- package/DecentralCardGame.cardchain.cardchain/module.ts +469 -467
- package/DecentralCardGame.cardchain.cardchain/registry.js +58 -58
- package/DecentralCardGame.cardchain.cardchain/registry.ts +58 -58
- package/DecentralCardGame.cardchain.cardchain/rest.ts +3 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +41 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +51 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +14 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +16 -2
- 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.cardchain/types.js +2 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +2 -0
- package/client.js +1 -2
- package/package.json +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/card.js +0 -491
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/card.ts +0 -556
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/collection.js +0 -365
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/collection.ts +0 -416
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/collection_proposal.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/collection_proposal.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/copyright_proposal.js +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/copyright_proposal.ts +0 -134
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/council.js +0 -350
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/council.ts +0 -409
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/genesis.js +0 -241
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/genesis.ts +0 -267
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/image.js +0 -88
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/image.ts +0 -115
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/match.js +0 -210
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/match.ts +0 -255
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/match_reporter_proposal.js +0 -67
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/match_reporter_proposal.ts +0 -92
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/num.js +0 -73
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/num.ts +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/params.js +0 -275
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/params.ts +0 -324
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/query.js +0 -1970
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/query.ts +0 -2366
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/running_average.js +0 -85
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/running_average.ts +0 -111
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/sell_offer.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/sell_offer.ts +0 -183
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/server.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/server.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/tx.js +0 -4137
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/tx.ts +0 -5125
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/user.js +0 -496
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/user.ts +0 -556
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/vote_right.js +0 -84
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/vote_right.ts +0 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/voting_result.js +0 -127
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/voting_result.ts +0 -161
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/voting_results.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/voting_results.ts +0 -182
- package/cosmos.authz.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +0 -773
- package/cosmos.authz.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +0 -989
- package/cosmos.authz.v1beta1/types/google/protobuf/duration.js +0 -84
- package/cosmos.authz.v1beta1/types/google/protobuf/duration.ts +0 -187
- package/cosmos.authz.v1beta1/types/tendermint/abci/types.js +0 -3447
- package/cosmos.authz.v1beta1/types/tendermint/abci/types.ts +0 -4107
- package/cosmos.authz.v1beta1/types/tendermint/crypto/keys.js +0 -100
- package/cosmos.authz.v1beta1/types/tendermint/crypto/keys.ts +0 -129
- package/cosmos.authz.v1beta1/types/tendermint/crypto/proof.js +0 -356
- package/cosmos.authz.v1beta1/types/tendermint/crypto/proof.ts +0 -439
- package/cosmos.authz.v1beta1/types/tendermint/types/params.js +0 -378
- package/cosmos.authz.v1beta1/types/tendermint/types/params.ts +0 -514
- package/cosmos.authz.v1beta1/types/tendermint/types/types.js +0 -1207
- package/cosmos.authz.v1beta1/types/tendermint/types/types.ts +0 -1452
- package/cosmos.authz.v1beta1/types/tendermint/types/validator.js +0 -254
- package/cosmos.authz.v1beta1/types/tendermint/types/validator.ts +0 -308
- package/cosmos.authz.v1beta1/types/tendermint/version/types.js +0 -133
- package/cosmos.authz.v1beta1/types/tendermint/version/types.ts +0 -184
- package/ibc.core.connection.v1/types/confio/proofs.js +0 -1120
- package/ibc.core.connection.v1/types/confio/proofs.ts +0 -1402
|
@@ -7,49 +7,50 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
11
|
-
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
12
|
-
import { MsgFinalizeCollection } from "./types/cardchain/cardchain/tx";
|
|
13
10
|
import { MsgSetCardRarity } from "./types/cardchain/cardchain/tx";
|
|
14
|
-
import { MsgAddContributorToCollection } from "./types/cardchain/cardchain/tx";
|
|
15
|
-
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
16
|
-
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
17
|
-
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
18
11
|
import { MsgCreateCollection } from "./types/cardchain/cardchain/tx";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
12
|
+
import { MsgBuyCollection } from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgSetCollectionArtist } from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
21
17
|
import { MsgDonateToCard } from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgTransferCard } from "./types/cardchain/cardchain/tx";
|
|
19
|
+
import { MsgAddContributorToCollection } from "./types/cardchain/cardchain/tx";
|
|
20
|
+
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgCreateCouncil } from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgAddArtworkToCollection } from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgSetUserBiography } from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgRemoveCardFromCollection } from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgCommitCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
27
|
+
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
29
|
+
import { MsgSubmitCopyrightProposal } from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
22
31
|
import { MsgRemoveContributorFromCollection } from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
34
|
+
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
35
|
+
import { MsgRemoveSellOffer } from "./types/cardchain/cardchain/tx";
|
|
36
|
+
import { MsgAddCardToCollection } from "./types/cardchain/cardchain/tx";
|
|
37
|
+
import { MsgFinalizeCollection } from "./types/cardchain/cardchain/tx";
|
|
23
38
|
import { MsgAddStoryToCollection } from "./types/cardchain/cardchain/tx";
|
|
24
|
-
import {
|
|
39
|
+
import { MsgSetCollectionStoryWriter } from "./types/cardchain/cardchain/tx";
|
|
25
40
|
import { MsgMultiVoteCard } from "./types/cardchain/cardchain/tx";
|
|
26
41
|
import { MsgAddArtwork } from "./types/cardchain/cardchain/tx";
|
|
27
|
-
import { MsgRegisterForCouncil } from "./types/cardchain/cardchain/tx";
|
|
28
|
-
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
29
|
-
import { MsgSaveCardContent } from "./types/cardchain/cardchain/tx";
|
|
30
|
-
import { MsgOpenBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
31
42
|
import { MsgReportMatch } from "./types/cardchain/cardchain/tx";
|
|
32
|
-
import {
|
|
33
|
-
import { MsgAddCardToCollection } from "./types/cardchain/cardchain/tx";
|
|
43
|
+
import { MsgCreateuser } from "./types/cardchain/cardchain/tx";
|
|
34
44
|
import { MsgSubmitCollectionProposal } from "./types/cardchain/cardchain/tx";
|
|
35
|
-
import { MsgRewokeCouncilRegistration } from "./types/cardchain/cardchain/tx";
|
|
36
|
-
import { MsgVoteCard } from "./types/cardchain/cardchain/tx";
|
|
37
|
-
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
38
45
|
import { MsgRestartCouncil } from "./types/cardchain/cardchain/tx";
|
|
39
|
-
import { MsgBuyCardScheme } from "./types/cardchain/cardchain/tx";
|
|
40
46
|
import { MsgSubmitMatchReporterProposal } from "./types/cardchain/cardchain/tx";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { MsgAddArtworkToCollection } from "./types/cardchain/cardchain/tx";
|
|
47
|
+
import { MsgSetProfileCard } from "./types/cardchain/cardchain/tx";
|
|
48
|
+
import { MsgApointMatchReporter } from "./types/cardchain/cardchain/tx";
|
|
44
49
|
import { MsgBuyCard } from "./types/cardchain/cardchain/tx";
|
|
45
|
-
import {
|
|
46
|
-
import { MsgRevealCouncilResponse } from "./types/cardchain/cardchain/tx";
|
|
47
|
-
import { MsgConfirmMatch } from "./types/cardchain/cardchain/tx";
|
|
48
|
-
import { MsgChangeArtist } from "./types/cardchain/cardchain/tx";
|
|
49
|
-
import { MsgCreateSellOffer } from "./types/cardchain/cardchain/tx";
|
|
50
|
-
import { MsgRemoveCardFromCollection } from "./types/cardchain/cardchain/tx";
|
|
50
|
+
import { MsgTransferBoosterPack } from "./types/cardchain/cardchain/tx";
|
|
51
51
|
|
|
52
52
|
import { Card as typeCard} from "./types"
|
|
53
|
+
import { TimeStamp as typeTimeStamp} from "./types"
|
|
53
54
|
import { Collection as typeCollection} from "./types"
|
|
54
55
|
import { CollectionProposal as typeCollectionProposal} from "./types"
|
|
55
56
|
import { CopyrightProposal as typeCopyrightProposal} from "./types"
|
|
@@ -71,112 +72,112 @@ import { VoteRight as typeVoteRight} from "./types"
|
|
|
71
72
|
import { VotingResult as typeVotingResult} from "./types"
|
|
72
73
|
import { VotingResults as typeVotingResults} from "./types"
|
|
73
74
|
|
|
74
|
-
export {
|
|
75
|
+
export { MsgSetCardRarity, MsgCreateCollection, MsgBuyCollection, MsgBuyCardScheme, MsgCreateSellOffer, MsgSetCollectionArtist, MsgRevealCouncilResponse, MsgDonateToCard, MsgTransferCard, MsgAddContributorToCollection, MsgRegisterForCouncil, MsgCreateCouncil, MsgAddArtworkToCollection, MsgSetUserBiography, MsgRemoveCardFromCollection, MsgVoteCard, MsgCommitCouncilResponse, MsgOpenBoosterPack, MsgSetUserWebsite, MsgSubmitCopyrightProposal, MsgSaveCardContent, MsgRemoveContributorFromCollection, MsgConfirmMatch, MsgRewokeCouncilRegistration, MsgChangeArtist, MsgRemoveSellOffer, MsgAddCardToCollection, MsgFinalizeCollection, MsgAddStoryToCollection, MsgSetCollectionStoryWriter, MsgMultiVoteCard, MsgAddArtwork, MsgReportMatch, MsgCreateuser, MsgSubmitCollectionProposal, MsgRestartCouncil, MsgSubmitMatchReporterProposal, MsgSetProfileCard, MsgApointMatchReporter, MsgBuyCard, MsgTransferBoosterPack };
|
|
75
76
|
|
|
76
|
-
type
|
|
77
|
-
value:
|
|
77
|
+
type sendMsgSetCardRarityParams = {
|
|
78
|
+
value: MsgSetCardRarity,
|
|
78
79
|
fee?: StdFee,
|
|
79
80
|
memo?: string
|
|
80
81
|
};
|
|
81
82
|
|
|
82
|
-
type
|
|
83
|
-
value:
|
|
83
|
+
type sendMsgCreateCollectionParams = {
|
|
84
|
+
value: MsgCreateCollection,
|
|
84
85
|
fee?: StdFee,
|
|
85
86
|
memo?: string
|
|
86
87
|
};
|
|
87
88
|
|
|
88
|
-
type
|
|
89
|
-
value:
|
|
89
|
+
type sendMsgBuyCollectionParams = {
|
|
90
|
+
value: MsgBuyCollection,
|
|
90
91
|
fee?: StdFee,
|
|
91
92
|
memo?: string
|
|
92
93
|
};
|
|
93
94
|
|
|
94
|
-
type
|
|
95
|
-
value:
|
|
95
|
+
type sendMsgBuyCardSchemeParams = {
|
|
96
|
+
value: MsgBuyCardScheme,
|
|
96
97
|
fee?: StdFee,
|
|
97
98
|
memo?: string
|
|
98
99
|
};
|
|
99
100
|
|
|
100
|
-
type
|
|
101
|
-
value:
|
|
101
|
+
type sendMsgCreateSellOfferParams = {
|
|
102
|
+
value: MsgCreateSellOffer,
|
|
102
103
|
fee?: StdFee,
|
|
103
104
|
memo?: string
|
|
104
105
|
};
|
|
105
106
|
|
|
106
|
-
type
|
|
107
|
-
value:
|
|
107
|
+
type sendMsgSetCollectionArtistParams = {
|
|
108
|
+
value: MsgSetCollectionArtist,
|
|
108
109
|
fee?: StdFee,
|
|
109
110
|
memo?: string
|
|
110
111
|
};
|
|
111
112
|
|
|
112
|
-
type
|
|
113
|
-
value:
|
|
113
|
+
type sendMsgRevealCouncilResponseParams = {
|
|
114
|
+
value: MsgRevealCouncilResponse,
|
|
114
115
|
fee?: StdFee,
|
|
115
116
|
memo?: string
|
|
116
117
|
};
|
|
117
118
|
|
|
118
|
-
type
|
|
119
|
-
value:
|
|
119
|
+
type sendMsgDonateToCardParams = {
|
|
120
|
+
value: MsgDonateToCard,
|
|
120
121
|
fee?: StdFee,
|
|
121
122
|
memo?: string
|
|
122
123
|
};
|
|
123
124
|
|
|
124
|
-
type
|
|
125
|
-
value:
|
|
125
|
+
type sendMsgTransferCardParams = {
|
|
126
|
+
value: MsgTransferCard,
|
|
126
127
|
fee?: StdFee,
|
|
127
128
|
memo?: string
|
|
128
129
|
};
|
|
129
130
|
|
|
130
|
-
type
|
|
131
|
-
value:
|
|
131
|
+
type sendMsgAddContributorToCollectionParams = {
|
|
132
|
+
value: MsgAddContributorToCollection,
|
|
132
133
|
fee?: StdFee,
|
|
133
134
|
memo?: string
|
|
134
135
|
};
|
|
135
136
|
|
|
136
|
-
type
|
|
137
|
-
value:
|
|
137
|
+
type sendMsgRegisterForCouncilParams = {
|
|
138
|
+
value: MsgRegisterForCouncil,
|
|
138
139
|
fee?: StdFee,
|
|
139
140
|
memo?: string
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
type
|
|
143
|
-
value:
|
|
143
|
+
type sendMsgCreateCouncilParams = {
|
|
144
|
+
value: MsgCreateCouncil,
|
|
144
145
|
fee?: StdFee,
|
|
145
146
|
memo?: string
|
|
146
147
|
};
|
|
147
148
|
|
|
148
|
-
type
|
|
149
|
-
value:
|
|
149
|
+
type sendMsgAddArtworkToCollectionParams = {
|
|
150
|
+
value: MsgAddArtworkToCollection,
|
|
150
151
|
fee?: StdFee,
|
|
151
152
|
memo?: string
|
|
152
153
|
};
|
|
153
154
|
|
|
154
|
-
type
|
|
155
|
-
value:
|
|
155
|
+
type sendMsgSetUserBiographyParams = {
|
|
156
|
+
value: MsgSetUserBiography,
|
|
156
157
|
fee?: StdFee,
|
|
157
158
|
memo?: string
|
|
158
159
|
};
|
|
159
160
|
|
|
160
|
-
type
|
|
161
|
-
value:
|
|
161
|
+
type sendMsgRemoveCardFromCollectionParams = {
|
|
162
|
+
value: MsgRemoveCardFromCollection,
|
|
162
163
|
fee?: StdFee,
|
|
163
164
|
memo?: string
|
|
164
165
|
};
|
|
165
166
|
|
|
166
|
-
type
|
|
167
|
-
value:
|
|
167
|
+
type sendMsgVoteCardParams = {
|
|
168
|
+
value: MsgVoteCard,
|
|
168
169
|
fee?: StdFee,
|
|
169
170
|
memo?: string
|
|
170
171
|
};
|
|
171
172
|
|
|
172
|
-
type
|
|
173
|
-
value:
|
|
173
|
+
type sendMsgCommitCouncilResponseParams = {
|
|
174
|
+
value: MsgCommitCouncilResponse,
|
|
174
175
|
fee?: StdFee,
|
|
175
176
|
memo?: string
|
|
176
177
|
};
|
|
177
178
|
|
|
178
|
-
type
|
|
179
|
-
value:
|
|
179
|
+
type sendMsgOpenBoosterPackParams = {
|
|
180
|
+
value: MsgOpenBoosterPack,
|
|
180
181
|
fee?: StdFee,
|
|
181
182
|
memo?: string
|
|
182
183
|
};
|
|
@@ -187,301 +188,301 @@ type sendMsgSetUserWebsiteParams = {
|
|
|
187
188
|
memo?: string
|
|
188
189
|
};
|
|
189
190
|
|
|
190
|
-
type
|
|
191
|
-
value:
|
|
191
|
+
type sendMsgSubmitCopyrightProposalParams = {
|
|
192
|
+
value: MsgSubmitCopyrightProposal,
|
|
192
193
|
fee?: StdFee,
|
|
193
194
|
memo?: string
|
|
194
195
|
};
|
|
195
196
|
|
|
196
|
-
type
|
|
197
|
-
value:
|
|
197
|
+
type sendMsgSaveCardContentParams = {
|
|
198
|
+
value: MsgSaveCardContent,
|
|
198
199
|
fee?: StdFee,
|
|
199
200
|
memo?: string
|
|
200
201
|
};
|
|
201
202
|
|
|
202
|
-
type
|
|
203
|
-
value:
|
|
203
|
+
type sendMsgRemoveContributorFromCollectionParams = {
|
|
204
|
+
value: MsgRemoveContributorFromCollection,
|
|
204
205
|
fee?: StdFee,
|
|
205
206
|
memo?: string
|
|
206
207
|
};
|
|
207
208
|
|
|
208
|
-
type
|
|
209
|
-
value:
|
|
209
|
+
type sendMsgConfirmMatchParams = {
|
|
210
|
+
value: MsgConfirmMatch,
|
|
210
211
|
fee?: StdFee,
|
|
211
212
|
memo?: string
|
|
212
213
|
};
|
|
213
214
|
|
|
214
|
-
type
|
|
215
|
-
value:
|
|
215
|
+
type sendMsgRewokeCouncilRegistrationParams = {
|
|
216
|
+
value: MsgRewokeCouncilRegistration,
|
|
216
217
|
fee?: StdFee,
|
|
217
218
|
memo?: string
|
|
218
219
|
};
|
|
219
220
|
|
|
220
|
-
type
|
|
221
|
-
value:
|
|
221
|
+
type sendMsgChangeArtistParams = {
|
|
222
|
+
value: MsgChangeArtist,
|
|
222
223
|
fee?: StdFee,
|
|
223
224
|
memo?: string
|
|
224
225
|
};
|
|
225
226
|
|
|
226
|
-
type
|
|
227
|
-
value:
|
|
227
|
+
type sendMsgRemoveSellOfferParams = {
|
|
228
|
+
value: MsgRemoveSellOffer,
|
|
228
229
|
fee?: StdFee,
|
|
229
230
|
memo?: string
|
|
230
231
|
};
|
|
231
232
|
|
|
232
|
-
type
|
|
233
|
-
value:
|
|
233
|
+
type sendMsgAddCardToCollectionParams = {
|
|
234
|
+
value: MsgAddCardToCollection,
|
|
234
235
|
fee?: StdFee,
|
|
235
236
|
memo?: string
|
|
236
237
|
};
|
|
237
238
|
|
|
238
|
-
type
|
|
239
|
-
value:
|
|
239
|
+
type sendMsgFinalizeCollectionParams = {
|
|
240
|
+
value: MsgFinalizeCollection,
|
|
240
241
|
fee?: StdFee,
|
|
241
242
|
memo?: string
|
|
242
243
|
};
|
|
243
244
|
|
|
244
|
-
type
|
|
245
|
-
value:
|
|
245
|
+
type sendMsgAddStoryToCollectionParams = {
|
|
246
|
+
value: MsgAddStoryToCollection,
|
|
246
247
|
fee?: StdFee,
|
|
247
248
|
memo?: string
|
|
248
249
|
};
|
|
249
250
|
|
|
250
|
-
type
|
|
251
|
-
value:
|
|
251
|
+
type sendMsgSetCollectionStoryWriterParams = {
|
|
252
|
+
value: MsgSetCollectionStoryWriter,
|
|
252
253
|
fee?: StdFee,
|
|
253
254
|
memo?: string
|
|
254
255
|
};
|
|
255
256
|
|
|
256
|
-
type
|
|
257
|
-
value:
|
|
257
|
+
type sendMsgMultiVoteCardParams = {
|
|
258
|
+
value: MsgMultiVoteCard,
|
|
258
259
|
fee?: StdFee,
|
|
259
260
|
memo?: string
|
|
260
261
|
};
|
|
261
262
|
|
|
262
|
-
type
|
|
263
|
-
value:
|
|
263
|
+
type sendMsgAddArtworkParams = {
|
|
264
|
+
value: MsgAddArtwork,
|
|
264
265
|
fee?: StdFee,
|
|
265
266
|
memo?: string
|
|
266
267
|
};
|
|
267
268
|
|
|
268
|
-
type
|
|
269
|
-
value:
|
|
269
|
+
type sendMsgReportMatchParams = {
|
|
270
|
+
value: MsgReportMatch,
|
|
270
271
|
fee?: StdFee,
|
|
271
272
|
memo?: string
|
|
272
273
|
};
|
|
273
274
|
|
|
274
|
-
type
|
|
275
|
-
value:
|
|
275
|
+
type sendMsgCreateuserParams = {
|
|
276
|
+
value: MsgCreateuser,
|
|
276
277
|
fee?: StdFee,
|
|
277
278
|
memo?: string
|
|
278
279
|
};
|
|
279
280
|
|
|
280
|
-
type
|
|
281
|
-
value:
|
|
281
|
+
type sendMsgSubmitCollectionProposalParams = {
|
|
282
|
+
value: MsgSubmitCollectionProposal,
|
|
282
283
|
fee?: StdFee,
|
|
283
284
|
memo?: string
|
|
284
285
|
};
|
|
285
286
|
|
|
286
|
-
type
|
|
287
|
-
value:
|
|
287
|
+
type sendMsgRestartCouncilParams = {
|
|
288
|
+
value: MsgRestartCouncil,
|
|
288
289
|
fee?: StdFee,
|
|
289
290
|
memo?: string
|
|
290
291
|
};
|
|
291
292
|
|
|
292
|
-
type
|
|
293
|
-
value:
|
|
293
|
+
type sendMsgSubmitMatchReporterProposalParams = {
|
|
294
|
+
value: MsgSubmitMatchReporterProposal,
|
|
294
295
|
fee?: StdFee,
|
|
295
296
|
memo?: string
|
|
296
297
|
};
|
|
297
298
|
|
|
298
|
-
type
|
|
299
|
-
value:
|
|
299
|
+
type sendMsgSetProfileCardParams = {
|
|
300
|
+
value: MsgSetProfileCard,
|
|
300
301
|
fee?: StdFee,
|
|
301
302
|
memo?: string
|
|
302
303
|
};
|
|
303
304
|
|
|
304
|
-
type
|
|
305
|
-
value:
|
|
305
|
+
type sendMsgApointMatchReporterParams = {
|
|
306
|
+
value: MsgApointMatchReporter,
|
|
306
307
|
fee?: StdFee,
|
|
307
308
|
memo?: string
|
|
308
309
|
};
|
|
309
310
|
|
|
310
|
-
type
|
|
311
|
-
value:
|
|
311
|
+
type sendMsgBuyCardParams = {
|
|
312
|
+
value: MsgBuyCard,
|
|
312
313
|
fee?: StdFee,
|
|
313
314
|
memo?: string
|
|
314
315
|
};
|
|
315
316
|
|
|
316
|
-
type
|
|
317
|
-
value:
|
|
317
|
+
type sendMsgTransferBoosterPackParams = {
|
|
318
|
+
value: MsgTransferBoosterPack,
|
|
318
319
|
fee?: StdFee,
|
|
319
320
|
memo?: string
|
|
320
321
|
};
|
|
321
322
|
|
|
322
323
|
|
|
323
|
-
type
|
|
324
|
-
value:
|
|
324
|
+
type msgSetCardRarityParams = {
|
|
325
|
+
value: MsgSetCardRarity,
|
|
325
326
|
};
|
|
326
327
|
|
|
327
|
-
type
|
|
328
|
-
value:
|
|
328
|
+
type msgCreateCollectionParams = {
|
|
329
|
+
value: MsgCreateCollection,
|
|
329
330
|
};
|
|
330
331
|
|
|
331
|
-
type
|
|
332
|
-
value:
|
|
332
|
+
type msgBuyCollectionParams = {
|
|
333
|
+
value: MsgBuyCollection,
|
|
333
334
|
};
|
|
334
335
|
|
|
335
|
-
type
|
|
336
|
-
value:
|
|
336
|
+
type msgBuyCardSchemeParams = {
|
|
337
|
+
value: MsgBuyCardScheme,
|
|
337
338
|
};
|
|
338
339
|
|
|
339
|
-
type
|
|
340
|
-
value:
|
|
340
|
+
type msgCreateSellOfferParams = {
|
|
341
|
+
value: MsgCreateSellOffer,
|
|
341
342
|
};
|
|
342
343
|
|
|
343
|
-
type
|
|
344
|
-
value:
|
|
344
|
+
type msgSetCollectionArtistParams = {
|
|
345
|
+
value: MsgSetCollectionArtist,
|
|
345
346
|
};
|
|
346
347
|
|
|
347
|
-
type
|
|
348
|
-
value:
|
|
348
|
+
type msgRevealCouncilResponseParams = {
|
|
349
|
+
value: MsgRevealCouncilResponse,
|
|
349
350
|
};
|
|
350
351
|
|
|
351
|
-
type
|
|
352
|
-
value:
|
|
352
|
+
type msgDonateToCardParams = {
|
|
353
|
+
value: MsgDonateToCard,
|
|
353
354
|
};
|
|
354
355
|
|
|
355
|
-
type
|
|
356
|
-
value:
|
|
356
|
+
type msgTransferCardParams = {
|
|
357
|
+
value: MsgTransferCard,
|
|
357
358
|
};
|
|
358
359
|
|
|
359
|
-
type
|
|
360
|
-
value:
|
|
360
|
+
type msgAddContributorToCollectionParams = {
|
|
361
|
+
value: MsgAddContributorToCollection,
|
|
361
362
|
};
|
|
362
363
|
|
|
363
|
-
type
|
|
364
|
-
value:
|
|
364
|
+
type msgRegisterForCouncilParams = {
|
|
365
|
+
value: MsgRegisterForCouncil,
|
|
365
366
|
};
|
|
366
367
|
|
|
367
|
-
type
|
|
368
|
-
value:
|
|
368
|
+
type msgCreateCouncilParams = {
|
|
369
|
+
value: MsgCreateCouncil,
|
|
369
370
|
};
|
|
370
371
|
|
|
371
|
-
type
|
|
372
|
-
value:
|
|
372
|
+
type msgAddArtworkToCollectionParams = {
|
|
373
|
+
value: MsgAddArtworkToCollection,
|
|
373
374
|
};
|
|
374
375
|
|
|
375
|
-
type
|
|
376
|
-
value:
|
|
376
|
+
type msgSetUserBiographyParams = {
|
|
377
|
+
value: MsgSetUserBiography,
|
|
377
378
|
};
|
|
378
379
|
|
|
379
|
-
type
|
|
380
|
-
value:
|
|
380
|
+
type msgRemoveCardFromCollectionParams = {
|
|
381
|
+
value: MsgRemoveCardFromCollection,
|
|
381
382
|
};
|
|
382
383
|
|
|
383
|
-
type
|
|
384
|
-
value:
|
|
384
|
+
type msgVoteCardParams = {
|
|
385
|
+
value: MsgVoteCard,
|
|
385
386
|
};
|
|
386
387
|
|
|
387
|
-
type
|
|
388
|
-
value:
|
|
388
|
+
type msgCommitCouncilResponseParams = {
|
|
389
|
+
value: MsgCommitCouncilResponse,
|
|
389
390
|
};
|
|
390
391
|
|
|
391
|
-
type
|
|
392
|
-
value:
|
|
392
|
+
type msgOpenBoosterPackParams = {
|
|
393
|
+
value: MsgOpenBoosterPack,
|
|
393
394
|
};
|
|
394
395
|
|
|
395
396
|
type msgSetUserWebsiteParams = {
|
|
396
397
|
value: MsgSetUserWebsite,
|
|
397
398
|
};
|
|
398
399
|
|
|
400
|
+
type msgSubmitCopyrightProposalParams = {
|
|
401
|
+
value: MsgSubmitCopyrightProposal,
|
|
402
|
+
};
|
|
403
|
+
|
|
399
404
|
type msgSaveCardContentParams = {
|
|
400
405
|
value: MsgSaveCardContent,
|
|
401
406
|
};
|
|
402
407
|
|
|
403
|
-
type
|
|
404
|
-
value:
|
|
408
|
+
type msgRemoveContributorFromCollectionParams = {
|
|
409
|
+
value: MsgRemoveContributorFromCollection,
|
|
405
410
|
};
|
|
406
411
|
|
|
407
|
-
type
|
|
408
|
-
value:
|
|
412
|
+
type msgConfirmMatchParams = {
|
|
413
|
+
value: MsgConfirmMatch,
|
|
409
414
|
};
|
|
410
415
|
|
|
411
|
-
type
|
|
412
|
-
value:
|
|
416
|
+
type msgRewokeCouncilRegistrationParams = {
|
|
417
|
+
value: MsgRewokeCouncilRegistration,
|
|
413
418
|
};
|
|
414
419
|
|
|
415
|
-
type
|
|
416
|
-
value:
|
|
420
|
+
type msgChangeArtistParams = {
|
|
421
|
+
value: MsgChangeArtist,
|
|
417
422
|
};
|
|
418
423
|
|
|
419
|
-
type
|
|
420
|
-
value:
|
|
424
|
+
type msgRemoveSellOfferParams = {
|
|
425
|
+
value: MsgRemoveSellOffer,
|
|
421
426
|
};
|
|
422
427
|
|
|
423
|
-
type
|
|
424
|
-
value:
|
|
428
|
+
type msgAddCardToCollectionParams = {
|
|
429
|
+
value: MsgAddCardToCollection,
|
|
425
430
|
};
|
|
426
431
|
|
|
427
|
-
type
|
|
428
|
-
value:
|
|
432
|
+
type msgFinalizeCollectionParams = {
|
|
433
|
+
value: MsgFinalizeCollection,
|
|
429
434
|
};
|
|
430
435
|
|
|
431
|
-
type
|
|
432
|
-
value:
|
|
436
|
+
type msgAddStoryToCollectionParams = {
|
|
437
|
+
value: MsgAddStoryToCollection,
|
|
433
438
|
};
|
|
434
439
|
|
|
435
|
-
type
|
|
436
|
-
value:
|
|
440
|
+
type msgSetCollectionStoryWriterParams = {
|
|
441
|
+
value: MsgSetCollectionStoryWriter,
|
|
437
442
|
};
|
|
438
443
|
|
|
439
|
-
type
|
|
440
|
-
value:
|
|
444
|
+
type msgMultiVoteCardParams = {
|
|
445
|
+
value: MsgMultiVoteCard,
|
|
441
446
|
};
|
|
442
447
|
|
|
443
|
-
type
|
|
444
|
-
value:
|
|
448
|
+
type msgAddArtworkParams = {
|
|
449
|
+
value: MsgAddArtwork,
|
|
445
450
|
};
|
|
446
451
|
|
|
447
|
-
type
|
|
448
|
-
value:
|
|
452
|
+
type msgReportMatchParams = {
|
|
453
|
+
value: MsgReportMatch,
|
|
449
454
|
};
|
|
450
455
|
|
|
451
456
|
type msgCreateuserParams = {
|
|
452
457
|
value: MsgCreateuser,
|
|
453
458
|
};
|
|
454
459
|
|
|
455
|
-
type
|
|
456
|
-
value:
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
type msgBuyCardParams = {
|
|
460
|
-
value: MsgBuyCard,
|
|
460
|
+
type msgSubmitCollectionProposalParams = {
|
|
461
|
+
value: MsgSubmitCollectionProposal,
|
|
461
462
|
};
|
|
462
463
|
|
|
463
|
-
type
|
|
464
|
-
value:
|
|
464
|
+
type msgRestartCouncilParams = {
|
|
465
|
+
value: MsgRestartCouncil,
|
|
465
466
|
};
|
|
466
467
|
|
|
467
|
-
type
|
|
468
|
-
value:
|
|
468
|
+
type msgSubmitMatchReporterProposalParams = {
|
|
469
|
+
value: MsgSubmitMatchReporterProposal,
|
|
469
470
|
};
|
|
470
471
|
|
|
471
|
-
type
|
|
472
|
-
value:
|
|
472
|
+
type msgSetProfileCardParams = {
|
|
473
|
+
value: MsgSetProfileCard,
|
|
473
474
|
};
|
|
474
475
|
|
|
475
|
-
type
|
|
476
|
-
value:
|
|
476
|
+
type msgApointMatchReporterParams = {
|
|
477
|
+
value: MsgApointMatchReporter,
|
|
477
478
|
};
|
|
478
479
|
|
|
479
|
-
type
|
|
480
|
-
value:
|
|
480
|
+
type msgBuyCardParams = {
|
|
481
|
+
value: MsgBuyCard,
|
|
481
482
|
};
|
|
482
483
|
|
|
483
|
-
type
|
|
484
|
-
value:
|
|
484
|
+
type msgTransferBoosterPackParams = {
|
|
485
|
+
value: MsgTransferBoosterPack,
|
|
485
486
|
};
|
|
486
487
|
|
|
487
488
|
|
|
@@ -514,255 +515,255 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
514
515
|
|
|
515
516
|
return {
|
|
516
517
|
|
|
517
|
-
async
|
|
518
|
+
async sendMsgSetCardRarity({ value, fee, memo }: sendMsgSetCardRarityParams): Promise<DeliverTxResponse> {
|
|
518
519
|
if (!signer) {
|
|
519
|
-
throw new Error('TxClient:
|
|
520
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.')
|
|
520
521
|
}
|
|
521
522
|
try {
|
|
522
523
|
const { address } = (await signer.getAccounts())[0];
|
|
523
524
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
524
|
-
let msg = this.
|
|
525
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) })
|
|
525
526
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
526
527
|
} catch (e: any) {
|
|
527
|
-
throw new Error('TxClient:
|
|
528
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: '+ e.message)
|
|
528
529
|
}
|
|
529
530
|
},
|
|
530
531
|
|
|
531
|
-
async
|
|
532
|
+
async sendMsgCreateCollection({ value, fee, memo }: sendMsgCreateCollectionParams): Promise<DeliverTxResponse> {
|
|
532
533
|
if (!signer) {
|
|
533
|
-
throw new Error('TxClient:
|
|
534
|
+
throw new Error('TxClient:sendMsgCreateCollection: Unable to sign Tx. Signer is not present.')
|
|
534
535
|
}
|
|
535
536
|
try {
|
|
536
537
|
const { address } = (await signer.getAccounts())[0];
|
|
537
538
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
538
|
-
let msg = this.
|
|
539
|
+
let msg = this.msgCreateCollection({ value: MsgCreateCollection.fromPartial(value) })
|
|
539
540
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
540
541
|
} catch (e: any) {
|
|
541
|
-
throw new Error('TxClient:
|
|
542
|
+
throw new Error('TxClient:sendMsgCreateCollection: Could not broadcast Tx: '+ e.message)
|
|
542
543
|
}
|
|
543
544
|
},
|
|
544
545
|
|
|
545
|
-
async
|
|
546
|
+
async sendMsgBuyCollection({ value, fee, memo }: sendMsgBuyCollectionParams): Promise<DeliverTxResponse> {
|
|
546
547
|
if (!signer) {
|
|
547
|
-
throw new Error('TxClient:
|
|
548
|
+
throw new Error('TxClient:sendMsgBuyCollection: Unable to sign Tx. Signer is not present.')
|
|
548
549
|
}
|
|
549
550
|
try {
|
|
550
551
|
const { address } = (await signer.getAccounts())[0];
|
|
551
552
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
552
|
-
let msg = this.
|
|
553
|
+
let msg = this.msgBuyCollection({ value: MsgBuyCollection.fromPartial(value) })
|
|
553
554
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
554
555
|
} catch (e: any) {
|
|
555
|
-
throw new Error('TxClient:
|
|
556
|
+
throw new Error('TxClient:sendMsgBuyCollection: Could not broadcast Tx: '+ e.message)
|
|
556
557
|
}
|
|
557
558
|
},
|
|
558
559
|
|
|
559
|
-
async
|
|
560
|
+
async sendMsgBuyCardScheme({ value, fee, memo }: sendMsgBuyCardSchemeParams): Promise<DeliverTxResponse> {
|
|
560
561
|
if (!signer) {
|
|
561
|
-
throw new Error('TxClient:
|
|
562
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.')
|
|
562
563
|
}
|
|
563
564
|
try {
|
|
564
565
|
const { address } = (await signer.getAccounts())[0];
|
|
565
566
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
566
|
-
let msg = this.
|
|
567
|
+
let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) })
|
|
567
568
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
568
569
|
} catch (e: any) {
|
|
569
|
-
throw new Error('TxClient:
|
|
570
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: '+ e.message)
|
|
570
571
|
}
|
|
571
572
|
},
|
|
572
573
|
|
|
573
|
-
async
|
|
574
|
+
async sendMsgCreateSellOffer({ value, fee, memo }: sendMsgCreateSellOfferParams): Promise<DeliverTxResponse> {
|
|
574
575
|
if (!signer) {
|
|
575
|
-
throw new Error('TxClient:
|
|
576
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.')
|
|
576
577
|
}
|
|
577
578
|
try {
|
|
578
579
|
const { address } = (await signer.getAccounts())[0];
|
|
579
580
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
580
|
-
let msg = this.
|
|
581
|
+
let msg = this.msgCreateSellOffer({ value: MsgCreateSellOffer.fromPartial(value) })
|
|
581
582
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
582
583
|
} catch (e: any) {
|
|
583
|
-
throw new Error('TxClient:
|
|
584
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: '+ e.message)
|
|
584
585
|
}
|
|
585
586
|
},
|
|
586
587
|
|
|
587
|
-
async
|
|
588
|
+
async sendMsgSetCollectionArtist({ value, fee, memo }: sendMsgSetCollectionArtistParams): Promise<DeliverTxResponse> {
|
|
588
589
|
if (!signer) {
|
|
589
|
-
throw new Error('TxClient:
|
|
590
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Unable to sign Tx. Signer is not present.')
|
|
590
591
|
}
|
|
591
592
|
try {
|
|
592
593
|
const { address } = (await signer.getAccounts())[0];
|
|
593
594
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
594
|
-
let msg = this.
|
|
595
|
+
let msg = this.msgSetCollectionArtist({ value: MsgSetCollectionArtist.fromPartial(value) })
|
|
595
596
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
596
597
|
} catch (e: any) {
|
|
597
|
-
throw new Error('TxClient:
|
|
598
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Could not broadcast Tx: '+ e.message)
|
|
598
599
|
}
|
|
599
600
|
},
|
|
600
601
|
|
|
601
|
-
async
|
|
602
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
602
603
|
if (!signer) {
|
|
603
|
-
throw new Error('TxClient:
|
|
604
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
604
605
|
}
|
|
605
606
|
try {
|
|
606
607
|
const { address } = (await signer.getAccounts())[0];
|
|
607
608
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
608
|
-
let msg = this.
|
|
609
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) })
|
|
609
610
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
610
611
|
} catch (e: any) {
|
|
611
|
-
throw new Error('TxClient:
|
|
612
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
612
613
|
}
|
|
613
614
|
},
|
|
614
615
|
|
|
615
|
-
async
|
|
616
|
+
async sendMsgDonateToCard({ value, fee, memo }: sendMsgDonateToCardParams): Promise<DeliverTxResponse> {
|
|
616
617
|
if (!signer) {
|
|
617
|
-
throw new Error('TxClient:
|
|
618
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.')
|
|
618
619
|
}
|
|
619
620
|
try {
|
|
620
621
|
const { address } = (await signer.getAccounts())[0];
|
|
621
622
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
622
|
-
let msg = this.
|
|
623
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) })
|
|
623
624
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
624
625
|
} catch (e: any) {
|
|
625
|
-
throw new Error('TxClient:
|
|
626
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: '+ e.message)
|
|
626
627
|
}
|
|
627
628
|
},
|
|
628
629
|
|
|
629
|
-
async
|
|
630
|
+
async sendMsgTransferCard({ value, fee, memo }: sendMsgTransferCardParams): Promise<DeliverTxResponse> {
|
|
630
631
|
if (!signer) {
|
|
631
|
-
throw new Error('TxClient:
|
|
632
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
632
633
|
}
|
|
633
634
|
try {
|
|
634
635
|
const { address } = (await signer.getAccounts())[0];
|
|
635
636
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
636
|
-
let msg = this.
|
|
637
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) })
|
|
637
638
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
638
639
|
} catch (e: any) {
|
|
639
|
-
throw new Error('TxClient:
|
|
640
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: '+ e.message)
|
|
640
641
|
}
|
|
641
642
|
},
|
|
642
643
|
|
|
643
|
-
async
|
|
644
|
+
async sendMsgAddContributorToCollection({ value, fee, memo }: sendMsgAddContributorToCollectionParams): Promise<DeliverTxResponse> {
|
|
644
645
|
if (!signer) {
|
|
645
|
-
throw new Error('TxClient:
|
|
646
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Unable to sign Tx. Signer is not present.')
|
|
646
647
|
}
|
|
647
648
|
try {
|
|
648
649
|
const { address } = (await signer.getAccounts())[0];
|
|
649
650
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
650
|
-
let msg = this.
|
|
651
|
+
let msg = this.msgAddContributorToCollection({ value: MsgAddContributorToCollection.fromPartial(value) })
|
|
651
652
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
652
653
|
} catch (e: any) {
|
|
653
|
-
throw new Error('TxClient:
|
|
654
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Could not broadcast Tx: '+ e.message)
|
|
654
655
|
}
|
|
655
656
|
},
|
|
656
657
|
|
|
657
|
-
async
|
|
658
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
658
659
|
if (!signer) {
|
|
659
|
-
throw new Error('TxClient:
|
|
660
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.')
|
|
660
661
|
}
|
|
661
662
|
try {
|
|
662
663
|
const { address } = (await signer.getAccounts())[0];
|
|
663
664
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
664
|
-
let msg = this.
|
|
665
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) })
|
|
665
666
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
666
667
|
} catch (e: any) {
|
|
667
|
-
throw new Error('TxClient:
|
|
668
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: '+ e.message)
|
|
668
669
|
}
|
|
669
670
|
},
|
|
670
671
|
|
|
671
|
-
async
|
|
672
|
+
async sendMsgCreateCouncil({ value, fee, memo }: sendMsgCreateCouncilParams): Promise<DeliverTxResponse> {
|
|
672
673
|
if (!signer) {
|
|
673
|
-
throw new Error('TxClient:
|
|
674
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.')
|
|
674
675
|
}
|
|
675
676
|
try {
|
|
676
677
|
const { address } = (await signer.getAccounts())[0];
|
|
677
678
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
678
|
-
let msg = this.
|
|
679
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) })
|
|
679
680
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
680
681
|
} catch (e: any) {
|
|
681
|
-
throw new Error('TxClient:
|
|
682
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: '+ e.message)
|
|
682
683
|
}
|
|
683
684
|
},
|
|
684
685
|
|
|
685
|
-
async
|
|
686
|
+
async sendMsgAddArtworkToCollection({ value, fee, memo }: sendMsgAddArtworkToCollectionParams): Promise<DeliverTxResponse> {
|
|
686
687
|
if (!signer) {
|
|
687
|
-
throw new Error('TxClient:
|
|
688
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Unable to sign Tx. Signer is not present.')
|
|
688
689
|
}
|
|
689
690
|
try {
|
|
690
691
|
const { address } = (await signer.getAccounts())[0];
|
|
691
692
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
692
|
-
let msg = this.
|
|
693
|
+
let msg = this.msgAddArtworkToCollection({ value: MsgAddArtworkToCollection.fromPartial(value) })
|
|
693
694
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
694
695
|
} catch (e: any) {
|
|
695
|
-
throw new Error('TxClient:
|
|
696
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Could not broadcast Tx: '+ e.message)
|
|
696
697
|
}
|
|
697
698
|
},
|
|
698
699
|
|
|
699
|
-
async
|
|
700
|
+
async sendMsgSetUserBiography({ value, fee, memo }: sendMsgSetUserBiographyParams): Promise<DeliverTxResponse> {
|
|
700
701
|
if (!signer) {
|
|
701
|
-
throw new Error('TxClient:
|
|
702
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.')
|
|
702
703
|
}
|
|
703
704
|
try {
|
|
704
705
|
const { address } = (await signer.getAccounts())[0];
|
|
705
706
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
706
|
-
let msg = this.
|
|
707
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) })
|
|
707
708
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
708
709
|
} catch (e: any) {
|
|
709
|
-
throw new Error('TxClient:
|
|
710
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: '+ e.message)
|
|
710
711
|
}
|
|
711
712
|
},
|
|
712
713
|
|
|
713
|
-
async
|
|
714
|
+
async sendMsgRemoveCardFromCollection({ value, fee, memo }: sendMsgRemoveCardFromCollectionParams): Promise<DeliverTxResponse> {
|
|
714
715
|
if (!signer) {
|
|
715
|
-
throw new Error('TxClient:
|
|
716
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Unable to sign Tx. Signer is not present.')
|
|
716
717
|
}
|
|
717
718
|
try {
|
|
718
719
|
const { address } = (await signer.getAccounts())[0];
|
|
719
720
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
720
|
-
let msg = this.
|
|
721
|
+
let msg = this.msgRemoveCardFromCollection({ value: MsgRemoveCardFromCollection.fromPartial(value) })
|
|
721
722
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
722
723
|
} catch (e: any) {
|
|
723
|
-
throw new Error('TxClient:
|
|
724
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Could not broadcast Tx: '+ e.message)
|
|
724
725
|
}
|
|
725
726
|
},
|
|
726
727
|
|
|
727
|
-
async
|
|
728
|
+
async sendMsgVoteCard({ value, fee, memo }: sendMsgVoteCardParams): Promise<DeliverTxResponse> {
|
|
728
729
|
if (!signer) {
|
|
729
|
-
throw new Error('TxClient:
|
|
730
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.')
|
|
730
731
|
}
|
|
731
732
|
try {
|
|
732
733
|
const { address } = (await signer.getAccounts())[0];
|
|
733
734
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
734
|
-
let msg = this.
|
|
735
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) })
|
|
735
736
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
736
737
|
} catch (e: any) {
|
|
737
|
-
throw new Error('TxClient:
|
|
738
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: '+ e.message)
|
|
738
739
|
}
|
|
739
740
|
},
|
|
740
741
|
|
|
741
|
-
async
|
|
742
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }: sendMsgCommitCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
742
743
|
if (!signer) {
|
|
743
|
-
throw new Error('TxClient:
|
|
744
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
744
745
|
}
|
|
745
746
|
try {
|
|
746
747
|
const { address } = (await signer.getAccounts())[0];
|
|
747
748
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
748
|
-
let msg = this.
|
|
749
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) })
|
|
749
750
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
750
751
|
} catch (e: any) {
|
|
751
|
-
throw new Error('TxClient:
|
|
752
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
752
753
|
}
|
|
753
754
|
},
|
|
754
755
|
|
|
755
|
-
async
|
|
756
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
756
757
|
if (!signer) {
|
|
757
|
-
throw new Error('TxClient:
|
|
758
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
758
759
|
}
|
|
759
760
|
try {
|
|
760
761
|
const { address } = (await signer.getAccounts())[0];
|
|
761
762
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
762
|
-
let msg = this.
|
|
763
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) })
|
|
763
764
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
764
765
|
} catch (e: any) {
|
|
765
|
-
throw new Error('TxClient:
|
|
766
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
766
767
|
}
|
|
767
768
|
},
|
|
768
769
|
|
|
@@ -780,456 +781,456 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
780
781
|
}
|
|
781
782
|
},
|
|
782
783
|
|
|
783
|
-
async
|
|
784
|
+
async sendMsgSubmitCopyrightProposal({ value, fee, memo }: sendMsgSubmitCopyrightProposalParams): Promise<DeliverTxResponse> {
|
|
784
785
|
if (!signer) {
|
|
785
|
-
throw new Error('TxClient:
|
|
786
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Unable to sign Tx. Signer is not present.')
|
|
786
787
|
}
|
|
787
788
|
try {
|
|
788
789
|
const { address } = (await signer.getAccounts())[0];
|
|
789
790
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
790
|
-
let msg = this.
|
|
791
|
+
let msg = this.msgSubmitCopyrightProposal({ value: MsgSubmitCopyrightProposal.fromPartial(value) })
|
|
791
792
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
792
793
|
} catch (e: any) {
|
|
793
|
-
throw new Error('TxClient:
|
|
794
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Could not broadcast Tx: '+ e.message)
|
|
794
795
|
}
|
|
795
796
|
},
|
|
796
797
|
|
|
797
|
-
async
|
|
798
|
+
async sendMsgSaveCardContent({ value, fee, memo }: sendMsgSaveCardContentParams): Promise<DeliverTxResponse> {
|
|
798
799
|
if (!signer) {
|
|
799
|
-
throw new Error('TxClient:
|
|
800
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.')
|
|
800
801
|
}
|
|
801
802
|
try {
|
|
802
803
|
const { address } = (await signer.getAccounts())[0];
|
|
803
804
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
804
|
-
let msg = this.
|
|
805
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) })
|
|
805
806
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
806
807
|
} catch (e: any) {
|
|
807
|
-
throw new Error('TxClient:
|
|
808
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: '+ e.message)
|
|
808
809
|
}
|
|
809
810
|
},
|
|
810
811
|
|
|
811
|
-
async
|
|
812
|
+
async sendMsgRemoveContributorFromCollection({ value, fee, memo }: sendMsgRemoveContributorFromCollectionParams): Promise<DeliverTxResponse> {
|
|
812
813
|
if (!signer) {
|
|
813
|
-
throw new Error('TxClient:
|
|
814
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Unable to sign Tx. Signer is not present.')
|
|
814
815
|
}
|
|
815
816
|
try {
|
|
816
817
|
const { address } = (await signer.getAccounts())[0];
|
|
817
818
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
818
|
-
let msg = this.
|
|
819
|
+
let msg = this.msgRemoveContributorFromCollection({ value: MsgRemoveContributorFromCollection.fromPartial(value) })
|
|
819
820
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
820
821
|
} catch (e: any) {
|
|
821
|
-
throw new Error('TxClient:
|
|
822
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Could not broadcast Tx: '+ e.message)
|
|
822
823
|
}
|
|
823
824
|
},
|
|
824
825
|
|
|
825
|
-
async
|
|
826
|
+
async sendMsgConfirmMatch({ value, fee, memo }: sendMsgConfirmMatchParams): Promise<DeliverTxResponse> {
|
|
826
827
|
if (!signer) {
|
|
827
|
-
throw new Error('TxClient:
|
|
828
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.')
|
|
828
829
|
}
|
|
829
830
|
try {
|
|
830
831
|
const { address } = (await signer.getAccounts())[0];
|
|
831
832
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
832
|
-
let msg = this.
|
|
833
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) })
|
|
833
834
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
834
835
|
} catch (e: any) {
|
|
835
|
-
throw new Error('TxClient:
|
|
836
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: '+ e.message)
|
|
836
837
|
}
|
|
837
838
|
},
|
|
838
839
|
|
|
839
|
-
async
|
|
840
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
840
841
|
if (!signer) {
|
|
841
|
-
throw new Error('TxClient:
|
|
842
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.')
|
|
842
843
|
}
|
|
843
844
|
try {
|
|
844
845
|
const { address } = (await signer.getAccounts())[0];
|
|
845
846
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
846
|
-
let msg = this.
|
|
847
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) })
|
|
847
848
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
848
849
|
} catch (e: any) {
|
|
849
|
-
throw new Error('TxClient:
|
|
850
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: '+ e.message)
|
|
850
851
|
}
|
|
851
852
|
},
|
|
852
853
|
|
|
853
|
-
async
|
|
854
|
+
async sendMsgChangeArtist({ value, fee, memo }: sendMsgChangeArtistParams): Promise<DeliverTxResponse> {
|
|
854
855
|
if (!signer) {
|
|
855
|
-
throw new Error('TxClient:
|
|
856
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.')
|
|
856
857
|
}
|
|
857
858
|
try {
|
|
858
859
|
const { address } = (await signer.getAccounts())[0];
|
|
859
860
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
860
|
-
let msg = this.
|
|
861
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) })
|
|
861
862
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
862
863
|
} catch (e: any) {
|
|
863
|
-
throw new Error('TxClient:
|
|
864
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: '+ e.message)
|
|
864
865
|
}
|
|
865
866
|
},
|
|
866
867
|
|
|
867
|
-
async
|
|
868
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }: sendMsgRemoveSellOfferParams): Promise<DeliverTxResponse> {
|
|
868
869
|
if (!signer) {
|
|
869
|
-
throw new Error('TxClient:
|
|
870
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.')
|
|
870
871
|
}
|
|
871
872
|
try {
|
|
872
873
|
const { address } = (await signer.getAccounts())[0];
|
|
873
874
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
874
|
-
let msg = this.
|
|
875
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) })
|
|
875
876
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
876
877
|
} catch (e: any) {
|
|
877
|
-
throw new Error('TxClient:
|
|
878
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: '+ e.message)
|
|
878
879
|
}
|
|
879
880
|
},
|
|
880
881
|
|
|
881
|
-
async
|
|
882
|
+
async sendMsgAddCardToCollection({ value, fee, memo }: sendMsgAddCardToCollectionParams): Promise<DeliverTxResponse> {
|
|
882
883
|
if (!signer) {
|
|
883
|
-
throw new Error('TxClient:
|
|
884
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Unable to sign Tx. Signer is not present.')
|
|
884
885
|
}
|
|
885
886
|
try {
|
|
886
887
|
const { address } = (await signer.getAccounts())[0];
|
|
887
888
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
888
|
-
let msg = this.
|
|
889
|
+
let msg = this.msgAddCardToCollection({ value: MsgAddCardToCollection.fromPartial(value) })
|
|
889
890
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
890
891
|
} catch (e: any) {
|
|
891
|
-
throw new Error('TxClient:
|
|
892
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Could not broadcast Tx: '+ e.message)
|
|
892
893
|
}
|
|
893
894
|
},
|
|
894
895
|
|
|
895
|
-
async
|
|
896
|
+
async sendMsgFinalizeCollection({ value, fee, memo }: sendMsgFinalizeCollectionParams): Promise<DeliverTxResponse> {
|
|
896
897
|
if (!signer) {
|
|
897
|
-
throw new Error('TxClient:
|
|
898
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Unable to sign Tx. Signer is not present.')
|
|
898
899
|
}
|
|
899
900
|
try {
|
|
900
901
|
const { address } = (await signer.getAccounts())[0];
|
|
901
902
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
902
|
-
let msg = this.
|
|
903
|
+
let msg = this.msgFinalizeCollection({ value: MsgFinalizeCollection.fromPartial(value) })
|
|
903
904
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
904
905
|
} catch (e: any) {
|
|
905
|
-
throw new Error('TxClient:
|
|
906
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Could not broadcast Tx: '+ e.message)
|
|
906
907
|
}
|
|
907
908
|
},
|
|
908
909
|
|
|
909
|
-
async
|
|
910
|
+
async sendMsgAddStoryToCollection({ value, fee, memo }: sendMsgAddStoryToCollectionParams): Promise<DeliverTxResponse> {
|
|
910
911
|
if (!signer) {
|
|
911
|
-
throw new Error('TxClient:
|
|
912
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Unable to sign Tx. Signer is not present.')
|
|
912
913
|
}
|
|
913
914
|
try {
|
|
914
915
|
const { address } = (await signer.getAccounts())[0];
|
|
915
916
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
916
|
-
let msg = this.
|
|
917
|
+
let msg = this.msgAddStoryToCollection({ value: MsgAddStoryToCollection.fromPartial(value) })
|
|
917
918
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
918
919
|
} catch (e: any) {
|
|
919
|
-
throw new Error('TxClient:
|
|
920
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Could not broadcast Tx: '+ e.message)
|
|
920
921
|
}
|
|
921
922
|
},
|
|
922
923
|
|
|
923
|
-
async
|
|
924
|
+
async sendMsgSetCollectionStoryWriter({ value, fee, memo }: sendMsgSetCollectionStoryWriterParams): Promise<DeliverTxResponse> {
|
|
924
925
|
if (!signer) {
|
|
925
|
-
throw new Error('TxClient:
|
|
926
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Unable to sign Tx. Signer is not present.')
|
|
926
927
|
}
|
|
927
928
|
try {
|
|
928
929
|
const { address } = (await signer.getAccounts())[0];
|
|
929
930
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
930
|
-
let msg = this.
|
|
931
|
+
let msg = this.msgSetCollectionStoryWriter({ value: MsgSetCollectionStoryWriter.fromPartial(value) })
|
|
931
932
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
932
933
|
} catch (e: any) {
|
|
933
|
-
throw new Error('TxClient:
|
|
934
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Could not broadcast Tx: '+ e.message)
|
|
934
935
|
}
|
|
935
936
|
},
|
|
936
937
|
|
|
937
|
-
async
|
|
938
|
+
async sendMsgMultiVoteCard({ value, fee, memo }: sendMsgMultiVoteCardParams): Promise<DeliverTxResponse> {
|
|
938
939
|
if (!signer) {
|
|
939
|
-
throw new Error('TxClient:
|
|
940
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.')
|
|
940
941
|
}
|
|
941
942
|
try {
|
|
942
943
|
const { address } = (await signer.getAccounts())[0];
|
|
943
944
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
944
|
-
let msg = this.
|
|
945
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) })
|
|
945
946
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
946
947
|
} catch (e: any) {
|
|
947
|
-
throw new Error('TxClient:
|
|
948
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: '+ e.message)
|
|
948
949
|
}
|
|
949
950
|
},
|
|
950
951
|
|
|
951
|
-
async
|
|
952
|
+
async sendMsgAddArtwork({ value, fee, memo }: sendMsgAddArtworkParams): Promise<DeliverTxResponse> {
|
|
952
953
|
if (!signer) {
|
|
953
|
-
throw new Error('TxClient:
|
|
954
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.')
|
|
954
955
|
}
|
|
955
956
|
try {
|
|
956
957
|
const { address } = (await signer.getAccounts())[0];
|
|
957
958
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
958
|
-
let msg = this.
|
|
959
|
+
let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) })
|
|
959
960
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
960
961
|
} catch (e: any) {
|
|
961
|
-
throw new Error('TxClient:
|
|
962
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: '+ e.message)
|
|
962
963
|
}
|
|
963
964
|
},
|
|
964
965
|
|
|
965
|
-
async
|
|
966
|
+
async sendMsgReportMatch({ value, fee, memo }: sendMsgReportMatchParams): Promise<DeliverTxResponse> {
|
|
966
967
|
if (!signer) {
|
|
967
|
-
throw new Error('TxClient:
|
|
968
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.')
|
|
968
969
|
}
|
|
969
970
|
try {
|
|
970
971
|
const { address } = (await signer.getAccounts())[0];
|
|
971
972
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
972
|
-
let msg = this.
|
|
973
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) })
|
|
973
974
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
974
975
|
} catch (e: any) {
|
|
975
|
-
throw new Error('TxClient:
|
|
976
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: '+ e.message)
|
|
976
977
|
}
|
|
977
978
|
},
|
|
978
979
|
|
|
979
|
-
async
|
|
980
|
+
async sendMsgCreateuser({ value, fee, memo }: sendMsgCreateuserParams): Promise<DeliverTxResponse> {
|
|
980
981
|
if (!signer) {
|
|
981
|
-
throw new Error('TxClient:
|
|
982
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.')
|
|
982
983
|
}
|
|
983
984
|
try {
|
|
984
985
|
const { address } = (await signer.getAccounts())[0];
|
|
985
986
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
986
|
-
let msg = this.
|
|
987
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) })
|
|
987
988
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
988
989
|
} catch (e: any) {
|
|
989
|
-
throw new Error('TxClient:
|
|
990
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: '+ e.message)
|
|
990
991
|
}
|
|
991
992
|
},
|
|
992
993
|
|
|
993
|
-
async
|
|
994
|
+
async sendMsgSubmitCollectionProposal({ value, fee, memo }: sendMsgSubmitCollectionProposalParams): Promise<DeliverTxResponse> {
|
|
994
995
|
if (!signer) {
|
|
995
|
-
throw new Error('TxClient:
|
|
996
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Unable to sign Tx. Signer is not present.')
|
|
996
997
|
}
|
|
997
998
|
try {
|
|
998
999
|
const { address } = (await signer.getAccounts())[0];
|
|
999
1000
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1000
|
-
let msg = this.
|
|
1001
|
+
let msg = this.msgSubmitCollectionProposal({ value: MsgSubmitCollectionProposal.fromPartial(value) })
|
|
1001
1002
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1002
1003
|
} catch (e: any) {
|
|
1003
|
-
throw new Error('TxClient:
|
|
1004
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Could not broadcast Tx: '+ e.message)
|
|
1004
1005
|
}
|
|
1005
1006
|
},
|
|
1006
1007
|
|
|
1007
|
-
async
|
|
1008
|
+
async sendMsgRestartCouncil({ value, fee, memo }: sendMsgRestartCouncilParams): Promise<DeliverTxResponse> {
|
|
1008
1009
|
if (!signer) {
|
|
1009
|
-
throw new Error('TxClient:
|
|
1010
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.')
|
|
1010
1011
|
}
|
|
1011
1012
|
try {
|
|
1012
1013
|
const { address } = (await signer.getAccounts())[0];
|
|
1013
1014
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1014
|
-
let msg = this.
|
|
1015
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) })
|
|
1015
1016
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1016
1017
|
} catch (e: any) {
|
|
1017
|
-
throw new Error('TxClient:
|
|
1018
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: '+ e.message)
|
|
1018
1019
|
}
|
|
1019
1020
|
},
|
|
1020
1021
|
|
|
1021
|
-
async
|
|
1022
|
+
async sendMsgSubmitMatchReporterProposal({ value, fee, memo }: sendMsgSubmitMatchReporterProposalParams): Promise<DeliverTxResponse> {
|
|
1022
1023
|
if (!signer) {
|
|
1023
|
-
throw new Error('TxClient:
|
|
1024
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Unable to sign Tx. Signer is not present.')
|
|
1024
1025
|
}
|
|
1025
1026
|
try {
|
|
1026
1027
|
const { address } = (await signer.getAccounts())[0];
|
|
1027
1028
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1028
|
-
let msg = this.
|
|
1029
|
+
let msg = this.msgSubmitMatchReporterProposal({ value: MsgSubmitMatchReporterProposal.fromPartial(value) })
|
|
1029
1030
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1030
1031
|
} catch (e: any) {
|
|
1031
|
-
throw new Error('TxClient:
|
|
1032
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Could not broadcast Tx: '+ e.message)
|
|
1032
1033
|
}
|
|
1033
1034
|
},
|
|
1034
1035
|
|
|
1035
|
-
async
|
|
1036
|
+
async sendMsgSetProfileCard({ value, fee, memo }: sendMsgSetProfileCardParams): Promise<DeliverTxResponse> {
|
|
1036
1037
|
if (!signer) {
|
|
1037
|
-
throw new Error('TxClient:
|
|
1038
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.')
|
|
1038
1039
|
}
|
|
1039
1040
|
try {
|
|
1040
1041
|
const { address } = (await signer.getAccounts())[0];
|
|
1041
1042
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1042
|
-
let msg = this.
|
|
1043
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) })
|
|
1043
1044
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1044
1045
|
} catch (e: any) {
|
|
1045
|
-
throw new Error('TxClient:
|
|
1046
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: '+ e.message)
|
|
1046
1047
|
}
|
|
1047
1048
|
},
|
|
1048
1049
|
|
|
1049
|
-
async
|
|
1050
|
+
async sendMsgApointMatchReporter({ value, fee, memo }: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
1050
1051
|
if (!signer) {
|
|
1051
|
-
throw new Error('TxClient:
|
|
1052
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.')
|
|
1052
1053
|
}
|
|
1053
1054
|
try {
|
|
1054
1055
|
const { address } = (await signer.getAccounts())[0];
|
|
1055
1056
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1056
|
-
let msg = this.
|
|
1057
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) })
|
|
1057
1058
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1058
1059
|
} catch (e: any) {
|
|
1059
|
-
throw new Error('TxClient:
|
|
1060
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: '+ e.message)
|
|
1060
1061
|
}
|
|
1061
1062
|
},
|
|
1062
1063
|
|
|
1063
|
-
async
|
|
1064
|
+
async sendMsgBuyCard({ value, fee, memo }: sendMsgBuyCardParams): Promise<DeliverTxResponse> {
|
|
1064
1065
|
if (!signer) {
|
|
1065
|
-
throw new Error('TxClient:
|
|
1066
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.')
|
|
1066
1067
|
}
|
|
1067
1068
|
try {
|
|
1068
1069
|
const { address } = (await signer.getAccounts())[0];
|
|
1069
1070
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1070
|
-
let msg = this.
|
|
1071
|
+
let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) })
|
|
1071
1072
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1072
1073
|
} catch (e: any) {
|
|
1073
|
-
throw new Error('TxClient:
|
|
1074
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: '+ e.message)
|
|
1074
1075
|
}
|
|
1075
1076
|
},
|
|
1076
1077
|
|
|
1077
|
-
async
|
|
1078
|
+
async sendMsgTransferBoosterPack({ value, fee, memo }: sendMsgTransferBoosterPackParams): Promise<DeliverTxResponse> {
|
|
1078
1079
|
if (!signer) {
|
|
1079
|
-
throw new Error('TxClient:
|
|
1080
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
1080
1081
|
}
|
|
1081
1082
|
try {
|
|
1082
1083
|
const { address } = (await signer.getAccounts())[0];
|
|
1083
1084
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1084
|
-
let msg = this.
|
|
1085
|
+
let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) })
|
|
1085
1086
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1086
1087
|
} catch (e: any) {
|
|
1087
|
-
throw new Error('TxClient:
|
|
1088
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
1088
1089
|
}
|
|
1089
1090
|
},
|
|
1090
1091
|
|
|
1091
1092
|
|
|
1092
|
-
|
|
1093
|
+
msgSetCardRarity({ value }: msgSetCardRarityParams): EncodeObject {
|
|
1093
1094
|
try {
|
|
1094
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1095
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial( value ) }
|
|
1095
1096
|
} catch (e: any) {
|
|
1096
|
-
throw new Error('TxClient:
|
|
1097
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message)
|
|
1097
1098
|
}
|
|
1098
1099
|
},
|
|
1099
1100
|
|
|
1100
|
-
|
|
1101
|
+
msgCreateCollection({ value }: msgCreateCollectionParams): EncodeObject {
|
|
1101
1102
|
try {
|
|
1102
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1103
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCollection", value: MsgCreateCollection.fromPartial( value ) }
|
|
1103
1104
|
} catch (e: any) {
|
|
1104
|
-
throw new Error('TxClient:
|
|
1105
|
+
throw new Error('TxClient:MsgCreateCollection: Could not create message: ' + e.message)
|
|
1105
1106
|
}
|
|
1106
1107
|
},
|
|
1107
1108
|
|
|
1108
|
-
|
|
1109
|
+
msgBuyCollection({ value }: msgBuyCollectionParams): EncodeObject {
|
|
1109
1110
|
try {
|
|
1110
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1111
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCollection", value: MsgBuyCollection.fromPartial( value ) }
|
|
1111
1112
|
} catch (e: any) {
|
|
1112
|
-
throw new Error('TxClient:
|
|
1113
|
+
throw new Error('TxClient:MsgBuyCollection: Could not create message: ' + e.message)
|
|
1113
1114
|
}
|
|
1114
1115
|
},
|
|
1115
1116
|
|
|
1116
|
-
|
|
1117
|
+
msgBuyCardScheme({ value }: msgBuyCardSchemeParams): EncodeObject {
|
|
1117
1118
|
try {
|
|
1118
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1119
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial( value ) }
|
|
1119
1120
|
} catch (e: any) {
|
|
1120
|
-
throw new Error('TxClient:
|
|
1121
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message)
|
|
1121
1122
|
}
|
|
1122
1123
|
},
|
|
1123
1124
|
|
|
1124
|
-
|
|
1125
|
+
msgCreateSellOffer({ value }: msgCreateSellOfferParams): EncodeObject {
|
|
1125
1126
|
try {
|
|
1126
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1127
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", value: MsgCreateSellOffer.fromPartial( value ) }
|
|
1127
1128
|
} catch (e: any) {
|
|
1128
|
-
throw new Error('TxClient:
|
|
1129
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message)
|
|
1129
1130
|
}
|
|
1130
1131
|
},
|
|
1131
1132
|
|
|
1132
|
-
|
|
1133
|
+
msgSetCollectionArtist({ value }: msgSetCollectionArtistParams): EncodeObject {
|
|
1133
1134
|
try {
|
|
1134
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1135
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionArtist", value: MsgSetCollectionArtist.fromPartial( value ) }
|
|
1135
1136
|
} catch (e: any) {
|
|
1136
|
-
throw new Error('TxClient:
|
|
1137
|
+
throw new Error('TxClient:MsgSetCollectionArtist: Could not create message: ' + e.message)
|
|
1137
1138
|
}
|
|
1138
1139
|
},
|
|
1139
1140
|
|
|
1140
|
-
|
|
1141
|
+
msgRevealCouncilResponse({ value }: msgRevealCouncilResponseParams): EncodeObject {
|
|
1141
1142
|
try {
|
|
1142
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1143
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial( value ) }
|
|
1143
1144
|
} catch (e: any) {
|
|
1144
|
-
throw new Error('TxClient:
|
|
1145
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message)
|
|
1145
1146
|
}
|
|
1146
1147
|
},
|
|
1147
1148
|
|
|
1148
|
-
|
|
1149
|
+
msgDonateToCard({ value }: msgDonateToCardParams): EncodeObject {
|
|
1149
1150
|
try {
|
|
1150
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1151
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial( value ) }
|
|
1151
1152
|
} catch (e: any) {
|
|
1152
|
-
throw new Error('TxClient:
|
|
1153
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message)
|
|
1153
1154
|
}
|
|
1154
1155
|
},
|
|
1155
1156
|
|
|
1156
|
-
|
|
1157
|
+
msgTransferCard({ value }: msgTransferCardParams): EncodeObject {
|
|
1157
1158
|
try {
|
|
1158
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1159
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial( value ) }
|
|
1159
1160
|
} catch (e: any) {
|
|
1160
|
-
throw new Error('TxClient:
|
|
1161
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message)
|
|
1161
1162
|
}
|
|
1162
1163
|
},
|
|
1163
1164
|
|
|
1164
|
-
|
|
1165
|
+
msgAddContributorToCollection({ value }: msgAddContributorToCollectionParams): EncodeObject {
|
|
1165
1166
|
try {
|
|
1166
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1167
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToCollection", value: MsgAddContributorToCollection.fromPartial( value ) }
|
|
1167
1168
|
} catch (e: any) {
|
|
1168
|
-
throw new Error('TxClient:
|
|
1169
|
+
throw new Error('TxClient:MsgAddContributorToCollection: Could not create message: ' + e.message)
|
|
1169
1170
|
}
|
|
1170
1171
|
},
|
|
1171
1172
|
|
|
1172
|
-
|
|
1173
|
+
msgRegisterForCouncil({ value }: msgRegisterForCouncilParams): EncodeObject {
|
|
1173
1174
|
try {
|
|
1174
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1175
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial( value ) }
|
|
1175
1176
|
} catch (e: any) {
|
|
1176
|
-
throw new Error('TxClient:
|
|
1177
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message)
|
|
1177
1178
|
}
|
|
1178
1179
|
},
|
|
1179
1180
|
|
|
1180
|
-
|
|
1181
|
+
msgCreateCouncil({ value }: msgCreateCouncilParams): EncodeObject {
|
|
1181
1182
|
try {
|
|
1182
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1183
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial( value ) }
|
|
1183
1184
|
} catch (e: any) {
|
|
1184
|
-
throw new Error('TxClient:
|
|
1185
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message)
|
|
1185
1186
|
}
|
|
1186
1187
|
},
|
|
1187
1188
|
|
|
1188
|
-
|
|
1189
|
+
msgAddArtworkToCollection({ value }: msgAddArtworkToCollectionParams): EncodeObject {
|
|
1189
1190
|
try {
|
|
1190
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1191
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToCollection", value: MsgAddArtworkToCollection.fromPartial( value ) }
|
|
1191
1192
|
} catch (e: any) {
|
|
1192
|
-
throw new Error('TxClient:
|
|
1193
|
+
throw new Error('TxClient:MsgAddArtworkToCollection: Could not create message: ' + e.message)
|
|
1193
1194
|
}
|
|
1194
1195
|
},
|
|
1195
1196
|
|
|
1196
|
-
|
|
1197
|
+
msgSetUserBiography({ value }: msgSetUserBiographyParams): EncodeObject {
|
|
1197
1198
|
try {
|
|
1198
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1199
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial( value ) }
|
|
1199
1200
|
} catch (e: any) {
|
|
1200
|
-
throw new Error('TxClient:
|
|
1201
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1201
1202
|
}
|
|
1202
1203
|
},
|
|
1203
1204
|
|
|
1204
|
-
|
|
1205
|
+
msgRemoveCardFromCollection({ value }: msgRemoveCardFromCollectionParams): EncodeObject {
|
|
1205
1206
|
try {
|
|
1206
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1207
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromCollection", value: MsgRemoveCardFromCollection.fromPartial( value ) }
|
|
1207
1208
|
} catch (e: any) {
|
|
1208
|
-
throw new Error('TxClient:
|
|
1209
|
+
throw new Error('TxClient:MsgRemoveCardFromCollection: Could not create message: ' + e.message)
|
|
1209
1210
|
}
|
|
1210
1211
|
},
|
|
1211
1212
|
|
|
1212
|
-
|
|
1213
|
+
msgVoteCard({ value }: msgVoteCardParams): EncodeObject {
|
|
1213
1214
|
try {
|
|
1214
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1215
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial( value ) }
|
|
1215
1216
|
} catch (e: any) {
|
|
1216
|
-
throw new Error('TxClient:
|
|
1217
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message)
|
|
1217
1218
|
}
|
|
1218
1219
|
},
|
|
1219
1220
|
|
|
1220
|
-
|
|
1221
|
+
msgCommitCouncilResponse({ value }: msgCommitCouncilResponseParams): EncodeObject {
|
|
1221
1222
|
try {
|
|
1222
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1223
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial( value ) }
|
|
1223
1224
|
} catch (e: any) {
|
|
1224
|
-
throw new Error('TxClient:
|
|
1225
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message)
|
|
1225
1226
|
}
|
|
1226
1227
|
},
|
|
1227
1228
|
|
|
1228
|
-
|
|
1229
|
+
msgOpenBoosterPack({ value }: msgOpenBoosterPackParams): EncodeObject {
|
|
1229
1230
|
try {
|
|
1230
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1231
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial( value ) }
|
|
1231
1232
|
} catch (e: any) {
|
|
1232
|
-
throw new Error('TxClient:
|
|
1233
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message)
|
|
1233
1234
|
}
|
|
1234
1235
|
},
|
|
1235
1236
|
|
|
@@ -1241,6 +1242,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1241
1242
|
}
|
|
1242
1243
|
},
|
|
1243
1244
|
|
|
1245
|
+
msgSubmitCopyrightProposal({ value }: msgSubmitCopyrightProposalParams): EncodeObject {
|
|
1246
|
+
try {
|
|
1247
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCopyrightProposal", value: MsgSubmitCopyrightProposal.fromPartial( value ) }
|
|
1248
|
+
} catch (e: any) {
|
|
1249
|
+
throw new Error('TxClient:MsgSubmitCopyrightProposal: Could not create message: ' + e.message)
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
|
|
1244
1253
|
msgSaveCardContent({ value }: msgSaveCardContentParams): EncodeObject {
|
|
1245
1254
|
try {
|
|
1246
1255
|
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial( value ) }
|
|
@@ -1249,99 +1258,99 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1249
1258
|
}
|
|
1250
1259
|
},
|
|
1251
1260
|
|
|
1252
|
-
|
|
1261
|
+
msgRemoveContributorFromCollection({ value }: msgRemoveContributorFromCollectionParams): EncodeObject {
|
|
1253
1262
|
try {
|
|
1254
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1263
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromCollection", value: MsgRemoveContributorFromCollection.fromPartial( value ) }
|
|
1255
1264
|
} catch (e: any) {
|
|
1256
|
-
throw new Error('TxClient:
|
|
1265
|
+
throw new Error('TxClient:MsgRemoveContributorFromCollection: Could not create message: ' + e.message)
|
|
1257
1266
|
}
|
|
1258
1267
|
},
|
|
1259
1268
|
|
|
1260
|
-
|
|
1269
|
+
msgConfirmMatch({ value }: msgConfirmMatchParams): EncodeObject {
|
|
1261
1270
|
try {
|
|
1262
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1271
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial( value ) }
|
|
1263
1272
|
} catch (e: any) {
|
|
1264
|
-
throw new Error('TxClient:
|
|
1273
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message)
|
|
1265
1274
|
}
|
|
1266
1275
|
},
|
|
1267
1276
|
|
|
1268
|
-
|
|
1277
|
+
msgRewokeCouncilRegistration({ value }: msgRewokeCouncilRegistrationParams): EncodeObject {
|
|
1269
1278
|
try {
|
|
1270
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1279
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial( value ) }
|
|
1271
1280
|
} catch (e: any) {
|
|
1272
|
-
throw new Error('TxClient:
|
|
1281
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message)
|
|
1273
1282
|
}
|
|
1274
1283
|
},
|
|
1275
1284
|
|
|
1276
|
-
|
|
1285
|
+
msgChangeArtist({ value }: msgChangeArtistParams): EncodeObject {
|
|
1277
1286
|
try {
|
|
1278
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1287
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial( value ) }
|
|
1279
1288
|
} catch (e: any) {
|
|
1280
|
-
throw new Error('TxClient:
|
|
1289
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message)
|
|
1281
1290
|
}
|
|
1282
1291
|
},
|
|
1283
1292
|
|
|
1284
|
-
|
|
1293
|
+
msgRemoveSellOffer({ value }: msgRemoveSellOfferParams): EncodeObject {
|
|
1285
1294
|
try {
|
|
1286
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1295
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial( value ) }
|
|
1287
1296
|
} catch (e: any) {
|
|
1288
|
-
throw new Error('TxClient:
|
|
1297
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message)
|
|
1289
1298
|
}
|
|
1290
1299
|
},
|
|
1291
1300
|
|
|
1292
|
-
|
|
1301
|
+
msgAddCardToCollection({ value }: msgAddCardToCollectionParams): EncodeObject {
|
|
1293
1302
|
try {
|
|
1294
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1303
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToCollection", value: MsgAddCardToCollection.fromPartial( value ) }
|
|
1295
1304
|
} catch (e: any) {
|
|
1296
|
-
throw new Error('TxClient:
|
|
1305
|
+
throw new Error('TxClient:MsgAddCardToCollection: Could not create message: ' + e.message)
|
|
1297
1306
|
}
|
|
1298
1307
|
},
|
|
1299
1308
|
|
|
1300
|
-
|
|
1309
|
+
msgFinalizeCollection({ value }: msgFinalizeCollectionParams): EncodeObject {
|
|
1301
1310
|
try {
|
|
1302
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1311
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeCollection", value: MsgFinalizeCollection.fromPartial( value ) }
|
|
1303
1312
|
} catch (e: any) {
|
|
1304
|
-
throw new Error('TxClient:
|
|
1313
|
+
throw new Error('TxClient:MsgFinalizeCollection: Could not create message: ' + e.message)
|
|
1305
1314
|
}
|
|
1306
1315
|
},
|
|
1307
1316
|
|
|
1308
|
-
|
|
1317
|
+
msgAddStoryToCollection({ value }: msgAddStoryToCollectionParams): EncodeObject {
|
|
1309
1318
|
try {
|
|
1310
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1319
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToCollection", value: MsgAddStoryToCollection.fromPartial( value ) }
|
|
1311
1320
|
} catch (e: any) {
|
|
1312
|
-
throw new Error('TxClient:
|
|
1321
|
+
throw new Error('TxClient:MsgAddStoryToCollection: Could not create message: ' + e.message)
|
|
1313
1322
|
}
|
|
1314
1323
|
},
|
|
1315
1324
|
|
|
1316
|
-
|
|
1325
|
+
msgSetCollectionStoryWriter({ value }: msgSetCollectionStoryWriterParams): EncodeObject {
|
|
1317
1326
|
try {
|
|
1318
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1327
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionStoryWriter", value: MsgSetCollectionStoryWriter.fromPartial( value ) }
|
|
1319
1328
|
} catch (e: any) {
|
|
1320
|
-
throw new Error('TxClient:
|
|
1329
|
+
throw new Error('TxClient:MsgSetCollectionStoryWriter: Could not create message: ' + e.message)
|
|
1321
1330
|
}
|
|
1322
1331
|
},
|
|
1323
1332
|
|
|
1324
|
-
|
|
1333
|
+
msgMultiVoteCard({ value }: msgMultiVoteCardParams): EncodeObject {
|
|
1325
1334
|
try {
|
|
1326
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1335
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial( value ) }
|
|
1327
1336
|
} catch (e: any) {
|
|
1328
|
-
throw new Error('TxClient:
|
|
1337
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message)
|
|
1329
1338
|
}
|
|
1330
1339
|
},
|
|
1331
1340
|
|
|
1332
|
-
|
|
1341
|
+
msgAddArtwork({ value }: msgAddArtworkParams): EncodeObject {
|
|
1333
1342
|
try {
|
|
1334
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1343
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial( value ) }
|
|
1335
1344
|
} catch (e: any) {
|
|
1336
|
-
throw new Error('TxClient:
|
|
1345
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message)
|
|
1337
1346
|
}
|
|
1338
1347
|
},
|
|
1339
1348
|
|
|
1340
|
-
|
|
1349
|
+
msgReportMatch({ value }: msgReportMatchParams): EncodeObject {
|
|
1341
1350
|
try {
|
|
1342
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1351
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial( value ) }
|
|
1343
1352
|
} catch (e: any) {
|
|
1344
|
-
throw new Error('TxClient:
|
|
1353
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message)
|
|
1345
1354
|
}
|
|
1346
1355
|
},
|
|
1347
1356
|
|
|
@@ -1353,67 +1362,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1353
1362
|
}
|
|
1354
1363
|
},
|
|
1355
1364
|
|
|
1356
|
-
|
|
1357
|
-
try {
|
|
1358
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToCollection", value: MsgAddArtworkToCollection.fromPartial( value ) }
|
|
1359
|
-
} catch (e: any) {
|
|
1360
|
-
throw new Error('TxClient:MsgAddArtworkToCollection: Could not create message: ' + e.message)
|
|
1361
|
-
}
|
|
1362
|
-
},
|
|
1363
|
-
|
|
1364
|
-
msgBuyCard({ value }: msgBuyCardParams): EncodeObject {
|
|
1365
|
+
msgSubmitCollectionProposal({ value }: msgSubmitCollectionProposalParams): EncodeObject {
|
|
1365
1366
|
try {
|
|
1366
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1367
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCollectionProposal", value: MsgSubmitCollectionProposal.fromPartial( value ) }
|
|
1367
1368
|
} catch (e: any) {
|
|
1368
|
-
throw new Error('TxClient:
|
|
1369
|
+
throw new Error('TxClient:MsgSubmitCollectionProposal: Could not create message: ' + e.message)
|
|
1369
1370
|
}
|
|
1370
1371
|
},
|
|
1371
1372
|
|
|
1372
|
-
|
|
1373
|
+
msgRestartCouncil({ value }: msgRestartCouncilParams): EncodeObject {
|
|
1373
1374
|
try {
|
|
1374
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1375
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial( value ) }
|
|
1375
1376
|
} catch (e: any) {
|
|
1376
|
-
throw new Error('TxClient:
|
|
1377
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message)
|
|
1377
1378
|
}
|
|
1378
1379
|
},
|
|
1379
1380
|
|
|
1380
|
-
|
|
1381
|
+
msgSubmitMatchReporterProposal({ value }: msgSubmitMatchReporterProposalParams): EncodeObject {
|
|
1381
1382
|
try {
|
|
1382
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1383
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitMatchReporterProposal", value: MsgSubmitMatchReporterProposal.fromPartial( value ) }
|
|
1383
1384
|
} catch (e: any) {
|
|
1384
|
-
throw new Error('TxClient:
|
|
1385
|
+
throw new Error('TxClient:MsgSubmitMatchReporterProposal: Could not create message: ' + e.message)
|
|
1385
1386
|
}
|
|
1386
1387
|
},
|
|
1387
1388
|
|
|
1388
|
-
|
|
1389
|
+
msgSetProfileCard({ value }: msgSetProfileCardParams): EncodeObject {
|
|
1389
1390
|
try {
|
|
1390
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1391
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial( value ) }
|
|
1391
1392
|
} catch (e: any) {
|
|
1392
|
-
throw new Error('TxClient:
|
|
1393
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message)
|
|
1393
1394
|
}
|
|
1394
1395
|
},
|
|
1395
1396
|
|
|
1396
|
-
|
|
1397
|
+
msgApointMatchReporter({ value }: msgApointMatchReporterParams): EncodeObject {
|
|
1397
1398
|
try {
|
|
1398
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1399
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial( value ) }
|
|
1399
1400
|
} catch (e: any) {
|
|
1400
|
-
throw new Error('TxClient:
|
|
1401
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message)
|
|
1401
1402
|
}
|
|
1402
1403
|
},
|
|
1403
1404
|
|
|
1404
|
-
|
|
1405
|
+
msgBuyCard({ value }: msgBuyCardParams): EncodeObject {
|
|
1405
1406
|
try {
|
|
1406
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1407
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial( value ) }
|
|
1407
1408
|
} catch (e: any) {
|
|
1408
|
-
throw new Error('TxClient:
|
|
1409
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message)
|
|
1409
1410
|
}
|
|
1410
1411
|
},
|
|
1411
1412
|
|
|
1412
|
-
|
|
1413
|
+
msgTransferBoosterPack({ value }: msgTransferBoosterPackParams): EncodeObject {
|
|
1413
1414
|
try {
|
|
1414
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1415
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial( value ) }
|
|
1415
1416
|
} catch (e: any) {
|
|
1416
|
-
throw new Error('TxClient:
|
|
1417
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message)
|
|
1417
1418
|
}
|
|
1418
1419
|
},
|
|
1419
1420
|
|
|
@@ -1440,6 +1441,7 @@ class SDKModule {
|
|
|
1440
1441
|
this.updateTX(client);
|
|
1441
1442
|
this.structure = {
|
|
1442
1443
|
Card: getStructure(typeCard.fromPartial({})),
|
|
1444
|
+
TimeStamp: getStructure(typeTimeStamp.fromPartial({})),
|
|
1443
1445
|
Collection: getStructure(typeCollection.fromPartial({})),
|
|
1444
1446
|
CollectionProposal: getStructure(typeCollectionProposal.fromPartial({})),
|
|
1445
1447
|
CopyrightProposal: getStructure(typeCopyrightProposal.fromPartial({})),
|