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