@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.17
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/esm/sparkdream/blog/v1/tx.amino.js +53 -20
- package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
- package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
- package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
- package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
- package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/esm/sparkdream/session/v1/tx.amino.js +17 -1
- package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
- package/package.json +1 -1
- package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.js +53 -20
- package/sparkdream/bundle.d.ts +35 -30
- package/sparkdream/client.d.ts +35 -30
- package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
- package/sparkdream/collect/v1/tx.amino.js +138 -36
- package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.js +75 -5
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
- package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
- package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
- package/sparkdream/forum/v1/tx.amino.js +69 -40
- package/sparkdream/rep/v1/tx.amino.d.ts +9 -9
- package/sparkdream/rep/v1/tx.amino.js +177 -58
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
- package/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/sparkdream/session/v1/tx.amino.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.js +17 -1
- package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
- package/sparkdream/shield/v1/tx.amino.js +61 -8
|
@@ -7,12 +7,12 @@ export declare const AminoConverter: {
|
|
|
7
7
|
};
|
|
8
8
|
"/sparkdream.collect.v1.MsgCreateCollection": {
|
|
9
9
|
aminoType: string;
|
|
10
|
-
toAmino
|
|
10
|
+
toAmino(message: any): any;
|
|
11
11
|
fromAmino: (object: import("./tx").MsgCreateCollectionAmino) => MsgCreateCollection;
|
|
12
12
|
};
|
|
13
13
|
"/sparkdream.collect.v1.MsgUpdateCollection": {
|
|
14
14
|
aminoType: string;
|
|
15
|
-
toAmino
|
|
15
|
+
toAmino(message: any): any;
|
|
16
16
|
fromAmino: (object: import("./tx").MsgUpdateCollectionAmino) => MsgUpdateCollection;
|
|
17
17
|
};
|
|
18
18
|
"/sparkdream.collect.v1.MsgDeleteCollection": {
|
|
@@ -22,17 +22,17 @@ export declare const AminoConverter: {
|
|
|
22
22
|
};
|
|
23
23
|
"/sparkdream.collect.v1.MsgAddItem": {
|
|
24
24
|
aminoType: string;
|
|
25
|
-
toAmino
|
|
25
|
+
toAmino(message: any): any;
|
|
26
26
|
fromAmino: (object: import("./tx").MsgAddItemAmino) => MsgAddItem;
|
|
27
27
|
};
|
|
28
28
|
"/sparkdream.collect.v1.MsgAddItems": {
|
|
29
29
|
aminoType: string;
|
|
30
|
-
toAmino
|
|
30
|
+
toAmino(message: any): any;
|
|
31
31
|
fromAmino: (object: import("./tx").MsgAddItemsAmino) => MsgAddItems;
|
|
32
32
|
};
|
|
33
33
|
"/sparkdream.collect.v1.MsgUpdateItem": {
|
|
34
34
|
aminoType: string;
|
|
35
|
-
toAmino
|
|
35
|
+
toAmino(message: any): any;
|
|
36
36
|
fromAmino: (object: import("./tx").MsgUpdateItemAmino) => MsgUpdateItem;
|
|
37
37
|
};
|
|
38
38
|
"/sparkdream.collect.v1.MsgRemoveItem": {
|
|
@@ -42,7 +42,7 @@ export declare const AminoConverter: {
|
|
|
42
42
|
};
|
|
43
43
|
"/sparkdream.collect.v1.MsgRemoveItems": {
|
|
44
44
|
aminoType: string;
|
|
45
|
-
toAmino
|
|
45
|
+
toAmino(message: any): any;
|
|
46
46
|
fromAmino: (object: import("./tx").MsgRemoveItemsAmino) => MsgRemoveItems;
|
|
47
47
|
};
|
|
48
48
|
"/sparkdream.collect.v1.MsgReorderItem": {
|
|
@@ -67,7 +67,7 @@ export declare const AminoConverter: {
|
|
|
67
67
|
};
|
|
68
68
|
"/sparkdream.collect.v1.MsgRateCollection": {
|
|
69
69
|
aminoType: string;
|
|
70
|
-
toAmino
|
|
70
|
+
toAmino(message: any): any;
|
|
71
71
|
fromAmino: (object: import("./tx").MsgRateCollectionAmino) => MsgRateCollection;
|
|
72
72
|
};
|
|
73
73
|
"/sparkdream.collect.v1.MsgChallengeReview": {
|
|
@@ -1,142 +1,244 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
4
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
5
|
+
//
|
|
6
|
+
// Telescope emits `[]` for empty repeated fields; aminojson on the chain omits
|
|
7
|
+
// them. In collect the offending messages are: MsgCreateCollection (tags),
|
|
8
|
+
// MsgUpdateCollection (tags), MsgAddItem (attributes), MsgAddItems (items),
|
|
9
|
+
// MsgUpdateItem (attributes), MsgRemoveItems (ids), MsgRateCollection (tags).
|
|
2
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
11
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
12
|
const tx_1 = require("./tx");
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
const helpers_1 = require("../../../helpers");
|
|
6
15
|
exports.AminoConverter = {
|
|
7
16
|
"/sparkdream.collect.v1.MsgUpdateParams": {
|
|
8
17
|
aminoType: "sparkdream/x/collect/MsgUpdateParams",
|
|
9
18
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
10
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
19
|
+
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
11
20
|
},
|
|
12
21
|
"/sparkdream.collect.v1.MsgCreateCollection": {
|
|
13
22
|
aminoType: "sparkdream/x/collect/MsgCreateCollection",
|
|
14
|
-
toAmino
|
|
15
|
-
|
|
23
|
+
toAmino(message) {
|
|
24
|
+
const obj = {};
|
|
25
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
26
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
27
|
+
obj.visibility = message.visibility === 0 ? undefined : message.visibility;
|
|
28
|
+
obj.encrypted = message.encrypted === false ? undefined : message.encrypted;
|
|
29
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
30
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
31
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
32
|
+
obj.cover_uri = message.coverUri === "" ? undefined : message.coverUri;
|
|
33
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
34
|
+
? message.tags.map((e) => e)
|
|
35
|
+
: undefined;
|
|
36
|
+
obj.encrypted_data = message.encryptedData ? (0, helpers_1.base64FromBytes)(message.encryptedData) : undefined;
|
|
37
|
+
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
38
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
39
|
+
return obj;
|
|
40
|
+
},
|
|
41
|
+
fromAmino: tx_1.MsgCreateCollection.fromAmino,
|
|
16
42
|
},
|
|
17
43
|
"/sparkdream.collect.v1.MsgUpdateCollection": {
|
|
18
44
|
aminoType: "sparkdream/x/collect/MsgUpdateCollection",
|
|
19
|
-
toAmino
|
|
20
|
-
|
|
45
|
+
toAmino(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
48
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
49
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
50
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
51
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
52
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
53
|
+
obj.cover_uri = message.coverUri === "" ? undefined : message.coverUri;
|
|
54
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
55
|
+
? message.tags.map((e) => e)
|
|
56
|
+
: undefined;
|
|
57
|
+
obj.encrypted_data = message.encryptedData ? (0, helpers_1.base64FromBytes)(message.encryptedData) : undefined;
|
|
58
|
+
obj.community_feedback_enabled = message.communityFeedbackEnabled === false ? undefined : message.communityFeedbackEnabled;
|
|
59
|
+
obj.update_community_feedback = message.updateCommunityFeedback === false ? undefined : message.updateCommunityFeedback;
|
|
60
|
+
return obj;
|
|
61
|
+
},
|
|
62
|
+
fromAmino: tx_1.MsgUpdateCollection.fromAmino,
|
|
21
63
|
},
|
|
22
64
|
"/sparkdream.collect.v1.MsgDeleteCollection": {
|
|
23
65
|
aminoType: "sparkdream/x/collect/MsgDeleteCollection",
|
|
24
66
|
toAmino: tx_1.MsgDeleteCollection.toAmino,
|
|
25
|
-
fromAmino: tx_1.MsgDeleteCollection.fromAmino
|
|
67
|
+
fromAmino: tx_1.MsgDeleteCollection.fromAmino,
|
|
26
68
|
},
|
|
27
69
|
"/sparkdream.collect.v1.MsgAddItem": {
|
|
28
70
|
aminoType: "sparkdream/x/collect/MsgAddItem",
|
|
29
|
-
toAmino
|
|
30
|
-
|
|
71
|
+
toAmino(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
74
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
75
|
+
obj.position = message.position !== BigInt(0) ? message.position?.toString() : undefined;
|
|
76
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
77
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
78
|
+
obj.image_uri = message.imageUri === "" ? undefined : message.imageUri;
|
|
79
|
+
obj.reference_type = message.referenceType === 0 ? undefined : message.referenceType;
|
|
80
|
+
obj.nft = message.nft ? types_1.NftReference.toAmino(message.nft) : undefined;
|
|
81
|
+
obj.link = message.link ? types_1.LinkReference.toAmino(message.link) : undefined;
|
|
82
|
+
obj.on_chain = message.onChain ? types_1.OnChainReference.toAmino(message.onChain) : undefined;
|
|
83
|
+
obj.custom = message.custom ? types_1.CustomReference.toAmino(message.custom) : undefined;
|
|
84
|
+
obj.attributes = (message.attributes?.length ?? 0) > 0
|
|
85
|
+
? message.attributes.map((e) => e ? types_1.KeyValuePair.toAmino(e) : undefined)
|
|
86
|
+
: undefined;
|
|
87
|
+
obj.encrypted_data = message.encryptedData ? (0, helpers_1.base64FromBytes)(message.encryptedData) : undefined;
|
|
88
|
+
return obj;
|
|
89
|
+
},
|
|
90
|
+
fromAmino: tx_1.MsgAddItem.fromAmino,
|
|
31
91
|
},
|
|
32
92
|
"/sparkdream.collect.v1.MsgAddItems": {
|
|
33
93
|
aminoType: "sparkdream/x/collect/MsgAddItems",
|
|
34
|
-
toAmino
|
|
35
|
-
|
|
94
|
+
toAmino(message) {
|
|
95
|
+
const obj = {};
|
|
96
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
97
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
98
|
+
obj.items = (message.items?.length ?? 0) > 0
|
|
99
|
+
? message.items.map((e) => e ? types_1.AddItemEntry.toAmino(e) : undefined)
|
|
100
|
+
: undefined;
|
|
101
|
+
return obj;
|
|
102
|
+
},
|
|
103
|
+
fromAmino: tx_1.MsgAddItems.fromAmino,
|
|
36
104
|
},
|
|
37
105
|
"/sparkdream.collect.v1.MsgUpdateItem": {
|
|
38
106
|
aminoType: "sparkdream/x/collect/MsgUpdateItem",
|
|
39
|
-
toAmino
|
|
40
|
-
|
|
107
|
+
toAmino(message) {
|
|
108
|
+
const obj = {};
|
|
109
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
110
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
111
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
112
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
113
|
+
obj.image_uri = message.imageUri === "" ? undefined : message.imageUri;
|
|
114
|
+
obj.reference_type = message.referenceType === 0 ? undefined : message.referenceType;
|
|
115
|
+
obj.nft = message.nft ? types_1.NftReference.toAmino(message.nft) : undefined;
|
|
116
|
+
obj.link = message.link ? types_1.LinkReference.toAmino(message.link) : undefined;
|
|
117
|
+
obj.on_chain = message.onChain ? types_1.OnChainReference.toAmino(message.onChain) : undefined;
|
|
118
|
+
obj.custom = message.custom ? types_1.CustomReference.toAmino(message.custom) : undefined;
|
|
119
|
+
obj.attributes = (message.attributes?.length ?? 0) > 0
|
|
120
|
+
? message.attributes.map((e) => e ? types_1.KeyValuePair.toAmino(e) : undefined)
|
|
121
|
+
: undefined;
|
|
122
|
+
obj.encrypted_data = message.encryptedData ? (0, helpers_1.base64FromBytes)(message.encryptedData) : undefined;
|
|
123
|
+
return obj;
|
|
124
|
+
},
|
|
125
|
+
fromAmino: tx_1.MsgUpdateItem.fromAmino,
|
|
41
126
|
},
|
|
42
127
|
"/sparkdream.collect.v1.MsgRemoveItem": {
|
|
43
128
|
aminoType: "sparkdream/x/collect/MsgRemoveItem",
|
|
44
129
|
toAmino: tx_1.MsgRemoveItem.toAmino,
|
|
45
|
-
fromAmino: tx_1.MsgRemoveItem.fromAmino
|
|
130
|
+
fromAmino: tx_1.MsgRemoveItem.fromAmino,
|
|
46
131
|
},
|
|
47
132
|
"/sparkdream.collect.v1.MsgRemoveItems": {
|
|
48
133
|
aminoType: "sparkdream/x/collect/MsgRemoveItems",
|
|
49
|
-
toAmino
|
|
50
|
-
|
|
134
|
+
toAmino(message) {
|
|
135
|
+
const obj = {};
|
|
136
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
137
|
+
obj.ids = (message.ids?.length ?? 0) > 0
|
|
138
|
+
? message.ids.map((e) => e.toString())
|
|
139
|
+
: undefined;
|
|
140
|
+
return obj;
|
|
141
|
+
},
|
|
142
|
+
fromAmino: tx_1.MsgRemoveItems.fromAmino,
|
|
51
143
|
},
|
|
52
144
|
"/sparkdream.collect.v1.MsgReorderItem": {
|
|
53
145
|
aminoType: "sparkdream/x/collect/MsgReorderItem",
|
|
54
146
|
toAmino: tx_1.MsgReorderItem.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgReorderItem.fromAmino
|
|
147
|
+
fromAmino: tx_1.MsgReorderItem.fromAmino,
|
|
56
148
|
},
|
|
57
149
|
"/sparkdream.collect.v1.MsgAddCollaborator": {
|
|
58
150
|
aminoType: "sparkdream/x/collect/MsgAddCollaborator",
|
|
59
151
|
toAmino: tx_1.MsgAddCollaborator.toAmino,
|
|
60
|
-
fromAmino: tx_1.MsgAddCollaborator.fromAmino
|
|
152
|
+
fromAmino: tx_1.MsgAddCollaborator.fromAmino,
|
|
61
153
|
},
|
|
62
154
|
"/sparkdream.collect.v1.MsgRemoveCollaborator": {
|
|
63
155
|
aminoType: "sparkdream/x/collect/MsgRemoveCollaborator",
|
|
64
156
|
toAmino: tx_1.MsgRemoveCollaborator.toAmino,
|
|
65
|
-
fromAmino: tx_1.MsgRemoveCollaborator.fromAmino
|
|
157
|
+
fromAmino: tx_1.MsgRemoveCollaborator.fromAmino,
|
|
66
158
|
},
|
|
67
159
|
"/sparkdream.collect.v1.MsgUpdateCollaboratorRole": {
|
|
68
160
|
aminoType: "sparkdream/x/collect/MsgUpdateCollaboratorRole",
|
|
69
161
|
toAmino: tx_1.MsgUpdateCollaboratorRole.toAmino,
|
|
70
|
-
fromAmino: tx_1.MsgUpdateCollaboratorRole.fromAmino
|
|
162
|
+
fromAmino: tx_1.MsgUpdateCollaboratorRole.fromAmino,
|
|
71
163
|
},
|
|
72
164
|
"/sparkdream.collect.v1.MsgRateCollection": {
|
|
73
165
|
aminoType: "sparkdream/x/collect/MsgRateCollection",
|
|
74
|
-
toAmino
|
|
75
|
-
|
|
166
|
+
toAmino(message) {
|
|
167
|
+
const obj = {};
|
|
168
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
169
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
170
|
+
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
171
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
172
|
+
? message.tags.map((e) => e)
|
|
173
|
+
: undefined;
|
|
174
|
+
obj.comment = message.comment === "" ? undefined : message.comment;
|
|
175
|
+
return obj;
|
|
176
|
+
},
|
|
177
|
+
fromAmino: tx_1.MsgRateCollection.fromAmino,
|
|
76
178
|
},
|
|
77
179
|
"/sparkdream.collect.v1.MsgChallengeReview": {
|
|
78
180
|
aminoType: "sparkdream/x/collect/MsgChallengeReview",
|
|
79
181
|
toAmino: tx_1.MsgChallengeReview.toAmino,
|
|
80
|
-
fromAmino: tx_1.MsgChallengeReview.fromAmino
|
|
182
|
+
fromAmino: tx_1.MsgChallengeReview.fromAmino,
|
|
81
183
|
},
|
|
82
184
|
"/sparkdream.collect.v1.MsgRequestSponsorship": {
|
|
83
185
|
aminoType: "sparkdream/x/collect/MsgRequestSponsorship",
|
|
84
186
|
toAmino: tx_1.MsgRequestSponsorship.toAmino,
|
|
85
|
-
fromAmino: tx_1.MsgRequestSponsorship.fromAmino
|
|
187
|
+
fromAmino: tx_1.MsgRequestSponsorship.fromAmino,
|
|
86
188
|
},
|
|
87
189
|
"/sparkdream.collect.v1.MsgCancelSponsorshipRequest": {
|
|
88
190
|
aminoType: "sparkdream/x/collect/MsgCancelSponsorshipRequest",
|
|
89
191
|
toAmino: tx_1.MsgCancelSponsorshipRequest.toAmino,
|
|
90
|
-
fromAmino: tx_1.MsgCancelSponsorshipRequest.fromAmino
|
|
192
|
+
fromAmino: tx_1.MsgCancelSponsorshipRequest.fromAmino,
|
|
91
193
|
},
|
|
92
194
|
"/sparkdream.collect.v1.MsgSponsorCollection": {
|
|
93
195
|
aminoType: "sparkdream/x/collect/MsgSponsorCollection",
|
|
94
196
|
toAmino: tx_1.MsgSponsorCollection.toAmino,
|
|
95
|
-
fromAmino: tx_1.MsgSponsorCollection.fromAmino
|
|
197
|
+
fromAmino: tx_1.MsgSponsorCollection.fromAmino,
|
|
96
198
|
},
|
|
97
199
|
"/sparkdream.collect.v1.MsgUpdateOperationalParams": {
|
|
98
200
|
aminoType: "sparkdream/x/collect/MsgUpdateOperationalParams",
|
|
99
201
|
toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
|
|
100
|
-
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino
|
|
202
|
+
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino,
|
|
101
203
|
},
|
|
102
204
|
"/sparkdream.collect.v1.MsgUpvoteContent": {
|
|
103
205
|
aminoType: "sparkdream/x/collect/MsgUpvoteContent",
|
|
104
206
|
toAmino: tx_1.MsgUpvoteContent.toAmino,
|
|
105
|
-
fromAmino: tx_1.MsgUpvoteContent.fromAmino
|
|
207
|
+
fromAmino: tx_1.MsgUpvoteContent.fromAmino,
|
|
106
208
|
},
|
|
107
209
|
"/sparkdream.collect.v1.MsgDownvoteContent": {
|
|
108
210
|
aminoType: "sparkdream/x/collect/MsgDownvoteContent",
|
|
109
211
|
toAmino: tx_1.MsgDownvoteContent.toAmino,
|
|
110
|
-
fromAmino: tx_1.MsgDownvoteContent.fromAmino
|
|
212
|
+
fromAmino: tx_1.MsgDownvoteContent.fromAmino,
|
|
111
213
|
},
|
|
112
214
|
"/sparkdream.collect.v1.MsgFlagContent": {
|
|
113
215
|
aminoType: "sparkdream/x/collect/MsgFlagContent",
|
|
114
216
|
toAmino: tx_1.MsgFlagContent.toAmino,
|
|
115
|
-
fromAmino: tx_1.MsgFlagContent.fromAmino
|
|
217
|
+
fromAmino: tx_1.MsgFlagContent.fromAmino,
|
|
116
218
|
},
|
|
117
219
|
"/sparkdream.collect.v1.MsgHideContent": {
|
|
118
220
|
aminoType: "sparkdream/x/collect/MsgHideContent",
|
|
119
221
|
toAmino: tx_1.MsgHideContent.toAmino,
|
|
120
|
-
fromAmino: tx_1.MsgHideContent.fromAmino
|
|
222
|
+
fromAmino: tx_1.MsgHideContent.fromAmino,
|
|
121
223
|
},
|
|
122
224
|
"/sparkdream.collect.v1.MsgAppealHide": {
|
|
123
225
|
aminoType: "sparkdream/x/collect/MsgAppealHide",
|
|
124
226
|
toAmino: tx_1.MsgAppealHide.toAmino,
|
|
125
|
-
fromAmino: tx_1.MsgAppealHide.fromAmino
|
|
227
|
+
fromAmino: tx_1.MsgAppealHide.fromAmino,
|
|
126
228
|
},
|
|
127
229
|
"/sparkdream.collect.v1.MsgEndorseCollection": {
|
|
128
230
|
aminoType: "sparkdream/x/collect/MsgEndorseCollection",
|
|
129
231
|
toAmino: tx_1.MsgEndorseCollection.toAmino,
|
|
130
|
-
fromAmino: tx_1.MsgEndorseCollection.fromAmino
|
|
232
|
+
fromAmino: tx_1.MsgEndorseCollection.fromAmino,
|
|
131
233
|
},
|
|
132
234
|
"/sparkdream.collect.v1.MsgSetSeekingEndorsement": {
|
|
133
235
|
aminoType: "sparkdream/x/collect/MsgSetSeekingEndorsement",
|
|
134
236
|
toAmino: tx_1.MsgSetSeekingEndorsement.toAmino,
|
|
135
|
-
fromAmino: tx_1.MsgSetSeekingEndorsement.fromAmino
|
|
237
|
+
fromAmino: tx_1.MsgSetSeekingEndorsement.fromAmino,
|
|
136
238
|
},
|
|
137
239
|
"/sparkdream.collect.v1.MsgPinCollection": {
|
|
138
240
|
aminoType: "sparkdream/x/collect/MsgPinCollection",
|
|
139
241
|
toAmino: tx_1.MsgPinCollection.toAmino,
|
|
140
|
-
fromAmino: tx_1.MsgPinCollection.fromAmino
|
|
141
|
-
}
|
|
242
|
+
fromAmino: tx_1.MsgPinCollection.fromAmino,
|
|
243
|
+
},
|
|
142
244
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgVoteProposal, MsgExecuteProposal, MsgAnonymousVoteProposal, MsgCreateCategory } from "./tx";
|
|
1
|
+
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgVoteProposal, MsgExecuteProposal, MsgAnonymousVoteProposal, MsgCreateCategory, MsgDeleteCategory } from "./tx";
|
|
2
2
|
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
3
3
|
export declare const AminoConverter: {
|
|
4
4
|
"/sparkdream.commons.v1.MsgUpdateParams": {
|
|
@@ -8,7 +8,7 @@ export declare const AminoConverter: {
|
|
|
8
8
|
};
|
|
9
9
|
"/sparkdream.commons.v1.MsgSpendFromCommons": {
|
|
10
10
|
aminoType: string;
|
|
11
|
-
toAmino
|
|
11
|
+
toAmino(message: any): any;
|
|
12
12
|
fromAmino: (object: import("./tx").MsgSpendFromCommonsAmino) => MsgSpendFromCommons;
|
|
13
13
|
};
|
|
14
14
|
"/sparkdream.commons.v1.MsgEmergencyCancelGovProposal": {
|
|
@@ -18,12 +18,12 @@ export declare const AminoConverter: {
|
|
|
18
18
|
};
|
|
19
19
|
"/sparkdream.commons.v1.MsgCreatePolicyPermissions": {
|
|
20
20
|
aminoType: string;
|
|
21
|
-
toAmino
|
|
21
|
+
toAmino(message: any): any;
|
|
22
22
|
fromAmino: (object: import("./tx").MsgCreatePolicyPermissionsAmino) => MsgCreatePolicyPermissions;
|
|
23
23
|
};
|
|
24
24
|
"/sparkdream.commons.v1.MsgUpdatePolicyPermissions": {
|
|
25
25
|
aminoType: string;
|
|
26
|
-
toAmino
|
|
26
|
+
toAmino(message: any): any;
|
|
27
27
|
fromAmino: (object: import("./tx").MsgUpdatePolicyPermissionsAmino) => MsgUpdatePolicyPermissions;
|
|
28
28
|
};
|
|
29
29
|
"/sparkdream.commons.v1.MsgDeletePolicyPermissions": {
|
|
@@ -33,12 +33,12 @@ export declare const AminoConverter: {
|
|
|
33
33
|
};
|
|
34
34
|
"/sparkdream.commons.v1.MsgRegisterGroup": {
|
|
35
35
|
aminoType: string;
|
|
36
|
-
toAmino
|
|
36
|
+
toAmino(message: any): any;
|
|
37
37
|
fromAmino: (object: import("./tx").MsgRegisterGroupAmino) => MsgRegisterGroup;
|
|
38
38
|
};
|
|
39
39
|
"/sparkdream.commons.v1.MsgRenewGroup": {
|
|
40
40
|
aminoType: string;
|
|
41
|
-
toAmino
|
|
41
|
+
toAmino(message: any): any;
|
|
42
42
|
fromAmino: (object: import("./tx").MsgRenewGroupAmino) => MsgRenewGroup;
|
|
43
43
|
};
|
|
44
44
|
"/sparkdream.commons.v1.MsgUpdateGroupMembers": {
|
|
@@ -96,4 +96,9 @@ export declare const AminoConverter: {
|
|
|
96
96
|
toAmino: (message: MsgCreateCategory) => import("./tx").MsgCreateCategoryAmino;
|
|
97
97
|
fromAmino: (object: import("./tx").MsgCreateCategoryAmino) => MsgCreateCategory;
|
|
98
98
|
};
|
|
99
|
+
"/sparkdream.commons.v1.MsgDeleteCategory": {
|
|
100
|
+
aminoType: string;
|
|
101
|
+
toAmino: (message: MsgDeleteCategory) => import("./tx").MsgDeleteCategoryAmino;
|
|
102
|
+
fromAmino: (object: import("./tx").MsgDeleteCategoryAmino) => MsgDeleteCategory;
|
|
103
|
+
};
|
|
99
104
|
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.AminoConverter = exports.configureNestedAminoConverter = void 0;
|
|
19
19
|
const tx_1 = require("./tx");
|
|
20
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
20
21
|
const nested_amino_1 = require("../../../nested-amino");
|
|
21
22
|
var nested_amino_2 = require("../../../nested-amino");
|
|
22
23
|
Object.defineProperty(exports, "configureNestedAminoConverter", { enumerable: true, get: function () { return nested_amino_2.configureNestedAminoConverter; } });
|
|
@@ -57,7 +58,15 @@ exports.AminoConverter = {
|
|
|
57
58
|
},
|
|
58
59
|
"/sparkdream.commons.v1.MsgSpendFromCommons": {
|
|
59
60
|
aminoType: "sparkdream/x/commons/MsgSpendFromCommons",
|
|
60
|
-
toAmino
|
|
61
|
+
toAmino(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
64
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
65
|
+
obj.amount = (message.amount?.length ?? 0) > 0
|
|
66
|
+
? message.amount.map((e) => e ? coin_1.Coin.toAmino(e) : undefined)
|
|
67
|
+
: undefined;
|
|
68
|
+
return obj;
|
|
69
|
+
},
|
|
61
70
|
fromAmino: tx_1.MsgSpendFromCommons.fromAmino,
|
|
62
71
|
},
|
|
63
72
|
"/sparkdream.commons.v1.MsgEmergencyCancelGovProposal": {
|
|
@@ -67,12 +76,28 @@ exports.AminoConverter = {
|
|
|
67
76
|
},
|
|
68
77
|
"/sparkdream.commons.v1.MsgCreatePolicyPermissions": {
|
|
69
78
|
aminoType: "sparkdream/x/commons/MsgCreatePolicyPermissions",
|
|
70
|
-
toAmino
|
|
79
|
+
toAmino(message) {
|
|
80
|
+
const obj = {};
|
|
81
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
82
|
+
obj.policy_address = message.policyAddress === "" ? undefined : message.policyAddress;
|
|
83
|
+
obj.allowed_messages = (message.allowedMessages?.length ?? 0) > 0
|
|
84
|
+
? message.allowedMessages.map((e) => e)
|
|
85
|
+
: undefined;
|
|
86
|
+
return obj;
|
|
87
|
+
},
|
|
71
88
|
fromAmino: tx_1.MsgCreatePolicyPermissions.fromAmino,
|
|
72
89
|
},
|
|
73
90
|
"/sparkdream.commons.v1.MsgUpdatePolicyPermissions": {
|
|
74
91
|
aminoType: "sparkdream/x/commons/MsgUpdatePolicyPermissions",
|
|
75
|
-
toAmino
|
|
92
|
+
toAmino(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
95
|
+
obj.policy_address = message.policyAddress === "" ? undefined : message.policyAddress;
|
|
96
|
+
obj.allowed_messages = (message.allowedMessages?.length ?? 0) > 0
|
|
97
|
+
? message.allowedMessages.map((e) => e)
|
|
98
|
+
: undefined;
|
|
99
|
+
return obj;
|
|
100
|
+
},
|
|
76
101
|
fromAmino: tx_1.MsgUpdatePolicyPermissions.fromAmino,
|
|
77
102
|
},
|
|
78
103
|
"/sparkdream.commons.v1.MsgDeletePolicyPermissions": {
|
|
@@ -82,12 +107,52 @@ exports.AminoConverter = {
|
|
|
82
107
|
},
|
|
83
108
|
"/sparkdream.commons.v1.MsgRegisterGroup": {
|
|
84
109
|
aminoType: "sparkdream/x/commons/MsgRegisterGroup",
|
|
85
|
-
toAmino
|
|
110
|
+
toAmino(message) {
|
|
111
|
+
const obj = {};
|
|
112
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
113
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
114
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
115
|
+
obj.members = (message.members?.length ?? 0) > 0
|
|
116
|
+
? message.members.map((e) => e)
|
|
117
|
+
: undefined;
|
|
118
|
+
obj.member_weights = (message.memberWeights?.length ?? 0) > 0
|
|
119
|
+
? message.memberWeights.map((e) => e)
|
|
120
|
+
: undefined;
|
|
121
|
+
obj.funding_weight = message.fundingWeight !== BigInt(0) ? message.fundingWeight?.toString() : undefined;
|
|
122
|
+
obj.max_spend_per_epoch = message.maxSpendPerEpoch === "" ? undefined : message.maxSpendPerEpoch;
|
|
123
|
+
obj.update_cooldown = message.updateCooldown !== BigInt(0) ? message.updateCooldown?.toString() : undefined;
|
|
124
|
+
obj.intended_parent_address = message.intendedParentAddress === "" ? undefined : message.intendedParentAddress;
|
|
125
|
+
obj.min_members = message.minMembers !== BigInt(0) ? message.minMembers?.toString() : undefined;
|
|
126
|
+
obj.max_members = message.maxMembers !== BigInt(0) ? message.maxMembers?.toString() : undefined;
|
|
127
|
+
obj.term_duration = message.termDuration !== BigInt(0) ? message.termDuration?.toString() : undefined;
|
|
128
|
+
obj.activation_time = message.activationTime !== BigInt(0) ? message.activationTime?.toString() : undefined;
|
|
129
|
+
obj.voting_period = message.votingPeriod !== BigInt(0) ? message.votingPeriod?.toString() : undefined;
|
|
130
|
+
obj.min_execution_period = message.minExecutionPeriod !== BigInt(0) ? message.minExecutionPeriod?.toString() : undefined;
|
|
131
|
+
obj.futarchy_enabled = message.futarchyEnabled === false ? undefined : message.futarchyEnabled;
|
|
132
|
+
obj.vote_threshold = message.voteThreshold === "" ? undefined : message.voteThreshold;
|
|
133
|
+
obj.policy_type = message.policyType === "" ? undefined : message.policyType;
|
|
134
|
+
obj.allowed_messages = (message.allowedMessages?.length ?? 0) > 0
|
|
135
|
+
? message.allowedMessages.map((e) => e)
|
|
136
|
+
: undefined;
|
|
137
|
+
obj.electoral_policy_address = message.electoralPolicyAddress === "" ? undefined : message.electoralPolicyAddress;
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
86
140
|
fromAmino: tx_1.MsgRegisterGroup.fromAmino,
|
|
87
141
|
},
|
|
88
142
|
"/sparkdream.commons.v1.MsgRenewGroup": {
|
|
89
143
|
aminoType: "sparkdream/x/commons/MsgRenewGroup",
|
|
90
|
-
toAmino
|
|
144
|
+
toAmino(message) {
|
|
145
|
+
const obj = {};
|
|
146
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
147
|
+
obj.group_name = message.groupName === "" ? undefined : message.groupName;
|
|
148
|
+
obj.new_members = (message.newMembers?.length ?? 0) > 0
|
|
149
|
+
? message.newMembers.map((e) => e)
|
|
150
|
+
: undefined;
|
|
151
|
+
obj.new_member_weights = (message.newMemberWeights?.length ?? 0) > 0
|
|
152
|
+
? message.newMemberWeights.map((e) => e)
|
|
153
|
+
: undefined;
|
|
154
|
+
return obj;
|
|
155
|
+
},
|
|
91
156
|
fromAmino: tx_1.MsgRenewGroup.fromAmino,
|
|
92
157
|
},
|
|
93
158
|
// Telescope's auto-generated toAmino emits `[]` for empty repeated fields
|
|
@@ -163,4 +228,9 @@ exports.AminoConverter = {
|
|
|
163
228
|
toAmino: tx_1.MsgCreateCategory.toAmino,
|
|
164
229
|
fromAmino: tx_1.MsgCreateCategory.fromAmino,
|
|
165
230
|
},
|
|
231
|
+
"/sparkdream.commons.v1.MsgDeleteCategory": {
|
|
232
|
+
aminoType: "sparkdream/x/commons/MsgDeleteCategory",
|
|
233
|
+
toAmino: tx_1.MsgDeleteCategory.toAmino,
|
|
234
|
+
fromAmino: tx_1.MsgDeleteCategory.fromAmino,
|
|
235
|
+
},
|
|
166
236
|
};
|
|
@@ -7,7 +7,7 @@ export declare const AminoConverter: {
|
|
|
7
7
|
};
|
|
8
8
|
"/sparkdream.ecosystem.v1.MsgSpend": {
|
|
9
9
|
aminoType: string;
|
|
10
|
-
toAmino
|
|
10
|
+
toAmino(message: any): any;
|
|
11
11
|
fromAmino: (object: import("./tx").MsgSpendAmino) => MsgSpend;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
4
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
5
|
+
//
|
|
6
|
+
// MsgSpend has `repeated cosmos.base.v1beta1.Coin amount` which the
|
|
7
|
+
// auto-generated toAmino emits as `[]` when empty, mismatching the chain.
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
10
|
const tx_1 = require("./tx");
|
|
11
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
6
12
|
exports.AminoConverter = {
|
|
7
13
|
"/sparkdream.ecosystem.v1.MsgUpdateParams": {
|
|
8
14
|
aminoType: "sparkdream/x/ecosystem/MsgUpdateParams",
|
|
9
15
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
10
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
16
|
+
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
11
17
|
},
|
|
12
18
|
"/sparkdream.ecosystem.v1.MsgSpend": {
|
|
13
19
|
aminoType: "sparkdream/x/ecosystem/MsgSpend",
|
|
14
|
-
toAmino
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
toAmino(message) {
|
|
21
|
+
const obj = {};
|
|
22
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
23
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
24
|
+
obj.amount = (message.amount?.length ?? 0) > 0
|
|
25
|
+
? message.amount.map((e) => e ? coin_1.Coin.toAmino(e) : undefined)
|
|
26
|
+
: undefined;
|
|
27
|
+
return obj;
|
|
28
|
+
},
|
|
29
|
+
fromAmino: tx_1.MsgSpend.fromAmino,
|
|
30
|
+
},
|
|
17
31
|
};
|
|
@@ -12,12 +12,12 @@ export declare const AminoConverter: {
|
|
|
12
12
|
};
|
|
13
13
|
"/sparkdream.forum.v1.MsgCreatePost": {
|
|
14
14
|
aminoType: string;
|
|
15
|
-
toAmino
|
|
15
|
+
toAmino(message: any): any;
|
|
16
16
|
fromAmino: (object: import("./tx").MsgCreatePostAmino) => MsgCreatePost;
|
|
17
17
|
};
|
|
18
18
|
"/sparkdream.forum.v1.MsgEditPost": {
|
|
19
19
|
aminoType: string;
|
|
20
|
-
toAmino
|
|
20
|
+
toAmino(message: any): any;
|
|
21
21
|
fromAmino: (object: import("./tx").MsgEditPostAmino) => MsgEditPost;
|
|
22
22
|
};
|
|
23
23
|
"/sparkdream.forum.v1.MsgDeletePost": {
|