@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
|
@@ -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
|
};
|
|
@@ -678,6 +678,7 @@ export interface CollectOperationalParams {
|
|
|
678
678
|
curatorDemotionCooldown: bigint;
|
|
679
679
|
curatorDemotionThreshold: string;
|
|
680
680
|
curatorOverturnDemotionStreak: bigint;
|
|
681
|
+
curatorUnbondCooldown: bigint;
|
|
681
682
|
}
|
|
682
683
|
export interface CollectOperationalParamsProtoMsg {
|
|
683
684
|
typeUrl: "/sparkdream.collect.v1.CollectOperationalParams";
|
|
@@ -742,6 +743,7 @@ export interface CollectOperationalParamsAmino {
|
|
|
742
743
|
curator_demotion_cooldown?: string;
|
|
743
744
|
curator_demotion_threshold?: string;
|
|
744
745
|
curator_overturn_demotion_streak?: string;
|
|
746
|
+
curator_unbond_cooldown?: string;
|
|
745
747
|
}
|
|
746
748
|
export interface CollectOperationalParamsAminoMsg {
|
|
747
749
|
type: "/sparkdream.collect.v1.CollectOperationalParams";
|
|
@@ -2367,7 +2367,8 @@ function createBaseCollectOperationalParams() {
|
|
|
2367
2367
|
maxPinsPerDay: 0,
|
|
2368
2368
|
curatorDemotionCooldown: BigInt(0),
|
|
2369
2369
|
curatorDemotionThreshold: "",
|
|
2370
|
-
curatorOverturnDemotionStreak: BigInt(0)
|
|
2370
|
+
curatorOverturnDemotionStreak: BigInt(0),
|
|
2371
|
+
curatorUnbondCooldown: BigInt(0)
|
|
2371
2372
|
};
|
|
2372
2373
|
}
|
|
2373
2374
|
/**
|
|
@@ -2508,6 +2509,9 @@ exports.CollectOperationalParams = {
|
|
|
2508
2509
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
2509
2510
|
writer.uint32(376).uint64(message.curatorOverturnDemotionStreak);
|
|
2510
2511
|
}
|
|
2512
|
+
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
2513
|
+
writer.uint32(384).int64(message.curatorUnbondCooldown);
|
|
2514
|
+
}
|
|
2511
2515
|
return writer;
|
|
2512
2516
|
},
|
|
2513
2517
|
decode(input, length) {
|
|
@@ -2646,6 +2650,9 @@ exports.CollectOperationalParams = {
|
|
|
2646
2650
|
case 47:
|
|
2647
2651
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
2648
2652
|
break;
|
|
2653
|
+
case 48:
|
|
2654
|
+
message.curatorUnbondCooldown = reader.int64();
|
|
2655
|
+
break;
|
|
2649
2656
|
default:
|
|
2650
2657
|
reader.skipType(tag & 7);
|
|
2651
2658
|
break;
|
|
@@ -2698,6 +2705,7 @@ exports.CollectOperationalParams = {
|
|
|
2698
2705
|
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
2699
2706
|
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
2700
2707
|
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
2708
|
+
message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
|
|
2701
2709
|
return message;
|
|
2702
2710
|
},
|
|
2703
2711
|
fromAmino(object) {
|
|
@@ -2831,6 +2839,9 @@ exports.CollectOperationalParams = {
|
|
|
2831
2839
|
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
2832
2840
|
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
2833
2841
|
}
|
|
2842
|
+
if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
|
|
2843
|
+
message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
|
|
2844
|
+
}
|
|
2834
2845
|
return message;
|
|
2835
2846
|
},
|
|
2836
2847
|
toAmino(message) {
|
|
@@ -2878,6 +2889,7 @@ exports.CollectOperationalParams = {
|
|
|
2878
2889
|
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
2879
2890
|
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
2880
2891
|
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
2892
|
+
obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
|
|
2881
2893
|
return obj;
|
|
2882
2894
|
},
|
|
2883
2895
|
fromAminoMsg(object) {
|
|
@@ -2,6 +2,7 @@ import { Params, ParamsAmino } from "./params";
|
|
|
2
2
|
import { PolicyPermissions, PolicyPermissionsAmino } from "./policy_permissions";
|
|
3
3
|
import { Group, GroupAmino, Proposal, ProposalAmino, Member, MemberAmino, DecisionPolicy, DecisionPolicyAmino, Vote, VoteAmino } from "./group";
|
|
4
4
|
import { Category, CategoryAmino } from "./category";
|
|
5
|
+
import { RecurringSpend, RecurringSpendAmino } from "./recurring_spend";
|
|
5
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
7
|
import { DeepPartial } from "../../../helpers";
|
|
7
8
|
/**
|
|
@@ -53,6 +54,14 @@ export interface GenesisState {
|
|
|
53
54
|
* next_category_id is the next auto-increment category ID
|
|
54
55
|
*/
|
|
55
56
|
nextCategoryId: bigint;
|
|
57
|
+
/**
|
|
58
|
+
* recurring_spends stores all schedules for export.
|
|
59
|
+
*/
|
|
60
|
+
recurringSpends: RecurringSpend[];
|
|
61
|
+
/**
|
|
62
|
+
* next_recurring_spend_id is the next auto-increment recurring spend ID.
|
|
63
|
+
*/
|
|
64
|
+
nextRecurringSpendId: bigint;
|
|
56
65
|
}
|
|
57
66
|
export interface GenesisStateProtoMsg {
|
|
58
67
|
typeUrl: "/sparkdream.commons.v1.GenesisState";
|
|
@@ -107,6 +116,14 @@ export interface GenesisStateAmino {
|
|
|
107
116
|
* next_category_id is the next auto-increment category ID
|
|
108
117
|
*/
|
|
109
118
|
next_category_id?: string;
|
|
119
|
+
/**
|
|
120
|
+
* recurring_spends stores all schedules for export.
|
|
121
|
+
*/
|
|
122
|
+
recurring_spends?: RecurringSpendAmino[];
|
|
123
|
+
/**
|
|
124
|
+
* next_recurring_spend_id is the next auto-increment recurring spend ID.
|
|
125
|
+
*/
|
|
126
|
+
next_recurring_spend_id?: string;
|
|
110
127
|
}
|
|
111
128
|
export interface GenesisStateAminoMsg {
|
|
112
129
|
type: "/sparkdream.commons.v1.GenesisState";
|
|
@@ -6,6 +6,7 @@ const params_1 = require("./params");
|
|
|
6
6
|
const policy_permissions_1 = require("./policy_permissions");
|
|
7
7
|
const group_1 = require("./group");
|
|
8
8
|
const category_1 = require("./category");
|
|
9
|
+
const recurring_spend_1 = require("./recurring_spend");
|
|
9
10
|
const binary_1 = require("../../../binary");
|
|
10
11
|
function createBaseGenesisState() {
|
|
11
12
|
return {
|
|
@@ -20,7 +21,9 @@ function createBaseGenesisState() {
|
|
|
20
21
|
policyVersions: [],
|
|
21
22
|
proposalVotes: [],
|
|
22
23
|
categoryMap: [],
|
|
23
|
-
nextCategoryId: BigInt(0)
|
|
24
|
+
nextCategoryId: BigInt(0),
|
|
25
|
+
recurringSpends: [],
|
|
26
|
+
nextRecurringSpendId: BigInt(0)
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
@@ -68,6 +71,12 @@ exports.GenesisState = {
|
|
|
68
71
|
if (message.nextCategoryId !== BigInt(0)) {
|
|
69
72
|
writer.uint32(96).uint64(message.nextCategoryId);
|
|
70
73
|
}
|
|
74
|
+
for (const v of message.recurringSpends) {
|
|
75
|
+
recurring_spend_1.RecurringSpend.encode(v, writer.uint32(106).fork()).ldelim();
|
|
76
|
+
}
|
|
77
|
+
if (message.nextRecurringSpendId !== BigInt(0)) {
|
|
78
|
+
writer.uint32(112).uint64(message.nextRecurringSpendId);
|
|
79
|
+
}
|
|
71
80
|
return writer;
|
|
72
81
|
},
|
|
73
82
|
decode(input, length) {
|
|
@@ -113,6 +122,12 @@ exports.GenesisState = {
|
|
|
113
122
|
case 12:
|
|
114
123
|
message.nextCategoryId = reader.uint64();
|
|
115
124
|
break;
|
|
125
|
+
case 13:
|
|
126
|
+
message.recurringSpends.push(recurring_spend_1.RecurringSpend.decode(reader, reader.uint32()));
|
|
127
|
+
break;
|
|
128
|
+
case 14:
|
|
129
|
+
message.nextRecurringSpendId = reader.uint64();
|
|
130
|
+
break;
|
|
116
131
|
default:
|
|
117
132
|
reader.skipType(tag & 7);
|
|
118
133
|
break;
|
|
@@ -134,6 +149,8 @@ exports.GenesisState = {
|
|
|
134
149
|
message.proposalVotes = object.proposalVotes?.map(e => exports.ProposalVotes.fromPartial(e)) || [];
|
|
135
150
|
message.categoryMap = object.categoryMap?.map(e => category_1.Category.fromPartial(e)) || [];
|
|
136
151
|
message.nextCategoryId = object.nextCategoryId !== undefined && object.nextCategoryId !== null ? BigInt(object.nextCategoryId.toString()) : BigInt(0);
|
|
152
|
+
message.recurringSpends = object.recurringSpends?.map(e => recurring_spend_1.RecurringSpend.fromPartial(e)) || [];
|
|
153
|
+
message.nextRecurringSpendId = object.nextRecurringSpendId !== undefined && object.nextRecurringSpendId !== null ? BigInt(object.nextRecurringSpendId.toString()) : BigInt(0);
|
|
137
154
|
return message;
|
|
138
155
|
},
|
|
139
156
|
fromAmino(object) {
|
|
@@ -158,6 +175,10 @@ exports.GenesisState = {
|
|
|
158
175
|
if (object.next_category_id !== undefined && object.next_category_id !== null) {
|
|
159
176
|
message.nextCategoryId = BigInt(object.next_category_id);
|
|
160
177
|
}
|
|
178
|
+
message.recurringSpends = object.recurring_spends?.map(e => recurring_spend_1.RecurringSpend.fromAmino(e)) || [];
|
|
179
|
+
if (object.next_recurring_spend_id !== undefined && object.next_recurring_spend_id !== null) {
|
|
180
|
+
message.nextRecurringSpendId = BigInt(object.next_recurring_spend_id);
|
|
181
|
+
}
|
|
161
182
|
return message;
|
|
162
183
|
},
|
|
163
184
|
toAmino(message) {
|
|
@@ -214,6 +235,13 @@ exports.GenesisState = {
|
|
|
214
235
|
obj.category_map = message.categoryMap;
|
|
215
236
|
}
|
|
216
237
|
obj.next_category_id = message.nextCategoryId !== BigInt(0) ? message.nextCategoryId?.toString() : undefined;
|
|
238
|
+
if (message.recurringSpends) {
|
|
239
|
+
obj.recurring_spends = message.recurringSpends.map(e => e ? recurring_spend_1.RecurringSpend.toAmino(e) : undefined);
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
obj.recurring_spends = message.recurringSpends;
|
|
243
|
+
}
|
|
244
|
+
obj.next_recurring_spend_id = message.nextRecurringSpendId !== BigInt(0) ? message.nextRecurringSpendId?.toString() : undefined;
|
|
217
245
|
return obj;
|
|
218
246
|
},
|
|
219
247
|
fromAminoMsg(object) {
|