@sparkdreamnft/sparkdreamjs 0.0.15 → 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 +101 -7
- 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 +36 -31
- package/sparkdream/client.d.ts +36 -31
- 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 +12 -7
- package/sparkdream/commons/v1/tx.amino.js +100 -6
- 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
package/sparkdream/client.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare const sparkdreamAminoConverters: {
|
|
|
19
19
|
};
|
|
20
20
|
"/sparkdream.shield.v1.MsgShieldedExec": {
|
|
21
21
|
aminoType: string;
|
|
22
|
-
toAmino
|
|
23
|
-
fromAmino
|
|
22
|
+
toAmino(message: any): any;
|
|
23
|
+
fromAmino(object: any): any;
|
|
24
24
|
};
|
|
25
25
|
"/sparkdream.shield.v1.MsgTriggerDkg": {
|
|
26
26
|
aminoType: string;
|
|
@@ -49,7 +49,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
49
49
|
};
|
|
50
50
|
"/sparkdream.session.v1.MsgCreateSession": {
|
|
51
51
|
aminoType: string;
|
|
52
|
-
toAmino
|
|
52
|
+
toAmino(message: any): any;
|
|
53
53
|
fromAmino: (object: import("./session/v1/tx").MsgCreateSessionAmino) => import("./session/v1/tx").MsgCreateSession;
|
|
54
54
|
};
|
|
55
55
|
"/sparkdream.session.v1.MsgRevokeSession": {
|
|
@@ -284,7 +284,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
284
284
|
};
|
|
285
285
|
"/sparkdream.reveal.v1.MsgPropose": {
|
|
286
286
|
aminoType: string;
|
|
287
|
-
toAmino
|
|
287
|
+
toAmino(message: any): any;
|
|
288
288
|
fromAmino: (object: import("./reveal/v1/tx").MsgProposeAmino) => import("./reveal/v1/tx").MsgPropose;
|
|
289
289
|
};
|
|
290
290
|
"/sparkdream.reveal.v1.MsgApprove": {
|
|
@@ -339,7 +339,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
339
339
|
};
|
|
340
340
|
"/sparkdream.rep.v1.MsgInviteMember": {
|
|
341
341
|
aminoType: string;
|
|
342
|
-
toAmino
|
|
342
|
+
toAmino(message: any): any;
|
|
343
343
|
fromAmino: (object: import("./rep/v1/tx").MsgInviteMemberAmino) => import("./rep/v1/tx").MsgInviteMember;
|
|
344
344
|
};
|
|
345
345
|
"/sparkdream.rep.v1.MsgAcceptInvitation": {
|
|
@@ -384,7 +384,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
384
384
|
};
|
|
385
385
|
"/sparkdream.rep.v1.MsgProposeProject": {
|
|
386
386
|
aminoType: string;
|
|
387
|
-
toAmino
|
|
387
|
+
toAmino(message: any): any;
|
|
388
388
|
fromAmino: (object: import("./rep/v1/tx").MsgProposeProjectAmino) => import("./rep/v1/tx").MsgProposeProject;
|
|
389
389
|
};
|
|
390
390
|
"/sparkdream.rep.v1.MsgApproveProjectBudget": {
|
|
@@ -399,7 +399,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
399
399
|
};
|
|
400
400
|
"/sparkdream.rep.v1.MsgCreateInitiative": {
|
|
401
401
|
aminoType: string;
|
|
402
|
-
toAmino
|
|
402
|
+
toAmino(message: any): any;
|
|
403
403
|
fromAmino: (object: import("./rep/v1/tx").MsgCreateInitiativeAmino) => import("./rep/v1/tx").MsgCreateInitiative;
|
|
404
404
|
};
|
|
405
405
|
"/sparkdream.rep.v1.MsgAssignInitiative": {
|
|
@@ -414,7 +414,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
414
414
|
};
|
|
415
415
|
"/sparkdream.rep.v1.MsgApproveInitiative": {
|
|
416
416
|
aminoType: string;
|
|
417
|
-
toAmino
|
|
417
|
+
toAmino(message: any): any;
|
|
418
418
|
fromAmino: (object: import("./rep/v1/tx").MsgApproveInitiativeAmino) => import("./rep/v1/tx").MsgApproveInitiative;
|
|
419
419
|
};
|
|
420
420
|
"/sparkdream.rep.v1.MsgAbandonInitiative": {
|
|
@@ -449,17 +449,17 @@ export declare const sparkdreamAminoConverters: {
|
|
|
449
449
|
};
|
|
450
450
|
"/sparkdream.rep.v1.MsgCreateChallenge": {
|
|
451
451
|
aminoType: string;
|
|
452
|
-
toAmino
|
|
452
|
+
toAmino(message: any): any;
|
|
453
453
|
fromAmino: (object: import("./rep/v1/tx").MsgCreateChallengeAmino) => import("./rep/v1/tx").MsgCreateChallenge;
|
|
454
454
|
};
|
|
455
455
|
"/sparkdream.rep.v1.MsgRespondToChallenge": {
|
|
456
456
|
aminoType: string;
|
|
457
|
-
toAmino
|
|
457
|
+
toAmino(message: any): any;
|
|
458
458
|
fromAmino: (object: import("./rep/v1/tx").MsgRespondToChallengeAmino) => import("./rep/v1/tx").MsgRespondToChallenge;
|
|
459
459
|
};
|
|
460
460
|
"/sparkdream.rep.v1.MsgSubmitJurorVote": {
|
|
461
461
|
aminoType: string;
|
|
462
|
-
toAmino
|
|
462
|
+
toAmino(message: any): any;
|
|
463
463
|
fromAmino: (object: import("./rep/v1/tx").MsgSubmitJurorVoteAmino) => import("./rep/v1/tx").MsgSubmitJurorVote;
|
|
464
464
|
};
|
|
465
465
|
"/sparkdream.rep.v1.MsgSubmitExpertTestimony": {
|
|
@@ -469,12 +469,12 @@ export declare const sparkdreamAminoConverters: {
|
|
|
469
469
|
};
|
|
470
470
|
"/sparkdream.rep.v1.MsgChallengeContent": {
|
|
471
471
|
aminoType: string;
|
|
472
|
-
toAmino
|
|
472
|
+
toAmino(message: any): any;
|
|
473
473
|
fromAmino: (object: import("./rep/v1/tx").MsgChallengeContentAmino) => import("./rep/v1/tx").MsgChallengeContent;
|
|
474
474
|
};
|
|
475
475
|
"/sparkdream.rep.v1.MsgRespondToContentChallenge": {
|
|
476
476
|
aminoType: string;
|
|
477
|
-
toAmino
|
|
477
|
+
toAmino(message: any): any;
|
|
478
478
|
fromAmino: (object: import("./rep/v1/tx").MsgRespondToContentChallengeAmino) => import("./rep/v1/tx").MsgRespondToContentChallenge;
|
|
479
479
|
};
|
|
480
480
|
"/sparkdream.rep.v1.MsgRegisterZkPublicKey": {
|
|
@@ -669,12 +669,12 @@ export declare const sparkdreamAminoConverters: {
|
|
|
669
669
|
};
|
|
670
670
|
"/sparkdream.forum.v1.MsgCreatePost": {
|
|
671
671
|
aminoType: string;
|
|
672
|
-
toAmino
|
|
672
|
+
toAmino(message: any): any;
|
|
673
673
|
fromAmino: (object: import("./forum/v1/tx").MsgCreatePostAmino) => import("./forum/v1/tx").MsgCreatePost;
|
|
674
674
|
};
|
|
675
675
|
"/sparkdream.forum.v1.MsgEditPost": {
|
|
676
676
|
aminoType: string;
|
|
677
|
-
toAmino
|
|
677
|
+
toAmino(message: any): any;
|
|
678
678
|
fromAmino: (object: import("./forum/v1/tx").MsgEditPostAmino) => import("./forum/v1/tx").MsgEditPost;
|
|
679
679
|
};
|
|
680
680
|
"/sparkdream.forum.v1.MsgDeletePost": {
|
|
@@ -969,7 +969,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
969
969
|
};
|
|
970
970
|
"/sparkdream.ecosystem.v1.MsgSpend": {
|
|
971
971
|
aminoType: string;
|
|
972
|
-
toAmino
|
|
972
|
+
toAmino(message: any): any;
|
|
973
973
|
fromAmino: (object: import("./ecosystem/v1/tx").MsgSpendAmino) => import("./ecosystem/v1/tx").MsgSpend;
|
|
974
974
|
};
|
|
975
975
|
"/sparkdream.commons.v1.MsgUpdateParams": {
|
|
@@ -979,7 +979,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
979
979
|
};
|
|
980
980
|
"/sparkdream.commons.v1.MsgSpendFromCommons": {
|
|
981
981
|
aminoType: string;
|
|
982
|
-
toAmino
|
|
982
|
+
toAmino(message: any): any;
|
|
983
983
|
fromAmino: (object: import("./commons/v1/tx").MsgSpendFromCommonsAmino) => import("./commons/v1/tx").MsgSpendFromCommons;
|
|
984
984
|
};
|
|
985
985
|
"/sparkdream.commons.v1.MsgEmergencyCancelGovProposal": {
|
|
@@ -989,12 +989,12 @@ export declare const sparkdreamAminoConverters: {
|
|
|
989
989
|
};
|
|
990
990
|
"/sparkdream.commons.v1.MsgCreatePolicyPermissions": {
|
|
991
991
|
aminoType: string;
|
|
992
|
-
toAmino
|
|
992
|
+
toAmino(message: any): any;
|
|
993
993
|
fromAmino: (object: import("./commons/v1/tx").MsgCreatePolicyPermissionsAmino) => import("./commons/v1/tx").MsgCreatePolicyPermissions;
|
|
994
994
|
};
|
|
995
995
|
"/sparkdream.commons.v1.MsgUpdatePolicyPermissions": {
|
|
996
996
|
aminoType: string;
|
|
997
|
-
toAmino
|
|
997
|
+
toAmino(message: any): any;
|
|
998
998
|
fromAmino: (object: import("./commons/v1/tx").MsgUpdatePolicyPermissionsAmino) => import("./commons/v1/tx").MsgUpdatePolicyPermissions;
|
|
999
999
|
};
|
|
1000
1000
|
"/sparkdream.commons.v1.MsgDeletePolicyPermissions": {
|
|
@@ -1004,17 +1004,17 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
"/sparkdream.commons.v1.MsgRegisterGroup": {
|
|
1006
1006
|
aminoType: string;
|
|
1007
|
-
toAmino
|
|
1007
|
+
toAmino(message: any): any;
|
|
1008
1008
|
fromAmino: (object: import("./commons/v1/tx").MsgRegisterGroupAmino) => import("./commons/v1/tx").MsgRegisterGroup;
|
|
1009
1009
|
};
|
|
1010
1010
|
"/sparkdream.commons.v1.MsgRenewGroup": {
|
|
1011
1011
|
aminoType: string;
|
|
1012
|
-
toAmino
|
|
1012
|
+
toAmino(message: any): any;
|
|
1013
1013
|
fromAmino: (object: import("./commons/v1/tx").MsgRenewGroupAmino) => import("./commons/v1/tx").MsgRenewGroup;
|
|
1014
1014
|
};
|
|
1015
1015
|
"/sparkdream.commons.v1.MsgUpdateGroupMembers": {
|
|
1016
1016
|
aminoType: string;
|
|
1017
|
-
toAmino
|
|
1017
|
+
toAmino(message: any): any;
|
|
1018
1018
|
fromAmino: (object: import("./commons/v1/tx").MsgUpdateGroupMembersAmino) => import("./commons/v1/tx").MsgUpdateGroupMembers;
|
|
1019
1019
|
};
|
|
1020
1020
|
"/sparkdream.commons.v1.MsgUpdateGroupConfig": {
|
|
@@ -1067,6 +1067,11 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1067
1067
|
toAmino: (message: import("./commons/v1/tx").MsgCreateCategory) => import("./commons/v1/tx").MsgCreateCategoryAmino;
|
|
1068
1068
|
fromAmino: (object: import("./commons/v1/tx").MsgCreateCategoryAmino) => import("./commons/v1/tx").MsgCreateCategory;
|
|
1069
1069
|
};
|
|
1070
|
+
"/sparkdream.commons.v1.MsgDeleteCategory": {
|
|
1071
|
+
aminoType: string;
|
|
1072
|
+
toAmino: (message: import("./commons/v1/tx").MsgDeleteCategory) => import("./commons/v1/tx").MsgDeleteCategoryAmino;
|
|
1073
|
+
fromAmino: (object: import("./commons/v1/tx").MsgDeleteCategoryAmino) => import("./commons/v1/tx").MsgDeleteCategory;
|
|
1074
|
+
};
|
|
1070
1075
|
"/sparkdream.collect.v1.MsgUpdateParams": {
|
|
1071
1076
|
aminoType: string;
|
|
1072
1077
|
toAmino: (message: import("./collect/v1/tx").MsgUpdateParams) => import("./collect/v1/tx").MsgUpdateParamsAmino;
|
|
@@ -1074,12 +1079,12 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1074
1079
|
};
|
|
1075
1080
|
"/sparkdream.collect.v1.MsgCreateCollection": {
|
|
1076
1081
|
aminoType: string;
|
|
1077
|
-
toAmino
|
|
1082
|
+
toAmino(message: any): any;
|
|
1078
1083
|
fromAmino: (object: import("./collect/v1/tx").MsgCreateCollectionAmino) => import("./collect/v1/tx").MsgCreateCollection;
|
|
1079
1084
|
};
|
|
1080
1085
|
"/sparkdream.collect.v1.MsgUpdateCollection": {
|
|
1081
1086
|
aminoType: string;
|
|
1082
|
-
toAmino
|
|
1087
|
+
toAmino(message: any): any;
|
|
1083
1088
|
fromAmino: (object: import("./collect/v1/tx").MsgUpdateCollectionAmino) => import("./collect/v1/tx").MsgUpdateCollection;
|
|
1084
1089
|
};
|
|
1085
1090
|
"/sparkdream.collect.v1.MsgDeleteCollection": {
|
|
@@ -1089,17 +1094,17 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1089
1094
|
};
|
|
1090
1095
|
"/sparkdream.collect.v1.MsgAddItem": {
|
|
1091
1096
|
aminoType: string;
|
|
1092
|
-
toAmino
|
|
1097
|
+
toAmino(message: any): any;
|
|
1093
1098
|
fromAmino: (object: import("./collect/v1/tx").MsgAddItemAmino) => import("./collect/v1/tx").MsgAddItem;
|
|
1094
1099
|
};
|
|
1095
1100
|
"/sparkdream.collect.v1.MsgAddItems": {
|
|
1096
1101
|
aminoType: string;
|
|
1097
|
-
toAmino
|
|
1102
|
+
toAmino(message: any): any;
|
|
1098
1103
|
fromAmino: (object: import("./collect/v1/tx").MsgAddItemsAmino) => import("./collect/v1/tx").MsgAddItems;
|
|
1099
1104
|
};
|
|
1100
1105
|
"/sparkdream.collect.v1.MsgUpdateItem": {
|
|
1101
1106
|
aminoType: string;
|
|
1102
|
-
toAmino
|
|
1107
|
+
toAmino(message: any): any;
|
|
1103
1108
|
fromAmino: (object: import("./collect/v1/tx").MsgUpdateItemAmino) => import("./collect/v1/tx").MsgUpdateItem;
|
|
1104
1109
|
};
|
|
1105
1110
|
"/sparkdream.collect.v1.MsgRemoveItem": {
|
|
@@ -1109,7 +1114,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1109
1114
|
};
|
|
1110
1115
|
"/sparkdream.collect.v1.MsgRemoveItems": {
|
|
1111
1116
|
aminoType: string;
|
|
1112
|
-
toAmino
|
|
1117
|
+
toAmino(message: any): any;
|
|
1113
1118
|
fromAmino: (object: import("./collect/v1/tx").MsgRemoveItemsAmino) => import("./collect/v1/tx").MsgRemoveItems;
|
|
1114
1119
|
};
|
|
1115
1120
|
"/sparkdream.collect.v1.MsgReorderItem": {
|
|
@@ -1134,7 +1139,7 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1134
1139
|
};
|
|
1135
1140
|
"/sparkdream.collect.v1.MsgRateCollection": {
|
|
1136
1141
|
aminoType: string;
|
|
1137
|
-
toAmino
|
|
1142
|
+
toAmino(message: any): any;
|
|
1138
1143
|
fromAmino: (object: import("./collect/v1/tx").MsgRateCollectionAmino) => import("./collect/v1/tx").MsgRateCollection;
|
|
1139
1144
|
};
|
|
1140
1145
|
"/sparkdream.collect.v1.MsgChallengeReview": {
|
|
@@ -1214,12 +1219,12 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1214
1219
|
};
|
|
1215
1220
|
"/sparkdream.blog.v1.MsgCreatePost": {
|
|
1216
1221
|
aminoType: string;
|
|
1217
|
-
toAmino
|
|
1222
|
+
toAmino(message: any): any;
|
|
1218
1223
|
fromAmino: (object: import("./blog/v1/tx").MsgCreatePostAmino) => import("./blog/v1/tx").MsgCreatePost;
|
|
1219
1224
|
};
|
|
1220
1225
|
"/sparkdream.blog.v1.MsgUpdatePost": {
|
|
1221
1226
|
aminoType: string;
|
|
1222
|
-
toAmino
|
|
1227
|
+
toAmino(message: any): any;
|
|
1223
1228
|
fromAmino: (object: import("./blog/v1/tx").MsgUpdatePostAmino) => import("./blog/v1/tx").MsgUpdatePost;
|
|
1224
1229
|
};
|
|
1225
1230
|
"/sparkdream.blog.v1.MsgDeletePost": {
|
|
@@ -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
|
};
|