@sparkdreamnft/sparkdreamjs 0.0.46 → 0.0.47
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/amino-schema.d.ts +5741 -0
- package/amino-schema.js +8 -0
- package/chain-amino.d.ts +61 -0
- package/chain-amino.js +670 -0
- package/esm/amino-schema.js +5 -0
- package/esm/chain-amino.js +665 -0
- package/esm/nested-amino.js +7 -1
- package/esm/sparkdream/artifact/v1/tx.amino.js +12 -473
- package/esm/sparkdream/blog/v1/tx.amino.js +15 -135
- package/esm/sparkdream/collect/v1/tx.amino.js +15 -254
- package/esm/sparkdream/commons/v1/tx.amino.js +12 -258
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +15 -26
- package/esm/sparkdream/federation/v1/tx.amino.js +12 -174
- package/esm/sparkdream/forum/v1/tx.amino.js +15 -231
- package/esm/sparkdream/futarchy/v1/tx.amino.js +16 -38
- package/esm/sparkdream/guardian/v1/tx.amino.js +12 -33
- package/esm/sparkdream/name/v1/tx.amino.js +16 -63
- package/esm/sparkdream/rep/v1/tx.amino.js +12 -484
- package/esm/sparkdream/reveal/v1/tx.amino.js +15 -73
- package/esm/sparkdream/season/v1/tx.amino.js +12 -276
- package/esm/sparkdream/service/v1/tx.amino.js +16 -78
- package/esm/sparkdream/session/v1/tx.amino.js +16 -271
- package/esm/sparkdream/shield/v1/tx.amino.js +15 -80
- package/esm/sparkdream/sparkdream/v1/tx.amino.js +16 -8
- package/esm/sparkdream/split/v1/tx.amino.js +16 -8
- package/esm/sparkdream/vault/v1/tx.amino.js +12 -105
- package/nested-amino.d.ts +5 -1
- package/nested-amino.js +8 -1
- package/package.json +1 -1
- package/sparkdream/artifact/v1/tx.amino.d.ts +1 -353
- package/sparkdream/artifact/v1/tx.amino.js +47 -475
- package/sparkdream/blog/v1/tx.amino.d.ts +1 -103
- package/sparkdream/blog/v1/tx.amino.js +50 -137
- package/sparkdream/bundle.d.ts +19 -2047
- package/sparkdream/client.d.ts +1 -2009
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -153
- package/sparkdream/collect/v1/tx.amino.js +50 -256
- package/sparkdream/commons/v1/tx.amino.d.ts +1 -123
- package/sparkdream/commons/v1/tx.amino.js +49 -262
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -13
- package/sparkdream/ecosystem/v1/tx.amino.js +50 -28
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -128
- package/sparkdream/federation/v1/tx.amino.js +47 -176
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -203
- package/sparkdream/forum/v1/tx.amino.js +50 -233
- package/sparkdream/futarchy/v1/tx.amino.d.ts +1 -38
- package/sparkdream/futarchy/v1/tx.amino.js +49 -38
- package/sparkdream/guardian/v1/tx.amino.d.ts +1 -7
- package/sparkdream/guardian/v1/tx.amino.js +49 -37
- package/sparkdream/name/v1/tx.amino.d.ts +1 -63
- package/sparkdream/name/v1/tx.amino.js +49 -63
- package/sparkdream/rep/v1/tx.amino.d.ts +1 -353
- package/sparkdream/rep/v1/tx.amino.js +47 -486
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -53
- package/sparkdream/reveal/v1/tx.amino.js +50 -75
- package/sparkdream/season/v1/tx.amino.d.ts +1 -218
- package/sparkdream/season/v1/tx.amino.js +47 -278
- package/sparkdream/service/v1/tx.amino.d.ts +1 -78
- package/sparkdream/service/v1/tx.amino.js +49 -78
- package/sparkdream/session/v1/tx.amino.d.ts +1 -93
- package/sparkdream/session/v1/tx.amino.js +48 -270
- package/sparkdream/shield/v1/tx.amino.d.ts +1 -28
- package/sparkdream/shield/v1/tx.amino.js +50 -82
- package/sparkdream/sparkdream/v1/tx.amino.d.ts +1 -8
- package/sparkdream/sparkdream/v1/tx.amino.js +49 -8
- package/sparkdream/split/v1/tx.amino.d.ts +1 -8
- package/sparkdream/split/v1/tx.amino.js +49 -8
- package/sparkdream/vault/v1/tx.amino.d.ts +1 -43
- package/sparkdream/vault/v1/tx.amino.js +49 -109
- package/varint.d.ts +1 -1
|
@@ -2,477 +2,16 @@
|
|
|
2
2
|
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
3
3
|
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
4
4
|
//
|
|
5
|
-
// Why: Telescope's
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
5
|
+
// Why: Telescope's generated converters (and the per-message overrides that
|
|
6
|
+
// used to patch them) disagree with the chain's aminojson on empty lists,
|
|
7
|
+
// empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
|
|
8
|
+
// whenever a proto changed. Every Msg of x/artifact is converted by the
|
|
9
|
+
// schema-driven engine in chain-amino.ts instead, which renders amino JSON
|
|
10
|
+
// from the protobuf bytes exactly as the chain does.
|
|
11
11
|
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// every message in tx.proto. A message added to the proto but not added here
|
|
19
|
-
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
20
|
-
// fails at runtime. When syncing protos, diff the message list in
|
|
21
|
-
// protos/sparkdream/artifact/v1/tx.proto against the keys below.
|
|
22
|
-
import { MsgUpdateParams, MsgCreateClass, MsgUpdateClass, MsgFreezeClassMetadata, MsgSetMintPolicy, MsgSetMinters, MsgSetMaxSupply, MsgCloseMinting, MsgProposeClassOwner, MsgAcceptClassOwner, MsgCancelClassOwner, MsgDeleteClass, MsgMint, MsgPublicMint, MsgTransfer, MsgAcceptIncoming, MsgRejectIncoming, MsgCancelOutgoing, MsgSetReceivePolicy, MsgBurn, MsgRevoke, MsgUpdateToken, MsgFreezeTokenMetadata, MsgList, MsgUpdateListing, MsgDelist, MsgBuy, MsgHideContent, MsgUnhideContent, MsgAppealHide, MsgUpdateOperationalParams, MsgIssue, MsgRenew, MsgRedeem, MsgLockRoyalty, MsgReveal, MsgRevealSeed, MsgProposeMedia, MsgAcceptMedia, MsgRejectMedia, MsgSetDisplayedMedia, MsgCreateEdition, MsgMintUnits, MsgTransferUnits, MsgBurnUnits, MsgRevokeUnits, MsgListUnits, MsgDelistUnits, MsgBuyUnits, MsgFundEdition, MsgClaimEditionRewards, MsgAddCraftRecipe, MsgRemoveCraftRecipe, MsgCraft, MsgOfferRental, MsgCancelRentalOffer, MsgAcceptRental, MsgEndRental, MsgNest, MsgDetach, MsgSetHarbergerPrice, MsgForceBuy, MsgUpdateUnitListing, MsgMakeOffer, MsgCancelOffer, MsgAcceptOffer, MsgStartAuction, MsgBid, MsgSettleAuction, MsgCancelAuction } from "./tx";
|
|
23
|
-
import { ClassFlags, ExpiryPolicy, HarbergerPolicy, MintPolicy, Renderer, RevealPolicy, RoyaltyShare, TokenMetadata, TokenRef, } from "./types";
|
|
24
|
-
export const AminoConverter = {
|
|
25
|
-
"/sparkdream.artifact.v1.MsgUpdateParams": {
|
|
26
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateParams",
|
|
27
|
-
toAmino: MsgUpdateParams.toAmino,
|
|
28
|
-
fromAmino: MsgUpdateParams.fromAmino
|
|
29
|
-
},
|
|
30
|
-
"/sparkdream.artifact.v1.MsgCreateClass": {
|
|
31
|
-
aminoType: "sparkdream/x/artifact/MsgCreateClass",
|
|
32
|
-
toAmino(message) {
|
|
33
|
-
const obj = {};
|
|
34
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
35
|
-
obj.name = message.name === "" ? undefined : message.name;
|
|
36
|
-
obj.symbol = message.symbol === "" ? undefined : message.symbol;
|
|
37
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
38
|
-
obj.uri = message.uri === "" ? undefined : message.uri;
|
|
39
|
-
obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
|
|
40
|
-
obj.token_uri_base = message.tokenUriBase === "" ? undefined : message.tokenUriBase;
|
|
41
|
-
obj.flags = message.flags ? ClassFlags.toAmino(message.flags) : ClassFlags.toAmino(ClassFlags.fromPartial({}));
|
|
42
|
-
obj.max_supply = message.maxSupply !== BigInt(0) ? message.maxSupply?.toString() : undefined;
|
|
43
|
-
obj.mint_policy = message.mintPolicy ? MintPolicy.toAmino(message.mintPolicy) : MintPolicy.toAmino(MintPolicy.fromPartial({}));
|
|
44
|
-
obj.payout_address = message.payoutAddress === "" ? undefined : message.payoutAddress;
|
|
45
|
-
obj.royalty_bps = message.royaltyBps === 0 ? undefined : message.royaltyBps;
|
|
46
|
-
obj.royalty_recipients = (message.royaltyRecipients?.length ?? 0) > 0
|
|
47
|
-
? message.royaltyRecipients.map((e) => e ? RoyaltyShare.toAmino(e) : undefined)
|
|
48
|
-
: undefined;
|
|
49
|
-
obj.minters = (message.minters?.length ?? 0) > 0
|
|
50
|
-
? message.minters.map((e) => e)
|
|
51
|
-
: undefined;
|
|
52
|
-
obj.accepted_content_license = message.acceptedContentLicense === "" ? undefined : message.acceptedContentLicense;
|
|
53
|
-
obj.expiry = message.expiry ? ExpiryPolicy.toAmino(message.expiry) : ExpiryPolicy.toAmino(ExpiryPolicy.fromPartial({}));
|
|
54
|
-
obj.reveal = message.reveal ? RevealPolicy.toAmino(message.reveal) : RevealPolicy.toAmino(RevealPolicy.fromPartial({}));
|
|
55
|
-
obj.renderer = message.renderer ? Renderer.toAmino(message.renderer) : Renderer.toAmino(Renderer.fromPartial({}));
|
|
56
|
-
obj.token_model = message.tokenModel === 0 ? undefined : message.tokenModel;
|
|
57
|
-
obj.harberger = message.harberger ? HarbergerPolicy.toAmino(message.harberger) : HarbergerPolicy.toAmino(HarbergerPolicy.fromPartial({}));
|
|
58
|
-
return obj;
|
|
59
|
-
},
|
|
60
|
-
fromAmino: MsgCreateClass.fromAmino
|
|
61
|
-
},
|
|
62
|
-
"/sparkdream.artifact.v1.MsgUpdateClass": {
|
|
63
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateClass",
|
|
64
|
-
toAmino(message) {
|
|
65
|
-
const obj = {};
|
|
66
|
-
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
67
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
68
|
-
obj.name = message.name === "" ? undefined : message.name;
|
|
69
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
70
|
-
obj.uri = message.uri === "" ? undefined : message.uri;
|
|
71
|
-
obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
|
|
72
|
-
obj.token_uri_base = message.tokenUriBase === "" ? undefined : message.tokenUriBase;
|
|
73
|
-
obj.payout_address = message.payoutAddress === "" ? undefined : message.payoutAddress;
|
|
74
|
-
obj.royalty_recipients = (message.royaltyRecipients?.length ?? 0) > 0
|
|
75
|
-
? message.royaltyRecipients.map((e) => e ? RoyaltyShare.toAmino(e) : undefined)
|
|
76
|
-
: undefined;
|
|
77
|
-
obj.royalty_bps = message.royaltyBps === 0 ? undefined : message.royaltyBps;
|
|
78
|
-
obj.update_mask = (message.updateMask?.length ?? 0) > 0
|
|
79
|
-
? message.updateMask.map((e) => e)
|
|
80
|
-
: undefined;
|
|
81
|
-
return obj;
|
|
82
|
-
},
|
|
83
|
-
fromAmino: MsgUpdateClass.fromAmino
|
|
84
|
-
},
|
|
85
|
-
"/sparkdream.artifact.v1.MsgFreezeClassMetadata": {
|
|
86
|
-
aminoType: "sparkdream/x/artifact/MsgFreezeClassMetadata",
|
|
87
|
-
toAmino: MsgFreezeClassMetadata.toAmino,
|
|
88
|
-
fromAmino: MsgFreezeClassMetadata.fromAmino
|
|
89
|
-
},
|
|
90
|
-
"/sparkdream.artifact.v1.MsgSetMintPolicy": {
|
|
91
|
-
aminoType: "sparkdream/x/artifact/MsgSetMintPolicy",
|
|
92
|
-
toAmino: MsgSetMintPolicy.toAmino,
|
|
93
|
-
fromAmino: MsgSetMintPolicy.fromAmino
|
|
94
|
-
},
|
|
95
|
-
"/sparkdream.artifact.v1.MsgSetMinters": {
|
|
96
|
-
aminoType: "sparkdream/x/artifact/MsgSetMinters",
|
|
97
|
-
toAmino(message) {
|
|
98
|
-
const obj = {};
|
|
99
|
-
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
100
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
101
|
-
obj.add = (message.add?.length ?? 0) > 0
|
|
102
|
-
? message.add.map((e) => e)
|
|
103
|
-
: undefined;
|
|
104
|
-
obj.remove = (message.remove?.length ?? 0) > 0
|
|
105
|
-
? message.remove.map((e) => e)
|
|
106
|
-
: undefined;
|
|
107
|
-
return obj;
|
|
108
|
-
},
|
|
109
|
-
fromAmino: MsgSetMinters.fromAmino
|
|
110
|
-
},
|
|
111
|
-
"/sparkdream.artifact.v1.MsgSetMaxSupply": {
|
|
112
|
-
aminoType: "sparkdream/x/artifact/MsgSetMaxSupply",
|
|
113
|
-
toAmino: MsgSetMaxSupply.toAmino,
|
|
114
|
-
fromAmino: MsgSetMaxSupply.fromAmino
|
|
115
|
-
},
|
|
116
|
-
"/sparkdream.artifact.v1.MsgCloseMinting": {
|
|
117
|
-
aminoType: "sparkdream/x/artifact/MsgCloseMinting",
|
|
118
|
-
toAmino: MsgCloseMinting.toAmino,
|
|
119
|
-
fromAmino: MsgCloseMinting.fromAmino
|
|
120
|
-
},
|
|
121
|
-
"/sparkdream.artifact.v1.MsgProposeClassOwner": {
|
|
122
|
-
aminoType: "sparkdream/x/artifact/MsgProposeClassOwner",
|
|
123
|
-
toAmino: MsgProposeClassOwner.toAmino,
|
|
124
|
-
fromAmino: MsgProposeClassOwner.fromAmino
|
|
125
|
-
},
|
|
126
|
-
"/sparkdream.artifact.v1.MsgAcceptClassOwner": {
|
|
127
|
-
aminoType: "sparkdream/x/artifact/MsgAcceptClassOwner",
|
|
128
|
-
toAmino: MsgAcceptClassOwner.toAmino,
|
|
129
|
-
fromAmino: MsgAcceptClassOwner.fromAmino
|
|
130
|
-
},
|
|
131
|
-
"/sparkdream.artifact.v1.MsgCancelClassOwner": {
|
|
132
|
-
aminoType: "sparkdream/x/artifact/MsgCancelClassOwner",
|
|
133
|
-
toAmino: MsgCancelClassOwner.toAmino,
|
|
134
|
-
fromAmino: MsgCancelClassOwner.fromAmino
|
|
135
|
-
},
|
|
136
|
-
"/sparkdream.artifact.v1.MsgDeleteClass": {
|
|
137
|
-
aminoType: "sparkdream/x/artifact/MsgDeleteClass",
|
|
138
|
-
toAmino: MsgDeleteClass.toAmino,
|
|
139
|
-
fromAmino: MsgDeleteClass.fromAmino
|
|
140
|
-
},
|
|
141
|
-
"/sparkdream.artifact.v1.MsgMint": {
|
|
142
|
-
aminoType: "sparkdream/x/artifact/MsgMint",
|
|
143
|
-
toAmino: MsgMint.toAmino,
|
|
144
|
-
fromAmino: MsgMint.fromAmino
|
|
145
|
-
},
|
|
146
|
-
"/sparkdream.artifact.v1.MsgPublicMint": {
|
|
147
|
-
aminoType: "sparkdream/x/artifact/MsgPublicMint",
|
|
148
|
-
toAmino: MsgPublicMint.toAmino,
|
|
149
|
-
fromAmino: MsgPublicMint.fromAmino
|
|
150
|
-
},
|
|
151
|
-
"/sparkdream.artifact.v1.MsgTransfer": {
|
|
152
|
-
aminoType: "sparkdream/x/artifact/MsgTransfer",
|
|
153
|
-
toAmino: MsgTransfer.toAmino,
|
|
154
|
-
fromAmino: MsgTransfer.fromAmino
|
|
155
|
-
},
|
|
156
|
-
"/sparkdream.artifact.v1.MsgAcceptIncoming": {
|
|
157
|
-
aminoType: "sparkdream/x/artifact/MsgAcceptIncoming",
|
|
158
|
-
toAmino: MsgAcceptIncoming.toAmino,
|
|
159
|
-
fromAmino: MsgAcceptIncoming.fromAmino
|
|
160
|
-
},
|
|
161
|
-
"/sparkdream.artifact.v1.MsgRejectIncoming": {
|
|
162
|
-
aminoType: "sparkdream/x/artifact/MsgRejectIncoming",
|
|
163
|
-
toAmino: MsgRejectIncoming.toAmino,
|
|
164
|
-
fromAmino: MsgRejectIncoming.fromAmino
|
|
165
|
-
},
|
|
166
|
-
"/sparkdream.artifact.v1.MsgCancelOutgoing": {
|
|
167
|
-
aminoType: "sparkdream/x/artifact/MsgCancelOutgoing",
|
|
168
|
-
toAmino: MsgCancelOutgoing.toAmino,
|
|
169
|
-
fromAmino: MsgCancelOutgoing.fromAmino
|
|
170
|
-
},
|
|
171
|
-
"/sparkdream.artifact.v1.MsgSetReceivePolicy": {
|
|
172
|
-
aminoType: "sparkdream/x/artifact/MsgSetReceivePolicy",
|
|
173
|
-
toAmino: MsgSetReceivePolicy.toAmino,
|
|
174
|
-
fromAmino: MsgSetReceivePolicy.fromAmino
|
|
175
|
-
},
|
|
176
|
-
"/sparkdream.artifact.v1.MsgBurn": {
|
|
177
|
-
aminoType: "sparkdream/x/artifact/MsgBurn",
|
|
178
|
-
toAmino: MsgBurn.toAmino,
|
|
179
|
-
fromAmino: MsgBurn.fromAmino
|
|
180
|
-
},
|
|
181
|
-
"/sparkdream.artifact.v1.MsgRevoke": {
|
|
182
|
-
aminoType: "sparkdream/x/artifact/MsgRevoke",
|
|
183
|
-
toAmino(message) {
|
|
184
|
-
const obj = {};
|
|
185
|
-
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
186
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
187
|
-
obj.token_ids = (message.tokenIds?.length ?? 0) > 0
|
|
188
|
-
? message.tokenIds.map((e) => e.toString())
|
|
189
|
-
: undefined;
|
|
190
|
-
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
191
|
-
return obj;
|
|
192
|
-
},
|
|
193
|
-
fromAmino: MsgRevoke.fromAmino
|
|
194
|
-
},
|
|
195
|
-
"/sparkdream.artifact.v1.MsgUpdateToken": {
|
|
196
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateToken",
|
|
197
|
-
toAmino: MsgUpdateToken.toAmino,
|
|
198
|
-
fromAmino: MsgUpdateToken.fromAmino
|
|
199
|
-
},
|
|
200
|
-
"/sparkdream.artifact.v1.MsgFreezeTokenMetadata": {
|
|
201
|
-
aminoType: "sparkdream/x/artifact/MsgFreezeTokenMetadata",
|
|
202
|
-
toAmino: MsgFreezeTokenMetadata.toAmino,
|
|
203
|
-
fromAmino: MsgFreezeTokenMetadata.fromAmino
|
|
204
|
-
},
|
|
205
|
-
"/sparkdream.artifact.v1.MsgList": {
|
|
206
|
-
aminoType: "sparkdream/x/artifact/MsgList",
|
|
207
|
-
toAmino: MsgList.toAmino,
|
|
208
|
-
fromAmino: MsgList.fromAmino
|
|
209
|
-
},
|
|
210
|
-
"/sparkdream.artifact.v1.MsgUpdateListing": {
|
|
211
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateListing",
|
|
212
|
-
toAmino: MsgUpdateListing.toAmino,
|
|
213
|
-
fromAmino: MsgUpdateListing.fromAmino
|
|
214
|
-
},
|
|
215
|
-
"/sparkdream.artifact.v1.MsgDelist": {
|
|
216
|
-
aminoType: "sparkdream/x/artifact/MsgDelist",
|
|
217
|
-
toAmino: MsgDelist.toAmino,
|
|
218
|
-
fromAmino: MsgDelist.fromAmino
|
|
219
|
-
},
|
|
220
|
-
"/sparkdream.artifact.v1.MsgBuy": {
|
|
221
|
-
aminoType: "sparkdream/x/artifact/MsgBuy",
|
|
222
|
-
toAmino: MsgBuy.toAmino,
|
|
223
|
-
fromAmino: MsgBuy.fromAmino
|
|
224
|
-
},
|
|
225
|
-
"/sparkdream.artifact.v1.MsgHideContent": {
|
|
226
|
-
aminoType: "sparkdream/x/artifact/MsgHideContent",
|
|
227
|
-
toAmino: MsgHideContent.toAmino,
|
|
228
|
-
fromAmino: MsgHideContent.fromAmino
|
|
229
|
-
},
|
|
230
|
-
"/sparkdream.artifact.v1.MsgUnhideContent": {
|
|
231
|
-
aminoType: "sparkdream/x/artifact/MsgUnhideContent",
|
|
232
|
-
toAmino: MsgUnhideContent.toAmino,
|
|
233
|
-
fromAmino: MsgUnhideContent.fromAmino
|
|
234
|
-
},
|
|
235
|
-
"/sparkdream.artifact.v1.MsgAppealHide": {
|
|
236
|
-
aminoType: "sparkdream/x/artifact/MsgAppealHide",
|
|
237
|
-
toAmino: MsgAppealHide.toAmino,
|
|
238
|
-
fromAmino: MsgAppealHide.fromAmino
|
|
239
|
-
},
|
|
240
|
-
"/sparkdream.artifact.v1.MsgUpdateOperationalParams": {
|
|
241
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateOperationalParams",
|
|
242
|
-
toAmino: MsgUpdateOperationalParams.toAmino,
|
|
243
|
-
fromAmino: MsgUpdateOperationalParams.fromAmino
|
|
244
|
-
},
|
|
245
|
-
"/sparkdream.artifact.v1.MsgIssue": {
|
|
246
|
-
aminoType: "sparkdream/x/artifact/MsgIssue",
|
|
247
|
-
toAmino(message) {
|
|
248
|
-
const obj = {};
|
|
249
|
-
obj.minter = message.minter === "" ? undefined : message.minter;
|
|
250
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
251
|
-
obj.recipients = (message.recipients?.length ?? 0) > 0
|
|
252
|
-
? message.recipients.map((e) => e)
|
|
253
|
-
: undefined;
|
|
254
|
-
obj.metadata = message.metadata ? TokenMetadata.toAmino(message.metadata) : TokenMetadata.toAmino(TokenMetadata.fromPartial({}));
|
|
255
|
-
obj.accepted_content_license = message.acceptedContentLicense === "" ? undefined : message.acceptedContentLicense;
|
|
256
|
-
return obj;
|
|
257
|
-
},
|
|
258
|
-
fromAmino: MsgIssue.fromAmino
|
|
259
|
-
},
|
|
260
|
-
"/sparkdream.artifact.v1.MsgRenew": {
|
|
261
|
-
aminoType: "sparkdream/x/artifact/MsgRenew",
|
|
262
|
-
toAmino: MsgRenew.toAmino,
|
|
263
|
-
fromAmino: MsgRenew.fromAmino
|
|
264
|
-
},
|
|
265
|
-
"/sparkdream.artifact.v1.MsgRedeem": {
|
|
266
|
-
aminoType: "sparkdream/x/artifact/MsgRedeem",
|
|
267
|
-
toAmino(message) {
|
|
268
|
-
const obj = {};
|
|
269
|
-
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
270
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
271
|
-
obj.token_ids = (message.tokenIds?.length ?? 0) > 0
|
|
272
|
-
? message.tokenIds.map((e) => e.toString())
|
|
273
|
-
: undefined;
|
|
274
|
-
return obj;
|
|
275
|
-
},
|
|
276
|
-
fromAmino: MsgRedeem.fromAmino
|
|
277
|
-
},
|
|
278
|
-
"/sparkdream.artifact.v1.MsgLockRoyalty": {
|
|
279
|
-
aminoType: "sparkdream/x/artifact/MsgLockRoyalty",
|
|
280
|
-
toAmino: MsgLockRoyalty.toAmino,
|
|
281
|
-
fromAmino: MsgLockRoyalty.fromAmino
|
|
282
|
-
},
|
|
283
|
-
"/sparkdream.artifact.v1.MsgReveal": {
|
|
284
|
-
aminoType: "sparkdream/x/artifact/MsgReveal",
|
|
285
|
-
toAmino(message) {
|
|
286
|
-
const obj = {};
|
|
287
|
-
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
288
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
289
|
-
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
290
|
-
obj.metadata = message.metadata ? TokenMetadata.toAmino(message.metadata) : TokenMetadata.toAmino(TokenMetadata.fromPartial({}));
|
|
291
|
-
obj.salt = message.salt === "" ? undefined : message.salt;
|
|
292
|
-
obj.proof = (message.proof?.length ?? 0) > 0
|
|
293
|
-
? message.proof.map((e) => e)
|
|
294
|
-
: undefined;
|
|
295
|
-
return obj;
|
|
296
|
-
},
|
|
297
|
-
fromAmino: MsgReveal.fromAmino
|
|
298
|
-
},
|
|
299
|
-
"/sparkdream.artifact.v1.MsgRevealSeed": {
|
|
300
|
-
aminoType: "sparkdream/x/artifact/MsgRevealSeed",
|
|
301
|
-
toAmino: MsgRevealSeed.toAmino,
|
|
302
|
-
fromAmino: MsgRevealSeed.fromAmino
|
|
303
|
-
},
|
|
304
|
-
"/sparkdream.artifact.v1.MsgProposeMedia": {
|
|
305
|
-
aminoType: "sparkdream/x/artifact/MsgProposeMedia",
|
|
306
|
-
toAmino: MsgProposeMedia.toAmino,
|
|
307
|
-
fromAmino: MsgProposeMedia.fromAmino
|
|
308
|
-
},
|
|
309
|
-
"/sparkdream.artifact.v1.MsgAcceptMedia": {
|
|
310
|
-
aminoType: "sparkdream/x/artifact/MsgAcceptMedia",
|
|
311
|
-
toAmino: MsgAcceptMedia.toAmino,
|
|
312
|
-
fromAmino: MsgAcceptMedia.fromAmino
|
|
313
|
-
},
|
|
314
|
-
"/sparkdream.artifact.v1.MsgRejectMedia": {
|
|
315
|
-
aminoType: "sparkdream/x/artifact/MsgRejectMedia",
|
|
316
|
-
toAmino: MsgRejectMedia.toAmino,
|
|
317
|
-
fromAmino: MsgRejectMedia.fromAmino
|
|
318
|
-
},
|
|
319
|
-
"/sparkdream.artifact.v1.MsgSetDisplayedMedia": {
|
|
320
|
-
aminoType: "sparkdream/x/artifact/MsgSetDisplayedMedia",
|
|
321
|
-
toAmino: MsgSetDisplayedMedia.toAmino,
|
|
322
|
-
fromAmino: MsgSetDisplayedMedia.fromAmino
|
|
323
|
-
},
|
|
324
|
-
"/sparkdream.artifact.v1.MsgCreateEdition": {
|
|
325
|
-
aminoType: "sparkdream/x/artifact/MsgCreateEdition",
|
|
326
|
-
toAmino: MsgCreateEdition.toAmino,
|
|
327
|
-
fromAmino: MsgCreateEdition.fromAmino
|
|
328
|
-
},
|
|
329
|
-
"/sparkdream.artifact.v1.MsgMintUnits": {
|
|
330
|
-
aminoType: "sparkdream/x/artifact/MsgMintUnits",
|
|
331
|
-
toAmino: MsgMintUnits.toAmino,
|
|
332
|
-
fromAmino: MsgMintUnits.fromAmino
|
|
333
|
-
},
|
|
334
|
-
"/sparkdream.artifact.v1.MsgTransferUnits": {
|
|
335
|
-
aminoType: "sparkdream/x/artifact/MsgTransferUnits",
|
|
336
|
-
toAmino: MsgTransferUnits.toAmino,
|
|
337
|
-
fromAmino: MsgTransferUnits.fromAmino
|
|
338
|
-
},
|
|
339
|
-
"/sparkdream.artifact.v1.MsgBurnUnits": {
|
|
340
|
-
aminoType: "sparkdream/x/artifact/MsgBurnUnits",
|
|
341
|
-
toAmino: MsgBurnUnits.toAmino,
|
|
342
|
-
fromAmino: MsgBurnUnits.fromAmino
|
|
343
|
-
},
|
|
344
|
-
"/sparkdream.artifact.v1.MsgRevokeUnits": {
|
|
345
|
-
aminoType: "sparkdream/x/artifact/MsgRevokeUnits",
|
|
346
|
-
toAmino: MsgRevokeUnits.toAmino,
|
|
347
|
-
fromAmino: MsgRevokeUnits.fromAmino
|
|
348
|
-
},
|
|
349
|
-
"/sparkdream.artifact.v1.MsgListUnits": {
|
|
350
|
-
aminoType: "sparkdream/x/artifact/MsgListUnits",
|
|
351
|
-
toAmino: MsgListUnits.toAmino,
|
|
352
|
-
fromAmino: MsgListUnits.fromAmino
|
|
353
|
-
},
|
|
354
|
-
"/sparkdream.artifact.v1.MsgDelistUnits": {
|
|
355
|
-
aminoType: "sparkdream/x/artifact/MsgDelistUnits",
|
|
356
|
-
toAmino: MsgDelistUnits.toAmino,
|
|
357
|
-
fromAmino: MsgDelistUnits.fromAmino
|
|
358
|
-
},
|
|
359
|
-
"/sparkdream.artifact.v1.MsgBuyUnits": {
|
|
360
|
-
aminoType: "sparkdream/x/artifact/MsgBuyUnits",
|
|
361
|
-
toAmino: MsgBuyUnits.toAmino,
|
|
362
|
-
fromAmino: MsgBuyUnits.fromAmino
|
|
363
|
-
},
|
|
364
|
-
"/sparkdream.artifact.v1.MsgFundEdition": {
|
|
365
|
-
aminoType: "sparkdream/x/artifact/MsgFundEdition",
|
|
366
|
-
toAmino: MsgFundEdition.toAmino,
|
|
367
|
-
fromAmino: MsgFundEdition.fromAmino
|
|
368
|
-
},
|
|
369
|
-
"/sparkdream.artifact.v1.MsgClaimEditionRewards": {
|
|
370
|
-
aminoType: "sparkdream/x/artifact/MsgClaimEditionRewards",
|
|
371
|
-
toAmino: MsgClaimEditionRewards.toAmino,
|
|
372
|
-
fromAmino: MsgClaimEditionRewards.fromAmino
|
|
373
|
-
},
|
|
374
|
-
"/sparkdream.artifact.v1.MsgAddCraftRecipe": {
|
|
375
|
-
aminoType: "sparkdream/x/artifact/MsgAddCraftRecipe",
|
|
376
|
-
toAmino: MsgAddCraftRecipe.toAmino,
|
|
377
|
-
fromAmino: MsgAddCraftRecipe.fromAmino
|
|
378
|
-
},
|
|
379
|
-
"/sparkdream.artifact.v1.MsgRemoveCraftRecipe": {
|
|
380
|
-
aminoType: "sparkdream/x/artifact/MsgRemoveCraftRecipe",
|
|
381
|
-
toAmino: MsgRemoveCraftRecipe.toAmino,
|
|
382
|
-
fromAmino: MsgRemoveCraftRecipe.fromAmino
|
|
383
|
-
},
|
|
384
|
-
"/sparkdream.artifact.v1.MsgCraft": {
|
|
385
|
-
aminoType: "sparkdream/x/artifact/MsgCraft",
|
|
386
|
-
toAmino(message) {
|
|
387
|
-
const obj = {};
|
|
388
|
-
obj.crafter = message.crafter === "" ? undefined : message.crafter;
|
|
389
|
-
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
390
|
-
obj.recipe_id = message.recipeId !== BigInt(0) ? message.recipeId?.toString() : undefined;
|
|
391
|
-
obj.input_tokens = (message.inputTokens?.length ?? 0) > 0
|
|
392
|
-
? message.inputTokens.map((e) => e ? TokenRef.toAmino(e) : undefined)
|
|
393
|
-
: undefined;
|
|
394
|
-
return obj;
|
|
395
|
-
},
|
|
396
|
-
fromAmino: MsgCraft.fromAmino
|
|
397
|
-
},
|
|
398
|
-
"/sparkdream.artifact.v1.MsgOfferRental": {
|
|
399
|
-
aminoType: "sparkdream/x/artifact/MsgOfferRental",
|
|
400
|
-
toAmino: MsgOfferRental.toAmino,
|
|
401
|
-
fromAmino: MsgOfferRental.fromAmino
|
|
402
|
-
},
|
|
403
|
-
"/sparkdream.artifact.v1.MsgCancelRentalOffer": {
|
|
404
|
-
aminoType: "sparkdream/x/artifact/MsgCancelRentalOffer",
|
|
405
|
-
toAmino: MsgCancelRentalOffer.toAmino,
|
|
406
|
-
fromAmino: MsgCancelRentalOffer.fromAmino
|
|
407
|
-
},
|
|
408
|
-
"/sparkdream.artifact.v1.MsgAcceptRental": {
|
|
409
|
-
aminoType: "sparkdream/x/artifact/MsgAcceptRental",
|
|
410
|
-
toAmino: MsgAcceptRental.toAmino,
|
|
411
|
-
fromAmino: MsgAcceptRental.fromAmino
|
|
412
|
-
},
|
|
413
|
-
"/sparkdream.artifact.v1.MsgEndRental": {
|
|
414
|
-
aminoType: "sparkdream/x/artifact/MsgEndRental",
|
|
415
|
-
toAmino: MsgEndRental.toAmino,
|
|
416
|
-
fromAmino: MsgEndRental.fromAmino
|
|
417
|
-
},
|
|
418
|
-
"/sparkdream.artifact.v1.MsgNest": {
|
|
419
|
-
aminoType: "sparkdream/x/artifact/MsgNest",
|
|
420
|
-
toAmino: MsgNest.toAmino,
|
|
421
|
-
fromAmino: MsgNest.fromAmino
|
|
422
|
-
},
|
|
423
|
-
"/sparkdream.artifact.v1.MsgDetach": {
|
|
424
|
-
aminoType: "sparkdream/x/artifact/MsgDetach",
|
|
425
|
-
toAmino: MsgDetach.toAmino,
|
|
426
|
-
fromAmino: MsgDetach.fromAmino
|
|
427
|
-
},
|
|
428
|
-
"/sparkdream.artifact.v1.MsgSetHarbergerPrice": {
|
|
429
|
-
aminoType: "sparkdream/x/artifact/MsgSetHarbergerPrice",
|
|
430
|
-
toAmino: MsgSetHarbergerPrice.toAmino,
|
|
431
|
-
fromAmino: MsgSetHarbergerPrice.fromAmino
|
|
432
|
-
},
|
|
433
|
-
"/sparkdream.artifact.v1.MsgForceBuy": {
|
|
434
|
-
aminoType: "sparkdream/x/artifact/MsgForceBuy",
|
|
435
|
-
toAmino: MsgForceBuy.toAmino,
|
|
436
|
-
fromAmino: MsgForceBuy.fromAmino
|
|
437
|
-
},
|
|
438
|
-
"/sparkdream.artifact.v1.MsgUpdateUnitListing": {
|
|
439
|
-
aminoType: "sparkdream/x/artifact/MsgUpdateUnitListing",
|
|
440
|
-
toAmino: MsgUpdateUnitListing.toAmino,
|
|
441
|
-
fromAmino: MsgUpdateUnitListing.fromAmino
|
|
442
|
-
},
|
|
443
|
-
"/sparkdream.artifact.v1.MsgMakeOffer": {
|
|
444
|
-
aminoType: "sparkdream/x/artifact/MsgMakeOffer",
|
|
445
|
-
toAmino: MsgMakeOffer.toAmino,
|
|
446
|
-
fromAmino: MsgMakeOffer.fromAmino
|
|
447
|
-
},
|
|
448
|
-
"/sparkdream.artifact.v1.MsgCancelOffer": {
|
|
449
|
-
aminoType: "sparkdream/x/artifact/MsgCancelOffer",
|
|
450
|
-
toAmino: MsgCancelOffer.toAmino,
|
|
451
|
-
fromAmino: MsgCancelOffer.fromAmino
|
|
452
|
-
},
|
|
453
|
-
"/sparkdream.artifact.v1.MsgAcceptOffer": {
|
|
454
|
-
aminoType: "sparkdream/x/artifact/MsgAcceptOffer",
|
|
455
|
-
toAmino: MsgAcceptOffer.toAmino,
|
|
456
|
-
fromAmino: MsgAcceptOffer.fromAmino
|
|
457
|
-
},
|
|
458
|
-
"/sparkdream.artifact.v1.MsgStartAuction": {
|
|
459
|
-
aminoType: "sparkdream/x/artifact/MsgStartAuction",
|
|
460
|
-
toAmino: MsgStartAuction.toAmino,
|
|
461
|
-
fromAmino: MsgStartAuction.fromAmino
|
|
462
|
-
},
|
|
463
|
-
"/sparkdream.artifact.v1.MsgBid": {
|
|
464
|
-
aminoType: "sparkdream/x/artifact/MsgBid",
|
|
465
|
-
toAmino: MsgBid.toAmino,
|
|
466
|
-
fromAmino: MsgBid.fromAmino
|
|
467
|
-
},
|
|
468
|
-
"/sparkdream.artifact.v1.MsgSettleAuction": {
|
|
469
|
-
aminoType: "sparkdream/x/artifact/MsgSettleAuction",
|
|
470
|
-
toAmino: MsgSettleAuction.toAmino,
|
|
471
|
-
fromAmino: MsgSettleAuction.fromAmino
|
|
472
|
-
},
|
|
473
|
-
"/sparkdream.artifact.v1.MsgCancelAuction": {
|
|
474
|
-
aminoType: "sparkdream/x/artifact/MsgCancelAuction",
|
|
475
|
-
toAmino: MsgCancelAuction.toAmino,
|
|
476
|
-
fromAmino: MsgCancelAuction.fromAmino
|
|
477
|
-
}
|
|
478
|
-
};
|
|
12
|
+
// MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
|
|
13
|
+
// the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
|
|
14
|
+
// checks them all against the chain's encoder.
|
|
15
|
+
import * as tx from "./tx";
|
|
16
|
+
import { chainAminoConverters } from "../../../chain-amino";
|
|
17
|
+
export const AminoConverter = chainAminoConverters("sparkdream.artifact.v1", tx);
|
|
@@ -1,137 +1,17 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
// HAND-WRITTEN OVERRIDE — overlaid
|
|
3
|
-
//
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
3
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
4
4
|
//
|
|
5
|
-
// Telescope
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
toAmino: MsgUpdateOperationalParams.toAmino,
|
|
19
|
-
fromAmino: MsgUpdateOperationalParams.fromAmino,
|
|
20
|
-
},
|
|
21
|
-
"/sparkdream.blog.v1.MsgCreatePost": {
|
|
22
|
-
aminoType: "sparkdream/x/blog/MsgCreatePost",
|
|
23
|
-
toAmino(message) {
|
|
24
|
-
const obj = {};
|
|
25
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
26
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
27
|
-
obj.body = message.body === "" ? undefined : message.body;
|
|
28
|
-
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
29
|
-
obj.min_reply_trust_level = message.minReplyTrustLevel === 0 ? undefined : message.minReplyTrustLevel;
|
|
30
|
-
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
31
|
-
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
32
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
33
|
-
? message.tags.map((e) => e)
|
|
34
|
-
: undefined;
|
|
35
|
-
return obj;
|
|
36
|
-
},
|
|
37
|
-
fromAmino: MsgCreatePost.fromAmino,
|
|
38
|
-
},
|
|
39
|
-
"/sparkdream.blog.v1.MsgUpdatePost": {
|
|
40
|
-
aminoType: "sparkdream/x/blog/MsgUpdatePost",
|
|
41
|
-
toAmino(message) {
|
|
42
|
-
const obj = {};
|
|
43
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
44
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
45
|
-
obj.body = message.body === "" ? undefined : message.body;
|
|
46
|
-
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
47
|
-
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
48
|
-
obj.replies_enabled = message.repliesEnabled === false ? undefined : message.repliesEnabled;
|
|
49
|
-
obj.min_reply_trust_level = message.minReplyTrustLevel === 0 ? undefined : message.minReplyTrustLevel;
|
|
50
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
51
|
-
? message.tags.map((e) => e)
|
|
52
|
-
: undefined;
|
|
53
|
-
return obj;
|
|
54
|
-
},
|
|
55
|
-
fromAmino: MsgUpdatePost.fromAmino,
|
|
56
|
-
},
|
|
57
|
-
"/sparkdream.blog.v1.MsgDeletePost": {
|
|
58
|
-
aminoType: "sparkdream/x/blog/MsgDeletePost",
|
|
59
|
-
toAmino: MsgDeletePost.toAmino,
|
|
60
|
-
fromAmino: MsgDeletePost.fromAmino,
|
|
61
|
-
},
|
|
62
|
-
"/sparkdream.blog.v1.MsgHidePost": {
|
|
63
|
-
aminoType: "sparkdream/x/blog/MsgHidePost",
|
|
64
|
-
toAmino: MsgHidePost.toAmino,
|
|
65
|
-
fromAmino: MsgHidePost.fromAmino,
|
|
66
|
-
},
|
|
67
|
-
"/sparkdream.blog.v1.MsgUnhidePost": {
|
|
68
|
-
aminoType: "sparkdream/x/blog/MsgUnhidePost",
|
|
69
|
-
toAmino: MsgUnhidePost.toAmino,
|
|
70
|
-
fromAmino: MsgUnhidePost.fromAmino,
|
|
71
|
-
},
|
|
72
|
-
"/sparkdream.blog.v1.MsgCreateReply": {
|
|
73
|
-
aminoType: "sparkdream/x/blog/MsgCreateReply",
|
|
74
|
-
toAmino: MsgCreateReply.toAmino,
|
|
75
|
-
fromAmino: MsgCreateReply.fromAmino,
|
|
76
|
-
},
|
|
77
|
-
"/sparkdream.blog.v1.MsgUpdateReply": {
|
|
78
|
-
aminoType: "sparkdream/x/blog/MsgUpdateReply",
|
|
79
|
-
toAmino: MsgUpdateReply.toAmino,
|
|
80
|
-
fromAmino: MsgUpdateReply.fromAmino,
|
|
81
|
-
},
|
|
82
|
-
"/sparkdream.blog.v1.MsgDeleteReply": {
|
|
83
|
-
aminoType: "sparkdream/x/blog/MsgDeleteReply",
|
|
84
|
-
toAmino: MsgDeleteReply.toAmino,
|
|
85
|
-
fromAmino: MsgDeleteReply.fromAmino,
|
|
86
|
-
},
|
|
87
|
-
"/sparkdream.blog.v1.MsgHideReply": {
|
|
88
|
-
aminoType: "sparkdream/x/blog/MsgHideReply",
|
|
89
|
-
toAmino: MsgHideReply.toAmino,
|
|
90
|
-
fromAmino: MsgHideReply.fromAmino,
|
|
91
|
-
},
|
|
92
|
-
"/sparkdream.blog.v1.MsgUnhideReply": {
|
|
93
|
-
aminoType: "sparkdream/x/blog/MsgUnhideReply",
|
|
94
|
-
toAmino: MsgUnhideReply.toAmino,
|
|
95
|
-
fromAmino: MsgUnhideReply.fromAmino,
|
|
96
|
-
},
|
|
97
|
-
"/sparkdream.blog.v1.MsgReact": {
|
|
98
|
-
aminoType: "sparkdream/x/blog/MsgReact",
|
|
99
|
-
toAmino: MsgReact.toAmino,
|
|
100
|
-
fromAmino: MsgReact.fromAmino,
|
|
101
|
-
},
|
|
102
|
-
"/sparkdream.blog.v1.MsgRemoveReaction": {
|
|
103
|
-
aminoType: "sparkdream/x/blog/MsgRemoveReaction",
|
|
104
|
-
toAmino: MsgRemoveReaction.toAmino,
|
|
105
|
-
fromAmino: MsgRemoveReaction.fromAmino,
|
|
106
|
-
},
|
|
107
|
-
"/sparkdream.blog.v1.MsgPinPost": {
|
|
108
|
-
aminoType: "sparkdream/x/blog/MsgPinPost",
|
|
109
|
-
toAmino: MsgPinPost.toAmino,
|
|
110
|
-
fromAmino: MsgPinPost.fromAmino,
|
|
111
|
-
},
|
|
112
|
-
"/sparkdream.blog.v1.MsgPinReply": {
|
|
113
|
-
aminoType: "sparkdream/x/blog/MsgPinReply",
|
|
114
|
-
toAmino: MsgPinReply.toAmino,
|
|
115
|
-
fromAmino: MsgPinReply.fromAmino,
|
|
116
|
-
},
|
|
117
|
-
"/sparkdream.blog.v1.MsgUnpinPost": {
|
|
118
|
-
aminoType: "sparkdream/x/blog/MsgUnpinPost",
|
|
119
|
-
toAmino: MsgUnpinPost.toAmino,
|
|
120
|
-
fromAmino: MsgUnpinPost.fromAmino,
|
|
121
|
-
},
|
|
122
|
-
"/sparkdream.blog.v1.MsgUnpinReply": {
|
|
123
|
-
aminoType: "sparkdream/x/blog/MsgUnpinReply",
|
|
124
|
-
toAmino: MsgUnpinReply.toAmino,
|
|
125
|
-
fromAmino: MsgUnpinReply.fromAmino,
|
|
126
|
-
},
|
|
127
|
-
"/sparkdream.blog.v1.MsgMakePostPermanent": {
|
|
128
|
-
aminoType: "sparkdream/x/blog/MsgMakePostPermanent",
|
|
129
|
-
toAmino: MsgMakePostPermanent.toAmino,
|
|
130
|
-
fromAmino: MsgMakePostPermanent.fromAmino,
|
|
131
|
-
},
|
|
132
|
-
"/sparkdream.blog.v1.MsgMakeReplyPermanent": {
|
|
133
|
-
aminoType: "sparkdream/x/blog/MsgMakeReplyPermanent",
|
|
134
|
-
toAmino: MsgMakeReplyPermanent.toAmino,
|
|
135
|
-
fromAmino: MsgMakeReplyPermanent.fromAmino,
|
|
136
|
-
},
|
|
137
|
-
};
|
|
5
|
+
// Why: Telescope's generated converters (and the per-message overrides that
|
|
6
|
+
// used to patch them) disagree with the chain's aminojson on empty lists,
|
|
7
|
+
// empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
|
|
8
|
+
// whenever a proto changed. Every Msg of x/blog is converted by the
|
|
9
|
+
// schema-driven engine in chain-amino.ts instead, which renders amino JSON
|
|
10
|
+
// from the protobuf bytes exactly as the chain does.
|
|
11
|
+
//
|
|
12
|
+
// MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
|
|
13
|
+
// the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
|
|
14
|
+
// checks them all against the chain's encoder.
|
|
15
|
+
import * as tx from "./tx";
|
|
16
|
+
import { chainAminoConverters } from "../../../chain-amino";
|
|
17
|
+
export const AminoConverter = chainAminoConverters("sparkdream.blog.v1", tx);
|