@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/esm/sparkdream/client.js
CHANGED
|
@@ -8,10 +8,12 @@ import * as sparkdreamEcosystemV1TxRegistry from "./ecosystem/v1/tx.registry";
|
|
|
8
8
|
import * as sparkdreamFederationV1TxRegistry from "./federation/v1/tx.registry";
|
|
9
9
|
import * as sparkdreamForumV1TxRegistry from "./forum/v1/tx.registry";
|
|
10
10
|
import * as sparkdreamFutarchyV1TxRegistry from "./futarchy/v1/tx.registry";
|
|
11
|
+
import * as sparkdreamGuardianV1TxRegistry from "./guardian/v1/tx.registry";
|
|
11
12
|
import * as sparkdreamNameV1TxRegistry from "./name/v1/tx.registry";
|
|
12
13
|
import * as sparkdreamRepV1TxRegistry from "./rep/v1/tx.registry";
|
|
13
14
|
import * as sparkdreamRevealV1TxRegistry from "./reveal/v1/tx.registry";
|
|
14
15
|
import * as sparkdreamSeasonV1TxRegistry from "./season/v1/tx.registry";
|
|
16
|
+
import * as sparkdreamServiceV1TxRegistry from "./service/v1/tx.registry";
|
|
15
17
|
import * as sparkdreamSessionV1TxRegistry from "./session/v1/tx.registry";
|
|
16
18
|
import * as sparkdreamShieldV1TxRegistry from "./shield/v1/tx.registry";
|
|
17
19
|
import * as sparkdreamSparkdreamV1TxRegistry from "./sparkdream/v1/tx.registry";
|
|
@@ -23,10 +25,12 @@ import * as sparkdreamEcosystemV1TxAmino from "./ecosystem/v1/tx.amino";
|
|
|
23
25
|
import * as sparkdreamFederationV1TxAmino from "./federation/v1/tx.amino";
|
|
24
26
|
import * as sparkdreamForumV1TxAmino from "./forum/v1/tx.amino";
|
|
25
27
|
import * as sparkdreamFutarchyV1TxAmino from "./futarchy/v1/tx.amino";
|
|
28
|
+
import * as sparkdreamGuardianV1TxAmino from "./guardian/v1/tx.amino";
|
|
26
29
|
import * as sparkdreamNameV1TxAmino from "./name/v1/tx.amino";
|
|
27
30
|
import * as sparkdreamRepV1TxAmino from "./rep/v1/tx.amino";
|
|
28
31
|
import * as sparkdreamRevealV1TxAmino from "./reveal/v1/tx.amino";
|
|
29
32
|
import * as sparkdreamSeasonV1TxAmino from "./season/v1/tx.amino";
|
|
33
|
+
import * as sparkdreamServiceV1TxAmino from "./service/v1/tx.amino";
|
|
30
34
|
import * as sparkdreamSessionV1TxAmino from "./session/v1/tx.amino";
|
|
31
35
|
import * as sparkdreamShieldV1TxAmino from "./shield/v1/tx.amino";
|
|
32
36
|
import * as sparkdreamSparkdreamV1TxAmino from "./sparkdream/v1/tx.amino";
|
|
@@ -39,16 +43,18 @@ export const sparkdreamAminoConverters = {
|
|
|
39
43
|
...sparkdreamFederationV1TxAmino.AminoConverter,
|
|
40
44
|
...sparkdreamForumV1TxAmino.AminoConverter,
|
|
41
45
|
...sparkdreamFutarchyV1TxAmino.AminoConverter,
|
|
46
|
+
...sparkdreamGuardianV1TxAmino.AminoConverter,
|
|
42
47
|
...sparkdreamNameV1TxAmino.AminoConverter,
|
|
43
48
|
...sparkdreamRepV1TxAmino.AminoConverter,
|
|
44
49
|
...sparkdreamRevealV1TxAmino.AminoConverter,
|
|
45
50
|
...sparkdreamSeasonV1TxAmino.AminoConverter,
|
|
51
|
+
...sparkdreamServiceV1TxAmino.AminoConverter,
|
|
46
52
|
...sparkdreamSessionV1TxAmino.AminoConverter,
|
|
47
53
|
...sparkdreamShieldV1TxAmino.AminoConverter,
|
|
48
54
|
...sparkdreamSparkdreamV1TxAmino.AminoConverter,
|
|
49
55
|
...sparkdreamSplitV1TxAmino.AminoConverter
|
|
50
56
|
};
|
|
51
|
-
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
57
|
+
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
52
58
|
export const getSigningSparkdreamClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
53
59
|
const registry = new Registry([...defaultTypes, ...sparkdreamProtoRegistry]);
|
|
54
60
|
const aminoTypes = new AminoTypes({
|
|
@@ -63,7 +63,8 @@ function createBaseParams() {
|
|
|
63
63
|
maxPinsPerDay: 0,
|
|
64
64
|
curatorDemotionCooldown: BigInt(0),
|
|
65
65
|
curatorDemotionThreshold: "",
|
|
66
|
-
curatorOverturnDemotionStreak: BigInt(0)
|
|
66
|
+
curatorOverturnDemotionStreak: BigInt(0),
|
|
67
|
+
curatorUnbondCooldown: BigInt(0)
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
@@ -259,6 +260,9 @@ export const Params = {
|
|
|
259
260
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
260
261
|
writer.uint32(520).uint64(message.curatorOverturnDemotionStreak);
|
|
261
262
|
}
|
|
263
|
+
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
264
|
+
writer.uint32(528).int64(message.curatorUnbondCooldown);
|
|
265
|
+
}
|
|
262
266
|
return writer;
|
|
263
267
|
},
|
|
264
268
|
decode(input, length) {
|
|
@@ -451,6 +455,9 @@ export const Params = {
|
|
|
451
455
|
case 65:
|
|
452
456
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
453
457
|
break;
|
|
458
|
+
case 66:
|
|
459
|
+
message.curatorUnbondCooldown = reader.int64();
|
|
460
|
+
break;
|
|
454
461
|
default:
|
|
455
462
|
reader.skipType(tag & 7);
|
|
456
463
|
break;
|
|
@@ -521,6 +528,7 @@ export const Params = {
|
|
|
521
528
|
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
522
529
|
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
523
530
|
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
531
|
+
message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
|
|
524
532
|
return message;
|
|
525
533
|
},
|
|
526
534
|
fromAmino(object) {
|
|
@@ -708,6 +716,9 @@ export const Params = {
|
|
|
708
716
|
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
709
717
|
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
710
718
|
}
|
|
719
|
+
if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
|
|
720
|
+
message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
|
|
721
|
+
}
|
|
711
722
|
return message;
|
|
712
723
|
},
|
|
713
724
|
toAmino(message) {
|
|
@@ -773,6 +784,7 @@ export const Params = {
|
|
|
773
784
|
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
774
785
|
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
775
786
|
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
787
|
+
obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
|
|
776
788
|
return obj;
|
|
777
789
|
},
|
|
778
790
|
fromAminoMsg(object) {
|
|
@@ -1,139 +1,241 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
3
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
4
|
+
//
|
|
5
|
+
// Telescope emits `[]` for empty repeated fields; aminojson on the chain omits
|
|
6
|
+
// them. In collect the offending messages are: MsgCreateCollection (tags),
|
|
7
|
+
// MsgUpdateCollection (tags), MsgAddItem (attributes), MsgAddItems (items),
|
|
8
|
+
// MsgUpdateItem (attributes), MsgRemoveItems (ids), MsgRateCollection (tags).
|
|
9
|
+
import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, } from "./tx";
|
|
10
|
+
import { NftReference, LinkReference, OnChainReference, CustomReference, KeyValuePair, AddItemEntry } from "./types";
|
|
11
|
+
import { base64FromBytes } from "../../../helpers";
|
|
3
12
|
export const AminoConverter = {
|
|
4
13
|
"/sparkdream.collect.v1.MsgUpdateParams": {
|
|
5
14
|
aminoType: "sparkdream/x/collect/MsgUpdateParams",
|
|
6
15
|
toAmino: MsgUpdateParams.toAmino,
|
|
7
|
-
fromAmino: MsgUpdateParams.fromAmino
|
|
16
|
+
fromAmino: MsgUpdateParams.fromAmino,
|
|
8
17
|
},
|
|
9
18
|
"/sparkdream.collect.v1.MsgCreateCollection": {
|
|
10
19
|
aminoType: "sparkdream/x/collect/MsgCreateCollection",
|
|
11
|
-
toAmino
|
|
12
|
-
|
|
20
|
+
toAmino(message) {
|
|
21
|
+
const obj = {};
|
|
22
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
23
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
24
|
+
obj.visibility = message.visibility === 0 ? undefined : message.visibility;
|
|
25
|
+
obj.encrypted = message.encrypted === false ? undefined : message.encrypted;
|
|
26
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
27
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
28
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
29
|
+
obj.cover_uri = message.coverUri === "" ? undefined : message.coverUri;
|
|
30
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
31
|
+
? message.tags.map((e) => e)
|
|
32
|
+
: undefined;
|
|
33
|
+
obj.encrypted_data = message.encryptedData ? base64FromBytes(message.encryptedData) : undefined;
|
|
34
|
+
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
35
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromAmino: MsgCreateCollection.fromAmino,
|
|
13
39
|
},
|
|
14
40
|
"/sparkdream.collect.v1.MsgUpdateCollection": {
|
|
15
41
|
aminoType: "sparkdream/x/collect/MsgUpdateCollection",
|
|
16
|
-
toAmino
|
|
17
|
-
|
|
42
|
+
toAmino(message) {
|
|
43
|
+
const obj = {};
|
|
44
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
45
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
46
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
47
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
48
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
49
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
50
|
+
obj.cover_uri = message.coverUri === "" ? undefined : message.coverUri;
|
|
51
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
52
|
+
? message.tags.map((e) => e)
|
|
53
|
+
: undefined;
|
|
54
|
+
obj.encrypted_data = message.encryptedData ? base64FromBytes(message.encryptedData) : undefined;
|
|
55
|
+
obj.community_feedback_enabled = message.communityFeedbackEnabled === false ? undefined : message.communityFeedbackEnabled;
|
|
56
|
+
obj.update_community_feedback = message.updateCommunityFeedback === false ? undefined : message.updateCommunityFeedback;
|
|
57
|
+
return obj;
|
|
58
|
+
},
|
|
59
|
+
fromAmino: MsgUpdateCollection.fromAmino,
|
|
18
60
|
},
|
|
19
61
|
"/sparkdream.collect.v1.MsgDeleteCollection": {
|
|
20
62
|
aminoType: "sparkdream/x/collect/MsgDeleteCollection",
|
|
21
63
|
toAmino: MsgDeleteCollection.toAmino,
|
|
22
|
-
fromAmino: MsgDeleteCollection.fromAmino
|
|
64
|
+
fromAmino: MsgDeleteCollection.fromAmino,
|
|
23
65
|
},
|
|
24
66
|
"/sparkdream.collect.v1.MsgAddItem": {
|
|
25
67
|
aminoType: "sparkdream/x/collect/MsgAddItem",
|
|
26
|
-
toAmino
|
|
27
|
-
|
|
68
|
+
toAmino(message) {
|
|
69
|
+
const obj = {};
|
|
70
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
71
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
72
|
+
obj.position = message.position !== BigInt(0) ? message.position?.toString() : undefined;
|
|
73
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
74
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
75
|
+
obj.image_uri = message.imageUri === "" ? undefined : message.imageUri;
|
|
76
|
+
obj.reference_type = message.referenceType === 0 ? undefined : message.referenceType;
|
|
77
|
+
obj.nft = message.nft ? NftReference.toAmino(message.nft) : undefined;
|
|
78
|
+
obj.link = message.link ? LinkReference.toAmino(message.link) : undefined;
|
|
79
|
+
obj.on_chain = message.onChain ? OnChainReference.toAmino(message.onChain) : undefined;
|
|
80
|
+
obj.custom = message.custom ? CustomReference.toAmino(message.custom) : undefined;
|
|
81
|
+
obj.attributes = (message.attributes?.length ?? 0) > 0
|
|
82
|
+
? message.attributes.map((e) => e ? KeyValuePair.toAmino(e) : undefined)
|
|
83
|
+
: undefined;
|
|
84
|
+
obj.encrypted_data = message.encryptedData ? base64FromBytes(message.encryptedData) : undefined;
|
|
85
|
+
return obj;
|
|
86
|
+
},
|
|
87
|
+
fromAmino: MsgAddItem.fromAmino,
|
|
28
88
|
},
|
|
29
89
|
"/sparkdream.collect.v1.MsgAddItems": {
|
|
30
90
|
aminoType: "sparkdream/x/collect/MsgAddItems",
|
|
31
|
-
toAmino
|
|
32
|
-
|
|
91
|
+
toAmino(message) {
|
|
92
|
+
const obj = {};
|
|
93
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
94
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
95
|
+
obj.items = (message.items?.length ?? 0) > 0
|
|
96
|
+
? message.items.map((e) => e ? AddItemEntry.toAmino(e) : undefined)
|
|
97
|
+
: undefined;
|
|
98
|
+
return obj;
|
|
99
|
+
},
|
|
100
|
+
fromAmino: MsgAddItems.fromAmino,
|
|
33
101
|
},
|
|
34
102
|
"/sparkdream.collect.v1.MsgUpdateItem": {
|
|
35
103
|
aminoType: "sparkdream/x/collect/MsgUpdateItem",
|
|
36
|
-
toAmino
|
|
37
|
-
|
|
104
|
+
toAmino(message) {
|
|
105
|
+
const obj = {};
|
|
106
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
107
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
108
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
109
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
110
|
+
obj.image_uri = message.imageUri === "" ? undefined : message.imageUri;
|
|
111
|
+
obj.reference_type = message.referenceType === 0 ? undefined : message.referenceType;
|
|
112
|
+
obj.nft = message.nft ? NftReference.toAmino(message.nft) : undefined;
|
|
113
|
+
obj.link = message.link ? LinkReference.toAmino(message.link) : undefined;
|
|
114
|
+
obj.on_chain = message.onChain ? OnChainReference.toAmino(message.onChain) : undefined;
|
|
115
|
+
obj.custom = message.custom ? CustomReference.toAmino(message.custom) : undefined;
|
|
116
|
+
obj.attributes = (message.attributes?.length ?? 0) > 0
|
|
117
|
+
? message.attributes.map((e) => e ? KeyValuePair.toAmino(e) : undefined)
|
|
118
|
+
: undefined;
|
|
119
|
+
obj.encrypted_data = message.encryptedData ? base64FromBytes(message.encryptedData) : undefined;
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
fromAmino: MsgUpdateItem.fromAmino,
|
|
38
123
|
},
|
|
39
124
|
"/sparkdream.collect.v1.MsgRemoveItem": {
|
|
40
125
|
aminoType: "sparkdream/x/collect/MsgRemoveItem",
|
|
41
126
|
toAmino: MsgRemoveItem.toAmino,
|
|
42
|
-
fromAmino: MsgRemoveItem.fromAmino
|
|
127
|
+
fromAmino: MsgRemoveItem.fromAmino,
|
|
43
128
|
},
|
|
44
129
|
"/sparkdream.collect.v1.MsgRemoveItems": {
|
|
45
130
|
aminoType: "sparkdream/x/collect/MsgRemoveItems",
|
|
46
|
-
toAmino
|
|
47
|
-
|
|
131
|
+
toAmino(message) {
|
|
132
|
+
const obj = {};
|
|
133
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
134
|
+
obj.ids = (message.ids?.length ?? 0) > 0
|
|
135
|
+
? message.ids.map((e) => e.toString())
|
|
136
|
+
: undefined;
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
fromAmino: MsgRemoveItems.fromAmino,
|
|
48
140
|
},
|
|
49
141
|
"/sparkdream.collect.v1.MsgReorderItem": {
|
|
50
142
|
aminoType: "sparkdream/x/collect/MsgReorderItem",
|
|
51
143
|
toAmino: MsgReorderItem.toAmino,
|
|
52
|
-
fromAmino: MsgReorderItem.fromAmino
|
|
144
|
+
fromAmino: MsgReorderItem.fromAmino,
|
|
53
145
|
},
|
|
54
146
|
"/sparkdream.collect.v1.MsgAddCollaborator": {
|
|
55
147
|
aminoType: "sparkdream/x/collect/MsgAddCollaborator",
|
|
56
148
|
toAmino: MsgAddCollaborator.toAmino,
|
|
57
|
-
fromAmino: MsgAddCollaborator.fromAmino
|
|
149
|
+
fromAmino: MsgAddCollaborator.fromAmino,
|
|
58
150
|
},
|
|
59
151
|
"/sparkdream.collect.v1.MsgRemoveCollaborator": {
|
|
60
152
|
aminoType: "sparkdream/x/collect/MsgRemoveCollaborator",
|
|
61
153
|
toAmino: MsgRemoveCollaborator.toAmino,
|
|
62
|
-
fromAmino: MsgRemoveCollaborator.fromAmino
|
|
154
|
+
fromAmino: MsgRemoveCollaborator.fromAmino,
|
|
63
155
|
},
|
|
64
156
|
"/sparkdream.collect.v1.MsgUpdateCollaboratorRole": {
|
|
65
157
|
aminoType: "sparkdream/x/collect/MsgUpdateCollaboratorRole",
|
|
66
158
|
toAmino: MsgUpdateCollaboratorRole.toAmino,
|
|
67
|
-
fromAmino: MsgUpdateCollaboratorRole.fromAmino
|
|
159
|
+
fromAmino: MsgUpdateCollaboratorRole.fromAmino,
|
|
68
160
|
},
|
|
69
161
|
"/sparkdream.collect.v1.MsgRateCollection": {
|
|
70
162
|
aminoType: "sparkdream/x/collect/MsgRateCollection",
|
|
71
|
-
toAmino
|
|
72
|
-
|
|
163
|
+
toAmino(message) {
|
|
164
|
+
const obj = {};
|
|
165
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
166
|
+
obj.collection_id = message.collectionId !== BigInt(0) ? message.collectionId?.toString() : undefined;
|
|
167
|
+
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
168
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
169
|
+
? message.tags.map((e) => e)
|
|
170
|
+
: undefined;
|
|
171
|
+
obj.comment = message.comment === "" ? undefined : message.comment;
|
|
172
|
+
return obj;
|
|
173
|
+
},
|
|
174
|
+
fromAmino: MsgRateCollection.fromAmino,
|
|
73
175
|
},
|
|
74
176
|
"/sparkdream.collect.v1.MsgChallengeReview": {
|
|
75
177
|
aminoType: "sparkdream/x/collect/MsgChallengeReview",
|
|
76
178
|
toAmino: MsgChallengeReview.toAmino,
|
|
77
|
-
fromAmino: MsgChallengeReview.fromAmino
|
|
179
|
+
fromAmino: MsgChallengeReview.fromAmino,
|
|
78
180
|
},
|
|
79
181
|
"/sparkdream.collect.v1.MsgRequestSponsorship": {
|
|
80
182
|
aminoType: "sparkdream/x/collect/MsgRequestSponsorship",
|
|
81
183
|
toAmino: MsgRequestSponsorship.toAmino,
|
|
82
|
-
fromAmino: MsgRequestSponsorship.fromAmino
|
|
184
|
+
fromAmino: MsgRequestSponsorship.fromAmino,
|
|
83
185
|
},
|
|
84
186
|
"/sparkdream.collect.v1.MsgCancelSponsorshipRequest": {
|
|
85
187
|
aminoType: "sparkdream/x/collect/MsgCancelSponsorshipRequest",
|
|
86
188
|
toAmino: MsgCancelSponsorshipRequest.toAmino,
|
|
87
|
-
fromAmino: MsgCancelSponsorshipRequest.fromAmino
|
|
189
|
+
fromAmino: MsgCancelSponsorshipRequest.fromAmino,
|
|
88
190
|
},
|
|
89
191
|
"/sparkdream.collect.v1.MsgSponsorCollection": {
|
|
90
192
|
aminoType: "sparkdream/x/collect/MsgSponsorCollection",
|
|
91
193
|
toAmino: MsgSponsorCollection.toAmino,
|
|
92
|
-
fromAmino: MsgSponsorCollection.fromAmino
|
|
194
|
+
fromAmino: MsgSponsorCollection.fromAmino,
|
|
93
195
|
},
|
|
94
196
|
"/sparkdream.collect.v1.MsgUpdateOperationalParams": {
|
|
95
197
|
aminoType: "sparkdream/x/collect/MsgUpdateOperationalParams",
|
|
96
198
|
toAmino: MsgUpdateOperationalParams.toAmino,
|
|
97
|
-
fromAmino: MsgUpdateOperationalParams.fromAmino
|
|
199
|
+
fromAmino: MsgUpdateOperationalParams.fromAmino,
|
|
98
200
|
},
|
|
99
201
|
"/sparkdream.collect.v1.MsgUpvoteContent": {
|
|
100
202
|
aminoType: "sparkdream/x/collect/MsgUpvoteContent",
|
|
101
203
|
toAmino: MsgUpvoteContent.toAmino,
|
|
102
|
-
fromAmino: MsgUpvoteContent.fromAmino
|
|
204
|
+
fromAmino: MsgUpvoteContent.fromAmino,
|
|
103
205
|
},
|
|
104
206
|
"/sparkdream.collect.v1.MsgDownvoteContent": {
|
|
105
207
|
aminoType: "sparkdream/x/collect/MsgDownvoteContent",
|
|
106
208
|
toAmino: MsgDownvoteContent.toAmino,
|
|
107
|
-
fromAmino: MsgDownvoteContent.fromAmino
|
|
209
|
+
fromAmino: MsgDownvoteContent.fromAmino,
|
|
108
210
|
},
|
|
109
211
|
"/sparkdream.collect.v1.MsgFlagContent": {
|
|
110
212
|
aminoType: "sparkdream/x/collect/MsgFlagContent",
|
|
111
213
|
toAmino: MsgFlagContent.toAmino,
|
|
112
|
-
fromAmino: MsgFlagContent.fromAmino
|
|
214
|
+
fromAmino: MsgFlagContent.fromAmino,
|
|
113
215
|
},
|
|
114
216
|
"/sparkdream.collect.v1.MsgHideContent": {
|
|
115
217
|
aminoType: "sparkdream/x/collect/MsgHideContent",
|
|
116
218
|
toAmino: MsgHideContent.toAmino,
|
|
117
|
-
fromAmino: MsgHideContent.fromAmino
|
|
219
|
+
fromAmino: MsgHideContent.fromAmino,
|
|
118
220
|
},
|
|
119
221
|
"/sparkdream.collect.v1.MsgAppealHide": {
|
|
120
222
|
aminoType: "sparkdream/x/collect/MsgAppealHide",
|
|
121
223
|
toAmino: MsgAppealHide.toAmino,
|
|
122
|
-
fromAmino: MsgAppealHide.fromAmino
|
|
224
|
+
fromAmino: MsgAppealHide.fromAmino,
|
|
123
225
|
},
|
|
124
226
|
"/sparkdream.collect.v1.MsgEndorseCollection": {
|
|
125
227
|
aminoType: "sparkdream/x/collect/MsgEndorseCollection",
|
|
126
228
|
toAmino: MsgEndorseCollection.toAmino,
|
|
127
|
-
fromAmino: MsgEndorseCollection.fromAmino
|
|
229
|
+
fromAmino: MsgEndorseCollection.fromAmino,
|
|
128
230
|
},
|
|
129
231
|
"/sparkdream.collect.v1.MsgSetSeekingEndorsement": {
|
|
130
232
|
aminoType: "sparkdream/x/collect/MsgSetSeekingEndorsement",
|
|
131
233
|
toAmino: MsgSetSeekingEndorsement.toAmino,
|
|
132
|
-
fromAmino: MsgSetSeekingEndorsement.fromAmino
|
|
234
|
+
fromAmino: MsgSetSeekingEndorsement.fromAmino,
|
|
133
235
|
},
|
|
134
236
|
"/sparkdream.collect.v1.MsgPinCollection": {
|
|
135
237
|
aminoType: "sparkdream/x/collect/MsgPinCollection",
|
|
136
238
|
toAmino: MsgPinCollection.toAmino,
|
|
137
|
-
fromAmino: MsgPinCollection.fromAmino
|
|
138
|
-
}
|
|
239
|
+
fromAmino: MsgPinCollection.fromAmino,
|
|
240
|
+
},
|
|
139
241
|
};
|
|
@@ -2348,7 +2348,8 @@ function createBaseCollectOperationalParams() {
|
|
|
2348
2348
|
maxPinsPerDay: 0,
|
|
2349
2349
|
curatorDemotionCooldown: BigInt(0),
|
|
2350
2350
|
curatorDemotionThreshold: "",
|
|
2351
|
-
curatorOverturnDemotionStreak: BigInt(0)
|
|
2351
|
+
curatorOverturnDemotionStreak: BigInt(0),
|
|
2352
|
+
curatorUnbondCooldown: BigInt(0)
|
|
2352
2353
|
};
|
|
2353
2354
|
}
|
|
2354
2355
|
/**
|
|
@@ -2489,6 +2490,9 @@ export const CollectOperationalParams = {
|
|
|
2489
2490
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
2490
2491
|
writer.uint32(376).uint64(message.curatorOverturnDemotionStreak);
|
|
2491
2492
|
}
|
|
2493
|
+
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
2494
|
+
writer.uint32(384).int64(message.curatorUnbondCooldown);
|
|
2495
|
+
}
|
|
2492
2496
|
return writer;
|
|
2493
2497
|
},
|
|
2494
2498
|
decode(input, length) {
|
|
@@ -2627,6 +2631,9 @@ export const CollectOperationalParams = {
|
|
|
2627
2631
|
case 47:
|
|
2628
2632
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
2629
2633
|
break;
|
|
2634
|
+
case 48:
|
|
2635
|
+
message.curatorUnbondCooldown = reader.int64();
|
|
2636
|
+
break;
|
|
2630
2637
|
default:
|
|
2631
2638
|
reader.skipType(tag & 7);
|
|
2632
2639
|
break;
|
|
@@ -2679,6 +2686,7 @@ export const CollectOperationalParams = {
|
|
|
2679
2686
|
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
2680
2687
|
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
2681
2688
|
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
2689
|
+
message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
|
|
2682
2690
|
return message;
|
|
2683
2691
|
},
|
|
2684
2692
|
fromAmino(object) {
|
|
@@ -2812,6 +2820,9 @@ export const CollectOperationalParams = {
|
|
|
2812
2820
|
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
2813
2821
|
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
2814
2822
|
}
|
|
2823
|
+
if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
|
|
2824
|
+
message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
|
|
2825
|
+
}
|
|
2815
2826
|
return message;
|
|
2816
2827
|
},
|
|
2817
2828
|
toAmino(message) {
|
|
@@ -2859,6 +2870,7 @@ export const CollectOperationalParams = {
|
|
|
2859
2870
|
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
2860
2871
|
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
2861
2872
|
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
2873
|
+
obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
|
|
2862
2874
|
return obj;
|
|
2863
2875
|
},
|
|
2864
2876
|
fromAminoMsg(object) {
|
|
@@ -3,6 +3,7 @@ import { Params } from "./params";
|
|
|
3
3
|
import { PolicyPermissions } from "./policy_permissions";
|
|
4
4
|
import { Group, Proposal, Member, DecisionPolicy, Vote } from "./group";
|
|
5
5
|
import { Category } from "./category";
|
|
6
|
+
import { RecurringSpend } from "./recurring_spend";
|
|
6
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
8
|
function createBaseGenesisState() {
|
|
8
9
|
return {
|
|
@@ -17,7 +18,9 @@ function createBaseGenesisState() {
|
|
|
17
18
|
policyVersions: [],
|
|
18
19
|
proposalVotes: [],
|
|
19
20
|
categoryMap: [],
|
|
20
|
-
nextCategoryId: BigInt(0)
|
|
21
|
+
nextCategoryId: BigInt(0),
|
|
22
|
+
recurringSpends: [],
|
|
23
|
+
nextRecurringSpendId: BigInt(0)
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
@@ -65,6 +68,12 @@ export const GenesisState = {
|
|
|
65
68
|
if (message.nextCategoryId !== BigInt(0)) {
|
|
66
69
|
writer.uint32(96).uint64(message.nextCategoryId);
|
|
67
70
|
}
|
|
71
|
+
for (const v of message.recurringSpends) {
|
|
72
|
+
RecurringSpend.encode(v, writer.uint32(106).fork()).ldelim();
|
|
73
|
+
}
|
|
74
|
+
if (message.nextRecurringSpendId !== BigInt(0)) {
|
|
75
|
+
writer.uint32(112).uint64(message.nextRecurringSpendId);
|
|
76
|
+
}
|
|
68
77
|
return writer;
|
|
69
78
|
},
|
|
70
79
|
decode(input, length) {
|
|
@@ -110,6 +119,12 @@ export const GenesisState = {
|
|
|
110
119
|
case 12:
|
|
111
120
|
message.nextCategoryId = reader.uint64();
|
|
112
121
|
break;
|
|
122
|
+
case 13:
|
|
123
|
+
message.recurringSpends.push(RecurringSpend.decode(reader, reader.uint32()));
|
|
124
|
+
break;
|
|
125
|
+
case 14:
|
|
126
|
+
message.nextRecurringSpendId = reader.uint64();
|
|
127
|
+
break;
|
|
113
128
|
default:
|
|
114
129
|
reader.skipType(tag & 7);
|
|
115
130
|
break;
|
|
@@ -131,6 +146,8 @@ export const GenesisState = {
|
|
|
131
146
|
message.proposalVotes = object.proposalVotes?.map(e => ProposalVotes.fromPartial(e)) || [];
|
|
132
147
|
message.categoryMap = object.categoryMap?.map(e => Category.fromPartial(e)) || [];
|
|
133
148
|
message.nextCategoryId = object.nextCategoryId !== undefined && object.nextCategoryId !== null ? BigInt(object.nextCategoryId.toString()) : BigInt(0);
|
|
149
|
+
message.recurringSpends = object.recurringSpends?.map(e => RecurringSpend.fromPartial(e)) || [];
|
|
150
|
+
message.nextRecurringSpendId = object.nextRecurringSpendId !== undefined && object.nextRecurringSpendId !== null ? BigInt(object.nextRecurringSpendId.toString()) : BigInt(0);
|
|
134
151
|
return message;
|
|
135
152
|
},
|
|
136
153
|
fromAmino(object) {
|
|
@@ -155,6 +172,10 @@ export const GenesisState = {
|
|
|
155
172
|
if (object.next_category_id !== undefined && object.next_category_id !== null) {
|
|
156
173
|
message.nextCategoryId = BigInt(object.next_category_id);
|
|
157
174
|
}
|
|
175
|
+
message.recurringSpends = object.recurring_spends?.map(e => RecurringSpend.fromAmino(e)) || [];
|
|
176
|
+
if (object.next_recurring_spend_id !== undefined && object.next_recurring_spend_id !== null) {
|
|
177
|
+
message.nextRecurringSpendId = BigInt(object.next_recurring_spend_id);
|
|
178
|
+
}
|
|
158
179
|
return message;
|
|
159
180
|
},
|
|
160
181
|
toAmino(message) {
|
|
@@ -211,6 +232,13 @@ export const GenesisState = {
|
|
|
211
232
|
obj.category_map = message.categoryMap;
|
|
212
233
|
}
|
|
213
234
|
obj.next_category_id = message.nextCategoryId !== BigInt(0) ? message.nextCategoryId?.toString() : undefined;
|
|
235
|
+
if (message.recurringSpends) {
|
|
236
|
+
obj.recurring_spends = message.recurringSpends.map(e => e ? RecurringSpend.toAmino(e) : undefined);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
obj.recurring_spends = message.recurringSpends;
|
|
240
|
+
}
|
|
241
|
+
obj.next_recurring_spend_id = message.nextRecurringSpendId !== BigInt(0) ? message.nextRecurringSpendId?.toString() : undefined;
|
|
214
242
|
return obj;
|
|
215
243
|
},
|
|
216
244
|
fromAminoMsg(object) {
|