@sparkdreamnft/sparkdreamjs 0.0.11 → 0.0.13
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/nested-amino.js +52 -0
- package/esm/sparkdream/blog/v1/tx.amino.js +14 -14
- package/esm/sparkdream/blog/v1/tx.js +98 -0
- package/esm/sparkdream/collect/v1/tx.amino.js +25 -25
- package/esm/sparkdream/collect/v1/tx.js +175 -0
- package/esm/sparkdream/commons/v1/query.js +379 -1
- package/esm/sparkdream/commons/v1/query.lcd.js +21 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +24 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +80 -41
- package/esm/sparkdream/commons/v1/tx.js +91 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +24 -24
- package/esm/sparkdream/federation/v1/tx.js +168 -0
- package/esm/sparkdream/forum/v1/tx.amino.js +33 -33
- package/esm/sparkdream/forum/v1/tx.js +231 -0
- package/esm/sparkdream/futarchy/v1/tx.amino.js +4 -4
- package/esm/sparkdream/futarchy/v1/tx.js +28 -0
- package/esm/sparkdream/name/v1/name_record.js +33 -2
- package/esm/sparkdream/name/v1/query.js +166 -0
- package/esm/sparkdream/name/v1/query.lcd.js +13 -0
- package/esm/sparkdream/name/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/name/v1/tx.amino.js +21 -6
- package/esm/sparkdream/name/v1/tx.js +500 -0
- package/esm/sparkdream/name/v1/tx.registry.js +56 -2
- package/esm/sparkdream/name/v1/tx.rpc.msg.js +24 -1
- package/esm/sparkdream/rep/v1/query.js +204 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +5 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/rep/v1/tx.amino.js +45 -45
- package/esm/sparkdream/rep/v1/tx.js +315 -0
- package/esm/sparkdream/reveal/v1/tx.amino.js +9 -9
- package/esm/sparkdream/reveal/v1/tx.js +63 -0
- package/esm/sparkdream/season/v1/tx.amino.js +25 -25
- package/esm/sparkdream/season/v1/tx.js +175 -0
- package/esm/sparkdream/session/v1/tx.amino.js +33 -11
- package/esm/sparkdream/session/v1/tx.js +21 -0
- package/esm/sparkdream/shield/v1/tx.amino.js +4 -4
- package/esm/sparkdream/shield/v1/tx.js +28 -0
- package/nested-amino.d.ts +76 -0
- package/nested-amino.js +57 -0
- package/package.json +1 -1
- package/sparkdream/blog/v1/tx.amino.js +14 -14
- package/sparkdream/blog/v1/tx.d.ts +42 -14
- package/sparkdream/blog/v1/tx.js +98 -0
- package/sparkdream/bundle.d.ts +661 -6
- package/sparkdream/client.d.ts +21 -6
- package/sparkdream/collect/v1/tx.amino.js +25 -25
- package/sparkdream/collect/v1/tx.d.ts +75 -25
- package/sparkdream/collect/v1/tx.js +175 -0
- package/sparkdream/commons/v1/query.d.ts +243 -1
- package/sparkdream/commons/v1/query.js +379 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +21 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +16 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +23 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -5
- package/sparkdream/commons/v1/tx.amino.js +82 -42
- package/sparkdream/commons/v1/tx.d.ts +39 -13
- package/sparkdream/commons/v1/tx.js +91 -0
- package/sparkdream/federation/v1/tx.amino.js +24 -24
- package/sparkdream/federation/v1/tx.d.ts +72 -24
- package/sparkdream/federation/v1/tx.js +168 -0
- package/sparkdream/forum/v1/tx.amino.js +33 -33
- package/sparkdream/forum/v1/tx.d.ts +99 -33
- package/sparkdream/forum/v1/tx.js +231 -0
- package/sparkdream/futarchy/v1/tx.amino.js +4 -4
- package/sparkdream/futarchy/v1/tx.d.ts +12 -4
- package/sparkdream/futarchy/v1/tx.js +28 -0
- package/sparkdream/name/v1/name_record.d.ts +46 -3
- package/sparkdream/name/v1/name_record.js +33 -2
- package/sparkdream/name/v1/query.d.ts +95 -0
- package/sparkdream/name/v1/query.js +167 -1
- package/sparkdream/name/v1/query.lcd.d.ts +2 -1
- package/sparkdream/name/v1/query.lcd.js +13 -0
- package/sparkdream/name/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/name/v1/query.rpc.Query.js +11 -0
- package/sparkdream/name/v1/tx.amino.d.ts +16 -1
- package/sparkdream/name/v1/tx.amino.js +20 -5
- package/sparkdream/name/v1/tx.d.ts +336 -5
- package/sparkdream/name/v1/tx.js +501 -1
- package/sparkdream/name/v1/tx.registry.d.ts +37 -1
- package/sparkdream/name/v1/tx.registry.js +55 -1
- package/sparkdream/name/v1/tx.rpc.msg.d.ts +21 -1
- package/sparkdream/name/v1/tx.rpc.msg.js +23 -0
- package/sparkdream/rep/v1/query.d.ts +153 -1
- package/sparkdream/rep/v1/query.js +205 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +2 -1
- package/sparkdream/rep/v1/query.lcd.js +5 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +9 -0
- package/sparkdream/rep/v1/tx.amino.js +45 -45
- package/sparkdream/rep/v1/tx.d.ts +135 -45
- package/sparkdream/rep/v1/tx.js +315 -0
- package/sparkdream/reveal/v1/tx.amino.js +9 -9
- package/sparkdream/reveal/v1/tx.d.ts +27 -9
- package/sparkdream/reveal/v1/tx.js +63 -0
- package/sparkdream/rpc.query.d.ts +4 -0
- package/sparkdream/season/v1/tx.amino.js +25 -25
- package/sparkdream/season/v1/tx.d.ts +75 -25
- package/sparkdream/season/v1/tx.js +175 -0
- package/sparkdream/session/v1/tx.amino.d.ts +3 -3
- package/sparkdream/session/v1/tx.amino.js +33 -11
- package/sparkdream/session/v1/tx.d.ts +9 -3
- package/sparkdream/session/v1/tx.js +21 -0
- package/sparkdream/shield/v1/tx.amino.js +4 -4
- package/sparkdream/shield/v1/tx.d.ts +12 -4
- package/sparkdream/shield/v1/tx.js +28 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* Shared registry + helpers for amino-converting messages that embed a
|
|
4
|
+
* `repeated google.protobuf.Any` field (`MsgSubmitProposal`,
|
|
5
|
+
* `MsgSubmitAnonymousProposal`, `MsgExecSession`).
|
|
6
|
+
*
|
|
7
|
+
* The Telescope-generated `Any.toAmino` just emits `{type, value: Uint8Array}`,
|
|
8
|
+
* which JSON.stringify turns into `{"0":N,"1":N,…}` — numeric keys that aren't
|
|
9
|
+
* lexicographically sorted, breaking Ledger's strict amino-JSON validator and
|
|
10
|
+
* leaving the chain unable to reconstruct identical sign bytes.
|
|
11
|
+
*
|
|
12
|
+
* Consumers must call `configureNestedAminoConverter({registry, aminoTypes})`
|
|
13
|
+
* once after they've built both their proto Registry and their stargate
|
|
14
|
+
* AminoTypes. The patched converters below then look up each inner Any's
|
|
15
|
+
* proto codec (to decode bytes back to a typed message) and its registered
|
|
16
|
+
* amino converter (to render the proper amino JSON) — symmetric to what
|
|
17
|
+
* `cosmossdk.io/x/tx/signing/aminojson` does on the chain side.
|
|
18
|
+
*/
|
|
19
|
+
let cfg = null;
|
|
20
|
+
export function configureNestedAminoConverter(next) {
|
|
21
|
+
cfg = next;
|
|
22
|
+
}
|
|
23
|
+
function requireCfg() {
|
|
24
|
+
if (!cfg) {
|
|
25
|
+
throw new Error("@sparkdreamnft/sparkdreamjs: configureNestedAminoConverter({registry, aminoTypes}) " +
|
|
26
|
+
"must be called before amino-signing a tx with MsgSubmitProposal / " +
|
|
27
|
+
"MsgSubmitAnonymousProposal / MsgExecSession (their `messages` / `msgs` " +
|
|
28
|
+
"field needs recursive Any conversion that Telescope can't generate).");
|
|
29
|
+
}
|
|
30
|
+
return cfg;
|
|
31
|
+
}
|
|
32
|
+
/** Convert one proto-encoded Any to its amino representation. */
|
|
33
|
+
export function anyToAmino(any) {
|
|
34
|
+
const { registry, aminoTypes } = requireCfg();
|
|
35
|
+
const codec = registry.lookupType(any.typeUrl);
|
|
36
|
+
if (!codec) {
|
|
37
|
+
throw new Error(`No proto codec registered for inner type ${any.typeUrl}. ` +
|
|
38
|
+
`Ensure the corresponding module's load() has been called on your Registry.`);
|
|
39
|
+
}
|
|
40
|
+
const decoded = codec.decode(any.value);
|
|
41
|
+
return aminoTypes.toAmino({ typeUrl: any.typeUrl, value: decoded });
|
|
42
|
+
}
|
|
43
|
+
/** Convert one amino-typed entry back to a proto-encoded Any. */
|
|
44
|
+
export function aminoToAny(entry) {
|
|
45
|
+
const { registry, aminoTypes } = requireCfg();
|
|
46
|
+
const decoded = aminoTypes.fromAmino(entry);
|
|
47
|
+
const codec = registry.lookupType(decoded.typeUrl);
|
|
48
|
+
if (!codec) {
|
|
49
|
+
throw new Error(`No proto codec registered for inner type ${decoded.typeUrl}.`);
|
|
50
|
+
}
|
|
51
|
+
return { typeUrl: decoded.typeUrl, value: codec.encode(codec.fromPartial(decoded.value)).finish() };
|
|
52
|
+
}
|
|
@@ -12,72 +12,72 @@ export const AminoConverter = {
|
|
|
12
12
|
fromAmino: MsgUpdateOperationalParams.fromAmino
|
|
13
13
|
},
|
|
14
14
|
"/sparkdream.blog.v1.MsgCreatePost": {
|
|
15
|
-
aminoType: "/
|
|
15
|
+
aminoType: "sparkdream/x/blog/MsgCreatePost",
|
|
16
16
|
toAmino: MsgCreatePost.toAmino,
|
|
17
17
|
fromAmino: MsgCreatePost.fromAmino
|
|
18
18
|
},
|
|
19
19
|
"/sparkdream.blog.v1.MsgUpdatePost": {
|
|
20
|
-
aminoType: "/
|
|
20
|
+
aminoType: "sparkdream/x/blog/MsgUpdatePost",
|
|
21
21
|
toAmino: MsgUpdatePost.toAmino,
|
|
22
22
|
fromAmino: MsgUpdatePost.fromAmino
|
|
23
23
|
},
|
|
24
24
|
"/sparkdream.blog.v1.MsgDeletePost": {
|
|
25
|
-
aminoType: "/
|
|
25
|
+
aminoType: "sparkdream/x/blog/MsgDeletePost",
|
|
26
26
|
toAmino: MsgDeletePost.toAmino,
|
|
27
27
|
fromAmino: MsgDeletePost.fromAmino
|
|
28
28
|
},
|
|
29
29
|
"/sparkdream.blog.v1.MsgHidePost": {
|
|
30
|
-
aminoType: "/
|
|
30
|
+
aminoType: "sparkdream/x/blog/MsgHidePost",
|
|
31
31
|
toAmino: MsgHidePost.toAmino,
|
|
32
32
|
fromAmino: MsgHidePost.fromAmino
|
|
33
33
|
},
|
|
34
34
|
"/sparkdream.blog.v1.MsgUnhidePost": {
|
|
35
|
-
aminoType: "/
|
|
35
|
+
aminoType: "sparkdream/x/blog/MsgUnhidePost",
|
|
36
36
|
toAmino: MsgUnhidePost.toAmino,
|
|
37
37
|
fromAmino: MsgUnhidePost.fromAmino
|
|
38
38
|
},
|
|
39
39
|
"/sparkdream.blog.v1.MsgCreateReply": {
|
|
40
|
-
aminoType: "/
|
|
40
|
+
aminoType: "sparkdream/x/blog/MsgCreateReply",
|
|
41
41
|
toAmino: MsgCreateReply.toAmino,
|
|
42
42
|
fromAmino: MsgCreateReply.fromAmino
|
|
43
43
|
},
|
|
44
44
|
"/sparkdream.blog.v1.MsgUpdateReply": {
|
|
45
|
-
aminoType: "/
|
|
45
|
+
aminoType: "sparkdream/x/blog/MsgUpdateReply",
|
|
46
46
|
toAmino: MsgUpdateReply.toAmino,
|
|
47
47
|
fromAmino: MsgUpdateReply.fromAmino
|
|
48
48
|
},
|
|
49
49
|
"/sparkdream.blog.v1.MsgDeleteReply": {
|
|
50
|
-
aminoType: "/
|
|
50
|
+
aminoType: "sparkdream/x/blog/MsgDeleteReply",
|
|
51
51
|
toAmino: MsgDeleteReply.toAmino,
|
|
52
52
|
fromAmino: MsgDeleteReply.fromAmino
|
|
53
53
|
},
|
|
54
54
|
"/sparkdream.blog.v1.MsgHideReply": {
|
|
55
|
-
aminoType: "/
|
|
55
|
+
aminoType: "sparkdream/x/blog/MsgHideReply",
|
|
56
56
|
toAmino: MsgHideReply.toAmino,
|
|
57
57
|
fromAmino: MsgHideReply.fromAmino
|
|
58
58
|
},
|
|
59
59
|
"/sparkdream.blog.v1.MsgUnhideReply": {
|
|
60
|
-
aminoType: "/
|
|
60
|
+
aminoType: "sparkdream/x/blog/MsgUnhideReply",
|
|
61
61
|
toAmino: MsgUnhideReply.toAmino,
|
|
62
62
|
fromAmino: MsgUnhideReply.fromAmino
|
|
63
63
|
},
|
|
64
64
|
"/sparkdream.blog.v1.MsgReact": {
|
|
65
|
-
aminoType: "/
|
|
65
|
+
aminoType: "sparkdream/x/blog/MsgReact",
|
|
66
66
|
toAmino: MsgReact.toAmino,
|
|
67
67
|
fromAmino: MsgReact.fromAmino
|
|
68
68
|
},
|
|
69
69
|
"/sparkdream.blog.v1.MsgRemoveReaction": {
|
|
70
|
-
aminoType: "/
|
|
70
|
+
aminoType: "sparkdream/x/blog/MsgRemoveReaction",
|
|
71
71
|
toAmino: MsgRemoveReaction.toAmino,
|
|
72
72
|
fromAmino: MsgRemoveReaction.fromAmino
|
|
73
73
|
},
|
|
74
74
|
"/sparkdream.blog.v1.MsgPinPost": {
|
|
75
|
-
aminoType: "/
|
|
75
|
+
aminoType: "sparkdream/x/blog/MsgPinPost",
|
|
76
76
|
toAmino: MsgPinPost.toAmino,
|
|
77
77
|
fromAmino: MsgPinPost.fromAmino
|
|
78
78
|
},
|
|
79
79
|
"/sparkdream.blog.v1.MsgPinReply": {
|
|
80
|
-
aminoType: "/
|
|
80
|
+
aminoType: "sparkdream/x/blog/MsgPinReply",
|
|
81
81
|
toAmino: MsgPinReply.toAmino,
|
|
82
82
|
fromAmino: MsgPinReply.fromAmino
|
|
83
83
|
}
|
|
@@ -312,6 +312,7 @@ function createBaseMsgCreatePost() {
|
|
|
312
312
|
*/
|
|
313
313
|
export const MsgCreatePost = {
|
|
314
314
|
typeUrl: "/sparkdream.blog.v1.MsgCreatePost",
|
|
315
|
+
aminoType: "sparkdream/x/blog/MsgCreatePost",
|
|
315
316
|
encode(message, writer = BinaryWriter.create()) {
|
|
316
317
|
if (message.creator !== "") {
|
|
317
318
|
writer.uint32(10).string(message.creator);
|
|
@@ -435,6 +436,12 @@ export const MsgCreatePost = {
|
|
|
435
436
|
fromAminoMsg(object) {
|
|
436
437
|
return MsgCreatePost.fromAmino(object.value);
|
|
437
438
|
},
|
|
439
|
+
toAminoMsg(message) {
|
|
440
|
+
return {
|
|
441
|
+
type: "sparkdream/x/blog/MsgCreatePost",
|
|
442
|
+
value: MsgCreatePost.toAmino(message)
|
|
443
|
+
};
|
|
444
|
+
},
|
|
438
445
|
fromProtoMsg(message) {
|
|
439
446
|
return MsgCreatePost.decode(message.value);
|
|
440
447
|
},
|
|
@@ -537,6 +544,7 @@ function createBaseMsgUpdatePost() {
|
|
|
537
544
|
*/
|
|
538
545
|
export const MsgUpdatePost = {
|
|
539
546
|
typeUrl: "/sparkdream.blog.v1.MsgUpdatePost",
|
|
547
|
+
aminoType: "sparkdream/x/blog/MsgUpdatePost",
|
|
540
548
|
encode(message, writer = BinaryWriter.create()) {
|
|
541
549
|
if (message.creator !== "") {
|
|
542
550
|
writer.uint32(10).string(message.creator);
|
|
@@ -660,6 +668,12 @@ export const MsgUpdatePost = {
|
|
|
660
668
|
fromAminoMsg(object) {
|
|
661
669
|
return MsgUpdatePost.fromAmino(object.value);
|
|
662
670
|
},
|
|
671
|
+
toAminoMsg(message) {
|
|
672
|
+
return {
|
|
673
|
+
type: "sparkdream/x/blog/MsgUpdatePost",
|
|
674
|
+
value: MsgUpdatePost.toAmino(message)
|
|
675
|
+
};
|
|
676
|
+
},
|
|
663
677
|
fromProtoMsg(message) {
|
|
664
678
|
return MsgUpdatePost.decode(message.value);
|
|
665
679
|
},
|
|
@@ -743,6 +757,7 @@ function createBaseMsgDeletePost() {
|
|
|
743
757
|
*/
|
|
744
758
|
export const MsgDeletePost = {
|
|
745
759
|
typeUrl: "/sparkdream.blog.v1.MsgDeletePost",
|
|
760
|
+
aminoType: "sparkdream/x/blog/MsgDeletePost",
|
|
746
761
|
encode(message, writer = BinaryWriter.create()) {
|
|
747
762
|
if (message.creator !== "") {
|
|
748
763
|
writer.uint32(10).string(message.creator);
|
|
@@ -797,6 +812,12 @@ export const MsgDeletePost = {
|
|
|
797
812
|
fromAminoMsg(object) {
|
|
798
813
|
return MsgDeletePost.fromAmino(object.value);
|
|
799
814
|
},
|
|
815
|
+
toAminoMsg(message) {
|
|
816
|
+
return {
|
|
817
|
+
type: "sparkdream/x/blog/MsgDeletePost",
|
|
818
|
+
value: MsgDeletePost.toAmino(message)
|
|
819
|
+
};
|
|
820
|
+
},
|
|
800
821
|
fromProtoMsg(message) {
|
|
801
822
|
return MsgDeletePost.decode(message.value);
|
|
802
823
|
},
|
|
@@ -880,6 +901,7 @@ function createBaseMsgHidePost() {
|
|
|
880
901
|
*/
|
|
881
902
|
export const MsgHidePost = {
|
|
882
903
|
typeUrl: "/sparkdream.blog.v1.MsgHidePost",
|
|
904
|
+
aminoType: "sparkdream/x/blog/MsgHidePost",
|
|
883
905
|
encode(message, writer = BinaryWriter.create()) {
|
|
884
906
|
if (message.creator !== "") {
|
|
885
907
|
writer.uint32(10).string(message.creator);
|
|
@@ -934,6 +956,12 @@ export const MsgHidePost = {
|
|
|
934
956
|
fromAminoMsg(object) {
|
|
935
957
|
return MsgHidePost.fromAmino(object.value);
|
|
936
958
|
},
|
|
959
|
+
toAminoMsg(message) {
|
|
960
|
+
return {
|
|
961
|
+
type: "sparkdream/x/blog/MsgHidePost",
|
|
962
|
+
value: MsgHidePost.toAmino(message)
|
|
963
|
+
};
|
|
964
|
+
},
|
|
937
965
|
fromProtoMsg(message) {
|
|
938
966
|
return MsgHidePost.decode(message.value);
|
|
939
967
|
},
|
|
@@ -1017,6 +1045,7 @@ function createBaseMsgUnhidePost() {
|
|
|
1017
1045
|
*/
|
|
1018
1046
|
export const MsgUnhidePost = {
|
|
1019
1047
|
typeUrl: "/sparkdream.blog.v1.MsgUnhidePost",
|
|
1048
|
+
aminoType: "sparkdream/x/blog/MsgUnhidePost",
|
|
1020
1049
|
encode(message, writer = BinaryWriter.create()) {
|
|
1021
1050
|
if (message.creator !== "") {
|
|
1022
1051
|
writer.uint32(10).string(message.creator);
|
|
@@ -1071,6 +1100,12 @@ export const MsgUnhidePost = {
|
|
|
1071
1100
|
fromAminoMsg(object) {
|
|
1072
1101
|
return MsgUnhidePost.fromAmino(object.value);
|
|
1073
1102
|
},
|
|
1103
|
+
toAminoMsg(message) {
|
|
1104
|
+
return {
|
|
1105
|
+
type: "sparkdream/x/blog/MsgUnhidePost",
|
|
1106
|
+
value: MsgUnhidePost.toAmino(message)
|
|
1107
|
+
};
|
|
1108
|
+
},
|
|
1074
1109
|
fromProtoMsg(message) {
|
|
1075
1110
|
return MsgUnhidePost.decode(message.value);
|
|
1076
1111
|
},
|
|
@@ -1158,6 +1193,7 @@ function createBaseMsgCreateReply() {
|
|
|
1158
1193
|
*/
|
|
1159
1194
|
export const MsgCreateReply = {
|
|
1160
1195
|
typeUrl: "/sparkdream.blog.v1.MsgCreateReply",
|
|
1196
|
+
aminoType: "sparkdream/x/blog/MsgCreateReply",
|
|
1161
1197
|
encode(message, writer = BinaryWriter.create()) {
|
|
1162
1198
|
if (message.creator !== "") {
|
|
1163
1199
|
writer.uint32(10).string(message.creator);
|
|
@@ -1256,6 +1292,12 @@ export const MsgCreateReply = {
|
|
|
1256
1292
|
fromAminoMsg(object) {
|
|
1257
1293
|
return MsgCreateReply.fromAmino(object.value);
|
|
1258
1294
|
},
|
|
1295
|
+
toAminoMsg(message) {
|
|
1296
|
+
return {
|
|
1297
|
+
type: "sparkdream/x/blog/MsgCreateReply",
|
|
1298
|
+
value: MsgCreateReply.toAmino(message)
|
|
1299
|
+
};
|
|
1300
|
+
},
|
|
1259
1301
|
fromProtoMsg(message) {
|
|
1260
1302
|
return MsgCreateReply.decode(message.value);
|
|
1261
1303
|
},
|
|
@@ -1354,6 +1396,7 @@ function createBaseMsgUpdateReply() {
|
|
|
1354
1396
|
*/
|
|
1355
1397
|
export const MsgUpdateReply = {
|
|
1356
1398
|
typeUrl: "/sparkdream.blog.v1.MsgUpdateReply",
|
|
1399
|
+
aminoType: "sparkdream/x/blog/MsgUpdateReply",
|
|
1357
1400
|
encode(message, writer = BinaryWriter.create()) {
|
|
1358
1401
|
if (message.creator !== "") {
|
|
1359
1402
|
writer.uint32(10).string(message.creator);
|
|
@@ -1430,6 +1473,12 @@ export const MsgUpdateReply = {
|
|
|
1430
1473
|
fromAminoMsg(object) {
|
|
1431
1474
|
return MsgUpdateReply.fromAmino(object.value);
|
|
1432
1475
|
},
|
|
1476
|
+
toAminoMsg(message) {
|
|
1477
|
+
return {
|
|
1478
|
+
type: "sparkdream/x/blog/MsgUpdateReply",
|
|
1479
|
+
value: MsgUpdateReply.toAmino(message)
|
|
1480
|
+
};
|
|
1481
|
+
},
|
|
1433
1482
|
fromProtoMsg(message) {
|
|
1434
1483
|
return MsgUpdateReply.decode(message.value);
|
|
1435
1484
|
},
|
|
@@ -1513,6 +1562,7 @@ function createBaseMsgDeleteReply() {
|
|
|
1513
1562
|
*/
|
|
1514
1563
|
export const MsgDeleteReply = {
|
|
1515
1564
|
typeUrl: "/sparkdream.blog.v1.MsgDeleteReply",
|
|
1565
|
+
aminoType: "sparkdream/x/blog/MsgDeleteReply",
|
|
1516
1566
|
encode(message, writer = BinaryWriter.create()) {
|
|
1517
1567
|
if (message.creator !== "") {
|
|
1518
1568
|
writer.uint32(10).string(message.creator);
|
|
@@ -1567,6 +1617,12 @@ export const MsgDeleteReply = {
|
|
|
1567
1617
|
fromAminoMsg(object) {
|
|
1568
1618
|
return MsgDeleteReply.fromAmino(object.value);
|
|
1569
1619
|
},
|
|
1620
|
+
toAminoMsg(message) {
|
|
1621
|
+
return {
|
|
1622
|
+
type: "sparkdream/x/blog/MsgDeleteReply",
|
|
1623
|
+
value: MsgDeleteReply.toAmino(message)
|
|
1624
|
+
};
|
|
1625
|
+
},
|
|
1570
1626
|
fromProtoMsg(message) {
|
|
1571
1627
|
return MsgDeleteReply.decode(message.value);
|
|
1572
1628
|
},
|
|
@@ -1650,6 +1706,7 @@ function createBaseMsgHideReply() {
|
|
|
1650
1706
|
*/
|
|
1651
1707
|
export const MsgHideReply = {
|
|
1652
1708
|
typeUrl: "/sparkdream.blog.v1.MsgHideReply",
|
|
1709
|
+
aminoType: "sparkdream/x/blog/MsgHideReply",
|
|
1653
1710
|
encode(message, writer = BinaryWriter.create()) {
|
|
1654
1711
|
if (message.creator !== "") {
|
|
1655
1712
|
writer.uint32(10).string(message.creator);
|
|
@@ -1704,6 +1761,12 @@ export const MsgHideReply = {
|
|
|
1704
1761
|
fromAminoMsg(object) {
|
|
1705
1762
|
return MsgHideReply.fromAmino(object.value);
|
|
1706
1763
|
},
|
|
1764
|
+
toAminoMsg(message) {
|
|
1765
|
+
return {
|
|
1766
|
+
type: "sparkdream/x/blog/MsgHideReply",
|
|
1767
|
+
value: MsgHideReply.toAmino(message)
|
|
1768
|
+
};
|
|
1769
|
+
},
|
|
1707
1770
|
fromProtoMsg(message) {
|
|
1708
1771
|
return MsgHideReply.decode(message.value);
|
|
1709
1772
|
},
|
|
@@ -1787,6 +1850,7 @@ function createBaseMsgUnhideReply() {
|
|
|
1787
1850
|
*/
|
|
1788
1851
|
export const MsgUnhideReply = {
|
|
1789
1852
|
typeUrl: "/sparkdream.blog.v1.MsgUnhideReply",
|
|
1853
|
+
aminoType: "sparkdream/x/blog/MsgUnhideReply",
|
|
1790
1854
|
encode(message, writer = BinaryWriter.create()) {
|
|
1791
1855
|
if (message.creator !== "") {
|
|
1792
1856
|
writer.uint32(10).string(message.creator);
|
|
@@ -1841,6 +1905,12 @@ export const MsgUnhideReply = {
|
|
|
1841
1905
|
fromAminoMsg(object) {
|
|
1842
1906
|
return MsgUnhideReply.fromAmino(object.value);
|
|
1843
1907
|
},
|
|
1908
|
+
toAminoMsg(message) {
|
|
1909
|
+
return {
|
|
1910
|
+
type: "sparkdream/x/blog/MsgUnhideReply",
|
|
1911
|
+
value: MsgUnhideReply.toAmino(message)
|
|
1912
|
+
};
|
|
1913
|
+
},
|
|
1844
1914
|
fromProtoMsg(message) {
|
|
1845
1915
|
return MsgUnhideReply.decode(message.value);
|
|
1846
1916
|
},
|
|
@@ -1926,6 +1996,7 @@ function createBaseMsgReact() {
|
|
|
1926
1996
|
*/
|
|
1927
1997
|
export const MsgReact = {
|
|
1928
1998
|
typeUrl: "/sparkdream.blog.v1.MsgReact",
|
|
1999
|
+
aminoType: "sparkdream/x/blog/MsgReact",
|
|
1929
2000
|
encode(message, writer = BinaryWriter.create()) {
|
|
1930
2001
|
if (message.creator !== "") {
|
|
1931
2002
|
writer.uint32(10).string(message.creator);
|
|
@@ -2002,6 +2073,12 @@ export const MsgReact = {
|
|
|
2002
2073
|
fromAminoMsg(object) {
|
|
2003
2074
|
return MsgReact.fromAmino(object.value);
|
|
2004
2075
|
},
|
|
2076
|
+
toAminoMsg(message) {
|
|
2077
|
+
return {
|
|
2078
|
+
type: "sparkdream/x/blog/MsgReact",
|
|
2079
|
+
value: MsgReact.toAmino(message)
|
|
2080
|
+
};
|
|
2081
|
+
},
|
|
2005
2082
|
fromProtoMsg(message) {
|
|
2006
2083
|
return MsgReact.decode(message.value);
|
|
2007
2084
|
},
|
|
@@ -2086,6 +2163,7 @@ function createBaseMsgRemoveReaction() {
|
|
|
2086
2163
|
*/
|
|
2087
2164
|
export const MsgRemoveReaction = {
|
|
2088
2165
|
typeUrl: "/sparkdream.blog.v1.MsgRemoveReaction",
|
|
2166
|
+
aminoType: "sparkdream/x/blog/MsgRemoveReaction",
|
|
2089
2167
|
encode(message, writer = BinaryWriter.create()) {
|
|
2090
2168
|
if (message.creator !== "") {
|
|
2091
2169
|
writer.uint32(10).string(message.creator);
|
|
@@ -2151,6 +2229,12 @@ export const MsgRemoveReaction = {
|
|
|
2151
2229
|
fromAminoMsg(object) {
|
|
2152
2230
|
return MsgRemoveReaction.fromAmino(object.value);
|
|
2153
2231
|
},
|
|
2232
|
+
toAminoMsg(message) {
|
|
2233
|
+
return {
|
|
2234
|
+
type: "sparkdream/x/blog/MsgRemoveReaction",
|
|
2235
|
+
value: MsgRemoveReaction.toAmino(message)
|
|
2236
|
+
};
|
|
2237
|
+
},
|
|
2154
2238
|
fromProtoMsg(message) {
|
|
2155
2239
|
return MsgRemoveReaction.decode(message.value);
|
|
2156
2240
|
},
|
|
@@ -2234,6 +2318,7 @@ function createBaseMsgPinPost() {
|
|
|
2234
2318
|
*/
|
|
2235
2319
|
export const MsgPinPost = {
|
|
2236
2320
|
typeUrl: "/sparkdream.blog.v1.MsgPinPost",
|
|
2321
|
+
aminoType: "sparkdream/x/blog/MsgPinPost",
|
|
2237
2322
|
encode(message, writer = BinaryWriter.create()) {
|
|
2238
2323
|
if (message.creator !== "") {
|
|
2239
2324
|
writer.uint32(10).string(message.creator);
|
|
@@ -2288,6 +2373,12 @@ export const MsgPinPost = {
|
|
|
2288
2373
|
fromAminoMsg(object) {
|
|
2289
2374
|
return MsgPinPost.fromAmino(object.value);
|
|
2290
2375
|
},
|
|
2376
|
+
toAminoMsg(message) {
|
|
2377
|
+
return {
|
|
2378
|
+
type: "sparkdream/x/blog/MsgPinPost",
|
|
2379
|
+
value: MsgPinPost.toAmino(message)
|
|
2380
|
+
};
|
|
2381
|
+
},
|
|
2291
2382
|
fromProtoMsg(message) {
|
|
2292
2383
|
return MsgPinPost.decode(message.value);
|
|
2293
2384
|
},
|
|
@@ -2371,6 +2462,7 @@ function createBaseMsgPinReply() {
|
|
|
2371
2462
|
*/
|
|
2372
2463
|
export const MsgPinReply = {
|
|
2373
2464
|
typeUrl: "/sparkdream.blog.v1.MsgPinReply",
|
|
2465
|
+
aminoType: "sparkdream/x/blog/MsgPinReply",
|
|
2374
2466
|
encode(message, writer = BinaryWriter.create()) {
|
|
2375
2467
|
if (message.creator !== "") {
|
|
2376
2468
|
writer.uint32(10).string(message.creator);
|
|
@@ -2425,6 +2517,12 @@ export const MsgPinReply = {
|
|
|
2425
2517
|
fromAminoMsg(object) {
|
|
2426
2518
|
return MsgPinReply.fromAmino(object.value);
|
|
2427
2519
|
},
|
|
2520
|
+
toAminoMsg(message) {
|
|
2521
|
+
return {
|
|
2522
|
+
type: "sparkdream/x/blog/MsgPinReply",
|
|
2523
|
+
value: MsgPinReply.toAmino(message)
|
|
2524
|
+
};
|
|
2525
|
+
},
|
|
2428
2526
|
fromProtoMsg(message) {
|
|
2429
2527
|
return MsgPinReply.decode(message.value);
|
|
2430
2528
|
},
|
|
@@ -7,87 +7,87 @@ export const AminoConverter = {
|
|
|
7
7
|
fromAmino: MsgUpdateParams.fromAmino
|
|
8
8
|
},
|
|
9
9
|
"/sparkdream.collect.v1.MsgCreateCollection": {
|
|
10
|
-
aminoType: "/
|
|
10
|
+
aminoType: "sparkdream/x/collect/MsgCreateCollection",
|
|
11
11
|
toAmino: MsgCreateCollection.toAmino,
|
|
12
12
|
fromAmino: MsgCreateCollection.fromAmino
|
|
13
13
|
},
|
|
14
14
|
"/sparkdream.collect.v1.MsgUpdateCollection": {
|
|
15
|
-
aminoType: "/
|
|
15
|
+
aminoType: "sparkdream/x/collect/MsgUpdateCollection",
|
|
16
16
|
toAmino: MsgUpdateCollection.toAmino,
|
|
17
17
|
fromAmino: MsgUpdateCollection.fromAmino
|
|
18
18
|
},
|
|
19
19
|
"/sparkdream.collect.v1.MsgDeleteCollection": {
|
|
20
|
-
aminoType: "/
|
|
20
|
+
aminoType: "sparkdream/x/collect/MsgDeleteCollection",
|
|
21
21
|
toAmino: MsgDeleteCollection.toAmino,
|
|
22
22
|
fromAmino: MsgDeleteCollection.fromAmino
|
|
23
23
|
},
|
|
24
24
|
"/sparkdream.collect.v1.MsgAddItem": {
|
|
25
|
-
aminoType: "/
|
|
25
|
+
aminoType: "sparkdream/x/collect/MsgAddItem",
|
|
26
26
|
toAmino: MsgAddItem.toAmino,
|
|
27
27
|
fromAmino: MsgAddItem.fromAmino
|
|
28
28
|
},
|
|
29
29
|
"/sparkdream.collect.v1.MsgAddItems": {
|
|
30
|
-
aminoType: "/
|
|
30
|
+
aminoType: "sparkdream/x/collect/MsgAddItems",
|
|
31
31
|
toAmino: MsgAddItems.toAmino,
|
|
32
32
|
fromAmino: MsgAddItems.fromAmino
|
|
33
33
|
},
|
|
34
34
|
"/sparkdream.collect.v1.MsgUpdateItem": {
|
|
35
|
-
aminoType: "/
|
|
35
|
+
aminoType: "sparkdream/x/collect/MsgUpdateItem",
|
|
36
36
|
toAmino: MsgUpdateItem.toAmino,
|
|
37
37
|
fromAmino: MsgUpdateItem.fromAmino
|
|
38
38
|
},
|
|
39
39
|
"/sparkdream.collect.v1.MsgRemoveItem": {
|
|
40
|
-
aminoType: "/
|
|
40
|
+
aminoType: "sparkdream/x/collect/MsgRemoveItem",
|
|
41
41
|
toAmino: MsgRemoveItem.toAmino,
|
|
42
42
|
fromAmino: MsgRemoveItem.fromAmino
|
|
43
43
|
},
|
|
44
44
|
"/sparkdream.collect.v1.MsgRemoveItems": {
|
|
45
|
-
aminoType: "/
|
|
45
|
+
aminoType: "sparkdream/x/collect/MsgRemoveItems",
|
|
46
46
|
toAmino: MsgRemoveItems.toAmino,
|
|
47
47
|
fromAmino: MsgRemoveItems.fromAmino
|
|
48
48
|
},
|
|
49
49
|
"/sparkdream.collect.v1.MsgReorderItem": {
|
|
50
|
-
aminoType: "/
|
|
50
|
+
aminoType: "sparkdream/x/collect/MsgReorderItem",
|
|
51
51
|
toAmino: MsgReorderItem.toAmino,
|
|
52
52
|
fromAmino: MsgReorderItem.fromAmino
|
|
53
53
|
},
|
|
54
54
|
"/sparkdream.collect.v1.MsgAddCollaborator": {
|
|
55
|
-
aminoType: "/
|
|
55
|
+
aminoType: "sparkdream/x/collect/MsgAddCollaborator",
|
|
56
56
|
toAmino: MsgAddCollaborator.toAmino,
|
|
57
57
|
fromAmino: MsgAddCollaborator.fromAmino
|
|
58
58
|
},
|
|
59
59
|
"/sparkdream.collect.v1.MsgRemoveCollaborator": {
|
|
60
|
-
aminoType: "/
|
|
60
|
+
aminoType: "sparkdream/x/collect/MsgRemoveCollaborator",
|
|
61
61
|
toAmino: MsgRemoveCollaborator.toAmino,
|
|
62
62
|
fromAmino: MsgRemoveCollaborator.fromAmino
|
|
63
63
|
},
|
|
64
64
|
"/sparkdream.collect.v1.MsgUpdateCollaboratorRole": {
|
|
65
|
-
aminoType: "/
|
|
65
|
+
aminoType: "sparkdream/x/collect/MsgUpdateCollaboratorRole",
|
|
66
66
|
toAmino: MsgUpdateCollaboratorRole.toAmino,
|
|
67
67
|
fromAmino: MsgUpdateCollaboratorRole.fromAmino
|
|
68
68
|
},
|
|
69
69
|
"/sparkdream.collect.v1.MsgRateCollection": {
|
|
70
|
-
aminoType: "/
|
|
70
|
+
aminoType: "sparkdream/x/collect/MsgRateCollection",
|
|
71
71
|
toAmino: MsgRateCollection.toAmino,
|
|
72
72
|
fromAmino: MsgRateCollection.fromAmino
|
|
73
73
|
},
|
|
74
74
|
"/sparkdream.collect.v1.MsgChallengeReview": {
|
|
75
|
-
aminoType: "/
|
|
75
|
+
aminoType: "sparkdream/x/collect/MsgChallengeReview",
|
|
76
76
|
toAmino: MsgChallengeReview.toAmino,
|
|
77
77
|
fromAmino: MsgChallengeReview.fromAmino
|
|
78
78
|
},
|
|
79
79
|
"/sparkdream.collect.v1.MsgRequestSponsorship": {
|
|
80
|
-
aminoType: "/
|
|
80
|
+
aminoType: "sparkdream/x/collect/MsgRequestSponsorship",
|
|
81
81
|
toAmino: MsgRequestSponsorship.toAmino,
|
|
82
82
|
fromAmino: MsgRequestSponsorship.fromAmino
|
|
83
83
|
},
|
|
84
84
|
"/sparkdream.collect.v1.MsgCancelSponsorshipRequest": {
|
|
85
|
-
aminoType: "/
|
|
85
|
+
aminoType: "sparkdream/x/collect/MsgCancelSponsorshipRequest",
|
|
86
86
|
toAmino: MsgCancelSponsorshipRequest.toAmino,
|
|
87
87
|
fromAmino: MsgCancelSponsorshipRequest.fromAmino
|
|
88
88
|
},
|
|
89
89
|
"/sparkdream.collect.v1.MsgSponsorCollection": {
|
|
90
|
-
aminoType: "/
|
|
90
|
+
aminoType: "sparkdream/x/collect/MsgSponsorCollection",
|
|
91
91
|
toAmino: MsgSponsorCollection.toAmino,
|
|
92
92
|
fromAmino: MsgSponsorCollection.fromAmino
|
|
93
93
|
},
|
|
@@ -97,42 +97,42 @@ export const AminoConverter = {
|
|
|
97
97
|
fromAmino: MsgUpdateOperationalParams.fromAmino
|
|
98
98
|
},
|
|
99
99
|
"/sparkdream.collect.v1.MsgUpvoteContent": {
|
|
100
|
-
aminoType: "/
|
|
100
|
+
aminoType: "sparkdream/x/collect/MsgUpvoteContent",
|
|
101
101
|
toAmino: MsgUpvoteContent.toAmino,
|
|
102
102
|
fromAmino: MsgUpvoteContent.fromAmino
|
|
103
103
|
},
|
|
104
104
|
"/sparkdream.collect.v1.MsgDownvoteContent": {
|
|
105
|
-
aminoType: "/
|
|
105
|
+
aminoType: "sparkdream/x/collect/MsgDownvoteContent",
|
|
106
106
|
toAmino: MsgDownvoteContent.toAmino,
|
|
107
107
|
fromAmino: MsgDownvoteContent.fromAmino
|
|
108
108
|
},
|
|
109
109
|
"/sparkdream.collect.v1.MsgFlagContent": {
|
|
110
|
-
aminoType: "/
|
|
110
|
+
aminoType: "sparkdream/x/collect/MsgFlagContent",
|
|
111
111
|
toAmino: MsgFlagContent.toAmino,
|
|
112
112
|
fromAmino: MsgFlagContent.fromAmino
|
|
113
113
|
},
|
|
114
114
|
"/sparkdream.collect.v1.MsgHideContent": {
|
|
115
|
-
aminoType: "/
|
|
115
|
+
aminoType: "sparkdream/x/collect/MsgHideContent",
|
|
116
116
|
toAmino: MsgHideContent.toAmino,
|
|
117
117
|
fromAmino: MsgHideContent.fromAmino
|
|
118
118
|
},
|
|
119
119
|
"/sparkdream.collect.v1.MsgAppealHide": {
|
|
120
|
-
aminoType: "/
|
|
120
|
+
aminoType: "sparkdream/x/collect/MsgAppealHide",
|
|
121
121
|
toAmino: MsgAppealHide.toAmino,
|
|
122
122
|
fromAmino: MsgAppealHide.fromAmino
|
|
123
123
|
},
|
|
124
124
|
"/sparkdream.collect.v1.MsgEndorseCollection": {
|
|
125
|
-
aminoType: "/
|
|
125
|
+
aminoType: "sparkdream/x/collect/MsgEndorseCollection",
|
|
126
126
|
toAmino: MsgEndorseCollection.toAmino,
|
|
127
127
|
fromAmino: MsgEndorseCollection.fromAmino
|
|
128
128
|
},
|
|
129
129
|
"/sparkdream.collect.v1.MsgSetSeekingEndorsement": {
|
|
130
|
-
aminoType: "/
|
|
130
|
+
aminoType: "sparkdream/x/collect/MsgSetSeekingEndorsement",
|
|
131
131
|
toAmino: MsgSetSeekingEndorsement.toAmino,
|
|
132
132
|
fromAmino: MsgSetSeekingEndorsement.fromAmino
|
|
133
133
|
},
|
|
134
134
|
"/sparkdream.collect.v1.MsgPinCollection": {
|
|
135
|
-
aminoType: "/
|
|
135
|
+
aminoType: "sparkdream/x/collect/MsgPinCollection",
|
|
136
136
|
toAmino: MsgPinCollection.toAmino,
|
|
137
137
|
fromAmino: MsgPinCollection.fromAmino
|
|
138
138
|
}
|