decentralcardgame-cardchain-client-ts 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +441 -315
- package/DecentralCardGame.cardchain.cardchain/module.ts +1501 -1298
- package/DecentralCardGame.cardchain.cardchain/registry.js +64 -64
- package/DecentralCardGame.cardchain.cardchain/registry.ts +64 -64
- package/DecentralCardGame.cardchain.cardchain/rest.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +10 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +11 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +4 -1
- package/DecentralCardGame.cardchain.featureflag/module.ts +71 -69
- package/cosmos.auth.v1beta1/module.js +4 -1
- package/cosmos.auth.v1beta1/module.ts +71 -69
- package/package.json +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +0 -832
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +0 -954
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +0 -126
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +0 -162
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +0 -407
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +0 -481
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +0 -272
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +0 -324
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +0 -96
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +0 -364
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +0 -435
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +0 -86
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +0 -114
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +0 -82
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +0 -112
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +0 -435
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +0 -512
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +0 -2204
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +0 -2687
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +0 -88
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +0 -120
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +0 -177
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +0 -217
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +0 -112
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +0 -146
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +0 -441
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +0 -522
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +0 -112
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +0 -146
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +0 -5079
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +0 -6194
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +0 -631
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +0 -748
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +0 -416
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +0 -494
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.js +0 -86
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.ts +0 -114
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.js +0 -164
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.ts +0 -205
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.js +0 -40
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.ts +0 -62
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.js +0 -100
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.ts +0 -130
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.js +0 -325
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.ts +0 -424
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.js +0 -9
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.ts +0 -21
|
@@ -1,1495 +1,1698 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
|
|
76
|
-
export {
|
|
3
|
+
import {StdFee} from "@cosmjs/amino";
|
|
4
|
+
import {SigningStargateClient, DeliverTxResponse} from "@cosmjs/stargate";
|
|
5
|
+
import {EncodeObject, GeneratedType, OfflineSigner, Registry} from "@cosmjs/proto-signing";
|
|
6
|
+
import {msgTypes} from './registry';
|
|
7
|
+
import {IgniteClient} from "../client"
|
|
8
|
+
import {MissingWalletError} from "../helpers"
|
|
9
|
+
import {Api} from "./rest";
|
|
10
|
+
import {MsgChangeAlias} from "./types/cardchain/cardchain/tx";
|
|
11
|
+
import {MsgChangeArtist} from "./types/cardchain/cardchain/tx";
|
|
12
|
+
import {MsgAddContributorToSet} from "./types/cardchain/cardchain/tx";
|
|
13
|
+
import {MsgAddArtworkToSet} from "./types/cardchain/cardchain/tx";
|
|
14
|
+
import {MsgBuyCardScheme} from "./types/cardchain/cardchain/tx";
|
|
15
|
+
import {MsgVoteCard} from "./types/cardchain/cardchain/tx";
|
|
16
|
+
import {MsgOpenBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
17
|
+
import {MsgMultiVoteCard} from "./types/cardchain/cardchain/tx";
|
|
18
|
+
import {MsgSetSetArtist} from "./types/cardchain/cardchain/tx";
|
|
19
|
+
import {MsgApointMatchReporter} from "./types/cardchain/cardchain/tx";
|
|
20
|
+
import {MsgAddArtwork} from "./types/cardchain/cardchain/tx";
|
|
21
|
+
import {MsgCreateSellOffer} from "./types/cardchain/cardchain/tx";
|
|
22
|
+
import {MsgBuyCard} from "./types/cardchain/cardchain/tx";
|
|
23
|
+
import {MsgCreateuser} from "./types/cardchain/cardchain/tx";
|
|
24
|
+
import {MsgBuyBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
25
|
+
import {MsgCreateCouncil} from "./types/cardchain/cardchain/tx";
|
|
26
|
+
import {MsgSetUserBiography} from "./types/cardchain/cardchain/tx";
|
|
27
|
+
import {MsgSetSetStoryWriter} from "./types/cardchain/cardchain/tx";
|
|
28
|
+
import {MsgDonateToCard} from "./types/cardchain/cardchain/tx";
|
|
29
|
+
import {MsgRemoveContributorFromSet} from "./types/cardchain/cardchain/tx";
|
|
30
|
+
import {MsgSetUserWebsite} from "./types/cardchain/cardchain/tx";
|
|
31
|
+
import {MsgTransferCard} from "./types/cardchain/cardchain/tx";
|
|
32
|
+
import {MsgRewokeCouncilRegistration} from "./types/cardchain/cardchain/tx";
|
|
33
|
+
import {MsgFinalizeSet} from "./types/cardchain/cardchain/tx";
|
|
34
|
+
import {MsgOpenMatch} from "./types/cardchain/cardchain/tx";
|
|
35
|
+
import {MsgSetCardRarity} from "./types/cardchain/cardchain/tx";
|
|
36
|
+
import {MsgRegisterForCouncil} from "./types/cardchain/cardchain/tx";
|
|
37
|
+
import {MsgSaveCardContent} from "./types/cardchain/cardchain/tx";
|
|
38
|
+
import {MsgRestartCouncil} from "./types/cardchain/cardchain/tx";
|
|
39
|
+
import {MsgAddStoryToSet} from "./types/cardchain/cardchain/tx";
|
|
40
|
+
import {MsgReportMatch} from "./types/cardchain/cardchain/tx";
|
|
41
|
+
import {MsgAddCardToSet} from "./types/cardchain/cardchain/tx";
|
|
42
|
+
import {MsgRevealCouncilResponse} from "./types/cardchain/cardchain/tx";
|
|
43
|
+
import {MsgSetProfileCard} from "./types/cardchain/cardchain/tx";
|
|
44
|
+
import {MsgRemoveCardFromSet} from "./types/cardchain/cardchain/tx";
|
|
45
|
+
import {MsgSetSetName} from "./types/cardchain/cardchain/tx";
|
|
46
|
+
import {MsgTransferBoosterPack} from "./types/cardchain/cardchain/tx";
|
|
47
|
+
import {MsgCreateSet} from "./types/cardchain/cardchain/tx";
|
|
48
|
+
import {MsgRemoveSellOffer} from "./types/cardchain/cardchain/tx";
|
|
49
|
+
import {MsgConfirmMatch} from "./types/cardchain/cardchain/tx";
|
|
50
|
+
import {MsgCommitCouncilResponse} from "./types/cardchain/cardchain/tx";
|
|
51
|
+
|
|
52
|
+
import {Card as typeCard} from "./types"
|
|
53
|
+
import {TimeStamp as typeTimeStamp} from "./types"
|
|
54
|
+
import {CopyrightProposal as typeCopyrightProposal} from "./types"
|
|
55
|
+
import {WrapClearResponse as typeWrapClearResponse} from "./types"
|
|
56
|
+
import {WrapHashResponse as typeWrapHashResponse} from "./types"
|
|
57
|
+
import {Image as typeImage} from "./types"
|
|
58
|
+
import {MatchPlayer as typeMatchPlayer} from "./types"
|
|
59
|
+
import {MatchReporterProposal as typeMatchReporterProposal} from "./types"
|
|
60
|
+
import {Num as typeNum} from "./types"
|
|
61
|
+
import {Params as typeParams} from "./types"
|
|
62
|
+
import {IgnoreMatches as typeIgnoreMatches} from "./types"
|
|
63
|
+
import {IgnoreSellOffers as typeIgnoreSellOffers} from "./types"
|
|
64
|
+
import {QueryQServerResponse as typeQueryQServerResponse} from "./types"
|
|
65
|
+
import {RunningAverage as typeRunningAverage} from "./types"
|
|
66
|
+
import {Set as typeSet} from "./types"
|
|
67
|
+
import {InnerRarities as typeInnerRarities} from "./types"
|
|
68
|
+
import {AddrWithQuantity as typeAddrWithQuantity} from "./types"
|
|
69
|
+
import {SetProposal as typeSetProposal} from "./types"
|
|
70
|
+
import {BoosterPack as typeBoosterPack} from "./types"
|
|
71
|
+
import {AirDrops as typeAirDrops} from "./types"
|
|
72
|
+
import {VotingResults as typeVotingResults} from "./types"
|
|
73
|
+
import {VotingResult as typeVotingResult} from "./types"
|
|
74
|
+
import {SingleVote as typeSingleVote} from "./types"
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
MsgChangeAlias,
|
|
78
|
+
MsgChangeArtist,
|
|
79
|
+
MsgAddContributorToSet,
|
|
80
|
+
MsgAddArtworkToSet,
|
|
81
|
+
MsgBuyCardScheme,
|
|
82
|
+
MsgVoteCard,
|
|
83
|
+
MsgOpenBoosterPack,
|
|
84
|
+
MsgMultiVoteCard,
|
|
85
|
+
MsgSetSetArtist,
|
|
86
|
+
MsgApointMatchReporter,
|
|
87
|
+
MsgAddArtwork,
|
|
88
|
+
MsgCreateSellOffer,
|
|
89
|
+
MsgBuyCard,
|
|
90
|
+
MsgCreateuser,
|
|
91
|
+
MsgBuyBoosterPack,
|
|
92
|
+
MsgCreateCouncil,
|
|
93
|
+
MsgSetUserBiography,
|
|
94
|
+
MsgSetSetStoryWriter,
|
|
95
|
+
MsgDonateToCard,
|
|
96
|
+
MsgRemoveContributorFromSet,
|
|
97
|
+
MsgSetUserWebsite,
|
|
98
|
+
MsgTransferCard,
|
|
99
|
+
MsgRewokeCouncilRegistration,
|
|
100
|
+
MsgFinalizeSet,
|
|
101
|
+
MsgOpenMatch,
|
|
102
|
+
MsgSetCardRarity,
|
|
103
|
+
MsgRegisterForCouncil,
|
|
104
|
+
MsgSaveCardContent,
|
|
105
|
+
MsgRestartCouncil,
|
|
106
|
+
MsgAddStoryToSet,
|
|
107
|
+
MsgReportMatch,
|
|
108
|
+
MsgAddCardToSet,
|
|
109
|
+
MsgRevealCouncilResponse,
|
|
110
|
+
MsgSetProfileCard,
|
|
111
|
+
MsgRemoveCardFromSet,
|
|
112
|
+
MsgSetSetName,
|
|
113
|
+
MsgTransferBoosterPack,
|
|
114
|
+
MsgCreateSet,
|
|
115
|
+
MsgRemoveSellOffer,
|
|
116
|
+
MsgConfirmMatch,
|
|
117
|
+
MsgCommitCouncilResponse
|
|
118
|
+
};
|
|
77
119
|
|
|
78
|
-
type
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
120
|
+
type sendMsgChangeAliasParams = {
|
|
121
|
+
value: MsgChangeAlias,
|
|
122
|
+
fee?: StdFee,
|
|
123
|
+
memo?: string
|
|
82
124
|
};
|
|
83
125
|
|
|
84
|
-
type
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
126
|
+
type sendMsgChangeArtistParams = {
|
|
127
|
+
value: MsgChangeArtist,
|
|
128
|
+
fee?: StdFee,
|
|
129
|
+
memo?: string
|
|
88
130
|
};
|
|
89
131
|
|
|
90
|
-
type
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
132
|
+
type sendMsgAddContributorToSetParams = {
|
|
133
|
+
value: MsgAddContributorToSet,
|
|
134
|
+
fee?: StdFee,
|
|
135
|
+
memo?: string
|
|
94
136
|
};
|
|
95
137
|
|
|
96
|
-
type
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
138
|
+
type sendMsgAddArtworkToSetParams = {
|
|
139
|
+
value: MsgAddArtworkToSet,
|
|
140
|
+
fee?: StdFee,
|
|
141
|
+
memo?: string
|
|
100
142
|
};
|
|
101
143
|
|
|
102
|
-
type
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
144
|
+
type sendMsgBuyCardSchemeParams = {
|
|
145
|
+
value: MsgBuyCardScheme,
|
|
146
|
+
fee?: StdFee,
|
|
147
|
+
memo?: string
|
|
106
148
|
};
|
|
107
149
|
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
150
|
+
type sendMsgVoteCardParams = {
|
|
151
|
+
value: MsgVoteCard,
|
|
152
|
+
fee?: StdFee,
|
|
153
|
+
memo?: string
|
|
112
154
|
};
|
|
113
155
|
|
|
114
|
-
type
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
156
|
+
type sendMsgOpenBoosterPackParams = {
|
|
157
|
+
value: MsgOpenBoosterPack,
|
|
158
|
+
fee?: StdFee,
|
|
159
|
+
memo?: string
|
|
118
160
|
};
|
|
119
161
|
|
|
120
|
-
type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
162
|
+
type sendMsgMultiVoteCardParams = {
|
|
163
|
+
value: MsgMultiVoteCard,
|
|
164
|
+
fee?: StdFee,
|
|
165
|
+
memo?: string
|
|
124
166
|
};
|
|
125
167
|
|
|
126
|
-
type
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
168
|
+
type sendMsgSetSetArtistParams = {
|
|
169
|
+
value: MsgSetSetArtist,
|
|
170
|
+
fee?: StdFee,
|
|
171
|
+
memo?: string
|
|
130
172
|
};
|
|
131
173
|
|
|
132
|
-
type
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
174
|
+
type sendMsgApointMatchReporterParams = {
|
|
175
|
+
value: MsgApointMatchReporter,
|
|
176
|
+
fee?: StdFee,
|
|
177
|
+
memo?: string
|
|
136
178
|
};
|
|
137
179
|
|
|
138
180
|
type sendMsgAddArtworkParams = {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
181
|
+
value: MsgAddArtwork,
|
|
182
|
+
fee?: StdFee,
|
|
183
|
+
memo?: string
|
|
142
184
|
};
|
|
143
185
|
|
|
144
|
-
type
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
186
|
+
type sendMsgCreateSellOfferParams = {
|
|
187
|
+
value: MsgCreateSellOffer,
|
|
188
|
+
fee?: StdFee,
|
|
189
|
+
memo?: string
|
|
148
190
|
};
|
|
149
191
|
|
|
150
|
-
type
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
192
|
+
type sendMsgBuyCardParams = {
|
|
193
|
+
value: MsgBuyCard,
|
|
194
|
+
fee?: StdFee,
|
|
195
|
+
memo?: string
|
|
154
196
|
};
|
|
155
197
|
|
|
156
|
-
type
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
198
|
+
type sendMsgCreateuserParams = {
|
|
199
|
+
value: MsgCreateuser,
|
|
200
|
+
fee?: StdFee,
|
|
201
|
+
memo?: string
|
|
160
202
|
};
|
|
161
203
|
|
|
162
|
-
type
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
204
|
+
type sendMsgBuyBoosterPackParams = {
|
|
205
|
+
value: MsgBuyBoosterPack,
|
|
206
|
+
fee?: StdFee,
|
|
207
|
+
memo?: string
|
|
166
208
|
};
|
|
167
209
|
|
|
168
|
-
type
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
210
|
+
type sendMsgCreateCouncilParams = {
|
|
211
|
+
value: MsgCreateCouncil,
|
|
212
|
+
fee?: StdFee,
|
|
213
|
+
memo?: string
|
|
172
214
|
};
|
|
173
215
|
|
|
174
|
-
type
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
216
|
+
type sendMsgSetUserBiographyParams = {
|
|
217
|
+
value: MsgSetUserBiography,
|
|
218
|
+
fee?: StdFee,
|
|
219
|
+
memo?: string
|
|
178
220
|
};
|
|
179
221
|
|
|
180
|
-
type
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
222
|
+
type sendMsgSetSetStoryWriterParams = {
|
|
223
|
+
value: MsgSetSetStoryWriter,
|
|
224
|
+
fee?: StdFee,
|
|
225
|
+
memo?: string
|
|
184
226
|
};
|
|
185
227
|
|
|
186
|
-
type
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
228
|
+
type sendMsgDonateToCardParams = {
|
|
229
|
+
value: MsgDonateToCard,
|
|
230
|
+
fee?: StdFee,
|
|
231
|
+
memo?: string
|
|
190
232
|
};
|
|
191
233
|
|
|
192
|
-
type
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
234
|
+
type sendMsgRemoveContributorFromSetParams = {
|
|
235
|
+
value: MsgRemoveContributorFromSet,
|
|
236
|
+
fee?: StdFee,
|
|
237
|
+
memo?: string
|
|
196
238
|
};
|
|
197
239
|
|
|
198
|
-
type
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
240
|
+
type sendMsgSetUserWebsiteParams = {
|
|
241
|
+
value: MsgSetUserWebsite,
|
|
242
|
+
fee?: StdFee,
|
|
243
|
+
memo?: string
|
|
202
244
|
};
|
|
203
245
|
|
|
204
|
-
type
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
246
|
+
type sendMsgTransferCardParams = {
|
|
247
|
+
value: MsgTransferCard,
|
|
248
|
+
fee?: StdFee,
|
|
249
|
+
memo?: string
|
|
208
250
|
};
|
|
209
251
|
|
|
210
|
-
type
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
252
|
+
type sendMsgRewokeCouncilRegistrationParams = {
|
|
253
|
+
value: MsgRewokeCouncilRegistration,
|
|
254
|
+
fee?: StdFee,
|
|
255
|
+
memo?: string
|
|
214
256
|
};
|
|
215
257
|
|
|
216
|
-
type
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
258
|
+
type sendMsgFinalizeSetParams = {
|
|
259
|
+
value: MsgFinalizeSet,
|
|
260
|
+
fee?: StdFee,
|
|
261
|
+
memo?: string
|
|
220
262
|
};
|
|
221
263
|
|
|
222
|
-
type
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
264
|
+
type sendMsgOpenMatchParams = {
|
|
265
|
+
value: MsgOpenMatch,
|
|
266
|
+
fee?: StdFee,
|
|
267
|
+
memo?: string
|
|
226
268
|
};
|
|
227
269
|
|
|
228
|
-
type
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
270
|
+
type sendMsgSetCardRarityParams = {
|
|
271
|
+
value: MsgSetCardRarity,
|
|
272
|
+
fee?: StdFee,
|
|
273
|
+
memo?: string
|
|
232
274
|
};
|
|
233
275
|
|
|
234
|
-
type
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
276
|
+
type sendMsgRegisterForCouncilParams = {
|
|
277
|
+
value: MsgRegisterForCouncil,
|
|
278
|
+
fee?: StdFee,
|
|
279
|
+
memo?: string
|
|
238
280
|
};
|
|
239
281
|
|
|
240
|
-
type
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
282
|
+
type sendMsgSaveCardContentParams = {
|
|
283
|
+
value: MsgSaveCardContent,
|
|
284
|
+
fee?: StdFee,
|
|
285
|
+
memo?: string
|
|
244
286
|
};
|
|
245
287
|
|
|
246
|
-
type
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
288
|
+
type sendMsgRestartCouncilParams = {
|
|
289
|
+
value: MsgRestartCouncil,
|
|
290
|
+
fee?: StdFee,
|
|
291
|
+
memo?: string
|
|
250
292
|
};
|
|
251
293
|
|
|
252
|
-
type
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
294
|
+
type sendMsgAddStoryToSetParams = {
|
|
295
|
+
value: MsgAddStoryToSet,
|
|
296
|
+
fee?: StdFee,
|
|
297
|
+
memo?: string
|
|
256
298
|
};
|
|
257
299
|
|
|
258
|
-
type
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
300
|
+
type sendMsgReportMatchParams = {
|
|
301
|
+
value: MsgReportMatch,
|
|
302
|
+
fee?: StdFee,
|
|
303
|
+
memo?: string
|
|
262
304
|
};
|
|
263
305
|
|
|
264
|
-
type
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
306
|
+
type sendMsgAddCardToSetParams = {
|
|
307
|
+
value: MsgAddCardToSet,
|
|
308
|
+
fee?: StdFee,
|
|
309
|
+
memo?: string
|
|
268
310
|
};
|
|
269
311
|
|
|
270
|
-
type
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
312
|
+
type sendMsgRevealCouncilResponseParams = {
|
|
313
|
+
value: MsgRevealCouncilResponse,
|
|
314
|
+
fee?: StdFee,
|
|
315
|
+
memo?: string
|
|
274
316
|
};
|
|
275
317
|
|
|
276
|
-
type
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
318
|
+
type sendMsgSetProfileCardParams = {
|
|
319
|
+
value: MsgSetProfileCard,
|
|
320
|
+
fee?: StdFee,
|
|
321
|
+
memo?: string
|
|
280
322
|
};
|
|
281
323
|
|
|
282
|
-
type
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
324
|
+
type sendMsgRemoveCardFromSetParams = {
|
|
325
|
+
value: MsgRemoveCardFromSet,
|
|
326
|
+
fee?: StdFee,
|
|
327
|
+
memo?: string
|
|
286
328
|
};
|
|
287
329
|
|
|
288
|
-
type
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
330
|
+
type sendMsgSetSetNameParams = {
|
|
331
|
+
value: MsgSetSetName,
|
|
332
|
+
fee?: StdFee,
|
|
333
|
+
memo?: string
|
|
292
334
|
};
|
|
293
335
|
|
|
294
|
-
type
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
336
|
+
type sendMsgTransferBoosterPackParams = {
|
|
337
|
+
value: MsgTransferBoosterPack,
|
|
338
|
+
fee?: StdFee,
|
|
339
|
+
memo?: string
|
|
298
340
|
};
|
|
299
341
|
|
|
300
|
-
type
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
342
|
+
type sendMsgCreateSetParams = {
|
|
343
|
+
value: MsgCreateSet,
|
|
344
|
+
fee?: StdFee,
|
|
345
|
+
memo?: string
|
|
304
346
|
};
|
|
305
347
|
|
|
306
|
-
type
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
348
|
+
type sendMsgRemoveSellOfferParams = {
|
|
349
|
+
value: MsgRemoveSellOffer,
|
|
350
|
+
fee?: StdFee,
|
|
351
|
+
memo?: string
|
|
310
352
|
};
|
|
311
353
|
|
|
312
|
-
type
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
354
|
+
type sendMsgConfirmMatchParams = {
|
|
355
|
+
value: MsgConfirmMatch,
|
|
356
|
+
fee?: StdFee,
|
|
357
|
+
memo?: string
|
|
316
358
|
};
|
|
317
359
|
|
|
318
|
-
type
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
360
|
+
type sendMsgCommitCouncilResponseParams = {
|
|
361
|
+
value: MsgCommitCouncilResponse,
|
|
362
|
+
fee?: StdFee,
|
|
363
|
+
memo?: string
|
|
322
364
|
};
|
|
323
365
|
|
|
324
366
|
|
|
325
|
-
type
|
|
326
|
-
|
|
367
|
+
type msgChangeAliasParams = {
|
|
368
|
+
value: MsgChangeAlias,
|
|
327
369
|
};
|
|
328
370
|
|
|
329
|
-
type
|
|
330
|
-
|
|
371
|
+
type msgChangeArtistParams = {
|
|
372
|
+
value: MsgChangeArtist,
|
|
331
373
|
};
|
|
332
374
|
|
|
333
|
-
type
|
|
334
|
-
|
|
375
|
+
type msgAddContributorToSetParams = {
|
|
376
|
+
value: MsgAddContributorToSet,
|
|
335
377
|
};
|
|
336
378
|
|
|
337
|
-
type
|
|
338
|
-
|
|
379
|
+
type msgAddArtworkToSetParams = {
|
|
380
|
+
value: MsgAddArtworkToSet,
|
|
339
381
|
};
|
|
340
382
|
|
|
341
|
-
type
|
|
342
|
-
|
|
383
|
+
type msgBuyCardSchemeParams = {
|
|
384
|
+
value: MsgBuyCardScheme,
|
|
343
385
|
};
|
|
344
386
|
|
|
345
|
-
type
|
|
346
|
-
|
|
387
|
+
type msgVoteCardParams = {
|
|
388
|
+
value: MsgVoteCard,
|
|
347
389
|
};
|
|
348
390
|
|
|
349
|
-
type
|
|
350
|
-
|
|
391
|
+
type msgOpenBoosterPackParams = {
|
|
392
|
+
value: MsgOpenBoosterPack,
|
|
351
393
|
};
|
|
352
394
|
|
|
353
|
-
type
|
|
354
|
-
|
|
395
|
+
type msgMultiVoteCardParams = {
|
|
396
|
+
value: MsgMultiVoteCard,
|
|
355
397
|
};
|
|
356
398
|
|
|
357
|
-
type
|
|
358
|
-
|
|
399
|
+
type msgSetSetArtistParams = {
|
|
400
|
+
value: MsgSetSetArtist,
|
|
359
401
|
};
|
|
360
402
|
|
|
361
|
-
type
|
|
362
|
-
|
|
403
|
+
type msgApointMatchReporterParams = {
|
|
404
|
+
value: MsgApointMatchReporter,
|
|
363
405
|
};
|
|
364
406
|
|
|
365
407
|
type msgAddArtworkParams = {
|
|
366
|
-
|
|
408
|
+
value: MsgAddArtwork,
|
|
367
409
|
};
|
|
368
410
|
|
|
369
|
-
type
|
|
370
|
-
|
|
411
|
+
type msgCreateSellOfferParams = {
|
|
412
|
+
value: MsgCreateSellOffer,
|
|
371
413
|
};
|
|
372
414
|
|
|
373
|
-
type
|
|
374
|
-
|
|
415
|
+
type msgBuyCardParams = {
|
|
416
|
+
value: MsgBuyCard,
|
|
375
417
|
};
|
|
376
418
|
|
|
377
|
-
type
|
|
378
|
-
|
|
419
|
+
type msgCreateuserParams = {
|
|
420
|
+
value: MsgCreateuser,
|
|
379
421
|
};
|
|
380
422
|
|
|
381
|
-
type
|
|
382
|
-
|
|
423
|
+
type msgBuyBoosterPackParams = {
|
|
424
|
+
value: MsgBuyBoosterPack,
|
|
383
425
|
};
|
|
384
426
|
|
|
385
|
-
type
|
|
386
|
-
|
|
427
|
+
type msgCreateCouncilParams = {
|
|
428
|
+
value: MsgCreateCouncil,
|
|
387
429
|
};
|
|
388
430
|
|
|
389
|
-
type
|
|
390
|
-
|
|
431
|
+
type msgSetUserBiographyParams = {
|
|
432
|
+
value: MsgSetUserBiography,
|
|
391
433
|
};
|
|
392
434
|
|
|
393
|
-
type
|
|
394
|
-
|
|
435
|
+
type msgSetSetStoryWriterParams = {
|
|
436
|
+
value: MsgSetSetStoryWriter,
|
|
395
437
|
};
|
|
396
438
|
|
|
397
|
-
type
|
|
398
|
-
|
|
439
|
+
type msgDonateToCardParams = {
|
|
440
|
+
value: MsgDonateToCard,
|
|
399
441
|
};
|
|
400
442
|
|
|
401
|
-
type
|
|
402
|
-
|
|
443
|
+
type msgRemoveContributorFromSetParams = {
|
|
444
|
+
value: MsgRemoveContributorFromSet,
|
|
403
445
|
};
|
|
404
446
|
|
|
405
|
-
type
|
|
406
|
-
|
|
447
|
+
type msgSetUserWebsiteParams = {
|
|
448
|
+
value: MsgSetUserWebsite,
|
|
407
449
|
};
|
|
408
450
|
|
|
409
|
-
type
|
|
410
|
-
|
|
451
|
+
type msgTransferCardParams = {
|
|
452
|
+
value: MsgTransferCard,
|
|
411
453
|
};
|
|
412
454
|
|
|
413
|
-
type
|
|
414
|
-
|
|
455
|
+
type msgRewokeCouncilRegistrationParams = {
|
|
456
|
+
value: MsgRewokeCouncilRegistration,
|
|
415
457
|
};
|
|
416
458
|
|
|
417
|
-
type
|
|
418
|
-
|
|
459
|
+
type msgFinalizeSetParams = {
|
|
460
|
+
value: MsgFinalizeSet,
|
|
419
461
|
};
|
|
420
462
|
|
|
421
|
-
type
|
|
422
|
-
|
|
463
|
+
type msgOpenMatchParams = {
|
|
464
|
+
value: MsgOpenMatch,
|
|
423
465
|
};
|
|
424
466
|
|
|
425
|
-
type
|
|
426
|
-
|
|
467
|
+
type msgSetCardRarityParams = {
|
|
468
|
+
value: MsgSetCardRarity,
|
|
427
469
|
};
|
|
428
470
|
|
|
429
|
-
type
|
|
430
|
-
|
|
471
|
+
type msgRegisterForCouncilParams = {
|
|
472
|
+
value: MsgRegisterForCouncil,
|
|
431
473
|
};
|
|
432
474
|
|
|
433
|
-
type
|
|
434
|
-
|
|
475
|
+
type msgSaveCardContentParams = {
|
|
476
|
+
value: MsgSaveCardContent,
|
|
435
477
|
};
|
|
436
478
|
|
|
437
|
-
type
|
|
438
|
-
|
|
479
|
+
type msgRestartCouncilParams = {
|
|
480
|
+
value: MsgRestartCouncil,
|
|
439
481
|
};
|
|
440
482
|
|
|
441
|
-
type
|
|
442
|
-
|
|
483
|
+
type msgAddStoryToSetParams = {
|
|
484
|
+
value: MsgAddStoryToSet,
|
|
443
485
|
};
|
|
444
486
|
|
|
445
|
-
type
|
|
446
|
-
|
|
487
|
+
type msgReportMatchParams = {
|
|
488
|
+
value: MsgReportMatch,
|
|
447
489
|
};
|
|
448
490
|
|
|
449
|
-
type
|
|
450
|
-
|
|
491
|
+
type msgAddCardToSetParams = {
|
|
492
|
+
value: MsgAddCardToSet,
|
|
451
493
|
};
|
|
452
494
|
|
|
453
|
-
type
|
|
454
|
-
|
|
495
|
+
type msgRevealCouncilResponseParams = {
|
|
496
|
+
value: MsgRevealCouncilResponse,
|
|
455
497
|
};
|
|
456
498
|
|
|
457
|
-
type
|
|
458
|
-
|
|
499
|
+
type msgSetProfileCardParams = {
|
|
500
|
+
value: MsgSetProfileCard,
|
|
459
501
|
};
|
|
460
502
|
|
|
461
|
-
type
|
|
462
|
-
|
|
503
|
+
type msgRemoveCardFromSetParams = {
|
|
504
|
+
value: MsgRemoveCardFromSet,
|
|
463
505
|
};
|
|
464
506
|
|
|
465
|
-
type
|
|
466
|
-
|
|
507
|
+
type msgSetSetNameParams = {
|
|
508
|
+
value: MsgSetSetName,
|
|
467
509
|
};
|
|
468
510
|
|
|
469
|
-
type
|
|
470
|
-
|
|
511
|
+
type msgTransferBoosterPackParams = {
|
|
512
|
+
value: MsgTransferBoosterPack,
|
|
471
513
|
};
|
|
472
514
|
|
|
473
|
-
type
|
|
474
|
-
|
|
515
|
+
type msgCreateSetParams = {
|
|
516
|
+
value: MsgCreateSet,
|
|
475
517
|
};
|
|
476
518
|
|
|
477
|
-
type
|
|
478
|
-
|
|
519
|
+
type msgRemoveSellOfferParams = {
|
|
520
|
+
value: MsgRemoveSellOffer,
|
|
479
521
|
};
|
|
480
522
|
|
|
481
|
-
type
|
|
482
|
-
|
|
523
|
+
type msgConfirmMatchParams = {
|
|
524
|
+
value: MsgConfirmMatch,
|
|
483
525
|
};
|
|
484
526
|
|
|
485
|
-
type
|
|
486
|
-
|
|
527
|
+
type msgCommitCouncilResponseParams = {
|
|
528
|
+
value: MsgCommitCouncilResponse,
|
|
487
529
|
};
|
|
488
530
|
|
|
489
531
|
|
|
490
532
|
export const registry = new Registry(msgTypes);
|
|
491
533
|
|
|
492
534
|
type Field = {
|
|
493
|
-
|
|
494
|
-
|
|
535
|
+
name: string;
|
|
536
|
+
type: unknown;
|
|
495
537
|
}
|
|
538
|
+
|
|
496
539
|
function getStructure(template) {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
540
|
+
const structure: { fields: Field[] } = {fields: []}
|
|
541
|
+
for (let [key, value] of Object.entries(template)) {
|
|
542
|
+
let field = {name: key, type: typeof value}
|
|
543
|
+
structure.fields.push(field)
|
|
544
|
+
}
|
|
545
|
+
return structure
|
|
503
546
|
}
|
|
547
|
+
|
|
504
548
|
const defaultFee = {
|
|
505
|
-
|
|
506
|
-
|
|
549
|
+
amount: [],
|
|
550
|
+
gas: "200000",
|
|
507
551
|
};
|
|
508
552
|
|
|
509
553
|
interface TxClientOptions {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
554
|
+
addr: string
|
|
555
|
+
prefix: string
|
|
556
|
+
signer?: OfflineSigner
|
|
513
557
|
}
|
|
514
558
|
|
|
515
|
-
export const txClient = ({
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
559
|
+
export const txClient = ({signer, prefix, addr}: TxClientOptions = {
|
|
560
|
+
addr: "http://localhost:26657",
|
|
561
|
+
prefix: "cosmos"
|
|
562
|
+
}) => {
|
|
563
|
+
|
|
564
|
+
return {
|
|
565
|
+
|
|
566
|
+
async sendMsgChangeAlias({value, fee, memo}: sendMsgChangeAliasParams): Promise<DeliverTxResponse> {
|
|
567
|
+
if (!signer) {
|
|
568
|
+
throw new Error('TxClient:sendMsgChangeAlias: Unable to sign Tx. Signer is not present.')
|
|
569
|
+
}
|
|
570
|
+
try {
|
|
571
|
+
const {address} = (await signer.getAccounts())[0];
|
|
572
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
573
|
+
let msg = this.msgChangeAlias({value: MsgChangeAlias.fromPartial(value)})
|
|
574
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
575
|
+
} catch (e: any) {
|
|
576
|
+
throw new Error('TxClient:sendMsgChangeAlias: Could not broadcast Tx: ' + e.message)
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
|
|
580
|
+
async sendMsgChangeArtist({value, fee, memo}: sendMsgChangeArtistParams): Promise<DeliverTxResponse> {
|
|
581
|
+
if (!signer) {
|
|
582
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.')
|
|
583
|
+
}
|
|
584
|
+
try {
|
|
585
|
+
const {address} = (await signer.getAccounts())[0];
|
|
586
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
587
|
+
let msg = this.msgChangeArtist({value: MsgChangeArtist.fromPartial(value)})
|
|
588
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
589
|
+
} catch (e: any) {
|
|
590
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message)
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
async sendMsgAddContributorToSet({
|
|
595
|
+
value,
|
|
596
|
+
fee,
|
|
597
|
+
memo
|
|
598
|
+
}: sendMsgAddContributorToSetParams): Promise<DeliverTxResponse> {
|
|
599
|
+
if (!signer) {
|
|
600
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Unable to sign Tx. Signer is not present.')
|
|
601
|
+
}
|
|
602
|
+
try {
|
|
603
|
+
const {address} = (await signer.getAccounts())[0];
|
|
604
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
605
|
+
let msg = this.msgAddContributorToSet({value: MsgAddContributorToSet.fromPartial(value)})
|
|
606
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
607
|
+
} catch (e: any) {
|
|
608
|
+
throw new Error('TxClient:sendMsgAddContributorToSet: Could not broadcast Tx: ' + e.message)
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
|
|
612
|
+
async sendMsgAddArtworkToSet({value, fee, memo}: sendMsgAddArtworkToSetParams): Promise<DeliverTxResponse> {
|
|
613
|
+
if (!signer) {
|
|
614
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Unable to sign Tx. Signer is not present.')
|
|
615
|
+
}
|
|
616
|
+
try {
|
|
617
|
+
const {address} = (await signer.getAccounts())[0];
|
|
618
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
619
|
+
let msg = this.msgAddArtworkToSet({value: MsgAddArtworkToSet.fromPartial(value)})
|
|
620
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
621
|
+
} catch (e: any) {
|
|
622
|
+
throw new Error('TxClient:sendMsgAddArtworkToSet: Could not broadcast Tx: ' + e.message)
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
|
|
626
|
+
async sendMsgBuyCardScheme({value, fee, memo}: sendMsgBuyCardSchemeParams): Promise<DeliverTxResponse> {
|
|
627
|
+
if (!signer) {
|
|
628
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.')
|
|
629
|
+
}
|
|
630
|
+
try {
|
|
631
|
+
const {address} = (await signer.getAccounts())[0];
|
|
632
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
633
|
+
let msg = this.msgBuyCardScheme({value: MsgBuyCardScheme.fromPartial(value)})
|
|
634
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
635
|
+
} catch (e: any) {
|
|
636
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message)
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
|
|
640
|
+
async sendMsgVoteCard({value, fee, memo}: sendMsgVoteCardParams): Promise<DeliverTxResponse> {
|
|
641
|
+
if (!signer) {
|
|
642
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.')
|
|
643
|
+
}
|
|
644
|
+
try {
|
|
645
|
+
const {address} = (await signer.getAccounts())[0];
|
|
646
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
647
|
+
let msg = this.msgVoteCard({value: MsgVoteCard.fromPartial(value)})
|
|
648
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
649
|
+
} catch (e: any) {
|
|
650
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message)
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
|
|
654
|
+
async sendMsgOpenBoosterPack({value, fee, memo}: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
655
|
+
if (!signer) {
|
|
656
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
657
|
+
}
|
|
658
|
+
try {
|
|
659
|
+
const {address} = (await signer.getAccounts())[0];
|
|
660
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
661
|
+
let msg = this.msgOpenBoosterPack({value: MsgOpenBoosterPack.fromPartial(value)})
|
|
662
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
663
|
+
} catch (e: any) {
|
|
664
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message)
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
|
|
668
|
+
async sendMsgMultiVoteCard({value, fee, memo}: sendMsgMultiVoteCardParams): Promise<DeliverTxResponse> {
|
|
669
|
+
if (!signer) {
|
|
670
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.')
|
|
671
|
+
}
|
|
672
|
+
try {
|
|
673
|
+
const {address} = (await signer.getAccounts())[0];
|
|
674
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
675
|
+
let msg = this.msgMultiVoteCard({value: MsgMultiVoteCard.fromPartial(value)})
|
|
676
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
677
|
+
} catch (e: any) {
|
|
678
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message)
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
|
|
682
|
+
async sendMsgSetSetArtist({value, fee, memo}: sendMsgSetSetArtistParams): Promise<DeliverTxResponse> {
|
|
683
|
+
if (!signer) {
|
|
684
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Unable to sign Tx. Signer is not present.')
|
|
685
|
+
}
|
|
686
|
+
try {
|
|
687
|
+
const {address} = (await signer.getAccounts())[0];
|
|
688
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
689
|
+
let msg = this.msgSetSetArtist({value: MsgSetSetArtist.fromPartial(value)})
|
|
690
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
691
|
+
} catch (e: any) {
|
|
692
|
+
throw new Error('TxClient:sendMsgSetSetArtist: Could not broadcast Tx: ' + e.message)
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
|
|
696
|
+
async sendMsgApointMatchReporter({
|
|
697
|
+
value,
|
|
698
|
+
fee,
|
|
699
|
+
memo
|
|
700
|
+
}: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
701
|
+
if (!signer) {
|
|
702
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.')
|
|
703
|
+
}
|
|
704
|
+
try {
|
|
705
|
+
const {address} = (await signer.getAccounts())[0];
|
|
706
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
707
|
+
let msg = this.msgApointMatchReporter({value: MsgApointMatchReporter.fromPartial(value)})
|
|
708
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
709
|
+
} catch (e: any) {
|
|
710
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message)
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
|
|
714
|
+
async sendMsgAddArtwork({value, fee, memo}: sendMsgAddArtworkParams): Promise<DeliverTxResponse> {
|
|
715
|
+
if (!signer) {
|
|
716
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.')
|
|
717
|
+
}
|
|
718
|
+
try {
|
|
719
|
+
const {address} = (await signer.getAccounts())[0];
|
|
720
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
721
|
+
let msg = this.msgAddArtwork({value: MsgAddArtwork.fromPartial(value)})
|
|
722
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
723
|
+
} catch (e: any) {
|
|
724
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message)
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
|
|
728
|
+
async sendMsgCreateSellOffer({value, fee, memo}: sendMsgCreateSellOfferParams): Promise<DeliverTxResponse> {
|
|
729
|
+
if (!signer) {
|
|
730
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.')
|
|
731
|
+
}
|
|
732
|
+
try {
|
|
733
|
+
const {address} = (await signer.getAccounts())[0];
|
|
734
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
735
|
+
let msg = this.msgCreateSellOffer({value: MsgCreateSellOffer.fromPartial(value)})
|
|
736
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
737
|
+
} catch (e: any) {
|
|
738
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message)
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
|
|
742
|
+
async sendMsgBuyCard({value, fee, memo}: sendMsgBuyCardParams): Promise<DeliverTxResponse> {
|
|
743
|
+
if (!signer) {
|
|
744
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.')
|
|
745
|
+
}
|
|
746
|
+
try {
|
|
747
|
+
const {address} = (await signer.getAccounts())[0];
|
|
748
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
749
|
+
let msg = this.msgBuyCard({value: MsgBuyCard.fromPartial(value)})
|
|
750
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
751
|
+
} catch (e: any) {
|
|
752
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message)
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
async sendMsgCreateuser({value, fee, memo}: sendMsgCreateuserParams): Promise<DeliverTxResponse> {
|
|
757
|
+
if (!signer) {
|
|
758
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.')
|
|
759
|
+
}
|
|
760
|
+
try {
|
|
761
|
+
const {address} = (await signer.getAccounts())[0];
|
|
762
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
763
|
+
let msg = this.msgCreateuser({value: MsgCreateuser.fromPartial(value)})
|
|
764
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
765
|
+
} catch (e: any) {
|
|
766
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message)
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
|
|
770
|
+
async sendMsgBuyBoosterPack({value, fee, memo}: sendMsgBuyBoosterPackParams): Promise<DeliverTxResponse> {
|
|
771
|
+
if (!signer) {
|
|
772
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
773
|
+
}
|
|
774
|
+
try {
|
|
775
|
+
const {address} = (await signer.getAccounts())[0];
|
|
776
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
777
|
+
let msg = this.msgBuyBoosterPack({value: MsgBuyBoosterPack.fromPartial(value)})
|
|
778
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
779
|
+
} catch (e: any) {
|
|
780
|
+
throw new Error('TxClient:sendMsgBuyBoosterPack: Could not broadcast Tx: ' + e.message)
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
|
|
784
|
+
async sendMsgCreateCouncil({value, fee, memo}: sendMsgCreateCouncilParams): Promise<DeliverTxResponse> {
|
|
785
|
+
if (!signer) {
|
|
786
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.')
|
|
787
|
+
}
|
|
788
|
+
try {
|
|
789
|
+
const {address} = (await signer.getAccounts())[0];
|
|
790
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
791
|
+
let msg = this.msgCreateCouncil({value: MsgCreateCouncil.fromPartial(value)})
|
|
792
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
793
|
+
} catch (e: any) {
|
|
794
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message)
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
|
|
798
|
+
async sendMsgSetUserBiography({value, fee, memo}: sendMsgSetUserBiographyParams): Promise<DeliverTxResponse> {
|
|
799
|
+
if (!signer) {
|
|
800
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.')
|
|
801
|
+
}
|
|
802
|
+
try {
|
|
803
|
+
const {address} = (await signer.getAccounts())[0];
|
|
804
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
805
|
+
let msg = this.msgSetUserBiography({value: MsgSetUserBiography.fromPartial(value)})
|
|
806
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
807
|
+
} catch (e: any) {
|
|
808
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message)
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
|
|
812
|
+
async sendMsgSetSetStoryWriter({value, fee, memo}: sendMsgSetSetStoryWriterParams): Promise<DeliverTxResponse> {
|
|
813
|
+
if (!signer) {
|
|
814
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Unable to sign Tx. Signer is not present.')
|
|
815
|
+
}
|
|
816
|
+
try {
|
|
817
|
+
const {address} = (await signer.getAccounts())[0];
|
|
818
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
819
|
+
let msg = this.msgSetSetStoryWriter({value: MsgSetSetStoryWriter.fromPartial(value)})
|
|
820
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
821
|
+
} catch (e: any) {
|
|
822
|
+
throw new Error('TxClient:sendMsgSetSetStoryWriter: Could not broadcast Tx: ' + e.message)
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
|
|
826
|
+
async sendMsgDonateToCard({value, fee, memo}: sendMsgDonateToCardParams): Promise<DeliverTxResponse> {
|
|
827
|
+
if (!signer) {
|
|
828
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.')
|
|
829
|
+
}
|
|
830
|
+
try {
|
|
831
|
+
const {address} = (await signer.getAccounts())[0];
|
|
832
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
833
|
+
let msg = this.msgDonateToCard({value: MsgDonateToCard.fromPartial(value)})
|
|
834
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
835
|
+
} catch (e: any) {
|
|
836
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message)
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
|
|
840
|
+
async sendMsgRemoveContributorFromSet({
|
|
841
|
+
value,
|
|
842
|
+
fee,
|
|
843
|
+
memo
|
|
844
|
+
}: sendMsgRemoveContributorFromSetParams): Promise<DeliverTxResponse> {
|
|
845
|
+
if (!signer) {
|
|
846
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Unable to sign Tx. Signer is not present.')
|
|
847
|
+
}
|
|
848
|
+
try {
|
|
849
|
+
const {address} = (await signer.getAccounts())[0];
|
|
850
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
851
|
+
let msg = this.msgRemoveContributorFromSet({value: MsgRemoveContributorFromSet.fromPartial(value)})
|
|
852
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
853
|
+
} catch (e: any) {
|
|
854
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromSet: Could not broadcast Tx: ' + e.message)
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
|
|
858
|
+
async sendMsgSetUserWebsite({value, fee, memo}: sendMsgSetUserWebsiteParams): Promise<DeliverTxResponse> {
|
|
859
|
+
if (!signer) {
|
|
860
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.')
|
|
861
|
+
}
|
|
862
|
+
try {
|
|
863
|
+
const {address} = (await signer.getAccounts())[0];
|
|
864
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
865
|
+
let msg = this.msgSetUserWebsite({value: MsgSetUserWebsite.fromPartial(value)})
|
|
866
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
867
|
+
} catch (e: any) {
|
|
868
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message)
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
|
|
872
|
+
async sendMsgTransferCard({value, fee, memo}: sendMsgTransferCardParams): Promise<DeliverTxResponse> {
|
|
873
|
+
if (!signer) {
|
|
874
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
875
|
+
}
|
|
876
|
+
try {
|
|
877
|
+
const {address} = (await signer.getAccounts())[0];
|
|
878
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
879
|
+
let msg = this.msgTransferCard({value: MsgTransferCard.fromPartial(value)})
|
|
880
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
881
|
+
} catch (e: any) {
|
|
882
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message)
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
|
|
886
|
+
async sendMsgRewokeCouncilRegistration({
|
|
887
|
+
value,
|
|
888
|
+
fee,
|
|
889
|
+
memo
|
|
890
|
+
}: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
891
|
+
if (!signer) {
|
|
892
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.')
|
|
893
|
+
}
|
|
894
|
+
try {
|
|
895
|
+
const {address} = (await signer.getAccounts())[0];
|
|
896
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
897
|
+
let msg = this.msgRewokeCouncilRegistration({value: MsgRewokeCouncilRegistration.fromPartial(value)})
|
|
898
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
899
|
+
} catch (e: any) {
|
|
900
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message)
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
|
|
904
|
+
async sendMsgFinalizeSet({value, fee, memo}: sendMsgFinalizeSetParams): Promise<DeliverTxResponse> {
|
|
905
|
+
if (!signer) {
|
|
906
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Unable to sign Tx. Signer is not present.')
|
|
907
|
+
}
|
|
908
|
+
try {
|
|
909
|
+
const {address} = (await signer.getAccounts())[0];
|
|
910
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
911
|
+
let msg = this.msgFinalizeSet({value: MsgFinalizeSet.fromPartial(value)})
|
|
912
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
913
|
+
} catch (e: any) {
|
|
914
|
+
throw new Error('TxClient:sendMsgFinalizeSet: Could not broadcast Tx: ' + e.message)
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
|
|
918
|
+
async sendMsgOpenMatch({value, fee, memo}: sendMsgOpenMatchParams): Promise<DeliverTxResponse> {
|
|
919
|
+
if (!signer) {
|
|
920
|
+
throw new Error('TxClient:sendMsgOpenMatch: Unable to sign Tx. Signer is not present.')
|
|
921
|
+
}
|
|
922
|
+
try {
|
|
923
|
+
const {address} = (await signer.getAccounts())[0];
|
|
924
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
925
|
+
let msg = this.msgOpenMatch({value: MsgOpenMatch.fromPartial(value)})
|
|
926
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
927
|
+
} catch (e: any) {
|
|
928
|
+
throw new Error('TxClient:sendMsgOpenMatch: Could not broadcast Tx: ' + e.message)
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
|
|
932
|
+
async sendMsgSetCardRarity({value, fee, memo}: sendMsgSetCardRarityParams): Promise<DeliverTxResponse> {
|
|
933
|
+
if (!signer) {
|
|
934
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.')
|
|
935
|
+
}
|
|
936
|
+
try {
|
|
937
|
+
const {address} = (await signer.getAccounts())[0];
|
|
938
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
939
|
+
let msg = this.msgSetCardRarity({value: MsgSetCardRarity.fromPartial(value)})
|
|
940
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
941
|
+
} catch (e: any) {
|
|
942
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message)
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
|
|
946
|
+
async sendMsgRegisterForCouncil({
|
|
947
|
+
value,
|
|
948
|
+
fee,
|
|
949
|
+
memo
|
|
950
|
+
}: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
951
|
+
if (!signer) {
|
|
952
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.')
|
|
953
|
+
}
|
|
954
|
+
try {
|
|
955
|
+
const {address} = (await signer.getAccounts())[0];
|
|
956
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
957
|
+
let msg = this.msgRegisterForCouncil({value: MsgRegisterForCouncil.fromPartial(value)})
|
|
958
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
959
|
+
} catch (e: any) {
|
|
960
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message)
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
|
|
964
|
+
async sendMsgSaveCardContent({value, fee, memo}: sendMsgSaveCardContentParams): Promise<DeliverTxResponse> {
|
|
965
|
+
if (!signer) {
|
|
966
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.')
|
|
967
|
+
}
|
|
968
|
+
try {
|
|
969
|
+
const {address} = (await signer.getAccounts())[0];
|
|
970
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
971
|
+
let msg = this.msgSaveCardContent({value: MsgSaveCardContent.fromPartial(value)})
|
|
972
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
973
|
+
} catch (e: any) {
|
|
974
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message)
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
|
|
978
|
+
async sendMsgRestartCouncil({value, fee, memo}: sendMsgRestartCouncilParams): Promise<DeliverTxResponse> {
|
|
979
|
+
if (!signer) {
|
|
980
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.')
|
|
981
|
+
}
|
|
982
|
+
try {
|
|
983
|
+
const {address} = (await signer.getAccounts())[0];
|
|
984
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
985
|
+
let msg = this.msgRestartCouncil({value: MsgRestartCouncil.fromPartial(value)})
|
|
986
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
987
|
+
} catch (e: any) {
|
|
988
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message)
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
|
|
992
|
+
async sendMsgAddStoryToSet({value, fee, memo}: sendMsgAddStoryToSetParams): Promise<DeliverTxResponse> {
|
|
993
|
+
if (!signer) {
|
|
994
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Unable to sign Tx. Signer is not present.')
|
|
995
|
+
}
|
|
996
|
+
try {
|
|
997
|
+
const {address} = (await signer.getAccounts())[0];
|
|
998
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
999
|
+
let msg = this.msgAddStoryToSet({value: MsgAddStoryToSet.fromPartial(value)})
|
|
1000
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1001
|
+
} catch (e: any) {
|
|
1002
|
+
throw new Error('TxClient:sendMsgAddStoryToSet: Could not broadcast Tx: ' + e.message)
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
|
|
1006
|
+
async sendMsgReportMatch({value, fee, memo}: sendMsgReportMatchParams): Promise<DeliverTxResponse> {
|
|
1007
|
+
if (!signer) {
|
|
1008
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.')
|
|
1009
|
+
}
|
|
1010
|
+
try {
|
|
1011
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1012
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1013
|
+
let msg = this.msgReportMatch({value: MsgReportMatch.fromPartial(value)})
|
|
1014
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1015
|
+
} catch (e: any) {
|
|
1016
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message)
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
|
|
1020
|
+
async sendMsgAddCardToSet({value, fee, memo}: sendMsgAddCardToSetParams): Promise<DeliverTxResponse> {
|
|
1021
|
+
if (!signer) {
|
|
1022
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Unable to sign Tx. Signer is not present.')
|
|
1023
|
+
}
|
|
1024
|
+
try {
|
|
1025
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1026
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1027
|
+
let msg = this.msgAddCardToSet({value: MsgAddCardToSet.fromPartial(value)})
|
|
1028
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1029
|
+
} catch (e: any) {
|
|
1030
|
+
throw new Error('TxClient:sendMsgAddCardToSet: Could not broadcast Tx: ' + e.message)
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
|
|
1034
|
+
async sendMsgRevealCouncilResponse({
|
|
1035
|
+
value,
|
|
1036
|
+
fee,
|
|
1037
|
+
memo
|
|
1038
|
+
}: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
1039
|
+
if (!signer) {
|
|
1040
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
1041
|
+
}
|
|
1042
|
+
try {
|
|
1043
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1044
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1045
|
+
let msg = this.msgRevealCouncilResponse({value: MsgRevealCouncilResponse.fromPartial(value)})
|
|
1046
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1047
|
+
} catch (e: any) {
|
|
1048
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message)
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
|
|
1052
|
+
async sendMsgSetProfileCard({value, fee, memo}: sendMsgSetProfileCardParams): Promise<DeliverTxResponse> {
|
|
1053
|
+
if (!signer) {
|
|
1054
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.')
|
|
1055
|
+
}
|
|
1056
|
+
try {
|
|
1057
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1058
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1059
|
+
let msg = this.msgSetProfileCard({value: MsgSetProfileCard.fromPartial(value)})
|
|
1060
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1061
|
+
} catch (e: any) {
|
|
1062
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message)
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
|
|
1066
|
+
async sendMsgRemoveCardFromSet({value, fee, memo}: sendMsgRemoveCardFromSetParams): Promise<DeliverTxResponse> {
|
|
1067
|
+
if (!signer) {
|
|
1068
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Unable to sign Tx. Signer is not present.')
|
|
1069
|
+
}
|
|
1070
|
+
try {
|
|
1071
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1072
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1073
|
+
let msg = this.msgRemoveCardFromSet({value: MsgRemoveCardFromSet.fromPartial(value)})
|
|
1074
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1075
|
+
} catch (e: any) {
|
|
1076
|
+
throw new Error('TxClient:sendMsgRemoveCardFromSet: Could not broadcast Tx: ' + e.message)
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
|
|
1080
|
+
async sendMsgSetSetName({value, fee, memo}: sendMsgSetSetNameParams): Promise<DeliverTxResponse> {
|
|
1081
|
+
if (!signer) {
|
|
1082
|
+
throw new Error('TxClient:sendMsgSetSetName: Unable to sign Tx. Signer is not present.')
|
|
1083
|
+
}
|
|
1084
|
+
try {
|
|
1085
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1086
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1087
|
+
let msg = this.msgSetSetName({value: MsgSetSetName.fromPartial(value)})
|
|
1088
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1089
|
+
} catch (e: any) {
|
|
1090
|
+
throw new Error('TxClient:sendMsgSetSetName: Could not broadcast Tx: ' + e.message)
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
|
|
1094
|
+
async sendMsgTransferBoosterPack({
|
|
1095
|
+
value,
|
|
1096
|
+
fee,
|
|
1097
|
+
memo
|
|
1098
|
+
}: sendMsgTransferBoosterPackParams): Promise<DeliverTxResponse> {
|
|
1099
|
+
if (!signer) {
|
|
1100
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
1101
|
+
}
|
|
1102
|
+
try {
|
|
1103
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1104
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1105
|
+
let msg = this.msgTransferBoosterPack({value: MsgTransferBoosterPack.fromPartial(value)})
|
|
1106
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1107
|
+
} catch (e: any) {
|
|
1108
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message)
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
|
|
1112
|
+
async sendMsgCreateSet({value, fee, memo}: sendMsgCreateSetParams): Promise<DeliverTxResponse> {
|
|
1113
|
+
if (!signer) {
|
|
1114
|
+
throw new Error('TxClient:sendMsgCreateSet: Unable to sign Tx. Signer is not present.')
|
|
1115
|
+
}
|
|
1116
|
+
try {
|
|
1117
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1118
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1119
|
+
let msg = this.msgCreateSet({value: MsgCreateSet.fromPartial(value)})
|
|
1120
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1121
|
+
} catch (e: any) {
|
|
1122
|
+
throw new Error('TxClient:sendMsgCreateSet: Could not broadcast Tx: ' + e.message)
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
|
|
1126
|
+
async sendMsgRemoveSellOffer({value, fee, memo}: sendMsgRemoveSellOfferParams): Promise<DeliverTxResponse> {
|
|
1127
|
+
if (!signer) {
|
|
1128
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.')
|
|
1129
|
+
}
|
|
1130
|
+
try {
|
|
1131
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1132
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1133
|
+
let msg = this.msgRemoveSellOffer({value: MsgRemoveSellOffer.fromPartial(value)})
|
|
1134
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1135
|
+
} catch (e: any) {
|
|
1136
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message)
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
|
|
1140
|
+
async sendMsgConfirmMatch({value, fee, memo}: sendMsgConfirmMatchParams): Promise<DeliverTxResponse> {
|
|
1141
|
+
if (!signer) {
|
|
1142
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.')
|
|
1143
|
+
}
|
|
1144
|
+
try {
|
|
1145
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1146
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1147
|
+
let msg = this.msgConfirmMatch({value: MsgConfirmMatch.fromPartial(value)})
|
|
1148
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1149
|
+
} catch (e: any) {
|
|
1150
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message)
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
|
|
1154
|
+
async sendMsgCommitCouncilResponse({
|
|
1155
|
+
value,
|
|
1156
|
+
fee,
|
|
1157
|
+
memo
|
|
1158
|
+
}: sendMsgCommitCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
1159
|
+
if (!signer) {
|
|
1160
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
1161
|
+
}
|
|
1162
|
+
try {
|
|
1163
|
+
const {address} = (await signer.getAccounts())[0];
|
|
1164
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, {registry, prefix});
|
|
1165
|
+
let msg = this.msgCommitCouncilResponse({value: MsgCommitCouncilResponse.fromPartial(value)})
|
|
1166
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1167
|
+
} catch (e: any) {
|
|
1168
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message)
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
msgChangeAlias({value}: msgChangeAliasParams): EncodeObject {
|
|
1174
|
+
try {
|
|
1175
|
+
return {
|
|
1176
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeAlias",
|
|
1177
|
+
value: MsgChangeAlias.fromPartial(value)
|
|
1178
|
+
}
|
|
1179
|
+
} catch (e: any) {
|
|
1180
|
+
throw new Error('TxClient:MsgChangeAlias: Could not create message: ' + e.message)
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
|
|
1184
|
+
msgChangeArtist({value}: msgChangeArtistParams): EncodeObject {
|
|
1185
|
+
try {
|
|
1186
|
+
return {
|
|
1187
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist",
|
|
1188
|
+
value: MsgChangeArtist.fromPartial(value)
|
|
1189
|
+
}
|
|
1190
|
+
} catch (e: any) {
|
|
1191
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message)
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
|
|
1195
|
+
msgAddContributorToSet({value}: msgAddContributorToSetParams): EncodeObject {
|
|
1196
|
+
try {
|
|
1197
|
+
return {
|
|
1198
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToSet",
|
|
1199
|
+
value: MsgAddContributorToSet.fromPartial(value)
|
|
1200
|
+
}
|
|
1201
|
+
} catch (e: any) {
|
|
1202
|
+
throw new Error('TxClient:MsgAddContributorToSet: Could not create message: ' + e.message)
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
|
|
1206
|
+
msgAddArtworkToSet({value}: msgAddArtworkToSetParams): EncodeObject {
|
|
1207
|
+
try {
|
|
1208
|
+
return {
|
|
1209
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToSet",
|
|
1210
|
+
value: MsgAddArtworkToSet.fromPartial(value)
|
|
1211
|
+
}
|
|
1212
|
+
} catch (e: any) {
|
|
1213
|
+
throw new Error('TxClient:MsgAddArtworkToSet: Could not create message: ' + e.message)
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
|
|
1217
|
+
msgBuyCardScheme({value}: msgBuyCardSchemeParams): EncodeObject {
|
|
1218
|
+
try {
|
|
1219
|
+
return {
|
|
1220
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme",
|
|
1221
|
+
value: MsgBuyCardScheme.fromPartial(value)
|
|
1222
|
+
}
|
|
1223
|
+
} catch (e: any) {
|
|
1224
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message)
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
|
|
1228
|
+
msgVoteCard({value}: msgVoteCardParams): EncodeObject {
|
|
1229
|
+
try {
|
|
1230
|
+
return {
|
|
1231
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard",
|
|
1232
|
+
value: MsgVoteCard.fromPartial(value)
|
|
1233
|
+
}
|
|
1234
|
+
} catch (e: any) {
|
|
1235
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message)
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
|
|
1239
|
+
msgOpenBoosterPack({value}: msgOpenBoosterPackParams): EncodeObject {
|
|
1240
|
+
try {
|
|
1241
|
+
return {
|
|
1242
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack",
|
|
1243
|
+
value: MsgOpenBoosterPack.fromPartial(value)
|
|
1244
|
+
}
|
|
1245
|
+
} catch (e: any) {
|
|
1246
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message)
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
|
|
1250
|
+
msgMultiVoteCard({value}: msgMultiVoteCardParams): EncodeObject {
|
|
1251
|
+
try {
|
|
1252
|
+
return {
|
|
1253
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard",
|
|
1254
|
+
value: MsgMultiVoteCard.fromPartial(value)
|
|
1255
|
+
}
|
|
1256
|
+
} catch (e: any) {
|
|
1257
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message)
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
|
|
1261
|
+
msgSetSetArtist({value}: msgSetSetArtistParams): EncodeObject {
|
|
1262
|
+
try {
|
|
1263
|
+
return {
|
|
1264
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetArtist",
|
|
1265
|
+
value: MsgSetSetArtist.fromPartial(value)
|
|
1266
|
+
}
|
|
1267
|
+
} catch (e: any) {
|
|
1268
|
+
throw new Error('TxClient:MsgSetSetArtist: Could not create message: ' + e.message)
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
|
|
1272
|
+
msgApointMatchReporter({value}: msgApointMatchReporterParams): EncodeObject {
|
|
1273
|
+
try {
|
|
1274
|
+
return {
|
|
1275
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter",
|
|
1276
|
+
value: MsgApointMatchReporter.fromPartial(value)
|
|
1277
|
+
}
|
|
1278
|
+
} catch (e: any) {
|
|
1279
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message)
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
|
|
1283
|
+
msgAddArtwork({value}: msgAddArtworkParams): EncodeObject {
|
|
1284
|
+
try {
|
|
1285
|
+
return {
|
|
1286
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork",
|
|
1287
|
+
value: MsgAddArtwork.fromPartial(value)
|
|
1288
|
+
}
|
|
1289
|
+
} catch (e: any) {
|
|
1290
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message)
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
|
|
1294
|
+
msgCreateSellOffer({value}: msgCreateSellOfferParams): EncodeObject {
|
|
1295
|
+
try {
|
|
1296
|
+
return {
|
|
1297
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer",
|
|
1298
|
+
value: MsgCreateSellOffer.fromPartial(value)
|
|
1299
|
+
}
|
|
1300
|
+
} catch (e: any) {
|
|
1301
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message)
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
|
|
1305
|
+
msgBuyCard({value}: msgBuyCardParams): EncodeObject {
|
|
1306
|
+
try {
|
|
1307
|
+
return {
|
|
1308
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard",
|
|
1309
|
+
value: MsgBuyCard.fromPartial(value)
|
|
1310
|
+
}
|
|
1311
|
+
} catch (e: any) {
|
|
1312
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message)
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
|
|
1316
|
+
msgCreateuser({value}: msgCreateuserParams): EncodeObject {
|
|
1317
|
+
try {
|
|
1318
|
+
return {
|
|
1319
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser",
|
|
1320
|
+
value: MsgCreateuser.fromPartial(value)
|
|
1321
|
+
}
|
|
1322
|
+
} catch (e: any) {
|
|
1323
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message)
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
|
|
1327
|
+
msgBuyBoosterPack({value}: msgBuyBoosterPackParams): EncodeObject {
|
|
1328
|
+
try {
|
|
1329
|
+
return {
|
|
1330
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyBoosterPack",
|
|
1331
|
+
value: MsgBuyBoosterPack.fromPartial(value)
|
|
1332
|
+
}
|
|
1333
|
+
} catch (e: any) {
|
|
1334
|
+
throw new Error('TxClient:MsgBuyBoosterPack: Could not create message: ' + e.message)
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
|
|
1338
|
+
msgCreateCouncil({value}: msgCreateCouncilParams): EncodeObject {
|
|
1339
|
+
try {
|
|
1340
|
+
return {
|
|
1341
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil",
|
|
1342
|
+
value: MsgCreateCouncil.fromPartial(value)
|
|
1343
|
+
}
|
|
1344
|
+
} catch (e: any) {
|
|
1345
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message)
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
|
|
1349
|
+
msgSetUserBiography({value}: msgSetUserBiographyParams): EncodeObject {
|
|
1350
|
+
try {
|
|
1351
|
+
return {
|
|
1352
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography",
|
|
1353
|
+
value: MsgSetUserBiography.fromPartial(value)
|
|
1354
|
+
}
|
|
1355
|
+
} catch (e: any) {
|
|
1356
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
|
|
1360
|
+
msgSetSetStoryWriter({value}: msgSetSetStoryWriterParams): EncodeObject {
|
|
1361
|
+
try {
|
|
1362
|
+
return {
|
|
1363
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetStoryWriter",
|
|
1364
|
+
value: MsgSetSetStoryWriter.fromPartial(value)
|
|
1365
|
+
}
|
|
1366
|
+
} catch (e: any) {
|
|
1367
|
+
throw new Error('TxClient:MsgSetSetStoryWriter: Could not create message: ' + e.message)
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
|
|
1371
|
+
msgDonateToCard({value}: msgDonateToCardParams): EncodeObject {
|
|
1372
|
+
try {
|
|
1373
|
+
return {
|
|
1374
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard",
|
|
1375
|
+
value: MsgDonateToCard.fromPartial(value)
|
|
1376
|
+
}
|
|
1377
|
+
} catch (e: any) {
|
|
1378
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message)
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
|
|
1382
|
+
msgRemoveContributorFromSet({value}: msgRemoveContributorFromSetParams): EncodeObject {
|
|
1383
|
+
try {
|
|
1384
|
+
return {
|
|
1385
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromSet",
|
|
1386
|
+
value: MsgRemoveContributorFromSet.fromPartial(value)
|
|
1387
|
+
}
|
|
1388
|
+
} catch (e: any) {
|
|
1389
|
+
throw new Error('TxClient:MsgRemoveContributorFromSet: Could not create message: ' + e.message)
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
|
|
1393
|
+
msgSetUserWebsite({value}: msgSetUserWebsiteParams): EncodeObject {
|
|
1394
|
+
try {
|
|
1395
|
+
return {
|
|
1396
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserWebsite",
|
|
1397
|
+
value: MsgSetUserWebsite.fromPartial(value)
|
|
1398
|
+
}
|
|
1399
|
+
} catch (e: any) {
|
|
1400
|
+
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message)
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
|
|
1404
|
+
msgTransferCard({value}: msgTransferCardParams): EncodeObject {
|
|
1405
|
+
try {
|
|
1406
|
+
return {
|
|
1407
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard",
|
|
1408
|
+
value: MsgTransferCard.fromPartial(value)
|
|
1409
|
+
}
|
|
1410
|
+
} catch (e: any) {
|
|
1411
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message)
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
|
|
1415
|
+
msgRewokeCouncilRegistration({value}: msgRewokeCouncilRegistrationParams): EncodeObject {
|
|
1416
|
+
try {
|
|
1417
|
+
return {
|
|
1418
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration",
|
|
1419
|
+
value: MsgRewokeCouncilRegistration.fromPartial(value)
|
|
1420
|
+
}
|
|
1421
|
+
} catch (e: any) {
|
|
1422
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message)
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
|
|
1426
|
+
msgFinalizeSet({value}: msgFinalizeSetParams): EncodeObject {
|
|
1427
|
+
try {
|
|
1428
|
+
return {
|
|
1429
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeSet",
|
|
1430
|
+
value: MsgFinalizeSet.fromPartial(value)
|
|
1431
|
+
}
|
|
1432
|
+
} catch (e: any) {
|
|
1433
|
+
throw new Error('TxClient:MsgFinalizeSet: Could not create message: ' + e.message)
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
|
|
1437
|
+
msgOpenMatch({value}: msgOpenMatchParams): EncodeObject {
|
|
1438
|
+
try {
|
|
1439
|
+
return {
|
|
1440
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenMatch",
|
|
1441
|
+
value: MsgOpenMatch.fromPartial(value)
|
|
1442
|
+
}
|
|
1443
|
+
} catch (e: any) {
|
|
1444
|
+
throw new Error('TxClient:MsgOpenMatch: Could not create message: ' + e.message)
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
|
|
1448
|
+
msgSetCardRarity({value}: msgSetCardRarityParams): EncodeObject {
|
|
1449
|
+
try {
|
|
1450
|
+
return {
|
|
1451
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity",
|
|
1452
|
+
value: MsgSetCardRarity.fromPartial(value)
|
|
1453
|
+
}
|
|
1454
|
+
} catch (e: any) {
|
|
1455
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message)
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
|
|
1459
|
+
msgRegisterForCouncil({value}: msgRegisterForCouncilParams): EncodeObject {
|
|
1460
|
+
try {
|
|
1461
|
+
return {
|
|
1462
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil",
|
|
1463
|
+
value: MsgRegisterForCouncil.fromPartial(value)
|
|
1464
|
+
}
|
|
1465
|
+
} catch (e: any) {
|
|
1466
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message)
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
|
|
1470
|
+
msgSaveCardContent({value}: msgSaveCardContentParams): EncodeObject {
|
|
1471
|
+
try {
|
|
1472
|
+
return {
|
|
1473
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent",
|
|
1474
|
+
value: MsgSaveCardContent.fromPartial(value)
|
|
1475
|
+
}
|
|
1476
|
+
} catch (e: any) {
|
|
1477
|
+
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message)
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
|
|
1481
|
+
msgRestartCouncil({value}: msgRestartCouncilParams): EncodeObject {
|
|
1482
|
+
try {
|
|
1483
|
+
return {
|
|
1484
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil",
|
|
1485
|
+
value: MsgRestartCouncil.fromPartial(value)
|
|
1486
|
+
}
|
|
1487
|
+
} catch (e: any) {
|
|
1488
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message)
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
|
|
1492
|
+
msgAddStoryToSet({value}: msgAddStoryToSetParams): EncodeObject {
|
|
1493
|
+
try {
|
|
1494
|
+
return {
|
|
1495
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToSet",
|
|
1496
|
+
value: MsgAddStoryToSet.fromPartial(value)
|
|
1497
|
+
}
|
|
1498
|
+
} catch (e: any) {
|
|
1499
|
+
throw new Error('TxClient:MsgAddStoryToSet: Could not create message: ' + e.message)
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
|
|
1503
|
+
msgReportMatch({value}: msgReportMatchParams): EncodeObject {
|
|
1504
|
+
try {
|
|
1505
|
+
return {
|
|
1506
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch",
|
|
1507
|
+
value: MsgReportMatch.fromPartial(value)
|
|
1508
|
+
}
|
|
1509
|
+
} catch (e: any) {
|
|
1510
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message)
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
|
|
1514
|
+
msgAddCardToSet({value}: msgAddCardToSetParams): EncodeObject {
|
|
1515
|
+
try {
|
|
1516
|
+
return {
|
|
1517
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToSet",
|
|
1518
|
+
value: MsgAddCardToSet.fromPartial(value)
|
|
1519
|
+
}
|
|
1520
|
+
} catch (e: any) {
|
|
1521
|
+
throw new Error('TxClient:MsgAddCardToSet: Could not create message: ' + e.message)
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
|
|
1525
|
+
msgRevealCouncilResponse({value}: msgRevealCouncilResponseParams): EncodeObject {
|
|
1526
|
+
try {
|
|
1527
|
+
return {
|
|
1528
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse",
|
|
1529
|
+
value: MsgRevealCouncilResponse.fromPartial(value)
|
|
1530
|
+
}
|
|
1531
|
+
} catch (e: any) {
|
|
1532
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message)
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
|
|
1536
|
+
msgSetProfileCard({value}: msgSetProfileCardParams): EncodeObject {
|
|
1537
|
+
try {
|
|
1538
|
+
return {
|
|
1539
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard",
|
|
1540
|
+
value: MsgSetProfileCard.fromPartial(value)
|
|
1541
|
+
}
|
|
1542
|
+
} catch (e: any) {
|
|
1543
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message)
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
|
|
1547
|
+
msgRemoveCardFromSet({value}: msgRemoveCardFromSetParams): EncodeObject {
|
|
1548
|
+
try {
|
|
1549
|
+
return {
|
|
1550
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromSet",
|
|
1551
|
+
value: MsgRemoveCardFromSet.fromPartial(value)
|
|
1552
|
+
}
|
|
1553
|
+
} catch (e: any) {
|
|
1554
|
+
throw new Error('TxClient:MsgRemoveCardFromSet: Could not create message: ' + e.message)
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
|
|
1558
|
+
msgSetSetName({value}: msgSetSetNameParams): EncodeObject {
|
|
1559
|
+
try {
|
|
1560
|
+
return {
|
|
1561
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetSetName",
|
|
1562
|
+
value: MsgSetSetName.fromPartial(value)
|
|
1563
|
+
}
|
|
1564
|
+
} catch (e: any) {
|
|
1565
|
+
throw new Error('TxClient:MsgSetSetName: Could not create message: ' + e.message)
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
|
|
1569
|
+
msgTransferBoosterPack({value}: msgTransferBoosterPackParams): EncodeObject {
|
|
1570
|
+
try {
|
|
1571
|
+
return {
|
|
1572
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack",
|
|
1573
|
+
value: MsgTransferBoosterPack.fromPartial(value)
|
|
1574
|
+
}
|
|
1575
|
+
} catch (e: any) {
|
|
1576
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message)
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
|
|
1580
|
+
msgCreateSet({value}: msgCreateSetParams): EncodeObject {
|
|
1581
|
+
try {
|
|
1582
|
+
return {
|
|
1583
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSet",
|
|
1584
|
+
value: MsgCreateSet.fromPartial(value)
|
|
1585
|
+
}
|
|
1586
|
+
} catch (e: any) {
|
|
1587
|
+
throw new Error('TxClient:MsgCreateSet: Could not create message: ' + e.message)
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
|
|
1591
|
+
msgRemoveSellOffer({value}: msgRemoveSellOfferParams): EncodeObject {
|
|
1592
|
+
try {
|
|
1593
|
+
return {
|
|
1594
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer",
|
|
1595
|
+
value: MsgRemoveSellOffer.fromPartial(value)
|
|
1596
|
+
}
|
|
1597
|
+
} catch (e: any) {
|
|
1598
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message)
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
|
|
1602
|
+
msgConfirmMatch({value}: msgConfirmMatchParams): EncodeObject {
|
|
1603
|
+
try {
|
|
1604
|
+
return {
|
|
1605
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch",
|
|
1606
|
+
value: MsgConfirmMatch.fromPartial(value)
|
|
1607
|
+
}
|
|
1608
|
+
} catch (e: any) {
|
|
1609
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message)
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
|
|
1613
|
+
msgCommitCouncilResponse({value}: msgCommitCouncilResponseParams): EncodeObject {
|
|
1614
|
+
try {
|
|
1615
|
+
return {
|
|
1616
|
+
typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse",
|
|
1617
|
+
value: MsgCommitCouncilResponse.fromPartial(value)
|
|
1618
|
+
}
|
|
1619
|
+
} catch (e: any) {
|
|
1620
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message)
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
|
|
1624
|
+
}
|
|
1423
1625
|
};
|
|
1424
1626
|
|
|
1425
1627
|
interface QueryClientOptions {
|
|
1426
|
-
|
|
1628
|
+
addr: string
|
|
1427
1629
|
}
|
|
1428
1630
|
|
|
1429
|
-
export const queryClient = ({
|
|
1430
|
-
|
|
1631
|
+
export const queryClient = ({addr: addr}: QueryClientOptions = {addr: "http://localhost:1317"}) => {
|
|
1632
|
+
return new Api({baseURL: addr});
|
|
1431
1633
|
};
|
|
1432
1634
|
|
|
1433
1635
|
class SDKModule {
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1636
|
+
public query: ReturnType<typeof queryClient>;
|
|
1637
|
+
public tx: ReturnType<typeof txClient>;
|
|
1638
|
+
public structure: Record<string, unknown>;
|
|
1639
|
+
public registry: Array<[string, GeneratedType]> = [];
|
|
1640
|
+
|
|
1641
|
+
constructor(client: IgniteClient) {
|
|
1642
|
+
|
|
1643
|
+
this.query = queryClient({addr: client.env.apiURL});
|
|
1644
|
+
this.updateTX(client);
|
|
1645
|
+
this.structure = {
|
|
1646
|
+
Card: getStructure(typeCard.fromPartial({})),
|
|
1647
|
+
TimeStamp: getStructure(typeTimeStamp.fromPartial({})),
|
|
1648
|
+
CopyrightProposal: getStructure(typeCopyrightProposal.fromPartial({})),
|
|
1649
|
+
WrapClearResponse: getStructure(typeWrapClearResponse.fromPartial({})),
|
|
1650
|
+
WrapHashResponse: getStructure(typeWrapHashResponse.fromPartial({})),
|
|
1651
|
+
Image: getStructure(typeImage.fromPartial({})),
|
|
1652
|
+
MatchPlayer: getStructure(typeMatchPlayer.fromPartial({})),
|
|
1653
|
+
MatchReporterProposal: getStructure(typeMatchReporterProposal.fromPartial({})),
|
|
1654
|
+
Num: getStructure(typeNum.fromPartial({})),
|
|
1655
|
+
Params: getStructure(typeParams.fromPartial({})),
|
|
1656
|
+
IgnoreMatches: getStructure(typeIgnoreMatches.fromPartial({})),
|
|
1657
|
+
IgnoreSellOffers: getStructure(typeIgnoreSellOffers.fromPartial({})),
|
|
1658
|
+
QueryQServerResponse: getStructure(typeQueryQServerResponse.fromPartial({})),
|
|
1659
|
+
RunningAverage: getStructure(typeRunningAverage.fromPartial({})),
|
|
1660
|
+
Set: getStructure(typeSet.fromPartial({})),
|
|
1661
|
+
InnerRarities: getStructure(typeInnerRarities.fromPartial({})),
|
|
1662
|
+
AddrWithQuantity: getStructure(typeAddrWithQuantity.fromPartial({})),
|
|
1663
|
+
SetProposal: getStructure(typeSetProposal.fromPartial({})),
|
|
1664
|
+
BoosterPack: getStructure(typeBoosterPack.fromPartial({})),
|
|
1665
|
+
AirDrops: getStructure(typeAirDrops.fromPartial({})),
|
|
1666
|
+
VotingResults: getStructure(typeVotingResults.fromPartial({})),
|
|
1667
|
+
VotingResult: getStructure(typeVotingResult.fromPartial({})),
|
|
1668
|
+
SingleVote: getStructure(typeSingleVote.fromPartial({})),
|
|
1669
|
+
|
|
1670
|
+
};
|
|
1671
|
+
client.on('signer-changed', (signer) => {
|
|
1672
|
+
this.updateTX(client);
|
|
1673
|
+
})
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
updateTX(client: IgniteClient) {
|
|
1677
|
+
const methods = txClient({
|
|
1678
|
+
signer: client.signer,
|
|
1679
|
+
addr: client.env.rpcURL,
|
|
1680
|
+
prefix: client.env.prefix ?? "cosmos",
|
|
1681
|
+
})
|
|
1682
|
+
|
|
1683
|
+
this.tx = methods;
|
|
1684
|
+
for (let m in methods) {
|
|
1685
|
+
this.tx[m] = methods[m].bind(this.tx);
|
|
1686
|
+
}
|
|
1483
1687
|
}
|
|
1484
|
-
}
|
|
1485
1688
|
};
|
|
1486
1689
|
|
|
1487
1690
|
const Module = (test: IgniteClient) => {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1691
|
+
return {
|
|
1692
|
+
module: {
|
|
1693
|
+
DecentralCardGameCardchainCardchain: new SDKModule(test)
|
|
1694
|
+
},
|
|
1695
|
+
registry: msgTypes
|
|
1696
|
+
}
|
|
1494
1697
|
}
|
|
1495
1698
|
export default Module;
|