@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,18 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BlogOperationalParams = 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() {
|
|
9
8
|
return {
|
|
10
9
|
maxTitleLength: BigInt(0),
|
|
11
10
|
maxBodyLength: BigInt(0),
|
|
12
|
-
|
|
11
|
+
costPerByteAmount: "",
|
|
13
12
|
costPerByteExempt: false,
|
|
14
13
|
maxReplyLength: BigInt(0),
|
|
15
14
|
maxReplyDepth: 0,
|
|
16
|
-
|
|
15
|
+
reactionFeeAmount: "",
|
|
17
16
|
reactionFeeExempt: false,
|
|
18
17
|
maxPostsPerDay: 0,
|
|
19
18
|
maxRepliesPerDay: 0,
|
|
@@ -22,16 +21,21 @@ function createBaseParams() {
|
|
|
22
21
|
pinMinTrustLevel: 0,
|
|
23
22
|
maxPinsPerDay: 0,
|
|
24
23
|
minEphemeralContentTtl: BigInt(0),
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
maxCostPerByteAmount: "",
|
|
25
|
+
maxReactionFeeAmount: "",
|
|
27
26
|
convictionRenewalThreshold: "",
|
|
28
27
|
convictionRenewalPeriod: BigInt(0),
|
|
29
28
|
maxTagsPerPost: 0,
|
|
30
|
-
maxTagLength: 0
|
|
29
|
+
maxTagLength: 0,
|
|
30
|
+
maxPromotionsPerBlock: 0,
|
|
31
|
+
makePermanentMinTrustLevel: 0,
|
|
32
|
+
maxMakePermanentPerDay: 0
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
|
-
* Params defines the parameters for the module.
|
|
36
|
+
* Params defines the parameters for the module. Fee/cost fields are stored
|
|
37
|
+
* as bare amounts in the chain's bond denom (resolved at runtime from
|
|
38
|
+
* x/identity); the keeper wraps them into sdk.Coin at the point of use.
|
|
35
39
|
* @name Params
|
|
36
40
|
* @package sparkdream.blog.v1
|
|
37
41
|
* @see proto type: sparkdream.blog.v1.Params
|
|
@@ -46,8 +50,8 @@ exports.Params = {
|
|
|
46
50
|
if (message.maxBodyLength !== BigInt(0)) {
|
|
47
51
|
writer.uint32(16).uint64(message.maxBodyLength);
|
|
48
52
|
}
|
|
49
|
-
if (message.
|
|
50
|
-
|
|
53
|
+
if (message.costPerByteAmount !== "") {
|
|
54
|
+
writer.uint32(26).string(message.costPerByteAmount);
|
|
51
55
|
}
|
|
52
56
|
if (message.costPerByteExempt === true) {
|
|
53
57
|
writer.uint32(32).bool(message.costPerByteExempt);
|
|
@@ -58,8 +62,8 @@ exports.Params = {
|
|
|
58
62
|
if (message.maxReplyDepth !== 0) {
|
|
59
63
|
writer.uint32(48).uint32(message.maxReplyDepth);
|
|
60
64
|
}
|
|
61
|
-
if (message.
|
|
62
|
-
|
|
65
|
+
if (message.reactionFeeAmount !== "") {
|
|
66
|
+
writer.uint32(58).string(message.reactionFeeAmount);
|
|
63
67
|
}
|
|
64
68
|
if (message.reactionFeeExempt === true) {
|
|
65
69
|
writer.uint32(64).bool(message.reactionFeeExempt);
|
|
@@ -85,11 +89,11 @@ exports.Params = {
|
|
|
85
89
|
if (message.minEphemeralContentTtl !== BigInt(0)) {
|
|
86
90
|
writer.uint32(160).int64(message.minEphemeralContentTtl);
|
|
87
91
|
}
|
|
88
|
-
if (message.
|
|
89
|
-
|
|
92
|
+
if (message.maxCostPerByteAmount !== "") {
|
|
93
|
+
writer.uint32(170).string(message.maxCostPerByteAmount);
|
|
90
94
|
}
|
|
91
|
-
if (message.
|
|
92
|
-
|
|
95
|
+
if (message.maxReactionFeeAmount !== "") {
|
|
96
|
+
writer.uint32(178).string(message.maxReactionFeeAmount);
|
|
93
97
|
}
|
|
94
98
|
if (message.convictionRenewalThreshold !== "") {
|
|
95
99
|
writer.uint32(186).string(math_1.Decimal.fromUserInput(message.convictionRenewalThreshold, 18).atomics);
|
|
@@ -103,6 +107,15 @@ exports.Params = {
|
|
|
103
107
|
if (message.maxTagLength !== 0) {
|
|
104
108
|
writer.uint32(208).uint32(message.maxTagLength);
|
|
105
109
|
}
|
|
110
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
111
|
+
writer.uint32(216).uint32(message.maxPromotionsPerBlock);
|
|
112
|
+
}
|
|
113
|
+
if (message.makePermanentMinTrustLevel !== 0) {
|
|
114
|
+
writer.uint32(224).uint32(message.makePermanentMinTrustLevel);
|
|
115
|
+
}
|
|
116
|
+
if (message.maxMakePermanentPerDay !== 0) {
|
|
117
|
+
writer.uint32(232).uint32(message.maxMakePermanentPerDay);
|
|
118
|
+
}
|
|
106
119
|
return writer;
|
|
107
120
|
},
|
|
108
121
|
decode(input, length) {
|
|
@@ -119,7 +132,7 @@ exports.Params = {
|
|
|
119
132
|
message.maxBodyLength = reader.uint64();
|
|
120
133
|
break;
|
|
121
134
|
case 3:
|
|
122
|
-
message.
|
|
135
|
+
message.costPerByteAmount = reader.string();
|
|
123
136
|
break;
|
|
124
137
|
case 4:
|
|
125
138
|
message.costPerByteExempt = reader.bool();
|
|
@@ -131,7 +144,7 @@ exports.Params = {
|
|
|
131
144
|
message.maxReplyDepth = reader.uint32();
|
|
132
145
|
break;
|
|
133
146
|
case 7:
|
|
134
|
-
message.
|
|
147
|
+
message.reactionFeeAmount = reader.string();
|
|
135
148
|
break;
|
|
136
149
|
case 8:
|
|
137
150
|
message.reactionFeeExempt = reader.bool();
|
|
@@ -158,10 +171,10 @@ exports.Params = {
|
|
|
158
171
|
message.minEphemeralContentTtl = reader.int64();
|
|
159
172
|
break;
|
|
160
173
|
case 21:
|
|
161
|
-
message.
|
|
174
|
+
message.maxCostPerByteAmount = reader.string();
|
|
162
175
|
break;
|
|
163
176
|
case 22:
|
|
164
|
-
message.
|
|
177
|
+
message.maxReactionFeeAmount = reader.string();
|
|
165
178
|
break;
|
|
166
179
|
case 23:
|
|
167
180
|
message.convictionRenewalThreshold = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
@@ -175,6 +188,15 @@ exports.Params = {
|
|
|
175
188
|
case 26:
|
|
176
189
|
message.maxTagLength = reader.uint32();
|
|
177
190
|
break;
|
|
191
|
+
case 27:
|
|
192
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
193
|
+
break;
|
|
194
|
+
case 28:
|
|
195
|
+
message.makePermanentMinTrustLevel = reader.uint32();
|
|
196
|
+
break;
|
|
197
|
+
case 29:
|
|
198
|
+
message.maxMakePermanentPerDay = reader.uint32();
|
|
199
|
+
break;
|
|
178
200
|
default:
|
|
179
201
|
reader.skipType(tag & 7);
|
|
180
202
|
break;
|
|
@@ -186,11 +208,11 @@ exports.Params = {
|
|
|
186
208
|
const message = createBaseParams();
|
|
187
209
|
message.maxTitleLength = object.maxTitleLength !== undefined && object.maxTitleLength !== null ? BigInt(object.maxTitleLength.toString()) : BigInt(0);
|
|
188
210
|
message.maxBodyLength = object.maxBodyLength !== undefined && object.maxBodyLength !== null ? BigInt(object.maxBodyLength.toString()) : BigInt(0);
|
|
189
|
-
message.
|
|
211
|
+
message.costPerByteAmount = object.costPerByteAmount ?? "";
|
|
190
212
|
message.costPerByteExempt = object.costPerByteExempt ?? false;
|
|
191
213
|
message.maxReplyLength = object.maxReplyLength !== undefined && object.maxReplyLength !== null ? BigInt(object.maxReplyLength.toString()) : BigInt(0);
|
|
192
214
|
message.maxReplyDepth = object.maxReplyDepth ?? 0;
|
|
193
|
-
message.
|
|
215
|
+
message.reactionFeeAmount = object.reactionFeeAmount ?? "";
|
|
194
216
|
message.reactionFeeExempt = object.reactionFeeExempt ?? false;
|
|
195
217
|
message.maxPostsPerDay = object.maxPostsPerDay ?? 0;
|
|
196
218
|
message.maxRepliesPerDay = object.maxRepliesPerDay ?? 0;
|
|
@@ -199,12 +221,15 @@ exports.Params = {
|
|
|
199
221
|
message.pinMinTrustLevel = object.pinMinTrustLevel ?? 0;
|
|
200
222
|
message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
|
|
201
223
|
message.minEphemeralContentTtl = object.minEphemeralContentTtl !== undefined && object.minEphemeralContentTtl !== null ? BigInt(object.minEphemeralContentTtl.toString()) : BigInt(0);
|
|
202
|
-
message.
|
|
203
|
-
message.
|
|
224
|
+
message.maxCostPerByteAmount = object.maxCostPerByteAmount ?? "";
|
|
225
|
+
message.maxReactionFeeAmount = object.maxReactionFeeAmount ?? "";
|
|
204
226
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
205
227
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
206
228
|
message.maxTagsPerPost = object.maxTagsPerPost ?? 0;
|
|
207
229
|
message.maxTagLength = object.maxTagLength ?? 0;
|
|
230
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
231
|
+
message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
|
|
232
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay ?? 0;
|
|
208
233
|
return message;
|
|
209
234
|
},
|
|
210
235
|
fromAmino(object) {
|
|
@@ -215,8 +240,8 @@ exports.Params = {
|
|
|
215
240
|
if (object.max_body_length !== undefined && object.max_body_length !== null) {
|
|
216
241
|
message.maxBodyLength = BigInt(object.max_body_length);
|
|
217
242
|
}
|
|
218
|
-
if (object.
|
|
219
|
-
message.
|
|
243
|
+
if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
|
|
244
|
+
message.costPerByteAmount = object.cost_per_byte_amount;
|
|
220
245
|
}
|
|
221
246
|
if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
|
|
222
247
|
message.costPerByteExempt = object.cost_per_byte_exempt;
|
|
@@ -227,8 +252,8 @@ exports.Params = {
|
|
|
227
252
|
if (object.max_reply_depth !== undefined && object.max_reply_depth !== null) {
|
|
228
253
|
message.maxReplyDepth = object.max_reply_depth;
|
|
229
254
|
}
|
|
230
|
-
if (object.
|
|
231
|
-
message.
|
|
255
|
+
if (object.reaction_fee_amount !== undefined && object.reaction_fee_amount !== null) {
|
|
256
|
+
message.reactionFeeAmount = object.reaction_fee_amount;
|
|
232
257
|
}
|
|
233
258
|
if (object.reaction_fee_exempt !== undefined && object.reaction_fee_exempt !== null) {
|
|
234
259
|
message.reactionFeeExempt = object.reaction_fee_exempt;
|
|
@@ -254,11 +279,11 @@ exports.Params = {
|
|
|
254
279
|
if (object.min_ephemeral_content_ttl !== undefined && object.min_ephemeral_content_ttl !== null) {
|
|
255
280
|
message.minEphemeralContentTtl = BigInt(object.min_ephemeral_content_ttl);
|
|
256
281
|
}
|
|
257
|
-
if (object.
|
|
258
|
-
message.
|
|
282
|
+
if (object.max_cost_per_byte_amount !== undefined && object.max_cost_per_byte_amount !== null) {
|
|
283
|
+
message.maxCostPerByteAmount = object.max_cost_per_byte_amount;
|
|
259
284
|
}
|
|
260
|
-
if (object.
|
|
261
|
-
message.
|
|
285
|
+
if (object.max_reaction_fee_amount !== undefined && object.max_reaction_fee_amount !== null) {
|
|
286
|
+
message.maxReactionFeeAmount = object.max_reaction_fee_amount;
|
|
262
287
|
}
|
|
263
288
|
if (object.conviction_renewal_threshold !== undefined && object.conviction_renewal_threshold !== null) {
|
|
264
289
|
message.convictionRenewalThreshold = object.conviction_renewal_threshold;
|
|
@@ -272,17 +297,26 @@ exports.Params = {
|
|
|
272
297
|
if (object.max_tag_length !== undefined && object.max_tag_length !== null) {
|
|
273
298
|
message.maxTagLength = object.max_tag_length;
|
|
274
299
|
}
|
|
300
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
301
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
302
|
+
}
|
|
303
|
+
if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
|
|
304
|
+
message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
|
|
305
|
+
}
|
|
306
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
307
|
+
message.maxMakePermanentPerDay = object.max_make_permanent_per_day;
|
|
308
|
+
}
|
|
275
309
|
return message;
|
|
276
310
|
},
|
|
277
311
|
toAmino(message) {
|
|
278
312
|
const obj = {};
|
|
279
313
|
obj.max_title_length = message.maxTitleLength !== BigInt(0) ? message.maxTitleLength?.toString() : undefined;
|
|
280
314
|
obj.max_body_length = message.maxBodyLength !== BigInt(0) ? message.maxBodyLength?.toString() : undefined;
|
|
281
|
-
obj.
|
|
315
|
+
obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
|
|
282
316
|
obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
|
|
283
317
|
obj.max_reply_length = message.maxReplyLength !== BigInt(0) ? message.maxReplyLength?.toString() : undefined;
|
|
284
318
|
obj.max_reply_depth = message.maxReplyDepth === 0 ? undefined : message.maxReplyDepth;
|
|
285
|
-
obj.
|
|
319
|
+
obj.reaction_fee_amount = message.reactionFeeAmount === "" ? undefined : message.reactionFeeAmount;
|
|
286
320
|
obj.reaction_fee_exempt = message.reactionFeeExempt === false ? undefined : message.reactionFeeExempt;
|
|
287
321
|
obj.max_posts_per_day = message.maxPostsPerDay === 0 ? undefined : message.maxPostsPerDay;
|
|
288
322
|
obj.max_replies_per_day = message.maxRepliesPerDay === 0 ? undefined : message.maxRepliesPerDay;
|
|
@@ -291,12 +325,15 @@ exports.Params = {
|
|
|
291
325
|
obj.pin_min_trust_level = message.pinMinTrustLevel === 0 ? undefined : message.pinMinTrustLevel;
|
|
292
326
|
obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
|
|
293
327
|
obj.min_ephemeral_content_ttl = message.minEphemeralContentTtl !== BigInt(0) ? message.minEphemeralContentTtl?.toString() : undefined;
|
|
294
|
-
obj.
|
|
295
|
-
obj.
|
|
328
|
+
obj.max_cost_per_byte_amount = message.maxCostPerByteAmount === "" ? undefined : message.maxCostPerByteAmount;
|
|
329
|
+
obj.max_reaction_fee_amount = message.maxReactionFeeAmount === "" ? undefined : message.maxReactionFeeAmount;
|
|
296
330
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
297
331
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
298
332
|
obj.max_tags_per_post = message.maxTagsPerPost === 0 ? undefined : message.maxTagsPerPost;
|
|
299
333
|
obj.max_tag_length = message.maxTagLength === 0 ? undefined : message.maxTagLength;
|
|
334
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
335
|
+
obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
|
|
336
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay === 0 ? undefined : message.maxMakePermanentPerDay;
|
|
300
337
|
return obj;
|
|
301
338
|
},
|
|
302
339
|
fromAminoMsg(object) {
|
|
@@ -323,9 +360,9 @@ exports.Params = {
|
|
|
323
360
|
};
|
|
324
361
|
function createBaseBlogOperationalParams() {
|
|
325
362
|
return {
|
|
326
|
-
|
|
363
|
+
costPerByteAmount: "",
|
|
327
364
|
costPerByteExempt: false,
|
|
328
|
-
|
|
365
|
+
reactionFeeAmount: "",
|
|
329
366
|
reactionFeeExempt: false,
|
|
330
367
|
maxPostsPerDay: 0,
|
|
331
368
|
maxRepliesPerDay: 0,
|
|
@@ -333,7 +370,9 @@ function createBaseBlogOperationalParams() {
|
|
|
333
370
|
ephemeralContentTtl: BigInt(0),
|
|
334
371
|
maxPinsPerDay: 0,
|
|
335
372
|
convictionRenewalThreshold: "",
|
|
336
|
-
convictionRenewalPeriod: BigInt(0)
|
|
373
|
+
convictionRenewalPeriod: BigInt(0),
|
|
374
|
+
maxPromotionsPerBlock: 0,
|
|
375
|
+
maxMakePermanentPerDay: 0
|
|
337
376
|
};
|
|
338
377
|
}
|
|
339
378
|
/**
|
|
@@ -347,14 +386,14 @@ exports.BlogOperationalParams = {
|
|
|
347
386
|
typeUrl: "/sparkdream.blog.v1.BlogOperationalParams",
|
|
348
387
|
aminoType: "sparkdream/x/blog/BlogOperationalParams",
|
|
349
388
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
350
|
-
if (message.
|
|
351
|
-
|
|
389
|
+
if (message.costPerByteAmount !== "") {
|
|
390
|
+
writer.uint32(10).string(message.costPerByteAmount);
|
|
352
391
|
}
|
|
353
392
|
if (message.costPerByteExempt === true) {
|
|
354
393
|
writer.uint32(16).bool(message.costPerByteExempt);
|
|
355
394
|
}
|
|
356
|
-
if (message.
|
|
357
|
-
|
|
395
|
+
if (message.reactionFeeAmount !== "") {
|
|
396
|
+
writer.uint32(26).string(message.reactionFeeAmount);
|
|
358
397
|
}
|
|
359
398
|
if (message.reactionFeeExempt === true) {
|
|
360
399
|
writer.uint32(32).bool(message.reactionFeeExempt);
|
|
@@ -380,6 +419,12 @@ exports.BlogOperationalParams = {
|
|
|
380
419
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
381
420
|
writer.uint32(120).int64(message.convictionRenewalPeriod);
|
|
382
421
|
}
|
|
422
|
+
if (message.maxPromotionsPerBlock !== 0) {
|
|
423
|
+
writer.uint32(128).uint32(message.maxPromotionsPerBlock);
|
|
424
|
+
}
|
|
425
|
+
if (message.maxMakePermanentPerDay !== 0) {
|
|
426
|
+
writer.uint32(136).uint32(message.maxMakePermanentPerDay);
|
|
427
|
+
}
|
|
383
428
|
return writer;
|
|
384
429
|
},
|
|
385
430
|
decode(input, length) {
|
|
@@ -390,13 +435,13 @@ exports.BlogOperationalParams = {
|
|
|
390
435
|
const tag = reader.uint32();
|
|
391
436
|
switch (tag >>> 3) {
|
|
392
437
|
case 1:
|
|
393
|
-
message.
|
|
438
|
+
message.costPerByteAmount = reader.string();
|
|
394
439
|
break;
|
|
395
440
|
case 2:
|
|
396
441
|
message.costPerByteExempt = reader.bool();
|
|
397
442
|
break;
|
|
398
443
|
case 3:
|
|
399
|
-
message.
|
|
444
|
+
message.reactionFeeAmount = reader.string();
|
|
400
445
|
break;
|
|
401
446
|
case 4:
|
|
402
447
|
message.reactionFeeExempt = reader.bool();
|
|
@@ -422,6 +467,12 @@ exports.BlogOperationalParams = {
|
|
|
422
467
|
case 15:
|
|
423
468
|
message.convictionRenewalPeriod = reader.int64();
|
|
424
469
|
break;
|
|
470
|
+
case 16:
|
|
471
|
+
message.maxPromotionsPerBlock = reader.uint32();
|
|
472
|
+
break;
|
|
473
|
+
case 17:
|
|
474
|
+
message.maxMakePermanentPerDay = reader.uint32();
|
|
475
|
+
break;
|
|
425
476
|
default:
|
|
426
477
|
reader.skipType(tag & 7);
|
|
427
478
|
break;
|
|
@@ -431,9 +482,9 @@ exports.BlogOperationalParams = {
|
|
|
431
482
|
},
|
|
432
483
|
fromPartial(object) {
|
|
433
484
|
const message = createBaseBlogOperationalParams();
|
|
434
|
-
message.
|
|
485
|
+
message.costPerByteAmount = object.costPerByteAmount ?? "";
|
|
435
486
|
message.costPerByteExempt = object.costPerByteExempt ?? false;
|
|
436
|
-
message.
|
|
487
|
+
message.reactionFeeAmount = object.reactionFeeAmount ?? "";
|
|
437
488
|
message.reactionFeeExempt = object.reactionFeeExempt ?? false;
|
|
438
489
|
message.maxPostsPerDay = object.maxPostsPerDay ?? 0;
|
|
439
490
|
message.maxRepliesPerDay = object.maxRepliesPerDay ?? 0;
|
|
@@ -442,18 +493,20 @@ exports.BlogOperationalParams = {
|
|
|
442
493
|
message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
|
|
443
494
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
444
495
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
496
|
+
message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
|
|
497
|
+
message.maxMakePermanentPerDay = object.maxMakePermanentPerDay ?? 0;
|
|
445
498
|
return message;
|
|
446
499
|
},
|
|
447
500
|
fromAmino(object) {
|
|
448
501
|
const message = createBaseBlogOperationalParams();
|
|
449
|
-
if (object.
|
|
450
|
-
message.
|
|
502
|
+
if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
|
|
503
|
+
message.costPerByteAmount = object.cost_per_byte_amount;
|
|
451
504
|
}
|
|
452
505
|
if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
|
|
453
506
|
message.costPerByteExempt = object.cost_per_byte_exempt;
|
|
454
507
|
}
|
|
455
|
-
if (object.
|
|
456
|
-
message.
|
|
508
|
+
if (object.reaction_fee_amount !== undefined && object.reaction_fee_amount !== null) {
|
|
509
|
+
message.reactionFeeAmount = object.reaction_fee_amount;
|
|
457
510
|
}
|
|
458
511
|
if (object.reaction_fee_exempt !== undefined && object.reaction_fee_exempt !== null) {
|
|
459
512
|
message.reactionFeeExempt = object.reaction_fee_exempt;
|
|
@@ -479,13 +532,19 @@ exports.BlogOperationalParams = {
|
|
|
479
532
|
if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
|
|
480
533
|
message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
|
|
481
534
|
}
|
|
535
|
+
if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
|
|
536
|
+
message.maxPromotionsPerBlock = object.max_promotions_per_block;
|
|
537
|
+
}
|
|
538
|
+
if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
|
|
539
|
+
message.maxMakePermanentPerDay = object.max_make_permanent_per_day;
|
|
540
|
+
}
|
|
482
541
|
return message;
|
|
483
542
|
},
|
|
484
543
|
toAmino(message) {
|
|
485
544
|
const obj = {};
|
|
486
|
-
obj.
|
|
545
|
+
obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
|
|
487
546
|
obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
|
|
488
|
-
obj.
|
|
547
|
+
obj.reaction_fee_amount = message.reactionFeeAmount === "" ? undefined : message.reactionFeeAmount;
|
|
489
548
|
obj.reaction_fee_exempt = message.reactionFeeExempt === false ? undefined : message.reactionFeeExempt;
|
|
490
549
|
obj.max_posts_per_day = message.maxPostsPerDay === 0 ? undefined : message.maxPostsPerDay;
|
|
491
550
|
obj.max_replies_per_day = message.maxRepliesPerDay === 0 ? undefined : message.maxRepliesPerDay;
|
|
@@ -494,6 +553,8 @@ exports.BlogOperationalParams = {
|
|
|
494
553
|
obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
|
|
495
554
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
496
555
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
556
|
+
obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
|
|
557
|
+
obj.max_make_permanent_per_day = message.maxMakePermanentPerDay === 0 ? undefined : message.maxMakePermanentPerDay;
|
|
497
558
|
return obj;
|
|
498
559
|
},
|
|
499
560
|
fromAminoMsg(object) {
|
|
@@ -38,7 +38,7 @@ export interface Post {
|
|
|
38
38
|
*/
|
|
39
39
|
replyCount: bigint;
|
|
40
40
|
/**
|
|
41
|
-
* Minimum trust level to reply (default
|
|
41
|
+
* Minimum trust level to reply AND react (-1 open, 0 default = active members)
|
|
42
42
|
*/
|
|
43
43
|
minReplyTrustLevel: number;
|
|
44
44
|
/**
|
|
@@ -138,7 +138,7 @@ export interface PostAmino {
|
|
|
138
138
|
*/
|
|
139
139
|
reply_count?: string;
|
|
140
140
|
/**
|
|
141
|
-
* Minimum trust level to reply (default
|
|
141
|
+
* Minimum trust level to reply AND react (-1 open, 0 default = active members)
|
|
142
142
|
*/
|
|
143
143
|
min_reply_trust_level?: number;
|
|
144
144
|
/**
|