@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19
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 +113 -52
- package/esm/sparkdream/blog/v1/tx.js +583 -2
- package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
- package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +121 -1
- package/esm/sparkdream/collect/v1/tx.js +293 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
- package/esm/sparkdream/collect/v1/types.js +147 -3
- 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.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/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 +389 -148
- package/esm/sparkdream/forum/v1/post.js +25 -1
- package/esm/sparkdream/forum/v1/tx.js +460 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
- package/esm/sparkdream/forum/v1/types.js +355 -0
- package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
- 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/member.js +209 -1
- package/esm/sparkdream/rep/v1/tag.js +6 -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.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/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 +89 -28
- package/sparkdream/blog/v1/params.js +113 -52
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +385 -10
- package/sparkdream/blog/v1/tx.js +584 -3
- package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
- package/sparkdream/blog/v1/tx.registry.js +73 -1
- package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
- package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
- package/sparkdream/bundle.d.ts +15308 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +140 -0
- package/sparkdream/collect/v1/params.js +121 -1
- package/sparkdream/collect/v1/tx.d.ts +195 -3
- package/sparkdream/collect/v1/tx.js +294 -2
- package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
- package/sparkdream/collect/v1/tx.registry.js +37 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
- package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
- package/sparkdream/collect/v1/types.d.ts +114 -0
- package/sparkdream/collect/v1/types.js +147 -3
- 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.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/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 +309 -62
- package/sparkdream/forum/v1/params.js +389 -148
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- package/sparkdream/forum/v1/tx.d.ts +291 -0
- package/sparkdream/forum/v1/tx.js +462 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
- package/sparkdream/forum/v1/tx.registry.js +55 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/forum/v1/types.d.ts +247 -0
- package/sparkdream/forum/v1/types.js +356 -1
- package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
- package/sparkdream/forum/v1/user_rate_limit.js +41 -2
- 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/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -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.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/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ForumOperationalParams = exports.Params = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
6
5
|
const binary_1 = require("../../../binary");
|
|
7
6
|
const math_1 = require("@interchainjs/math");
|
|
8
7
|
function createBaseParams() {
|
|
@@ -13,14 +12,14 @@ function createBaseParams() {
|
|
|
13
12
|
reactionsEnabled: false,
|
|
14
13
|
appealsPaused: false,
|
|
15
14
|
editingEnabled: false,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
spamTaxAmount: "",
|
|
16
|
+
reactionSpamTaxAmount: "",
|
|
17
|
+
flagSpamTaxAmount: "",
|
|
18
|
+
downvoteDepositAmount: "",
|
|
19
|
+
appealFeeAmount: "",
|
|
20
|
+
lockAppealFeeAmount: "",
|
|
21
|
+
moveAppealFeeAmount: "",
|
|
22
|
+
editFeeAmount: "",
|
|
24
23
|
bountyCancellationFeePercent: BigInt(0),
|
|
25
24
|
maxContentSize: BigInt(0),
|
|
26
25
|
dailyPostLimit: BigInt(0),
|
|
@@ -34,7 +33,7 @@ function createBaseParams() {
|
|
|
34
33
|
hideAppealCooldown: BigInt(0),
|
|
35
34
|
lockAppealCooldown: BigInt(0),
|
|
36
35
|
moveAppealCooldown: BigInt(0),
|
|
37
|
-
|
|
36
|
+
costPerByteAmount: "",
|
|
38
37
|
costPerByteExempt: false,
|
|
39
38
|
ephemeralTtl: BigInt(0),
|
|
40
39
|
convictionRenewalThreshold: "",
|
|
@@ -45,11 +44,23 @@ function createBaseParams() {
|
|
|
45
44
|
minSentinelAgeBlocks: BigInt(0),
|
|
46
45
|
sentinelDemotionCooldown: BigInt(0),
|
|
47
46
|
sentinelDemotionThreshold: "",
|
|
48
|
-
sentinelUnhideWindow: BigInt(0)
|
|
47
|
+
sentinelUnhideWindow: BigInt(0),
|
|
48
|
+
sentinelUnbondCooldown: BigInt(0),
|
|
49
|
+
makePermanentMinTrustLevel: 0,
|
|
50
|
+
maxPromotionsPerBlock: 0,
|
|
51
|
+
authorRepSlash: "",
|
|
52
|
+
maxMakePermanentPerDay: BigInt(0),
|
|
53
|
+
minPostConvictionStake: "",
|
|
54
|
+
postConvictionLockSeconds: BigInt(0),
|
|
55
|
+
postConvictionStreamRatePerBlock: "",
|
|
56
|
+
maxForumRepPerTagPerEpoch: "",
|
|
57
|
+
postConvictionStakerSlashBps: BigInt(0)
|
|
49
58
|
};
|
|
50
59
|
}
|
|
51
60
|
/**
|
|
52
|
-
* Params defines the parameters for the module.
|
|
61
|
+
* Params defines the parameters for the module. Fee/cost fields are stored
|
|
62
|
+
* as bare amounts in the chain's bond denom (resolved at runtime from
|
|
63
|
+
* x/identity); the keeper wraps them into sdk.Coin at the point of use.
|
|
53
64
|
* @name Params
|
|
54
65
|
* @package sparkdream.forum.v1
|
|
55
66
|
* @see proto type: sparkdream.forum.v1.Params
|
|
@@ -76,29 +87,29 @@ exports.Params = {
|
|
|
76
87
|
if (message.editingEnabled === true) {
|
|
77
88
|
writer.uint32(48).bool(message.editingEnabled);
|
|
78
89
|
}
|
|
79
|
-
if (message.
|
|
80
|
-
|
|
90
|
+
if (message.spamTaxAmount !== "") {
|
|
91
|
+
writer.uint32(58).string(message.spamTaxAmount);
|
|
81
92
|
}
|
|
82
|
-
if (message.
|
|
83
|
-
|
|
93
|
+
if (message.reactionSpamTaxAmount !== "") {
|
|
94
|
+
writer.uint32(66).string(message.reactionSpamTaxAmount);
|
|
84
95
|
}
|
|
85
|
-
if (message.
|
|
86
|
-
|
|
96
|
+
if (message.flagSpamTaxAmount !== "") {
|
|
97
|
+
writer.uint32(74).string(message.flagSpamTaxAmount);
|
|
87
98
|
}
|
|
88
|
-
if (message.
|
|
89
|
-
|
|
99
|
+
if (message.downvoteDepositAmount !== "") {
|
|
100
|
+
writer.uint32(82).string(message.downvoteDepositAmount);
|
|
90
101
|
}
|
|
91
|
-
if (message.
|
|
92
|
-
|
|
102
|
+
if (message.appealFeeAmount !== "") {
|
|
103
|
+
writer.uint32(90).string(message.appealFeeAmount);
|
|
93
104
|
}
|
|
94
|
-
if (message.
|
|
95
|
-
|
|
105
|
+
if (message.lockAppealFeeAmount !== "") {
|
|
106
|
+
writer.uint32(98).string(message.lockAppealFeeAmount);
|
|
96
107
|
}
|
|
97
|
-
if (message.
|
|
98
|
-
|
|
108
|
+
if (message.moveAppealFeeAmount !== "") {
|
|
109
|
+
writer.uint32(106).string(message.moveAppealFeeAmount);
|
|
99
110
|
}
|
|
100
|
-
if (message.
|
|
101
|
-
|
|
111
|
+
if (message.editFeeAmount !== "") {
|
|
112
|
+
writer.uint32(114).string(message.editFeeAmount);
|
|
102
113
|
}
|
|
103
114
|
if (message.bountyCancellationFeePercent !== BigInt(0)) {
|
|
104
115
|
writer.uint32(120).uint64(message.bountyCancellationFeePercent);
|
|
@@ -139,8 +150,8 @@ exports.Params = {
|
|
|
139
150
|
if (message.moveAppealCooldown !== BigInt(0)) {
|
|
140
151
|
writer.uint32(216).int64(message.moveAppealCooldown);
|
|
141
152
|
}
|
|
142
|
-
if (message.
|
|
143
|
-
|
|
153
|
+
if (message.costPerByteAmount !== "") {
|
|
154
|
+
writer.uint32(226).string(message.costPerByteAmount);
|
|
144
155
|
}
|
|
145
156
|
if (message.costPerByteExempt === true) {
|
|
146
157
|
writer.uint32(232).bool(message.costPerByteExempt);
|
|
@@ -175,6 +186,36 @@ exports.Params = {
|
|
|
175
186
|
if (message.sentinelUnhideWindow !== BigInt(0)) {
|
|
176
187
|
writer.uint32(368).int64(message.sentinelUnhideWindow);
|
|
177
188
|
}
|
|
189
|
+
if (message.sentinelUnbondCooldown !== BigInt(0)) {
|
|
190
|
+
writer.uint32(376).int64(message.sentinelUnbondCooldown);
|
|
191
|
+
}
|
|
192
|
+
if (message.makePermanentMinTrustLevel !== 0) {
|
|
193
|
+
writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
|
|
194
|
+
}
|
|
195
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
196
|
+
writer.uint32(392).uint32(message.maxPromotionsPerBlock);
|
|
197
|
+
}
|
|
198
|
+
if (message.authorRepSlash !== "") {
|
|
199
|
+
writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
|
|
200
|
+
}
|
|
201
|
+
if (message.maxMakePermanentPerDay !== BigInt(0)) {
|
|
202
|
+
writer.uint32(408).uint64(message.maxMakePermanentPerDay);
|
|
203
|
+
}
|
|
204
|
+
if (message.minPostConvictionStake !== "") {
|
|
205
|
+
writer.uint32(482).string(message.minPostConvictionStake);
|
|
206
|
+
}
|
|
207
|
+
if (message.postConvictionLockSeconds !== BigInt(0)) {
|
|
208
|
+
writer.uint32(488).int64(message.postConvictionLockSeconds);
|
|
209
|
+
}
|
|
210
|
+
if (message.postConvictionStreamRatePerBlock !== "") {
|
|
211
|
+
writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
|
|
212
|
+
}
|
|
213
|
+
if (message.maxForumRepPerTagPerEpoch !== "") {
|
|
214
|
+
writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
|
|
215
|
+
}
|
|
216
|
+
if (message.postConvictionStakerSlashBps !== BigInt(0)) {
|
|
217
|
+
writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
|
|
218
|
+
}
|
|
178
219
|
return writer;
|
|
179
220
|
},
|
|
180
221
|
decode(input, length) {
|
|
@@ -203,28 +244,28 @@ exports.Params = {
|
|
|
203
244
|
message.editingEnabled = reader.bool();
|
|
204
245
|
break;
|
|
205
246
|
case 7:
|
|
206
|
-
message.
|
|
247
|
+
message.spamTaxAmount = reader.string();
|
|
207
248
|
break;
|
|
208
249
|
case 8:
|
|
209
|
-
message.
|
|
250
|
+
message.reactionSpamTaxAmount = reader.string();
|
|
210
251
|
break;
|
|
211
252
|
case 9:
|
|
212
|
-
message.
|
|
253
|
+
message.flagSpamTaxAmount = reader.string();
|
|
213
254
|
break;
|
|
214
255
|
case 10:
|
|
215
|
-
message.
|
|
256
|
+
message.downvoteDepositAmount = reader.string();
|
|
216
257
|
break;
|
|
217
258
|
case 11:
|
|
218
|
-
message.
|
|
259
|
+
message.appealFeeAmount = reader.string();
|
|
219
260
|
break;
|
|
220
261
|
case 12:
|
|
221
|
-
message.
|
|
262
|
+
message.lockAppealFeeAmount = reader.string();
|
|
222
263
|
break;
|
|
223
264
|
case 13:
|
|
224
|
-
message.
|
|
265
|
+
message.moveAppealFeeAmount = reader.string();
|
|
225
266
|
break;
|
|
226
267
|
case 14:
|
|
227
|
-
message.
|
|
268
|
+
message.editFeeAmount = reader.string();
|
|
228
269
|
break;
|
|
229
270
|
case 15:
|
|
230
271
|
message.bountyCancellationFeePercent = reader.uint64();
|
|
@@ -266,7 +307,7 @@ exports.Params = {
|
|
|
266
307
|
message.moveAppealCooldown = reader.int64();
|
|
267
308
|
break;
|
|
268
309
|
case 28:
|
|
269
|
-
message.
|
|
310
|
+
message.costPerByteAmount = reader.string();
|
|
270
311
|
break;
|
|
271
312
|
case 29:
|
|
272
313
|
message.costPerByteExempt = reader.bool();
|
|
@@ -301,6 +342,36 @@ exports.Params = {
|
|
|
301
342
|
case 46:
|
|
302
343
|
message.sentinelUnhideWindow = reader.int64();
|
|
303
344
|
break;
|
|
345
|
+
case 47:
|
|
346
|
+
message.sentinelUnbondCooldown = reader.int64();
|
|
347
|
+
break;
|
|
348
|
+
case 48:
|
|
349
|
+
message.makePermanentMinTrustLevel = reader.uint32();
|
|
350
|
+
break;
|
|
351
|
+
case 49:
|
|
352
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
353
|
+
break;
|
|
354
|
+
case 50:
|
|
355
|
+
message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
356
|
+
break;
|
|
357
|
+
case 51:
|
|
358
|
+
message.maxMakePermanentPerDay = reader.uint64();
|
|
359
|
+
break;
|
|
360
|
+
case 60:
|
|
361
|
+
message.minPostConvictionStake = reader.string();
|
|
362
|
+
break;
|
|
363
|
+
case 61:
|
|
364
|
+
message.postConvictionLockSeconds = reader.int64();
|
|
365
|
+
break;
|
|
366
|
+
case 62:
|
|
367
|
+
message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
368
|
+
break;
|
|
369
|
+
case 63:
|
|
370
|
+
message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
371
|
+
break;
|
|
372
|
+
case 64:
|
|
373
|
+
message.postConvictionStakerSlashBps = reader.uint64();
|
|
374
|
+
break;
|
|
304
375
|
default:
|
|
305
376
|
reader.skipType(tag & 7);
|
|
306
377
|
break;
|
|
@@ -316,14 +387,14 @@ exports.Params = {
|
|
|
316
387
|
message.reactionsEnabled = object.reactionsEnabled ?? false;
|
|
317
388
|
message.appealsPaused = object.appealsPaused ?? false;
|
|
318
389
|
message.editingEnabled = object.editingEnabled ?? false;
|
|
319
|
-
message.
|
|
320
|
-
message.
|
|
321
|
-
message.
|
|
322
|
-
message.
|
|
323
|
-
message.
|
|
324
|
-
message.
|
|
325
|
-
message.
|
|
326
|
-
message.
|
|
390
|
+
message.spamTaxAmount = object.spamTaxAmount ?? "";
|
|
391
|
+
message.reactionSpamTaxAmount = object.reactionSpamTaxAmount ?? "";
|
|
392
|
+
message.flagSpamTaxAmount = object.flagSpamTaxAmount ?? "";
|
|
393
|
+
message.downvoteDepositAmount = object.downvoteDepositAmount ?? "";
|
|
394
|
+
message.appealFeeAmount = object.appealFeeAmount ?? "";
|
|
395
|
+
message.lockAppealFeeAmount = object.lockAppealFeeAmount ?? "";
|
|
396
|
+
message.moveAppealFeeAmount = object.moveAppealFeeAmount ?? "";
|
|
397
|
+
message.editFeeAmount = object.editFeeAmount ?? "";
|
|
327
398
|
message.bountyCancellationFeePercent = object.bountyCancellationFeePercent !== undefined && object.bountyCancellationFeePercent !== null ? BigInt(object.bountyCancellationFeePercent.toString()) : BigInt(0);
|
|
328
399
|
message.maxContentSize = object.maxContentSize !== undefined && object.maxContentSize !== null ? BigInt(object.maxContentSize.toString()) : BigInt(0);
|
|
329
400
|
message.dailyPostLimit = object.dailyPostLimit !== undefined && object.dailyPostLimit !== null ? BigInt(object.dailyPostLimit.toString()) : BigInt(0);
|
|
@@ -337,7 +408,7 @@ exports.Params = {
|
|
|
337
408
|
message.hideAppealCooldown = object.hideAppealCooldown !== undefined && object.hideAppealCooldown !== null ? BigInt(object.hideAppealCooldown.toString()) : BigInt(0);
|
|
338
409
|
message.lockAppealCooldown = object.lockAppealCooldown !== undefined && object.lockAppealCooldown !== null ? BigInt(object.lockAppealCooldown.toString()) : BigInt(0);
|
|
339
410
|
message.moveAppealCooldown = object.moveAppealCooldown !== undefined && object.moveAppealCooldown !== null ? BigInt(object.moveAppealCooldown.toString()) : BigInt(0);
|
|
340
|
-
message.
|
|
411
|
+
message.costPerByteAmount = object.costPerByteAmount ?? "";
|
|
341
412
|
message.costPerByteExempt = object.costPerByteExempt ?? false;
|
|
342
413
|
message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
|
|
343
414
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
@@ -349,6 +420,16 @@ exports.Params = {
|
|
|
349
420
|
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
350
421
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
351
422
|
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
423
|
+
message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
|
|
424
|
+
message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
|
|
425
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
426
|
+
message.authorRepSlash = object.authorRepSlash ?? "";
|
|
427
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
|
|
428
|
+
message.minPostConvictionStake = object.minPostConvictionStake ?? "";
|
|
429
|
+
message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
|
|
430
|
+
message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
|
|
431
|
+
message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
|
|
432
|
+
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
352
433
|
return message;
|
|
353
434
|
},
|
|
354
435
|
fromAmino(object) {
|
|
@@ -371,29 +452,29 @@ exports.Params = {
|
|
|
371
452
|
if (object.editing_enabled !== undefined && object.editing_enabled !== null) {
|
|
372
453
|
message.editingEnabled = object.editing_enabled;
|
|
373
454
|
}
|
|
374
|
-
if (object.
|
|
375
|
-
message.
|
|
455
|
+
if (object.spam_tax_amount !== undefined && object.spam_tax_amount !== null) {
|
|
456
|
+
message.spamTaxAmount = object.spam_tax_amount;
|
|
376
457
|
}
|
|
377
|
-
if (object.
|
|
378
|
-
message.
|
|
458
|
+
if (object.reaction_spam_tax_amount !== undefined && object.reaction_spam_tax_amount !== null) {
|
|
459
|
+
message.reactionSpamTaxAmount = object.reaction_spam_tax_amount;
|
|
379
460
|
}
|
|
380
|
-
if (object.
|
|
381
|
-
message.
|
|
461
|
+
if (object.flag_spam_tax_amount !== undefined && object.flag_spam_tax_amount !== null) {
|
|
462
|
+
message.flagSpamTaxAmount = object.flag_spam_tax_amount;
|
|
382
463
|
}
|
|
383
|
-
if (object.
|
|
384
|
-
message.
|
|
464
|
+
if (object.downvote_deposit_amount !== undefined && object.downvote_deposit_amount !== null) {
|
|
465
|
+
message.downvoteDepositAmount = object.downvote_deposit_amount;
|
|
385
466
|
}
|
|
386
|
-
if (object.
|
|
387
|
-
message.
|
|
467
|
+
if (object.appeal_fee_amount !== undefined && object.appeal_fee_amount !== null) {
|
|
468
|
+
message.appealFeeAmount = object.appeal_fee_amount;
|
|
388
469
|
}
|
|
389
|
-
if (object.
|
|
390
|
-
message.
|
|
470
|
+
if (object.lock_appeal_fee_amount !== undefined && object.lock_appeal_fee_amount !== null) {
|
|
471
|
+
message.lockAppealFeeAmount = object.lock_appeal_fee_amount;
|
|
391
472
|
}
|
|
392
|
-
if (object.
|
|
393
|
-
message.
|
|
473
|
+
if (object.move_appeal_fee_amount !== undefined && object.move_appeal_fee_amount !== null) {
|
|
474
|
+
message.moveAppealFeeAmount = object.move_appeal_fee_amount;
|
|
394
475
|
}
|
|
395
|
-
if (object.
|
|
396
|
-
message.
|
|
476
|
+
if (object.edit_fee_amount !== undefined && object.edit_fee_amount !== null) {
|
|
477
|
+
message.editFeeAmount = object.edit_fee_amount;
|
|
397
478
|
}
|
|
398
479
|
if (object.bounty_cancellation_fee_percent !== undefined && object.bounty_cancellation_fee_percent !== null) {
|
|
399
480
|
message.bountyCancellationFeePercent = BigInt(object.bounty_cancellation_fee_percent);
|
|
@@ -434,8 +515,8 @@ exports.Params = {
|
|
|
434
515
|
if (object.move_appeal_cooldown !== undefined && object.move_appeal_cooldown !== null) {
|
|
435
516
|
message.moveAppealCooldown = BigInt(object.move_appeal_cooldown);
|
|
436
517
|
}
|
|
437
|
-
if (object.
|
|
438
|
-
message.
|
|
518
|
+
if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
|
|
519
|
+
message.costPerByteAmount = object.cost_per_byte_amount;
|
|
439
520
|
}
|
|
440
521
|
if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
|
|
441
522
|
message.costPerByteExempt = object.cost_per_byte_exempt;
|
|
@@ -470,6 +551,36 @@ exports.Params = {
|
|
|
470
551
|
if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
|
|
471
552
|
message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
|
|
472
553
|
}
|
|
554
|
+
if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
|
|
555
|
+
message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
|
|
556
|
+
}
|
|
557
|
+
if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
|
|
558
|
+
message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
|
|
559
|
+
}
|
|
560
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
561
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
562
|
+
}
|
|
563
|
+
if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
|
|
564
|
+
message.authorRepSlash = object.author_rep_slash;
|
|
565
|
+
}
|
|
566
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
567
|
+
message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
|
|
568
|
+
}
|
|
569
|
+
if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
|
|
570
|
+
message.minPostConvictionStake = object.min_post_conviction_stake;
|
|
571
|
+
}
|
|
572
|
+
if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
|
|
573
|
+
message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
|
|
574
|
+
}
|
|
575
|
+
if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
|
|
576
|
+
message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
|
|
577
|
+
}
|
|
578
|
+
if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
|
|
579
|
+
message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
|
|
580
|
+
}
|
|
581
|
+
if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
|
|
582
|
+
message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
|
|
583
|
+
}
|
|
473
584
|
return message;
|
|
474
585
|
},
|
|
475
586
|
toAmino(message) {
|
|
@@ -480,14 +591,14 @@ exports.Params = {
|
|
|
480
591
|
obj.reactions_enabled = message.reactionsEnabled === false ? undefined : message.reactionsEnabled;
|
|
481
592
|
obj.appeals_paused = message.appealsPaused === false ? undefined : message.appealsPaused;
|
|
482
593
|
obj.editing_enabled = message.editingEnabled === false ? undefined : message.editingEnabled;
|
|
483
|
-
obj.
|
|
484
|
-
obj.
|
|
485
|
-
obj.
|
|
486
|
-
obj.
|
|
487
|
-
obj.
|
|
488
|
-
obj.
|
|
489
|
-
obj.
|
|
490
|
-
obj.
|
|
594
|
+
obj.spam_tax_amount = message.spamTaxAmount === "" ? undefined : message.spamTaxAmount;
|
|
595
|
+
obj.reaction_spam_tax_amount = message.reactionSpamTaxAmount === "" ? undefined : message.reactionSpamTaxAmount;
|
|
596
|
+
obj.flag_spam_tax_amount = message.flagSpamTaxAmount === "" ? undefined : message.flagSpamTaxAmount;
|
|
597
|
+
obj.downvote_deposit_amount = message.downvoteDepositAmount === "" ? undefined : message.downvoteDepositAmount;
|
|
598
|
+
obj.appeal_fee_amount = message.appealFeeAmount === "" ? undefined : message.appealFeeAmount;
|
|
599
|
+
obj.lock_appeal_fee_amount = message.lockAppealFeeAmount === "" ? undefined : message.lockAppealFeeAmount;
|
|
600
|
+
obj.move_appeal_fee_amount = message.moveAppealFeeAmount === "" ? undefined : message.moveAppealFeeAmount;
|
|
601
|
+
obj.edit_fee_amount = message.editFeeAmount === "" ? undefined : message.editFeeAmount;
|
|
491
602
|
obj.bounty_cancellation_fee_percent = message.bountyCancellationFeePercent !== BigInt(0) ? message.bountyCancellationFeePercent?.toString() : undefined;
|
|
492
603
|
obj.max_content_size = message.maxContentSize !== BigInt(0) ? message.maxContentSize?.toString() : undefined;
|
|
493
604
|
obj.daily_post_limit = message.dailyPostLimit !== BigInt(0) ? message.dailyPostLimit?.toString() : undefined;
|
|
@@ -501,7 +612,7 @@ exports.Params = {
|
|
|
501
612
|
obj.hide_appeal_cooldown = message.hideAppealCooldown !== BigInt(0) ? message.hideAppealCooldown?.toString() : undefined;
|
|
502
613
|
obj.lock_appeal_cooldown = message.lockAppealCooldown !== BigInt(0) ? message.lockAppealCooldown?.toString() : undefined;
|
|
503
614
|
obj.move_appeal_cooldown = message.moveAppealCooldown !== BigInt(0) ? message.moveAppealCooldown?.toString() : undefined;
|
|
504
|
-
obj.
|
|
615
|
+
obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
|
|
505
616
|
obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
|
|
506
617
|
obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
|
|
507
618
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
@@ -513,6 +624,16 @@ exports.Params = {
|
|
|
513
624
|
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
514
625
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
515
626
|
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
627
|
+
obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
|
|
628
|
+
obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
|
|
629
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
630
|
+
obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
|
|
631
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
|
|
632
|
+
obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
|
|
633
|
+
obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
|
|
634
|
+
obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
|
|
635
|
+
obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
|
|
636
|
+
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
516
637
|
return obj;
|
|
517
638
|
},
|
|
518
639
|
fromAminoMsg(object) {
|
|
@@ -542,15 +663,15 @@ function createBaseForumOperationalParams() {
|
|
|
542
663
|
bountiesEnabled: false,
|
|
543
664
|
reactionsEnabled: false,
|
|
544
665
|
editingEnabled: false,
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
666
|
+
spamTaxAmount: "",
|
|
667
|
+
reactionSpamTaxAmount: "",
|
|
668
|
+
flagSpamTaxAmount: "",
|
|
669
|
+
downvoteDepositAmount: "",
|
|
670
|
+
appealFeeAmount: "",
|
|
671
|
+
lockAppealFeeAmount: "",
|
|
672
|
+
moveAppealFeeAmount: "",
|
|
673
|
+
editFeeAmount: "",
|
|
674
|
+
costPerByteAmount: "",
|
|
554
675
|
costPerByteExempt: false,
|
|
555
676
|
maxContentSize: BigInt(0),
|
|
556
677
|
dailyPostLimit: BigInt(0),
|
|
@@ -574,7 +695,17 @@ function createBaseForumOperationalParams() {
|
|
|
574
695
|
minSentinelAgeBlocks: BigInt(0),
|
|
575
696
|
sentinelDemotionCooldown: BigInt(0),
|
|
576
697
|
sentinelDemotionThreshold: "",
|
|
577
|
-
sentinelUnhideWindow: BigInt(0)
|
|
698
|
+
sentinelUnhideWindow: BigInt(0),
|
|
699
|
+
sentinelUnbondCooldown: BigInt(0),
|
|
700
|
+
makePermanentMinTrustLevel: 0,
|
|
701
|
+
maxPromotionsPerBlock: 0,
|
|
702
|
+
authorRepSlash: "",
|
|
703
|
+
maxMakePermanentPerDay: BigInt(0),
|
|
704
|
+
minPostConvictionStake: "",
|
|
705
|
+
postConvictionLockSeconds: BigInt(0),
|
|
706
|
+
postConvictionStreamRatePerBlock: "",
|
|
707
|
+
maxForumRepPerTagPerEpoch: "",
|
|
708
|
+
postConvictionStakerSlashBps: BigInt(0)
|
|
578
709
|
};
|
|
579
710
|
}
|
|
580
711
|
/**
|
|
@@ -599,32 +730,32 @@ exports.ForumOperationalParams = {
|
|
|
599
730
|
if (message.editingEnabled === true) {
|
|
600
731
|
writer.uint32(24).bool(message.editingEnabled);
|
|
601
732
|
}
|
|
602
|
-
if (message.
|
|
603
|
-
|
|
733
|
+
if (message.spamTaxAmount !== "") {
|
|
734
|
+
writer.uint32(34).string(message.spamTaxAmount);
|
|
604
735
|
}
|
|
605
|
-
if (message.
|
|
606
|
-
|
|
736
|
+
if (message.reactionSpamTaxAmount !== "") {
|
|
737
|
+
writer.uint32(42).string(message.reactionSpamTaxAmount);
|
|
607
738
|
}
|
|
608
|
-
if (message.
|
|
609
|
-
|
|
739
|
+
if (message.flagSpamTaxAmount !== "") {
|
|
740
|
+
writer.uint32(50).string(message.flagSpamTaxAmount);
|
|
610
741
|
}
|
|
611
|
-
if (message.
|
|
612
|
-
|
|
742
|
+
if (message.downvoteDepositAmount !== "") {
|
|
743
|
+
writer.uint32(58).string(message.downvoteDepositAmount);
|
|
613
744
|
}
|
|
614
|
-
if (message.
|
|
615
|
-
|
|
745
|
+
if (message.appealFeeAmount !== "") {
|
|
746
|
+
writer.uint32(66).string(message.appealFeeAmount);
|
|
616
747
|
}
|
|
617
|
-
if (message.
|
|
618
|
-
|
|
748
|
+
if (message.lockAppealFeeAmount !== "") {
|
|
749
|
+
writer.uint32(74).string(message.lockAppealFeeAmount);
|
|
619
750
|
}
|
|
620
|
-
if (message.
|
|
621
|
-
|
|
751
|
+
if (message.moveAppealFeeAmount !== "") {
|
|
752
|
+
writer.uint32(82).string(message.moveAppealFeeAmount);
|
|
622
753
|
}
|
|
623
|
-
if (message.
|
|
624
|
-
|
|
754
|
+
if (message.editFeeAmount !== "") {
|
|
755
|
+
writer.uint32(90).string(message.editFeeAmount);
|
|
625
756
|
}
|
|
626
|
-
if (message.
|
|
627
|
-
|
|
757
|
+
if (message.costPerByteAmount !== "") {
|
|
758
|
+
writer.uint32(98).string(message.costPerByteAmount);
|
|
628
759
|
}
|
|
629
760
|
if (message.costPerByteExempt === true) {
|
|
630
761
|
writer.uint32(104).bool(message.costPerByteExempt);
|
|
@@ -698,6 +829,36 @@ exports.ForumOperationalParams = {
|
|
|
698
829
|
if (message.sentinelUnhideWindow !== BigInt(0)) {
|
|
699
830
|
writer.uint32(368).int64(message.sentinelUnhideWindow);
|
|
700
831
|
}
|
|
832
|
+
if (message.sentinelUnbondCooldown !== BigInt(0)) {
|
|
833
|
+
writer.uint32(376).int64(message.sentinelUnbondCooldown);
|
|
834
|
+
}
|
|
835
|
+
if (message.makePermanentMinTrustLevel !== 0) {
|
|
836
|
+
writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
|
|
837
|
+
}
|
|
838
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
839
|
+
writer.uint32(392).uint32(message.maxPromotionsPerBlock);
|
|
840
|
+
}
|
|
841
|
+
if (message.authorRepSlash !== "") {
|
|
842
|
+
writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
|
|
843
|
+
}
|
|
844
|
+
if (message.maxMakePermanentPerDay !== BigInt(0)) {
|
|
845
|
+
writer.uint32(408).uint64(message.maxMakePermanentPerDay);
|
|
846
|
+
}
|
|
847
|
+
if (message.minPostConvictionStake !== "") {
|
|
848
|
+
writer.uint32(482).string(message.minPostConvictionStake);
|
|
849
|
+
}
|
|
850
|
+
if (message.postConvictionLockSeconds !== BigInt(0)) {
|
|
851
|
+
writer.uint32(488).int64(message.postConvictionLockSeconds);
|
|
852
|
+
}
|
|
853
|
+
if (message.postConvictionStreamRatePerBlock !== "") {
|
|
854
|
+
writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
|
|
855
|
+
}
|
|
856
|
+
if (message.maxForumRepPerTagPerEpoch !== "") {
|
|
857
|
+
writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
|
|
858
|
+
}
|
|
859
|
+
if (message.postConvictionStakerSlashBps !== BigInt(0)) {
|
|
860
|
+
writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
|
|
861
|
+
}
|
|
701
862
|
return writer;
|
|
702
863
|
},
|
|
703
864
|
decode(input, length) {
|
|
@@ -717,31 +878,31 @@ exports.ForumOperationalParams = {
|
|
|
717
878
|
message.editingEnabled = reader.bool();
|
|
718
879
|
break;
|
|
719
880
|
case 4:
|
|
720
|
-
message.
|
|
881
|
+
message.spamTaxAmount = reader.string();
|
|
721
882
|
break;
|
|
722
883
|
case 5:
|
|
723
|
-
message.
|
|
884
|
+
message.reactionSpamTaxAmount = reader.string();
|
|
724
885
|
break;
|
|
725
886
|
case 6:
|
|
726
|
-
message.
|
|
887
|
+
message.flagSpamTaxAmount = reader.string();
|
|
727
888
|
break;
|
|
728
889
|
case 7:
|
|
729
|
-
message.
|
|
890
|
+
message.downvoteDepositAmount = reader.string();
|
|
730
891
|
break;
|
|
731
892
|
case 8:
|
|
732
|
-
message.
|
|
893
|
+
message.appealFeeAmount = reader.string();
|
|
733
894
|
break;
|
|
734
895
|
case 9:
|
|
735
|
-
message.
|
|
896
|
+
message.lockAppealFeeAmount = reader.string();
|
|
736
897
|
break;
|
|
737
898
|
case 10:
|
|
738
|
-
message.
|
|
899
|
+
message.moveAppealFeeAmount = reader.string();
|
|
739
900
|
break;
|
|
740
901
|
case 11:
|
|
741
|
-
message.
|
|
902
|
+
message.editFeeAmount = reader.string();
|
|
742
903
|
break;
|
|
743
904
|
case 12:
|
|
744
|
-
message.
|
|
905
|
+
message.costPerByteAmount = reader.string();
|
|
745
906
|
break;
|
|
746
907
|
case 13:
|
|
747
908
|
message.costPerByteExempt = reader.bool();
|
|
@@ -815,6 +976,36 @@ exports.ForumOperationalParams = {
|
|
|
815
976
|
case 46:
|
|
816
977
|
message.sentinelUnhideWindow = reader.int64();
|
|
817
978
|
break;
|
|
979
|
+
case 47:
|
|
980
|
+
message.sentinelUnbondCooldown = reader.int64();
|
|
981
|
+
break;
|
|
982
|
+
case 48:
|
|
983
|
+
message.makePermanentMinTrustLevel = reader.uint32();
|
|
984
|
+
break;
|
|
985
|
+
case 49:
|
|
986
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
987
|
+
break;
|
|
988
|
+
case 50:
|
|
989
|
+
message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
990
|
+
break;
|
|
991
|
+
case 51:
|
|
992
|
+
message.maxMakePermanentPerDay = reader.uint64();
|
|
993
|
+
break;
|
|
994
|
+
case 60:
|
|
995
|
+
message.minPostConvictionStake = reader.string();
|
|
996
|
+
break;
|
|
997
|
+
case 61:
|
|
998
|
+
message.postConvictionLockSeconds = reader.int64();
|
|
999
|
+
break;
|
|
1000
|
+
case 62:
|
|
1001
|
+
message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1002
|
+
break;
|
|
1003
|
+
case 63:
|
|
1004
|
+
message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1005
|
+
break;
|
|
1006
|
+
case 64:
|
|
1007
|
+
message.postConvictionStakerSlashBps = reader.uint64();
|
|
1008
|
+
break;
|
|
818
1009
|
default:
|
|
819
1010
|
reader.skipType(tag & 7);
|
|
820
1011
|
break;
|
|
@@ -827,15 +1018,15 @@ exports.ForumOperationalParams = {
|
|
|
827
1018
|
message.bountiesEnabled = object.bountiesEnabled ?? false;
|
|
828
1019
|
message.reactionsEnabled = object.reactionsEnabled ?? false;
|
|
829
1020
|
message.editingEnabled = object.editingEnabled ?? false;
|
|
830
|
-
message.
|
|
831
|
-
message.
|
|
832
|
-
message.
|
|
833
|
-
message.
|
|
834
|
-
message.
|
|
835
|
-
message.
|
|
836
|
-
message.
|
|
837
|
-
message.
|
|
838
|
-
message.
|
|
1021
|
+
message.spamTaxAmount = object.spamTaxAmount ?? "";
|
|
1022
|
+
message.reactionSpamTaxAmount = object.reactionSpamTaxAmount ?? "";
|
|
1023
|
+
message.flagSpamTaxAmount = object.flagSpamTaxAmount ?? "";
|
|
1024
|
+
message.downvoteDepositAmount = object.downvoteDepositAmount ?? "";
|
|
1025
|
+
message.appealFeeAmount = object.appealFeeAmount ?? "";
|
|
1026
|
+
message.lockAppealFeeAmount = object.lockAppealFeeAmount ?? "";
|
|
1027
|
+
message.moveAppealFeeAmount = object.moveAppealFeeAmount ?? "";
|
|
1028
|
+
message.editFeeAmount = object.editFeeAmount ?? "";
|
|
1029
|
+
message.costPerByteAmount = object.costPerByteAmount ?? "";
|
|
839
1030
|
message.costPerByteExempt = object.costPerByteExempt ?? false;
|
|
840
1031
|
message.maxContentSize = object.maxContentSize !== undefined && object.maxContentSize !== null ? BigInt(object.maxContentSize.toString()) : BigInt(0);
|
|
841
1032
|
message.dailyPostLimit = object.dailyPostLimit !== undefined && object.dailyPostLimit !== null ? BigInt(object.dailyPostLimit.toString()) : BigInt(0);
|
|
@@ -860,6 +1051,16 @@ exports.ForumOperationalParams = {
|
|
|
860
1051
|
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
861
1052
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
862
1053
|
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
1054
|
+
message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
|
|
1055
|
+
message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
|
|
1056
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
1057
|
+
message.authorRepSlash = object.authorRepSlash ?? "";
|
|
1058
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
|
|
1059
|
+
message.minPostConvictionStake = object.minPostConvictionStake ?? "";
|
|
1060
|
+
message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
|
|
1061
|
+
message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
|
|
1062
|
+
message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
|
|
1063
|
+
message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
|
|
863
1064
|
return message;
|
|
864
1065
|
},
|
|
865
1066
|
fromAmino(object) {
|
|
@@ -873,32 +1074,32 @@ exports.ForumOperationalParams = {
|
|
|
873
1074
|
if (object.editing_enabled !== undefined && object.editing_enabled !== null) {
|
|
874
1075
|
message.editingEnabled = object.editing_enabled;
|
|
875
1076
|
}
|
|
876
|
-
if (object.
|
|
877
|
-
message.
|
|
1077
|
+
if (object.spam_tax_amount !== undefined && object.spam_tax_amount !== null) {
|
|
1078
|
+
message.spamTaxAmount = object.spam_tax_amount;
|
|
878
1079
|
}
|
|
879
|
-
if (object.
|
|
880
|
-
message.
|
|
1080
|
+
if (object.reaction_spam_tax_amount !== undefined && object.reaction_spam_tax_amount !== null) {
|
|
1081
|
+
message.reactionSpamTaxAmount = object.reaction_spam_tax_amount;
|
|
881
1082
|
}
|
|
882
|
-
if (object.
|
|
883
|
-
message.
|
|
1083
|
+
if (object.flag_spam_tax_amount !== undefined && object.flag_spam_tax_amount !== null) {
|
|
1084
|
+
message.flagSpamTaxAmount = object.flag_spam_tax_amount;
|
|
884
1085
|
}
|
|
885
|
-
if (object.
|
|
886
|
-
message.
|
|
1086
|
+
if (object.downvote_deposit_amount !== undefined && object.downvote_deposit_amount !== null) {
|
|
1087
|
+
message.downvoteDepositAmount = object.downvote_deposit_amount;
|
|
887
1088
|
}
|
|
888
|
-
if (object.
|
|
889
|
-
message.
|
|
1089
|
+
if (object.appeal_fee_amount !== undefined && object.appeal_fee_amount !== null) {
|
|
1090
|
+
message.appealFeeAmount = object.appeal_fee_amount;
|
|
890
1091
|
}
|
|
891
|
-
if (object.
|
|
892
|
-
message.
|
|
1092
|
+
if (object.lock_appeal_fee_amount !== undefined && object.lock_appeal_fee_amount !== null) {
|
|
1093
|
+
message.lockAppealFeeAmount = object.lock_appeal_fee_amount;
|
|
893
1094
|
}
|
|
894
|
-
if (object.
|
|
895
|
-
message.
|
|
1095
|
+
if (object.move_appeal_fee_amount !== undefined && object.move_appeal_fee_amount !== null) {
|
|
1096
|
+
message.moveAppealFeeAmount = object.move_appeal_fee_amount;
|
|
896
1097
|
}
|
|
897
|
-
if (object.
|
|
898
|
-
message.
|
|
1098
|
+
if (object.edit_fee_amount !== undefined && object.edit_fee_amount !== null) {
|
|
1099
|
+
message.editFeeAmount = object.edit_fee_amount;
|
|
899
1100
|
}
|
|
900
|
-
if (object.
|
|
901
|
-
message.
|
|
1101
|
+
if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
|
|
1102
|
+
message.costPerByteAmount = object.cost_per_byte_amount;
|
|
902
1103
|
}
|
|
903
1104
|
if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
|
|
904
1105
|
message.costPerByteExempt = object.cost_per_byte_exempt;
|
|
@@ -972,6 +1173,36 @@ exports.ForumOperationalParams = {
|
|
|
972
1173
|
if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
|
|
973
1174
|
message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
|
|
974
1175
|
}
|
|
1176
|
+
if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
|
|
1177
|
+
message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
|
|
1178
|
+
}
|
|
1179
|
+
if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
|
|
1180
|
+
message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
|
|
1181
|
+
}
|
|
1182
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
1183
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
1184
|
+
}
|
|
1185
|
+
if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
|
|
1186
|
+
message.authorRepSlash = object.author_rep_slash;
|
|
1187
|
+
}
|
|
1188
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
1189
|
+
message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
|
|
1190
|
+
}
|
|
1191
|
+
if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
|
|
1192
|
+
message.minPostConvictionStake = object.min_post_conviction_stake;
|
|
1193
|
+
}
|
|
1194
|
+
if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
|
|
1195
|
+
message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
|
|
1196
|
+
}
|
|
1197
|
+
if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
|
|
1198
|
+
message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
|
|
1199
|
+
}
|
|
1200
|
+
if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
|
|
1201
|
+
message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
|
|
1202
|
+
}
|
|
1203
|
+
if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
|
|
1204
|
+
message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
|
|
1205
|
+
}
|
|
975
1206
|
return message;
|
|
976
1207
|
},
|
|
977
1208
|
toAmino(message) {
|
|
@@ -979,15 +1210,15 @@ exports.ForumOperationalParams = {
|
|
|
979
1210
|
obj.bounties_enabled = message.bountiesEnabled === false ? undefined : message.bountiesEnabled;
|
|
980
1211
|
obj.reactions_enabled = message.reactionsEnabled === false ? undefined : message.reactionsEnabled;
|
|
981
1212
|
obj.editing_enabled = message.editingEnabled === false ? undefined : message.editingEnabled;
|
|
982
|
-
obj.
|
|
983
|
-
obj.
|
|
984
|
-
obj.
|
|
985
|
-
obj.
|
|
986
|
-
obj.
|
|
987
|
-
obj.
|
|
988
|
-
obj.
|
|
989
|
-
obj.
|
|
990
|
-
obj.
|
|
1213
|
+
obj.spam_tax_amount = message.spamTaxAmount === "" ? undefined : message.spamTaxAmount;
|
|
1214
|
+
obj.reaction_spam_tax_amount = message.reactionSpamTaxAmount === "" ? undefined : message.reactionSpamTaxAmount;
|
|
1215
|
+
obj.flag_spam_tax_amount = message.flagSpamTaxAmount === "" ? undefined : message.flagSpamTaxAmount;
|
|
1216
|
+
obj.downvote_deposit_amount = message.downvoteDepositAmount === "" ? undefined : message.downvoteDepositAmount;
|
|
1217
|
+
obj.appeal_fee_amount = message.appealFeeAmount === "" ? undefined : message.appealFeeAmount;
|
|
1218
|
+
obj.lock_appeal_fee_amount = message.lockAppealFeeAmount === "" ? undefined : message.lockAppealFeeAmount;
|
|
1219
|
+
obj.move_appeal_fee_amount = message.moveAppealFeeAmount === "" ? undefined : message.moveAppealFeeAmount;
|
|
1220
|
+
obj.edit_fee_amount = message.editFeeAmount === "" ? undefined : message.editFeeAmount;
|
|
1221
|
+
obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
|
|
991
1222
|
obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
|
|
992
1223
|
obj.max_content_size = message.maxContentSize !== BigInt(0) ? message.maxContentSize?.toString() : undefined;
|
|
993
1224
|
obj.daily_post_limit = message.dailyPostLimit !== BigInt(0) ? message.dailyPostLimit?.toString() : undefined;
|
|
@@ -1012,6 +1243,16 @@ exports.ForumOperationalParams = {
|
|
|
1012
1243
|
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
1013
1244
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
1014
1245
|
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
1246
|
+
obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
|
|
1247
|
+
obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
|
|
1248
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
1249
|
+
obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
|
|
1250
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
|
|
1251
|
+
obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
|
|
1252
|
+
obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
|
|
1253
|
+
obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
|
|
1254
|
+
obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
|
|
1255
|
+
obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
|
|
1015
1256
|
return obj;
|
|
1016
1257
|
},
|
|
1017
1258
|
fromAminoMsg(object) {
|