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