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