@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.18
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +51 -50
- package/esm/sparkdream/blog/v1/tx.amino.js +53 -20
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
- package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.amino.js +17 -1
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.js +53 -20
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14945 -12924
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +125 -50
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
- package/sparkdream/collect/v1/tx.amino.js +138 -36
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.js +75 -5
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
- package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
- package/sparkdream/forum/v1/tx.amino.js +69 -40
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- 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/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.amino.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.js +17 -1
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
- package/sparkdream/shield/v1/tx.amino.js +61 -8
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
package/sparkdream/rep/v1/tag.js
CHANGED
|
@@ -8,13 +8,17 @@ function createBaseTag() {
|
|
|
8
8
|
name: "",
|
|
9
9
|
usageCount: BigInt(0),
|
|
10
10
|
createdAt: BigInt(0),
|
|
11
|
-
lastUsedAt: BigInt(0)
|
|
12
|
-
expirationIndex: BigInt(0)
|
|
11
|
+
lastUsedAt: BigInt(0)
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
17
16
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
17
|
+
*
|
|
18
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
19
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
20
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
21
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
18
22
|
* @name Tag
|
|
19
23
|
* @package sparkdream.rep.v1
|
|
20
24
|
* @see proto type: sparkdream.rep.v1.Tag
|
|
@@ -34,9 +38,6 @@ exports.Tag = {
|
|
|
34
38
|
if (message.lastUsedAt !== BigInt(0)) {
|
|
35
39
|
writer.uint32(32).int64(message.lastUsedAt);
|
|
36
40
|
}
|
|
37
|
-
if (message.expirationIndex !== BigInt(0)) {
|
|
38
|
-
writer.uint32(40).int64(message.expirationIndex);
|
|
39
|
-
}
|
|
40
41
|
return writer;
|
|
41
42
|
},
|
|
42
43
|
decode(input, length) {
|
|
@@ -58,9 +59,6 @@ exports.Tag = {
|
|
|
58
59
|
case 4:
|
|
59
60
|
message.lastUsedAt = reader.int64();
|
|
60
61
|
break;
|
|
61
|
-
case 5:
|
|
62
|
-
message.expirationIndex = reader.int64();
|
|
63
|
-
break;
|
|
64
62
|
default:
|
|
65
63
|
reader.skipType(tag & 7);
|
|
66
64
|
break;
|
|
@@ -74,7 +72,6 @@ exports.Tag = {
|
|
|
74
72
|
message.usageCount = object.usageCount !== undefined && object.usageCount !== null ? BigInt(object.usageCount.toString()) : BigInt(0);
|
|
75
73
|
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
76
74
|
message.lastUsedAt = object.lastUsedAt !== undefined && object.lastUsedAt !== null ? BigInt(object.lastUsedAt.toString()) : BigInt(0);
|
|
77
|
-
message.expirationIndex = object.expirationIndex !== undefined && object.expirationIndex !== null ? BigInt(object.expirationIndex.toString()) : BigInt(0);
|
|
78
75
|
return message;
|
|
79
76
|
},
|
|
80
77
|
fromAmino(object) {
|
|
@@ -91,9 +88,6 @@ exports.Tag = {
|
|
|
91
88
|
if (object.last_used_at !== undefined && object.last_used_at !== null) {
|
|
92
89
|
message.lastUsedAt = BigInt(object.last_used_at);
|
|
93
90
|
}
|
|
94
|
-
if (object.expiration_index !== undefined && object.expiration_index !== null) {
|
|
95
|
-
message.expirationIndex = BigInt(object.expiration_index);
|
|
96
|
-
}
|
|
97
91
|
return message;
|
|
98
92
|
},
|
|
99
93
|
toAmino(message) {
|
|
@@ -102,7 +96,6 @@ exports.Tag = {
|
|
|
102
96
|
obj.usage_count = message.usageCount !== BigInt(0) ? message.usageCount?.toString() : undefined;
|
|
103
97
|
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
104
98
|
obj.last_used_at = message.lastUsedAt !== BigInt(0) ? message.lastUsedAt?.toString() : undefined;
|
|
105
|
-
obj.expiration_index = message.expirationIndex !== BigInt(0) ? message.expirationIndex?.toString() : undefined;
|
|
106
99
|
return obj;
|
|
107
100
|
},
|
|
108
101
|
fromAminoMsg(object) {
|
|
@@ -12,7 +12,7 @@ export declare const AminoConverter: {
|
|
|
12
12
|
};
|
|
13
13
|
"/sparkdream.rep.v1.MsgInviteMember": {
|
|
14
14
|
aminoType: string;
|
|
15
|
-
toAmino
|
|
15
|
+
toAmino(message: any): any;
|
|
16
16
|
fromAmino: (object: import("./tx").MsgInviteMemberAmino) => MsgInviteMember;
|
|
17
17
|
};
|
|
18
18
|
"/sparkdream.rep.v1.MsgAcceptInvitation": {
|
|
@@ -57,7 +57,7 @@ export declare const AminoConverter: {
|
|
|
57
57
|
};
|
|
58
58
|
"/sparkdream.rep.v1.MsgProposeProject": {
|
|
59
59
|
aminoType: string;
|
|
60
|
-
toAmino
|
|
60
|
+
toAmino(message: any): any;
|
|
61
61
|
fromAmino: (object: import("./tx").MsgProposeProjectAmino) => MsgProposeProject;
|
|
62
62
|
};
|
|
63
63
|
"/sparkdream.rep.v1.MsgApproveProjectBudget": {
|
|
@@ -72,7 +72,7 @@ export declare const AminoConverter: {
|
|
|
72
72
|
};
|
|
73
73
|
"/sparkdream.rep.v1.MsgCreateInitiative": {
|
|
74
74
|
aminoType: string;
|
|
75
|
-
toAmino
|
|
75
|
+
toAmino(message: any): any;
|
|
76
76
|
fromAmino: (object: import("./tx").MsgCreateInitiativeAmino) => MsgCreateInitiative;
|
|
77
77
|
};
|
|
78
78
|
"/sparkdream.rep.v1.MsgAssignInitiative": {
|
|
@@ -87,7 +87,7 @@ export declare const AminoConverter: {
|
|
|
87
87
|
};
|
|
88
88
|
"/sparkdream.rep.v1.MsgApproveInitiative": {
|
|
89
89
|
aminoType: string;
|
|
90
|
-
toAmino
|
|
90
|
+
toAmino(message: any): any;
|
|
91
91
|
fromAmino: (object: import("./tx").MsgApproveInitiativeAmino) => MsgApproveInitiative;
|
|
92
92
|
};
|
|
93
93
|
"/sparkdream.rep.v1.MsgAbandonInitiative": {
|
|
@@ -122,17 +122,17 @@ export declare const AminoConverter: {
|
|
|
122
122
|
};
|
|
123
123
|
"/sparkdream.rep.v1.MsgCreateChallenge": {
|
|
124
124
|
aminoType: string;
|
|
125
|
-
toAmino
|
|
125
|
+
toAmino(message: any): any;
|
|
126
126
|
fromAmino: (object: import("./tx").MsgCreateChallengeAmino) => MsgCreateChallenge;
|
|
127
127
|
};
|
|
128
128
|
"/sparkdream.rep.v1.MsgRespondToChallenge": {
|
|
129
129
|
aminoType: string;
|
|
130
|
-
toAmino
|
|
130
|
+
toAmino(message: any): any;
|
|
131
131
|
fromAmino: (object: import("./tx").MsgRespondToChallengeAmino) => MsgRespondToChallenge;
|
|
132
132
|
};
|
|
133
133
|
"/sparkdream.rep.v1.MsgSubmitJurorVote": {
|
|
134
134
|
aminoType: string;
|
|
135
|
-
toAmino
|
|
135
|
+
toAmino(message: any): any;
|
|
136
136
|
fromAmino: (object: import("./tx").MsgSubmitJurorVoteAmino) => MsgSubmitJurorVote;
|
|
137
137
|
};
|
|
138
138
|
"/sparkdream.rep.v1.MsgSubmitExpertTestimony": {
|
|
@@ -142,12 +142,12 @@ export declare const AminoConverter: {
|
|
|
142
142
|
};
|
|
143
143
|
"/sparkdream.rep.v1.MsgChallengeContent": {
|
|
144
144
|
aminoType: string;
|
|
145
|
-
toAmino
|
|
145
|
+
toAmino(message: any): any;
|
|
146
146
|
fromAmino: (object: import("./tx").MsgChallengeContentAmino) => MsgChallengeContent;
|
|
147
147
|
};
|
|
148
148
|
"/sparkdream.rep.v1.MsgRespondToContentChallenge": {
|
|
149
149
|
aminoType: string;
|
|
150
|
-
toAmino
|
|
150
|
+
toAmino(message: any): any;
|
|
151
151
|
fromAmino: (object: import("./tx").MsgRespondToContentChallengeAmino) => MsgRespondToContentChallenge;
|
|
152
152
|
};
|
|
153
153
|
"/sparkdream.rep.v1.MsgRegisterZkPublicKey": {
|
|
@@ -1,242 +1,361 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
4
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
5
|
+
//
|
|
6
|
+
// Why: Telescope's auto-generated toAmino emits `[]` for empty repeated fields
|
|
7
|
+
// (the `if (message.field)` check is truthy for `[]` in JS), but
|
|
8
|
+
// cosmossdk.io/x/tx/signing/aminojson on the chain side omits them per
|
|
9
|
+
// `omitempty`. Whenever a repeated field happens to be empty (e.g. a project
|
|
10
|
+
// proposal with no tags / no deliverables / no milestones), the JS side signs
|
|
11
|
+
// `"tags":[]` and the chain reconstructs without the key — sign bytes differ,
|
|
12
|
+
// surfacing as "signature verification failed" / "unauthorized".
|
|
13
|
+
//
|
|
14
|
+
// Every rep message with a repeated field is patched here to mirror aminojson's
|
|
15
|
+
// omitempty (return `undefined` when empty). The rest of the converters pass
|
|
16
|
+
// straight through to the auto-generated toAmino/fromAmino.
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
19
|
const tx_1 = require("./tx");
|
|
20
|
+
const jury_review_1 = require("./jury_review");
|
|
6
21
|
exports.AminoConverter = {
|
|
7
22
|
"/sparkdream.rep.v1.MsgUpdateParams": {
|
|
8
23
|
aminoType: "sparkdream/x/rep/MsgUpdateParams",
|
|
9
24
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
10
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
25
|
+
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
11
26
|
},
|
|
12
27
|
"/sparkdream.rep.v1.MsgUpdateOperationalParams": {
|
|
13
28
|
aminoType: "sparkdream/x/rep/MsgUpdateOperationalParams",
|
|
14
29
|
toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
|
|
15
|
-
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino
|
|
30
|
+
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino,
|
|
16
31
|
},
|
|
17
32
|
"/sparkdream.rep.v1.MsgInviteMember": {
|
|
18
33
|
aminoType: "sparkdream/x/rep/MsgInviteMember",
|
|
19
|
-
toAmino
|
|
20
|
-
|
|
34
|
+
toAmino(message) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
obj.inviter = message.inviter === "" ? undefined : message.inviter;
|
|
37
|
+
obj.invitee_address = message.inviteeAddress === "" ? undefined : message.inviteeAddress;
|
|
38
|
+
obj.staked_dream = message.stakedDream === "" ? undefined : message.stakedDream;
|
|
39
|
+
obj.vouched_tags = (message.vouchedTags?.length ?? 0) > 0
|
|
40
|
+
? message.vouchedTags.map((e) => e)
|
|
41
|
+
: undefined;
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
fromAmino: tx_1.MsgInviteMember.fromAmino,
|
|
21
45
|
},
|
|
22
46
|
"/sparkdream.rep.v1.MsgAcceptInvitation": {
|
|
23
47
|
aminoType: "sparkdream/x/rep/MsgAcceptInvitation",
|
|
24
48
|
toAmino: tx_1.MsgAcceptInvitation.toAmino,
|
|
25
|
-
fromAmino: tx_1.MsgAcceptInvitation.fromAmino
|
|
49
|
+
fromAmino: tx_1.MsgAcceptInvitation.fromAmino,
|
|
26
50
|
},
|
|
27
51
|
"/sparkdream.rep.v1.MsgTransferDream": {
|
|
28
52
|
aminoType: "sparkdream/x/rep/MsgTransferDream",
|
|
29
53
|
toAmino: tx_1.MsgTransferDream.toAmino,
|
|
30
|
-
fromAmino: tx_1.MsgTransferDream.fromAmino
|
|
54
|
+
fromAmino: tx_1.MsgTransferDream.fromAmino,
|
|
31
55
|
},
|
|
32
56
|
"/sparkdream.rep.v1.MsgCreateInterim": {
|
|
33
57
|
aminoType: "sparkdream/x/rep/MsgCreateInterim",
|
|
34
58
|
toAmino: tx_1.MsgCreateInterim.toAmino,
|
|
35
|
-
fromAmino: tx_1.MsgCreateInterim.fromAmino
|
|
59
|
+
fromAmino: tx_1.MsgCreateInterim.fromAmino,
|
|
36
60
|
},
|
|
37
61
|
"/sparkdream.rep.v1.MsgAssignInterim": {
|
|
38
62
|
aminoType: "sparkdream/x/rep/MsgAssignInterim",
|
|
39
63
|
toAmino: tx_1.MsgAssignInterim.toAmino,
|
|
40
|
-
fromAmino: tx_1.MsgAssignInterim.fromAmino
|
|
64
|
+
fromAmino: tx_1.MsgAssignInterim.fromAmino,
|
|
41
65
|
},
|
|
42
66
|
"/sparkdream.rep.v1.MsgSubmitInterimWork": {
|
|
43
67
|
aminoType: "sparkdream/x/rep/MsgSubmitInterimWork",
|
|
44
68
|
toAmino: tx_1.MsgSubmitInterimWork.toAmino,
|
|
45
|
-
fromAmino: tx_1.MsgSubmitInterimWork.fromAmino
|
|
69
|
+
fromAmino: tx_1.MsgSubmitInterimWork.fromAmino,
|
|
46
70
|
},
|
|
47
71
|
"/sparkdream.rep.v1.MsgApproveInterim": {
|
|
48
72
|
aminoType: "sparkdream/x/rep/MsgApproveInterim",
|
|
49
73
|
toAmino: tx_1.MsgApproveInterim.toAmino,
|
|
50
|
-
fromAmino: tx_1.MsgApproveInterim.fromAmino
|
|
74
|
+
fromAmino: tx_1.MsgApproveInterim.fromAmino,
|
|
51
75
|
},
|
|
52
76
|
"/sparkdream.rep.v1.MsgAbandonInterim": {
|
|
53
77
|
aminoType: "sparkdream/x/rep/MsgAbandonInterim",
|
|
54
78
|
toAmino: tx_1.MsgAbandonInterim.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgAbandonInterim.fromAmino
|
|
79
|
+
fromAmino: tx_1.MsgAbandonInterim.fromAmino,
|
|
56
80
|
},
|
|
57
81
|
"/sparkdream.rep.v1.MsgCompleteInterim": {
|
|
58
82
|
aminoType: "sparkdream/x/rep/MsgCompleteInterim",
|
|
59
83
|
toAmino: tx_1.MsgCompleteInterim.toAmino,
|
|
60
|
-
fromAmino: tx_1.MsgCompleteInterim.fromAmino
|
|
84
|
+
fromAmino: tx_1.MsgCompleteInterim.fromAmino,
|
|
61
85
|
},
|
|
86
|
+
// The UI hardcodes `deliverables: []` and `milestones: []` on every project
|
|
87
|
+
// proposal, so without this override every submission fails sigverify.
|
|
62
88
|
"/sparkdream.rep.v1.MsgProposeProject": {
|
|
63
89
|
aminoType: "sparkdream/x/rep/MsgProposeProject",
|
|
64
|
-
toAmino
|
|
65
|
-
|
|
90
|
+
toAmino(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
93
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
94
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
95
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
96
|
+
? message.tags.map((e) => e)
|
|
97
|
+
: undefined;
|
|
98
|
+
obj.category = message.category === 0 ? undefined : message.category;
|
|
99
|
+
obj.council = message.council === "" ? undefined : message.council;
|
|
100
|
+
obj.requested_budget = message.requestedBudget === "" ? undefined : message.requestedBudget;
|
|
101
|
+
obj.requested_spark = message.requestedSpark === "" ? undefined : message.requestedSpark;
|
|
102
|
+
obj.deliverables = (message.deliverables?.length ?? 0) > 0
|
|
103
|
+
? message.deliverables.map((e) => e)
|
|
104
|
+
: undefined;
|
|
105
|
+
obj.milestones = (message.milestones?.length ?? 0) > 0
|
|
106
|
+
? message.milestones.map((e) => e)
|
|
107
|
+
: undefined;
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
fromAmino: tx_1.MsgProposeProject.fromAmino,
|
|
66
111
|
},
|
|
67
112
|
"/sparkdream.rep.v1.MsgApproveProjectBudget": {
|
|
68
113
|
aminoType: "sparkdream/x/rep/MsgApproveProjectBudget",
|
|
69
114
|
toAmino: tx_1.MsgApproveProjectBudget.toAmino,
|
|
70
|
-
fromAmino: tx_1.MsgApproveProjectBudget.fromAmino
|
|
115
|
+
fromAmino: tx_1.MsgApproveProjectBudget.fromAmino,
|
|
71
116
|
},
|
|
72
117
|
"/sparkdream.rep.v1.MsgCancelProject": {
|
|
73
118
|
aminoType: "sparkdream/x/rep/MsgCancelProject",
|
|
74
119
|
toAmino: tx_1.MsgCancelProject.toAmino,
|
|
75
|
-
fromAmino: tx_1.MsgCancelProject.fromAmino
|
|
120
|
+
fromAmino: tx_1.MsgCancelProject.fromAmino,
|
|
76
121
|
},
|
|
77
122
|
"/sparkdream.rep.v1.MsgCreateInitiative": {
|
|
78
123
|
aminoType: "sparkdream/x/rep/MsgCreateInitiative",
|
|
79
|
-
toAmino
|
|
80
|
-
|
|
124
|
+
toAmino(message) {
|
|
125
|
+
const obj = {};
|
|
126
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
127
|
+
obj.project_id = message.projectId !== BigInt(0) ? message.projectId?.toString() : undefined;
|
|
128
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
129
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
130
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
131
|
+
? message.tags.map((e) => e)
|
|
132
|
+
: undefined;
|
|
133
|
+
obj.tier = message.tier !== BigInt(0) ? message.tier?.toString() : undefined;
|
|
134
|
+
obj.category = message.category !== BigInt(0) ? message.category?.toString() : undefined;
|
|
135
|
+
obj.template_id = message.templateId === "" ? undefined : message.templateId;
|
|
136
|
+
obj.budget = message.budget === "" ? undefined : message.budget;
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
fromAmino: tx_1.MsgCreateInitiative.fromAmino,
|
|
81
140
|
},
|
|
82
141
|
"/sparkdream.rep.v1.MsgAssignInitiative": {
|
|
83
142
|
aminoType: "sparkdream/x/rep/MsgAssignInitiative",
|
|
84
143
|
toAmino: tx_1.MsgAssignInitiative.toAmino,
|
|
85
|
-
fromAmino: tx_1.MsgAssignInitiative.fromAmino
|
|
144
|
+
fromAmino: tx_1.MsgAssignInitiative.fromAmino,
|
|
86
145
|
},
|
|
87
146
|
"/sparkdream.rep.v1.MsgSubmitInitiativeWork": {
|
|
88
147
|
aminoType: "sparkdream/x/rep/MsgSubmitInitiativeWork",
|
|
89
148
|
toAmino: tx_1.MsgSubmitInitiativeWork.toAmino,
|
|
90
|
-
fromAmino: tx_1.MsgSubmitInitiativeWork.fromAmino
|
|
149
|
+
fromAmino: tx_1.MsgSubmitInitiativeWork.fromAmino,
|
|
91
150
|
},
|
|
92
151
|
"/sparkdream.rep.v1.MsgApproveInitiative": {
|
|
93
152
|
aminoType: "sparkdream/x/rep/MsgApproveInitiative",
|
|
94
|
-
toAmino
|
|
95
|
-
|
|
153
|
+
toAmino(message) {
|
|
154
|
+
const obj = {};
|
|
155
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
156
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
157
|
+
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
158
|
+
? message.criteriaVotes.map((e) => e ? jury_review_1.CriteriaVote.toAmino(e) : undefined)
|
|
159
|
+
: undefined;
|
|
160
|
+
obj.approved = message.approved === false ? undefined : message.approved;
|
|
161
|
+
obj.comments = message.comments === "" ? undefined : message.comments;
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
fromAmino: tx_1.MsgApproveInitiative.fromAmino,
|
|
96
165
|
},
|
|
97
166
|
"/sparkdream.rep.v1.MsgAbandonInitiative": {
|
|
98
167
|
aminoType: "sparkdream/x/rep/MsgAbandonInitiative",
|
|
99
168
|
toAmino: tx_1.MsgAbandonInitiative.toAmino,
|
|
100
|
-
fromAmino: tx_1.MsgAbandonInitiative.fromAmino
|
|
169
|
+
fromAmino: tx_1.MsgAbandonInitiative.fromAmino,
|
|
101
170
|
},
|
|
102
171
|
"/sparkdream.rep.v1.MsgCompleteInitiative": {
|
|
103
172
|
aminoType: "sparkdream/x/rep/MsgCompleteInitiative",
|
|
104
173
|
toAmino: tx_1.MsgCompleteInitiative.toAmino,
|
|
105
|
-
fromAmino: tx_1.MsgCompleteInitiative.fromAmino
|
|
174
|
+
fromAmino: tx_1.MsgCompleteInitiative.fromAmino,
|
|
106
175
|
},
|
|
107
176
|
"/sparkdream.rep.v1.MsgStake": {
|
|
108
177
|
aminoType: "sparkdream/x/rep/MsgStake",
|
|
109
178
|
toAmino: tx_1.MsgStake.toAmino,
|
|
110
|
-
fromAmino: tx_1.MsgStake.fromAmino
|
|
179
|
+
fromAmino: tx_1.MsgStake.fromAmino,
|
|
111
180
|
},
|
|
112
181
|
"/sparkdream.rep.v1.MsgUnstake": {
|
|
113
182
|
aminoType: "sparkdream/x/rep/MsgUnstake",
|
|
114
183
|
toAmino: tx_1.MsgUnstake.toAmino,
|
|
115
|
-
fromAmino: tx_1.MsgUnstake.fromAmino
|
|
184
|
+
fromAmino: tx_1.MsgUnstake.fromAmino,
|
|
116
185
|
},
|
|
117
186
|
"/sparkdream.rep.v1.MsgClaimStakingRewards": {
|
|
118
187
|
aminoType: "sparkdream/x/rep/MsgClaimStakingRewards",
|
|
119
188
|
toAmino: tx_1.MsgClaimStakingRewards.toAmino,
|
|
120
|
-
fromAmino: tx_1.MsgClaimStakingRewards.fromAmino
|
|
189
|
+
fromAmino: tx_1.MsgClaimStakingRewards.fromAmino,
|
|
121
190
|
},
|
|
122
191
|
"/sparkdream.rep.v1.MsgCompoundStakingRewards": {
|
|
123
192
|
aminoType: "sparkdream/x/rep/MsgCompoundStakingRewards",
|
|
124
193
|
toAmino: tx_1.MsgCompoundStakingRewards.toAmino,
|
|
125
|
-
fromAmino: tx_1.MsgCompoundStakingRewards.fromAmino
|
|
194
|
+
fromAmino: tx_1.MsgCompoundStakingRewards.fromAmino,
|
|
126
195
|
},
|
|
127
196
|
"/sparkdream.rep.v1.MsgCreateChallenge": {
|
|
128
197
|
aminoType: "sparkdream/x/rep/MsgCreateChallenge",
|
|
129
|
-
toAmino
|
|
130
|
-
|
|
198
|
+
toAmino(message) {
|
|
199
|
+
const obj = {};
|
|
200
|
+
obj.challenger = message.challenger === "" ? undefined : message.challenger;
|
|
201
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
202
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
203
|
+
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
204
|
+
? message.evidence.map((e) => e)
|
|
205
|
+
: undefined;
|
|
206
|
+
obj.staked_dream = message.stakedDream === "" ? undefined : message.stakedDream;
|
|
207
|
+
return obj;
|
|
208
|
+
},
|
|
209
|
+
fromAmino: tx_1.MsgCreateChallenge.fromAmino,
|
|
131
210
|
},
|
|
132
211
|
"/sparkdream.rep.v1.MsgRespondToChallenge": {
|
|
133
212
|
aminoType: "sparkdream/x/rep/MsgRespondToChallenge",
|
|
134
|
-
toAmino
|
|
135
|
-
|
|
213
|
+
toAmino(message) {
|
|
214
|
+
const obj = {};
|
|
215
|
+
obj.assignee = message.assignee === "" ? undefined : message.assignee;
|
|
216
|
+
obj.challenge_id = message.challengeId !== BigInt(0) ? message.challengeId?.toString() : undefined;
|
|
217
|
+
obj.response = message.response === "" ? undefined : message.response;
|
|
218
|
+
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
219
|
+
? message.evidence.map((e) => e)
|
|
220
|
+
: undefined;
|
|
221
|
+
return obj;
|
|
222
|
+
},
|
|
223
|
+
fromAmino: tx_1.MsgRespondToChallenge.fromAmino,
|
|
136
224
|
},
|
|
137
225
|
"/sparkdream.rep.v1.MsgSubmitJurorVote": {
|
|
138
226
|
aminoType: "sparkdream/x/rep/MsgSubmitJurorVote",
|
|
139
|
-
toAmino
|
|
140
|
-
|
|
227
|
+
toAmino(message) {
|
|
228
|
+
const obj = {};
|
|
229
|
+
obj.juror = message.juror === "" ? undefined : message.juror;
|
|
230
|
+
obj.jury_review_id = message.juryReviewId !== BigInt(0) ? message.juryReviewId?.toString() : undefined;
|
|
231
|
+
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
232
|
+
? message.criteriaVotes.map((e) => e ? jury_review_1.CriteriaVote.toAmino(e) : undefined)
|
|
233
|
+
: undefined;
|
|
234
|
+
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
235
|
+
obj.confidence = message.confidence === "" ? undefined : message.confidence;
|
|
236
|
+
obj.reasoning = message.reasoning === "" ? undefined : message.reasoning;
|
|
237
|
+
return obj;
|
|
238
|
+
},
|
|
239
|
+
fromAmino: tx_1.MsgSubmitJurorVote.fromAmino,
|
|
141
240
|
},
|
|
142
241
|
"/sparkdream.rep.v1.MsgSubmitExpertTestimony": {
|
|
143
242
|
aminoType: "sparkdream/x/rep/MsgSubmitExpertTestimony",
|
|
144
243
|
toAmino: tx_1.MsgSubmitExpertTestimony.toAmino,
|
|
145
|
-
fromAmino: tx_1.MsgSubmitExpertTestimony.fromAmino
|
|
244
|
+
fromAmino: tx_1.MsgSubmitExpertTestimony.fromAmino,
|
|
146
245
|
},
|
|
147
246
|
"/sparkdream.rep.v1.MsgChallengeContent": {
|
|
148
247
|
aminoType: "sparkdream/x/rep/MsgChallengeContent",
|
|
149
|
-
toAmino
|
|
150
|
-
|
|
248
|
+
toAmino(message) {
|
|
249
|
+
const obj = {};
|
|
250
|
+
obj.challenger = message.challenger === "" ? undefined : message.challenger;
|
|
251
|
+
obj.target_type = message.targetType !== BigInt(0) ? message.targetType?.toString() : undefined;
|
|
252
|
+
obj.target_id = message.targetId !== BigInt(0) ? message.targetId?.toString() : undefined;
|
|
253
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
254
|
+
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
255
|
+
? message.evidence.map((e) => e)
|
|
256
|
+
: undefined;
|
|
257
|
+
obj.staked_dream = message.stakedDream === null ? undefined : message.stakedDream;
|
|
258
|
+
return obj;
|
|
259
|
+
},
|
|
260
|
+
fromAmino: tx_1.MsgChallengeContent.fromAmino,
|
|
151
261
|
},
|
|
152
262
|
"/sparkdream.rep.v1.MsgRespondToContentChallenge": {
|
|
153
263
|
aminoType: "sparkdream/x/rep/MsgRespondToContentChallenge",
|
|
154
|
-
toAmino
|
|
155
|
-
|
|
264
|
+
toAmino(message) {
|
|
265
|
+
const obj = {};
|
|
266
|
+
obj.author = message.author === "" ? undefined : message.author;
|
|
267
|
+
obj.content_challenge_id = message.contentChallengeId !== BigInt(0) ? message.contentChallengeId?.toString() : undefined;
|
|
268
|
+
obj.response = message.response === "" ? undefined : message.response;
|
|
269
|
+
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
270
|
+
? message.evidence.map((e) => e)
|
|
271
|
+
: undefined;
|
|
272
|
+
return obj;
|
|
273
|
+
},
|
|
274
|
+
fromAmino: tx_1.MsgRespondToContentChallenge.fromAmino,
|
|
156
275
|
},
|
|
157
276
|
"/sparkdream.rep.v1.MsgRegisterZkPublicKey": {
|
|
158
277
|
aminoType: "sparkdream/x/rep/MsgRegisterZkPublicKey",
|
|
159
278
|
toAmino: tx_1.MsgRegisterZkPublicKey.toAmino,
|
|
160
|
-
fromAmino: tx_1.MsgRegisterZkPublicKey.fromAmino
|
|
279
|
+
fromAmino: tx_1.MsgRegisterZkPublicKey.fromAmino,
|
|
161
280
|
},
|
|
162
281
|
"/sparkdream.rep.v1.MsgCreateTag": {
|
|
163
282
|
aminoType: "sparkdream/x/rep/MsgCreateTag",
|
|
164
283
|
toAmino: tx_1.MsgCreateTag.toAmino,
|
|
165
|
-
fromAmino: tx_1.MsgCreateTag.fromAmino
|
|
284
|
+
fromAmino: tx_1.MsgCreateTag.fromAmino,
|
|
166
285
|
},
|
|
167
286
|
"/sparkdream.rep.v1.MsgReportTag": {
|
|
168
287
|
aminoType: "sparkdream/x/rep/MsgReportTag",
|
|
169
288
|
toAmino: tx_1.MsgReportTag.toAmino,
|
|
170
|
-
fromAmino: tx_1.MsgReportTag.fromAmino
|
|
289
|
+
fromAmino: tx_1.MsgReportTag.fromAmino,
|
|
171
290
|
},
|
|
172
291
|
"/sparkdream.rep.v1.MsgResolveTagReport": {
|
|
173
292
|
aminoType: "sparkdream/x/rep/MsgResolveTagReport",
|
|
174
293
|
toAmino: tx_1.MsgResolveTagReport.toAmino,
|
|
175
|
-
fromAmino: tx_1.MsgResolveTagReport.fromAmino
|
|
294
|
+
fromAmino: tx_1.MsgResolveTagReport.fromAmino,
|
|
176
295
|
},
|
|
177
296
|
"/sparkdream.rep.v1.MsgCreateTagBudget": {
|
|
178
297
|
aminoType: "sparkdream/x/rep/MsgCreateTagBudget",
|
|
179
298
|
toAmino: tx_1.MsgCreateTagBudget.toAmino,
|
|
180
|
-
fromAmino: tx_1.MsgCreateTagBudget.fromAmino
|
|
299
|
+
fromAmino: tx_1.MsgCreateTagBudget.fromAmino,
|
|
181
300
|
},
|
|
182
301
|
"/sparkdream.rep.v1.MsgAwardFromTagBudget": {
|
|
183
302
|
aminoType: "sparkdream/x/rep/MsgAwardFromTagBudget",
|
|
184
303
|
toAmino: tx_1.MsgAwardFromTagBudget.toAmino,
|
|
185
|
-
fromAmino: tx_1.MsgAwardFromTagBudget.fromAmino
|
|
304
|
+
fromAmino: tx_1.MsgAwardFromTagBudget.fromAmino,
|
|
186
305
|
},
|
|
187
306
|
"/sparkdream.rep.v1.MsgTopUpTagBudget": {
|
|
188
307
|
aminoType: "sparkdream/x/rep/MsgTopUpTagBudget",
|
|
189
308
|
toAmino: tx_1.MsgTopUpTagBudget.toAmino,
|
|
190
|
-
fromAmino: tx_1.MsgTopUpTagBudget.fromAmino
|
|
309
|
+
fromAmino: tx_1.MsgTopUpTagBudget.fromAmino,
|
|
191
310
|
},
|
|
192
311
|
"/sparkdream.rep.v1.MsgToggleTagBudget": {
|
|
193
312
|
aminoType: "sparkdream/x/rep/MsgToggleTagBudget",
|
|
194
313
|
toAmino: tx_1.MsgToggleTagBudget.toAmino,
|
|
195
|
-
fromAmino: tx_1.MsgToggleTagBudget.fromAmino
|
|
314
|
+
fromAmino: tx_1.MsgToggleTagBudget.fromAmino,
|
|
196
315
|
},
|
|
197
316
|
"/sparkdream.rep.v1.MsgWithdrawTagBudget": {
|
|
198
317
|
aminoType: "sparkdream/x/rep/MsgWithdrawTagBudget",
|
|
199
318
|
toAmino: tx_1.MsgWithdrawTagBudget.toAmino,
|
|
200
|
-
fromAmino: tx_1.MsgWithdrawTagBudget.fromAmino
|
|
319
|
+
fromAmino: tx_1.MsgWithdrawTagBudget.fromAmino,
|
|
201
320
|
},
|
|
202
321
|
"/sparkdream.rep.v1.MsgBondRole": {
|
|
203
322
|
aminoType: "sparkdream/x/rep/MsgBondRole",
|
|
204
323
|
toAmino: tx_1.MsgBondRole.toAmino,
|
|
205
|
-
fromAmino: tx_1.MsgBondRole.fromAmino
|
|
324
|
+
fromAmino: tx_1.MsgBondRole.fromAmino,
|
|
206
325
|
},
|
|
207
326
|
"/sparkdream.rep.v1.MsgUnbondRole": {
|
|
208
327
|
aminoType: "sparkdream/x/rep/MsgUnbondRole",
|
|
209
328
|
toAmino: tx_1.MsgUnbondRole.toAmino,
|
|
210
|
-
fromAmino: tx_1.MsgUnbondRole.fromAmino
|
|
329
|
+
fromAmino: tx_1.MsgUnbondRole.fromAmino,
|
|
211
330
|
},
|
|
212
331
|
"/sparkdream.rep.v1.MsgReportMember": {
|
|
213
332
|
aminoType: "sparkdream/x/rep/MsgReportMember",
|
|
214
333
|
toAmino: tx_1.MsgReportMember.toAmino,
|
|
215
|
-
fromAmino: tx_1.MsgReportMember.fromAmino
|
|
334
|
+
fromAmino: tx_1.MsgReportMember.fromAmino,
|
|
216
335
|
},
|
|
217
336
|
"/sparkdream.rep.v1.MsgCosignMemberReport": {
|
|
218
337
|
aminoType: "sparkdream/x/rep/MsgCosignMemberReport",
|
|
219
338
|
toAmino: tx_1.MsgCosignMemberReport.toAmino,
|
|
220
|
-
fromAmino: tx_1.MsgCosignMemberReport.fromAmino
|
|
339
|
+
fromAmino: tx_1.MsgCosignMemberReport.fromAmino,
|
|
221
340
|
},
|
|
222
341
|
"/sparkdream.rep.v1.MsgResolveMemberReport": {
|
|
223
342
|
aminoType: "sparkdream/x/rep/MsgResolveMemberReport",
|
|
224
343
|
toAmino: tx_1.MsgResolveMemberReport.toAmino,
|
|
225
|
-
fromAmino: tx_1.MsgResolveMemberReport.fromAmino
|
|
344
|
+
fromAmino: tx_1.MsgResolveMemberReport.fromAmino,
|
|
226
345
|
},
|
|
227
346
|
"/sparkdream.rep.v1.MsgDefendMemberReport": {
|
|
228
347
|
aminoType: "sparkdream/x/rep/MsgDefendMemberReport",
|
|
229
348
|
toAmino: tx_1.MsgDefendMemberReport.toAmino,
|
|
230
|
-
fromAmino: tx_1.MsgDefendMemberReport.fromAmino
|
|
349
|
+
fromAmino: tx_1.MsgDefendMemberReport.fromAmino,
|
|
231
350
|
},
|
|
232
351
|
"/sparkdream.rep.v1.MsgAppealGovAction": {
|
|
233
352
|
aminoType: "sparkdream/x/rep/MsgAppealGovAction",
|
|
234
353
|
toAmino: tx_1.MsgAppealGovAction.toAmino,
|
|
235
|
-
fromAmino: tx_1.MsgAppealGovAction.fromAmino
|
|
354
|
+
fromAmino: tx_1.MsgAppealGovAction.fromAmino,
|
|
236
355
|
},
|
|
237
356
|
"/sparkdream.rep.v1.MsgResolveGovActionAppeal": {
|
|
238
357
|
aminoType: "sparkdream/x/rep/MsgResolveGovActionAppeal",
|
|
239
358
|
toAmino: tx_1.MsgResolveGovActionAppeal.toAmino,
|
|
240
|
-
fromAmino: tx_1.MsgResolveGovActionAppeal.fromAmino
|
|
241
|
-
}
|
|
359
|
+
fromAmino: tx_1.MsgResolveGovActionAppeal.fromAmino,
|
|
360
|
+
},
|
|
242
361
|
};
|
|
@@ -7,7 +7,7 @@ export declare const AminoConverter: {
|
|
|
7
7
|
};
|
|
8
8
|
"/sparkdream.reveal.v1.MsgPropose": {
|
|
9
9
|
aminoType: string;
|
|
10
|
-
toAmino
|
|
10
|
+
toAmino(message: any): any;
|
|
11
11
|
fromAmino: (object: import("./tx").MsgProposeAmino) => MsgPropose;
|
|
12
12
|
};
|
|
13
13
|
"/sparkdream.reveal.v1.MsgApprove": {
|
|
@@ -1,57 +1,78 @@
|
|
|
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
|
+
// MsgPropose has `repeated TrancheDef tranches` which Telescope emits as `[]`
|
|
7
|
+
// when empty — fine for a normal proposal but the override still mirrors
|
|
8
|
+
// aminojson's omitempty so the JS-signed bytes match the chain's reconstruction
|
|
9
|
+
// for any edge case (e.g. a single-tranche proposal where the contributor
|
|
10
|
+
// passes `[]` then computes tranches server-side).
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
13
|
const tx_1 = require("./tx");
|
|
14
|
+
const types_1 = require("./types");
|
|
6
15
|
exports.AminoConverter = {
|
|
7
16
|
"/sparkdream.reveal.v1.MsgUpdateParams": {
|
|
8
17
|
aminoType: "sparkdream/x/reveal/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.reveal.v1.MsgPropose": {
|
|
13
22
|
aminoType: "sparkdream/x/reveal/MsgPropose",
|
|
14
|
-
toAmino
|
|
15
|
-
|
|
23
|
+
toAmino(message) {
|
|
24
|
+
const obj = {};
|
|
25
|
+
obj.contributor = message.contributor === "" ? undefined : message.contributor;
|
|
26
|
+
obj.project_name = message.projectName === "" ? undefined : message.projectName;
|
|
27
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
28
|
+
obj.total_valuation = message.totalValuation === "" ? undefined : message.totalValuation;
|
|
29
|
+
obj.tranches = (message.tranches?.length ?? 0) > 0
|
|
30
|
+
? message.tranches.map((e) => e ? types_1.TrancheDef.toAmino(e) : undefined)
|
|
31
|
+
: undefined;
|
|
32
|
+
obj.initial_license = message.initialLicense === "" ? undefined : message.initialLicense;
|
|
33
|
+
obj.final_license = message.finalLicense === "" ? undefined : message.finalLicense;
|
|
34
|
+
return obj;
|
|
35
|
+
},
|
|
36
|
+
fromAmino: tx_1.MsgPropose.fromAmino,
|
|
16
37
|
},
|
|
17
38
|
"/sparkdream.reveal.v1.MsgApprove": {
|
|
18
39
|
aminoType: "sparkdream/x/reveal/MsgApprove",
|
|
19
40
|
toAmino: tx_1.MsgApprove.toAmino,
|
|
20
|
-
fromAmino: tx_1.MsgApprove.fromAmino
|
|
41
|
+
fromAmino: tx_1.MsgApprove.fromAmino,
|
|
21
42
|
},
|
|
22
43
|
"/sparkdream.reveal.v1.MsgReject": {
|
|
23
44
|
aminoType: "sparkdream/x/reveal/MsgReject",
|
|
24
45
|
toAmino: tx_1.MsgReject.toAmino,
|
|
25
|
-
fromAmino: tx_1.MsgReject.fromAmino
|
|
46
|
+
fromAmino: tx_1.MsgReject.fromAmino,
|
|
26
47
|
},
|
|
27
48
|
"/sparkdream.reveal.v1.MsgStake": {
|
|
28
49
|
aminoType: "sparkdream/x/reveal/MsgStake",
|
|
29
50
|
toAmino: tx_1.MsgStake.toAmino,
|
|
30
|
-
fromAmino: tx_1.MsgStake.fromAmino
|
|
51
|
+
fromAmino: tx_1.MsgStake.fromAmino,
|
|
31
52
|
},
|
|
32
53
|
"/sparkdream.reveal.v1.MsgWithdraw": {
|
|
33
54
|
aminoType: "sparkdream/x/reveal/MsgWithdraw",
|
|
34
55
|
toAmino: tx_1.MsgWithdraw.toAmino,
|
|
35
|
-
fromAmino: tx_1.MsgWithdraw.fromAmino
|
|
56
|
+
fromAmino: tx_1.MsgWithdraw.fromAmino,
|
|
36
57
|
},
|
|
37
58
|
"/sparkdream.reveal.v1.MsgReveal": {
|
|
38
59
|
aminoType: "sparkdream/x/reveal/MsgReveal",
|
|
39
60
|
toAmino: tx_1.MsgReveal.toAmino,
|
|
40
|
-
fromAmino: tx_1.MsgReveal.fromAmino
|
|
61
|
+
fromAmino: tx_1.MsgReveal.fromAmino,
|
|
41
62
|
},
|
|
42
63
|
"/sparkdream.reveal.v1.MsgVerify": {
|
|
43
64
|
aminoType: "sparkdream/x/reveal/MsgVerify",
|
|
44
65
|
toAmino: tx_1.MsgVerify.toAmino,
|
|
45
|
-
fromAmino: tx_1.MsgVerify.fromAmino
|
|
66
|
+
fromAmino: tx_1.MsgVerify.fromAmino,
|
|
46
67
|
},
|
|
47
68
|
"/sparkdream.reveal.v1.MsgCancel": {
|
|
48
69
|
aminoType: "sparkdream/x/reveal/MsgCancel",
|
|
49
70
|
toAmino: tx_1.MsgCancel.toAmino,
|
|
50
|
-
fromAmino: tx_1.MsgCancel.fromAmino
|
|
71
|
+
fromAmino: tx_1.MsgCancel.fromAmino,
|
|
51
72
|
},
|
|
52
73
|
"/sparkdream.reveal.v1.MsgResolveDispute": {
|
|
53
74
|
aminoType: "sparkdream/x/reveal/MsgResolveDispute",
|
|
54
75
|
toAmino: tx_1.MsgResolveDispute.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgResolveDispute.fromAmino
|
|
56
|
-
}
|
|
76
|
+
fromAmino: tx_1.MsgResolveDispute.fromAmino,
|
|
77
|
+
},
|
|
57
78
|
};
|