@sparkdreamnft/sparkdreamjs 0.0.46 → 0.0.48
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/query.js +125 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +7 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/artifact/v1/tx.amino.js +12 -473
- package/esm/sparkdream/artifact/v1/tx.js +13 -1
- 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/query.js +304 -1
- package/esm/sparkdream/rep/v1/query.lcd.js +19 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +22 -1
- 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/query.d.ts +86 -0
- package/sparkdream/artifact/v1/query.js +126 -1
- package/sparkdream/artifact/v1/query.lcd.d.ts +2 -1
- package/sparkdream/artifact/v1/query.lcd.js +7 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/artifact/v1/query.rpc.Query.js +11 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +1 -353
- package/sparkdream/artifact/v1/tx.amino.js +47 -475
- package/sparkdream/artifact/v1/tx.d.ts +14 -0
- package/sparkdream/artifact/v1/tx.js +13 -1
- package/sparkdream/blog/v1/tx.amino.d.ts +1 -103
- package/sparkdream/blog/v1/tx.amino.js +50 -137
- package/sparkdream/bundle.d.ts +97 -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/query.d.ts +187 -1
- package/sparkdream/rep/v1/query.js +304 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +19 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +16 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +21 -0
- 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/rpc.query.d.ts +3 -0
- 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
|
@@ -1,233 +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
|
-
// them
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
fromAmino: MsgUpdateOperationalParams.fromAmino,
|
|
19
|
-
},
|
|
20
|
-
"/sparkdream.forum.v1.MsgCreatePost": {
|
|
21
|
-
aminoType: "sparkdream/x/forum/MsgCreatePost",
|
|
22
|
-
toAmino(message) {
|
|
23
|
-
const obj = {};
|
|
24
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
25
|
-
obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
|
|
26
|
-
obj.parent_id = message.parentId !== BigInt(0) ? message.parentId?.toString() : undefined;
|
|
27
|
-
obj.content = message.content === "" ? undefined : message.content;
|
|
28
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
29
|
-
? message.tags.map((e) => e)
|
|
30
|
-
: undefined;
|
|
31
|
-
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
32
|
-
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
33
|
-
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
34
|
-
return obj;
|
|
35
|
-
},
|
|
36
|
-
fromAmino: MsgCreatePost.fromAmino,
|
|
37
|
-
},
|
|
38
|
-
"/sparkdream.forum.v1.MsgEditPost": {
|
|
39
|
-
aminoType: "sparkdream/x/forum/MsgEditPost",
|
|
40
|
-
toAmino(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
43
|
-
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
44
|
-
obj.new_content = message.newContent === "" ? undefined : message.newContent;
|
|
45
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
46
|
-
? message.tags.map((e) => e)
|
|
47
|
-
: undefined;
|
|
48
|
-
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
49
|
-
return obj;
|
|
50
|
-
},
|
|
51
|
-
fromAmino: MsgEditPost.fromAmino,
|
|
52
|
-
},
|
|
53
|
-
"/sparkdream.forum.v1.MsgDeletePost": {
|
|
54
|
-
aminoType: "sparkdream/x/forum/MsgDeletePost",
|
|
55
|
-
toAmino: MsgDeletePost.toAmino,
|
|
56
|
-
fromAmino: MsgDeletePost.fromAmino,
|
|
57
|
-
},
|
|
58
|
-
"/sparkdream.forum.v1.MsgFreezeThread": {
|
|
59
|
-
aminoType: "sparkdream/x/forum/MsgFreezeThread",
|
|
60
|
-
toAmino: MsgFreezeThread.toAmino,
|
|
61
|
-
fromAmino: MsgFreezeThread.fromAmino,
|
|
62
|
-
},
|
|
63
|
-
"/sparkdream.forum.v1.MsgUnarchiveThread": {
|
|
64
|
-
aminoType: "sparkdream/x/forum/MsgUnarchiveThread",
|
|
65
|
-
toAmino: MsgUnarchiveThread.toAmino,
|
|
66
|
-
fromAmino: MsgUnarchiveThread.fromAmino,
|
|
67
|
-
},
|
|
68
|
-
"/sparkdream.forum.v1.MsgPinPost": {
|
|
69
|
-
aminoType: "sparkdream/x/forum/MsgPinPost",
|
|
70
|
-
toAmino: MsgPinPost.toAmino,
|
|
71
|
-
fromAmino: MsgPinPost.fromAmino,
|
|
72
|
-
},
|
|
73
|
-
"/sparkdream.forum.v1.MsgUnpinPost": {
|
|
74
|
-
aminoType: "sparkdream/x/forum/MsgUnpinPost",
|
|
75
|
-
toAmino: MsgUnpinPost.toAmino,
|
|
76
|
-
fromAmino: MsgUnpinPost.fromAmino,
|
|
77
|
-
},
|
|
78
|
-
"/sparkdream.forum.v1.MsgLockThread": {
|
|
79
|
-
aminoType: "sparkdream/x/forum/MsgLockThread",
|
|
80
|
-
toAmino: MsgLockThread.toAmino,
|
|
81
|
-
fromAmino: MsgLockThread.fromAmino,
|
|
82
|
-
},
|
|
83
|
-
"/sparkdream.forum.v1.MsgUnlockThread": {
|
|
84
|
-
aminoType: "sparkdream/x/forum/MsgUnlockThread",
|
|
85
|
-
toAmino: MsgUnlockThread.toAmino,
|
|
86
|
-
fromAmino: MsgUnlockThread.fromAmino,
|
|
87
|
-
},
|
|
88
|
-
"/sparkdream.forum.v1.MsgMoveThread": {
|
|
89
|
-
aminoType: "sparkdream/x/forum/MsgMoveThread",
|
|
90
|
-
toAmino: MsgMoveThread.toAmino,
|
|
91
|
-
fromAmino: MsgMoveThread.fromAmino,
|
|
92
|
-
},
|
|
93
|
-
"/sparkdream.forum.v1.MsgFollowThread": {
|
|
94
|
-
aminoType: "sparkdream/x/forum/MsgFollowThread",
|
|
95
|
-
toAmino: MsgFollowThread.toAmino,
|
|
96
|
-
fromAmino: MsgFollowThread.fromAmino,
|
|
97
|
-
},
|
|
98
|
-
"/sparkdream.forum.v1.MsgUnfollowThread": {
|
|
99
|
-
aminoType: "sparkdream/x/forum/MsgUnfollowThread",
|
|
100
|
-
toAmino: MsgUnfollowThread.toAmino,
|
|
101
|
-
fromAmino: MsgUnfollowThread.fromAmino,
|
|
102
|
-
},
|
|
103
|
-
"/sparkdream.forum.v1.MsgUpvotePost": {
|
|
104
|
-
aminoType: "sparkdream/x/forum/MsgUpvotePost",
|
|
105
|
-
toAmino: MsgUpvotePost.toAmino,
|
|
106
|
-
fromAmino: MsgUpvotePost.fromAmino,
|
|
107
|
-
},
|
|
108
|
-
"/sparkdream.forum.v1.MsgDownvotePost": {
|
|
109
|
-
aminoType: "sparkdream/x/forum/MsgDownvotePost",
|
|
110
|
-
toAmino: MsgDownvotePost.toAmino,
|
|
111
|
-
fromAmino: MsgDownvotePost.fromAmino,
|
|
112
|
-
},
|
|
113
|
-
"/sparkdream.forum.v1.MsgFlagPost": {
|
|
114
|
-
aminoType: "sparkdream/x/forum/MsgFlagPost",
|
|
115
|
-
toAmino: MsgFlagPost.toAmino,
|
|
116
|
-
fromAmino: MsgFlagPost.fromAmino,
|
|
117
|
-
},
|
|
118
|
-
"/sparkdream.forum.v1.MsgDismissFlags": {
|
|
119
|
-
aminoType: "sparkdream/x/forum/MsgDismissFlags",
|
|
120
|
-
toAmino: MsgDismissFlags.toAmino,
|
|
121
|
-
fromAmino: MsgDismissFlags.fromAmino,
|
|
122
|
-
},
|
|
123
|
-
"/sparkdream.forum.v1.MsgHidePost": {
|
|
124
|
-
aminoType: "sparkdream/x/forum/MsgHidePost",
|
|
125
|
-
toAmino: MsgHidePost.toAmino,
|
|
126
|
-
fromAmino: MsgHidePost.fromAmino,
|
|
127
|
-
},
|
|
128
|
-
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
129
|
-
aminoType: "sparkdream/x/forum/MsgUnhidePost",
|
|
130
|
-
toAmino: MsgUnhidePost.toAmino,
|
|
131
|
-
fromAmino: MsgUnhidePost.fromAmino,
|
|
132
|
-
},
|
|
133
|
-
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
134
|
-
aminoType: "sparkdream/x/forum/MsgAppealPost",
|
|
135
|
-
toAmino: MsgAppealPost.toAmino,
|
|
136
|
-
fromAmino: MsgAppealPost.fromAmino,
|
|
137
|
-
},
|
|
138
|
-
"/sparkdream.forum.v1.MsgAppealThreadLock": {
|
|
139
|
-
aminoType: "sparkdream/x/forum/MsgAppealThreadLock",
|
|
140
|
-
toAmino: MsgAppealThreadLock.toAmino,
|
|
141
|
-
fromAmino: MsgAppealThreadLock.fromAmino,
|
|
142
|
-
},
|
|
143
|
-
"/sparkdream.forum.v1.MsgAppealThreadMove": {
|
|
144
|
-
aminoType: "sparkdream/x/forum/MsgAppealThreadMove",
|
|
145
|
-
toAmino: MsgAppealThreadMove.toAmino,
|
|
146
|
-
fromAmino: MsgAppealThreadMove.fromAmino,
|
|
147
|
-
},
|
|
148
|
-
"/sparkdream.forum.v1.MsgCreateBounty": {
|
|
149
|
-
aminoType: "sparkdream/x/forum/MsgCreateBounty",
|
|
150
|
-
toAmino: MsgCreateBounty.toAmino,
|
|
151
|
-
fromAmino: MsgCreateBounty.fromAmino,
|
|
152
|
-
},
|
|
153
|
-
"/sparkdream.forum.v1.MsgAwardBounty": {
|
|
154
|
-
aminoType: "sparkdream/x/forum/MsgAwardBounty",
|
|
155
|
-
toAmino: MsgAwardBounty.toAmino,
|
|
156
|
-
fromAmino: MsgAwardBounty.fromAmino,
|
|
157
|
-
},
|
|
158
|
-
"/sparkdream.forum.v1.MsgIncreaseBounty": {
|
|
159
|
-
aminoType: "sparkdream/x/forum/MsgIncreaseBounty",
|
|
160
|
-
toAmino: MsgIncreaseBounty.toAmino,
|
|
161
|
-
fromAmino: MsgIncreaseBounty.fromAmino,
|
|
162
|
-
},
|
|
163
|
-
"/sparkdream.forum.v1.MsgCancelBounty": {
|
|
164
|
-
aminoType: "sparkdream/x/forum/MsgCancelBounty",
|
|
165
|
-
toAmino: MsgCancelBounty.toAmino,
|
|
166
|
-
fromAmino: MsgCancelBounty.fromAmino,
|
|
167
|
-
},
|
|
168
|
-
"/sparkdream.forum.v1.MsgAssignBountyToReply": {
|
|
169
|
-
aminoType: "sparkdream/x/forum/MsgAssignBountyToReply",
|
|
170
|
-
toAmino: MsgAssignBountyToReply.toAmino,
|
|
171
|
-
fromAmino: MsgAssignBountyToReply.fromAmino,
|
|
172
|
-
},
|
|
173
|
-
"/sparkdream.forum.v1.MsgPinReply": {
|
|
174
|
-
aminoType: "sparkdream/x/forum/MsgPinReply",
|
|
175
|
-
toAmino: MsgPinReply.toAmino,
|
|
176
|
-
fromAmino: MsgPinReply.fromAmino,
|
|
177
|
-
},
|
|
178
|
-
"/sparkdream.forum.v1.MsgUnpinReply": {
|
|
179
|
-
aminoType: "sparkdream/x/forum/MsgUnpinReply",
|
|
180
|
-
toAmino: MsgUnpinReply.toAmino,
|
|
181
|
-
fromAmino: MsgUnpinReply.fromAmino,
|
|
182
|
-
},
|
|
183
|
-
"/sparkdream.forum.v1.MsgDisputePin": {
|
|
184
|
-
aminoType: "sparkdream/x/forum/MsgDisputePin",
|
|
185
|
-
toAmino: MsgDisputePin.toAmino,
|
|
186
|
-
fromAmino: MsgDisputePin.fromAmino,
|
|
187
|
-
},
|
|
188
|
-
"/sparkdream.forum.v1.MsgMarkAcceptedReply": {
|
|
189
|
-
aminoType: "sparkdream/x/forum/MsgMarkAcceptedReply",
|
|
190
|
-
toAmino: MsgMarkAcceptedReply.toAmino,
|
|
191
|
-
fromAmino: MsgMarkAcceptedReply.fromAmino,
|
|
192
|
-
},
|
|
193
|
-
"/sparkdream.forum.v1.MsgConfirmProposedReply": {
|
|
194
|
-
aminoType: "sparkdream/x/forum/MsgConfirmProposedReply",
|
|
195
|
-
toAmino: MsgConfirmProposedReply.toAmino,
|
|
196
|
-
fromAmino: MsgConfirmProposedReply.fromAmino,
|
|
197
|
-
},
|
|
198
|
-
"/sparkdream.forum.v1.MsgRejectProposedReply": {
|
|
199
|
-
aminoType: "sparkdream/x/forum/MsgRejectProposedReply",
|
|
200
|
-
toAmino: MsgRejectProposedReply.toAmino,
|
|
201
|
-
fromAmino: MsgRejectProposedReply.fromAmino,
|
|
202
|
-
},
|
|
203
|
-
"/sparkdream.forum.v1.MsgSetForumPaused": {
|
|
204
|
-
aminoType: "sparkdream/x/forum/MsgSetForumPaused",
|
|
205
|
-
toAmino: MsgSetForumPaused.toAmino,
|
|
206
|
-
fromAmino: MsgSetForumPaused.fromAmino,
|
|
207
|
-
},
|
|
208
|
-
"/sparkdream.forum.v1.MsgSetModerationPaused": {
|
|
209
|
-
aminoType: "sparkdream/x/forum/MsgSetModerationPaused",
|
|
210
|
-
toAmino: MsgSetModerationPaused.toAmino,
|
|
211
|
-
fromAmino: MsgSetModerationPaused.fromAmino,
|
|
212
|
-
},
|
|
213
|
-
"/sparkdream.forum.v1.MsgMakePostPermanent": {
|
|
214
|
-
aminoType: "sparkdream/x/forum/MsgMakePostPermanent",
|
|
215
|
-
toAmino: MsgMakePostPermanent.toAmino,
|
|
216
|
-
fromAmino: MsgMakePostPermanent.fromAmino,
|
|
217
|
-
},
|
|
218
|
-
"/sparkdream.forum.v1.MsgStakePostConviction": {
|
|
219
|
-
aminoType: "sparkdream/x/forum/MsgStakePostConviction",
|
|
220
|
-
toAmino: MsgStakePostConviction.toAmino,
|
|
221
|
-
fromAmino: MsgStakePostConviction.fromAmino,
|
|
222
|
-
},
|
|
223
|
-
"/sparkdream.forum.v1.MsgReleasePostConviction": {
|
|
224
|
-
aminoType: "sparkdream/x/forum/MsgReleasePostConviction",
|
|
225
|
-
toAmino: MsgReleasePostConviction.toAmino,
|
|
226
|
-
fromAmino: MsgReleasePostConviction.fromAmino,
|
|
227
|
-
},
|
|
228
|
-
"/sparkdream.forum.v1.MsgSetThreadProposalsLock": {
|
|
229
|
-
aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
230
|
-
toAmino: MsgSetThreadProposalsLock.toAmino,
|
|
231
|
-
fromAmino: MsgSetThreadProposalsLock.fromAmino,
|
|
232
|
-
},
|
|
233
|
-
};
|
|
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/forum 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.forum.v1", tx);
|
|
@@ -1,39 +1,17 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
"/sparkdream.futarchy.v1.MsgTrade": {
|
|
20
|
-
aminoType: "sparkdream/x/futarchy/MsgTrade",
|
|
21
|
-
toAmino: MsgTrade.toAmino,
|
|
22
|
-
fromAmino: MsgTrade.fromAmino
|
|
23
|
-
},
|
|
24
|
-
"/sparkdream.futarchy.v1.MsgRedeem": {
|
|
25
|
-
aminoType: "sparkdream/x/futarchy/MsgRedeem",
|
|
26
|
-
toAmino: MsgRedeem.toAmino,
|
|
27
|
-
fromAmino: MsgRedeem.fromAmino
|
|
28
|
-
},
|
|
29
|
-
"/sparkdream.futarchy.v1.MsgCancelMarket": {
|
|
30
|
-
aminoType: "sparkdream/x/futarchy/MsgCancelMarket",
|
|
31
|
-
toAmino: MsgCancelMarket.toAmino,
|
|
32
|
-
fromAmino: MsgCancelMarket.fromAmino
|
|
33
|
-
},
|
|
34
|
-
"/sparkdream.futarchy.v1.MsgWithdrawLiquidity": {
|
|
35
|
-
aminoType: "sparkdream/x/futarchy/MsgWithdrawLiquidity",
|
|
36
|
-
toAmino: MsgWithdrawLiquidity.toAmino,
|
|
37
|
-
fromAmino: MsgWithdrawLiquidity.fromAmino
|
|
38
|
-
}
|
|
39
|
-
};
|
|
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
|
+
//
|
|
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/futarchy 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.futarchy.v1", tx);
|
|
@@ -2,38 +2,17 @@
|
|
|
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
|
|
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/guardian 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
|
-
// proto
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// every message in tx.proto. A message added to the proto but not added here
|
|
18
|
-
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
19
|
-
// fails at runtime. When syncing protos, diff the message list in
|
|
20
|
-
// protos/sparkdream/guardian/v1/tx.proto against the keys below.
|
|
21
|
-
import { anyToAmino, aminoToAny } from "../../../nested-amino";
|
|
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";
|
|
22
17
|
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
23
|
-
export const AminoConverter =
|
|
24
|
-
"/sparkdream.guardian.v1.MsgExec": {
|
|
25
|
-
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
26
|
-
toAmino(message) {
|
|
27
|
-
const obj = {};
|
|
28
|
-
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
29
|
-
obj.inner = message.inner ? anyToAmino(message.inner) : undefined;
|
|
30
|
-
return obj;
|
|
31
|
-
},
|
|
32
|
-
fromAmino(object) {
|
|
33
|
-
return {
|
|
34
|
-
authority: object.authority ?? "",
|
|
35
|
-
inner: object.inner ? aminoToAny(object.inner) : undefined,
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
}
|
|
39
|
-
};
|
|
18
|
+
export const AminoConverter = chainAminoConverters("sparkdream.guardian.v1", tx);
|
|
@@ -1,64 +1,17 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
"/sparkdream.name.v1.MsgSetPrimary": {
|
|
20
|
-
aminoType: "sparkdream/x/name/MsgSetPrimary",
|
|
21
|
-
toAmino: MsgSetPrimary.toAmino,
|
|
22
|
-
fromAmino: MsgSetPrimary.fromAmino
|
|
23
|
-
},
|
|
24
|
-
"/sparkdream.name.v1.MsgFileDispute": {
|
|
25
|
-
aminoType: "sparkdream/x/name/MsgFileDispute",
|
|
26
|
-
toAmino: MsgFileDispute.toAmino,
|
|
27
|
-
fromAmino: MsgFileDispute.fromAmino
|
|
28
|
-
},
|
|
29
|
-
"/sparkdream.name.v1.MsgContestDispute": {
|
|
30
|
-
aminoType: "sparkdream/x/name/MsgContestDispute",
|
|
31
|
-
toAmino: MsgContestDispute.toAmino,
|
|
32
|
-
fromAmino: MsgContestDispute.fromAmino
|
|
33
|
-
},
|
|
34
|
-
"/sparkdream.name.v1.MsgResolveDispute": {
|
|
35
|
-
aminoType: "sparkdream/x/name/MsgResolveDispute",
|
|
36
|
-
toAmino: MsgResolveDispute.toAmino,
|
|
37
|
-
fromAmino: MsgResolveDispute.fromAmino
|
|
38
|
-
},
|
|
39
|
-
"/sparkdream.name.v1.MsgUpdateName": {
|
|
40
|
-
aminoType: "sparkdream/x/name/MsgUpdateName",
|
|
41
|
-
toAmino: MsgUpdateName.toAmino,
|
|
42
|
-
fromAmino: MsgUpdateName.fromAmino
|
|
43
|
-
},
|
|
44
|
-
"/sparkdream.name.v1.MsgSetDisplayName": {
|
|
45
|
-
aminoType: "sparkdream/x/name/MsgSetDisplayName",
|
|
46
|
-
toAmino: MsgSetDisplayName.toAmino,
|
|
47
|
-
fromAmino: MsgSetDisplayName.fromAmino
|
|
48
|
-
},
|
|
49
|
-
"/sparkdream.name.v1.MsgSetTarget": {
|
|
50
|
-
aminoType: "sparkdream/x/name/MsgSetTarget",
|
|
51
|
-
toAmino: MsgSetTarget.toAmino,
|
|
52
|
-
fromAmino: MsgSetTarget.fromAmino
|
|
53
|
-
},
|
|
54
|
-
"/sparkdream.name.v1.MsgAcceptTarget": {
|
|
55
|
-
aminoType: "sparkdream/x/name/MsgAcceptTarget",
|
|
56
|
-
toAmino: MsgAcceptTarget.toAmino,
|
|
57
|
-
fromAmino: MsgAcceptTarget.fromAmino
|
|
58
|
-
},
|
|
59
|
-
"/sparkdream.name.v1.MsgTransferName": {
|
|
60
|
-
aminoType: "sparkdream/x/name/MsgTransferName",
|
|
61
|
-
toAmino: MsgTransferName.toAmino,
|
|
62
|
-
fromAmino: MsgTransferName.fromAmino
|
|
63
|
-
}
|
|
64
|
-
};
|
|
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
|
+
//
|
|
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/name 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.name.v1", tx);
|