@sparkdreamnft/sparkdreamjs 0.0.42 → 0.0.44
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +134 -2
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +186 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +354 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +169 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +66 -1
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20540 -17854
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +160 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +128 -0
- package/sparkdream/federation/v1/types.js +135 -3
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +128 -28
- package/sparkdream/rep/v1/params.js +186 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +245 -1
- package/sparkdream/rep/v1/tx.js +355 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +97 -0
- package/sparkdream/service/v1/tx.js +170 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/shield/v1/params.d.ts +16 -0
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +2 -2
- package/sparkdream/shield/v1/types.d.ts +45 -2
- package/sparkdream/shield/v1/types.js +69 -2
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
package/esm/sparkdream/client.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
3
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
4
|
+
import * as sparkdreamArtifactV1TxRegistry from "./artifact/v1/tx.registry";
|
|
4
5
|
import * as sparkdreamBlogV1TxRegistry from "./blog/v1/tx.registry";
|
|
5
6
|
import * as sparkdreamCollectV1TxRegistry from "./collect/v1/tx.registry";
|
|
6
7
|
import * as sparkdreamCommonsV1TxRegistry from "./commons/v1/tx.registry";
|
|
@@ -18,6 +19,7 @@ import * as sparkdreamSessionV1TxRegistry from "./session/v1/tx.registry";
|
|
|
18
19
|
import * as sparkdreamShieldV1TxRegistry from "./shield/v1/tx.registry";
|
|
19
20
|
import * as sparkdreamSparkdreamV1TxRegistry from "./sparkdream/v1/tx.registry";
|
|
20
21
|
import * as sparkdreamSplitV1TxRegistry from "./split/v1/tx.registry";
|
|
22
|
+
import * as sparkdreamArtifactV1TxAmino from "./artifact/v1/tx.amino";
|
|
21
23
|
import * as sparkdreamBlogV1TxAmino from "./blog/v1/tx.amino";
|
|
22
24
|
import * as sparkdreamCollectV1TxAmino from "./collect/v1/tx.amino";
|
|
23
25
|
import * as sparkdreamCommonsV1TxAmino from "./commons/v1/tx.amino";
|
|
@@ -36,6 +38,7 @@ import * as sparkdreamShieldV1TxAmino from "./shield/v1/tx.amino";
|
|
|
36
38
|
import * as sparkdreamSparkdreamV1TxAmino from "./sparkdream/v1/tx.amino";
|
|
37
39
|
import * as sparkdreamSplitV1TxAmino from "./split/v1/tx.amino";
|
|
38
40
|
export const sparkdreamAminoConverters = {
|
|
41
|
+
...sparkdreamArtifactV1TxAmino.AminoConverter,
|
|
39
42
|
...sparkdreamBlogV1TxAmino.AminoConverter,
|
|
40
43
|
...sparkdreamCollectV1TxAmino.AminoConverter,
|
|
41
44
|
...sparkdreamCommonsV1TxAmino.AminoConverter,
|
|
@@ -54,7 +57,7 @@ export const sparkdreamAminoConverters = {
|
|
|
54
57
|
...sparkdreamSparkdreamV1TxAmino.AminoConverter,
|
|
55
58
|
...sparkdreamSplitV1TxAmino.AminoConverter
|
|
56
59
|
};
|
|
57
|
-
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
60
|
+
export const sparkdreamProtoRegistry = [...sparkdreamArtifactV1TxRegistry.registry, ...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
58
61
|
export const getSigningSparkdreamClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
59
62
|
const registry = new Registry([...defaultTypes, ...sparkdreamProtoRegistry]);
|
|
60
63
|
const aminoTypes = new AminoTypes({
|
|
@@ -48,9 +48,7 @@ function createBaseParams() {
|
|
|
48
48
|
maxFlagReasonLength: 0,
|
|
49
49
|
sentinelCommitAmount: "",
|
|
50
50
|
hideExpiryBlocks: BigInt(0),
|
|
51
|
-
appealFee: "",
|
|
52
51
|
appealCooldownBlocks: BigInt(0),
|
|
53
|
-
appealDeadlineBlocks: BigInt(0),
|
|
54
52
|
sentinelUnhideWindowBlocks: BigInt(0),
|
|
55
53
|
maxHidesPerSentinelPerDay: 0,
|
|
56
54
|
endorsementCreationFee: "",
|
|
@@ -149,163 +147,157 @@ export const Params = {
|
|
|
149
147
|
writer.uint32(162).string(message.perItemSpamTax);
|
|
150
148
|
}
|
|
151
149
|
if (message.sponsorFee !== "") {
|
|
152
|
-
writer.uint32(
|
|
150
|
+
writer.uint32(170).string(message.sponsorFee);
|
|
153
151
|
}
|
|
154
152
|
if (message.minSponsorTrustLevel !== "") {
|
|
155
|
-
writer.uint32(
|
|
153
|
+
writer.uint32(178).string(message.minSponsorTrustLevel);
|
|
156
154
|
}
|
|
157
155
|
if (message.sponsorshipRequestTtlBlocks !== BigInt(0)) {
|
|
158
|
-
writer.uint32(
|
|
156
|
+
writer.uint32(184).int64(message.sponsorshipRequestTtlBlocks);
|
|
159
157
|
}
|
|
160
158
|
if (message.minCuratorBond !== "") {
|
|
161
|
-
writer.uint32(
|
|
159
|
+
writer.uint32(194).string(message.minCuratorBond);
|
|
162
160
|
}
|
|
163
161
|
if (message.minCuratorTrustLevel !== "") {
|
|
164
|
-
writer.uint32(
|
|
162
|
+
writer.uint32(202).string(message.minCuratorTrustLevel);
|
|
165
163
|
}
|
|
166
164
|
if (message.minCuratorAgeBlocks !== BigInt(0)) {
|
|
167
|
-
writer.uint32(
|
|
165
|
+
writer.uint32(208).int64(message.minCuratorAgeBlocks);
|
|
168
166
|
}
|
|
169
167
|
if (message.maxTagsPerReview !== 0) {
|
|
170
|
-
writer.uint32(
|
|
168
|
+
writer.uint32(216).uint32(message.maxTagsPerReview);
|
|
171
169
|
}
|
|
172
170
|
if (message.maxReviewCommentLength !== 0) {
|
|
173
|
-
writer.uint32(
|
|
171
|
+
writer.uint32(224).uint32(message.maxReviewCommentLength);
|
|
174
172
|
}
|
|
175
173
|
if (message.maxReviewsPerCollection !== 0) {
|
|
176
|
-
writer.uint32(
|
|
174
|
+
writer.uint32(232).uint32(message.maxReviewsPerCollection);
|
|
177
175
|
}
|
|
178
176
|
if (message.curatorSlashFraction !== "") {
|
|
179
|
-
writer.uint32(
|
|
177
|
+
writer.uint32(242).string(Decimal.fromUserInput(message.curatorSlashFraction, 18).atomics);
|
|
180
178
|
}
|
|
181
179
|
if (message.challengeWindowBlocks !== BigInt(0)) {
|
|
182
|
-
writer.uint32(
|
|
180
|
+
writer.uint32(248).int64(message.challengeWindowBlocks);
|
|
183
181
|
}
|
|
184
182
|
if (message.challengeDeposit !== "") {
|
|
185
|
-
writer.uint32(
|
|
183
|
+
writer.uint32(258).string(message.challengeDeposit);
|
|
186
184
|
}
|
|
187
185
|
if (message.maxChallengeReasonLength !== 0) {
|
|
188
|
-
writer.uint32(
|
|
186
|
+
writer.uint32(264).uint32(message.maxChallengeReasonLength);
|
|
189
187
|
}
|
|
190
188
|
if (message.maxPrunePerBlock !== 0) {
|
|
191
|
-
writer.uint32(
|
|
189
|
+
writer.uint32(272).uint32(message.maxPrunePerBlock);
|
|
192
190
|
}
|
|
193
191
|
if (message.challengeRewardFraction !== "") {
|
|
194
|
-
writer.uint32(
|
|
192
|
+
writer.uint32(282).string(Decimal.fromUserInput(message.challengeRewardFraction, 18).atomics);
|
|
195
193
|
}
|
|
196
194
|
if (message.downvoteCost !== "") {
|
|
197
|
-
writer.uint32(
|
|
195
|
+
writer.uint32(290).string(message.downvoteCost);
|
|
198
196
|
}
|
|
199
197
|
if (message.maxUpvotesPerDay !== 0) {
|
|
200
|
-
writer.uint32(
|
|
198
|
+
writer.uint32(296).uint32(message.maxUpvotesPerDay);
|
|
201
199
|
}
|
|
202
200
|
if (message.maxDownvotesPerDay !== 0) {
|
|
203
|
-
writer.uint32(
|
|
201
|
+
writer.uint32(304).uint32(message.maxDownvotesPerDay);
|
|
204
202
|
}
|
|
205
203
|
if (message.flagReviewThreshold !== 0) {
|
|
206
|
-
writer.uint32(
|
|
204
|
+
writer.uint32(312).uint32(message.flagReviewThreshold);
|
|
207
205
|
}
|
|
208
206
|
if (message.maxFlagsPerDay !== 0) {
|
|
209
|
-
writer.uint32(
|
|
207
|
+
writer.uint32(320).uint32(message.maxFlagsPerDay);
|
|
210
208
|
}
|
|
211
209
|
if (message.maxFlaggersPerTarget !== 0) {
|
|
212
|
-
writer.uint32(
|
|
210
|
+
writer.uint32(328).uint32(message.maxFlaggersPerTarget);
|
|
213
211
|
}
|
|
214
212
|
if (message.flagExpirationBlocks !== BigInt(0)) {
|
|
215
|
-
writer.uint32(
|
|
213
|
+
writer.uint32(336).int64(message.flagExpirationBlocks);
|
|
216
214
|
}
|
|
217
215
|
if (message.maxFlagReasonLength !== 0) {
|
|
218
|
-
writer.uint32(
|
|
216
|
+
writer.uint32(344).uint32(message.maxFlagReasonLength);
|
|
219
217
|
}
|
|
220
218
|
if (message.sentinelCommitAmount !== "") {
|
|
221
|
-
writer.uint32(
|
|
219
|
+
writer.uint32(354).string(message.sentinelCommitAmount);
|
|
222
220
|
}
|
|
223
221
|
if (message.hideExpiryBlocks !== BigInt(0)) {
|
|
224
|
-
writer.uint32(
|
|
225
|
-
}
|
|
226
|
-
if (message.appealFee !== "") {
|
|
227
|
-
writer.uint32(378).string(message.appealFee);
|
|
222
|
+
writer.uint32(360).int64(message.hideExpiryBlocks);
|
|
228
223
|
}
|
|
229
224
|
if (message.appealCooldownBlocks !== BigInt(0)) {
|
|
230
|
-
writer.uint32(
|
|
231
|
-
}
|
|
232
|
-
if (message.appealDeadlineBlocks !== BigInt(0)) {
|
|
233
|
-
writer.uint32(392).int64(message.appealDeadlineBlocks);
|
|
225
|
+
writer.uint32(368).int64(message.appealCooldownBlocks);
|
|
234
226
|
}
|
|
235
227
|
if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
|
|
236
|
-
writer.uint32(
|
|
228
|
+
writer.uint32(560).int64(message.sentinelUnhideWindowBlocks);
|
|
237
229
|
}
|
|
238
230
|
if (message.maxHidesPerSentinelPerDay !== 0) {
|
|
239
|
-
writer.uint32(
|
|
231
|
+
writer.uint32(568).uint32(message.maxHidesPerSentinelPerDay);
|
|
240
232
|
}
|
|
241
233
|
if (message.endorsementCreationFee !== "") {
|
|
242
|
-
writer.uint32(
|
|
234
|
+
writer.uint32(378).string(message.endorsementCreationFee);
|
|
243
235
|
}
|
|
244
236
|
if (message.endorsementDreamStake !== "") {
|
|
245
|
-
writer.uint32(
|
|
237
|
+
writer.uint32(386).string(message.endorsementDreamStake);
|
|
246
238
|
}
|
|
247
239
|
if (message.endorsementStakeDuration !== BigInt(0)) {
|
|
248
|
-
writer.uint32(
|
|
240
|
+
writer.uint32(392).int64(message.endorsementStakeDuration);
|
|
249
241
|
}
|
|
250
242
|
if (message.endorsementExpiryBlocks !== BigInt(0)) {
|
|
251
|
-
writer.uint32(
|
|
243
|
+
writer.uint32(400).int64(message.endorsementExpiryBlocks);
|
|
252
244
|
}
|
|
253
245
|
if (message.endorsementFeeEndorserShare !== "") {
|
|
254
|
-
writer.uint32(
|
|
246
|
+
writer.uint32(410).string(Decimal.fromUserInput(message.endorsementFeeEndorserShare, 18).atomics);
|
|
255
247
|
}
|
|
256
248
|
if (message.endorsementDeletionBurnFraction !== "") {
|
|
257
|
-
writer.uint32(
|
|
249
|
+
writer.uint32(418).string(Decimal.fromUserInput(message.endorsementDeletionBurnFraction, 18).atomics);
|
|
258
250
|
}
|
|
259
251
|
if (message.convictionRenewalThreshold !== "") {
|
|
260
|
-
writer.uint32(
|
|
252
|
+
writer.uint32(426).string(Decimal.fromUserInput(message.convictionRenewalThreshold, 18).atomics);
|
|
261
253
|
}
|
|
262
254
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
263
|
-
writer.uint32(
|
|
255
|
+
writer.uint32(432).int64(message.convictionRenewalPeriod);
|
|
264
256
|
}
|
|
265
257
|
if (message.pinMinTrustLevel !== 0) {
|
|
266
|
-
writer.uint32(
|
|
258
|
+
writer.uint32(440).uint32(message.pinMinTrustLevel);
|
|
267
259
|
}
|
|
268
260
|
if (message.maxPinsPerDay !== 0) {
|
|
269
|
-
writer.uint32(
|
|
261
|
+
writer.uint32(448).uint32(message.maxPinsPerDay);
|
|
270
262
|
}
|
|
271
263
|
if (message.curatorDemotionCooldown !== BigInt(0)) {
|
|
272
|
-
writer.uint32(
|
|
264
|
+
writer.uint32(456).int64(message.curatorDemotionCooldown);
|
|
273
265
|
}
|
|
274
266
|
if (message.curatorDemotionThreshold !== "") {
|
|
275
|
-
writer.uint32(
|
|
267
|
+
writer.uint32(466).string(message.curatorDemotionThreshold);
|
|
276
268
|
}
|
|
277
269
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
278
|
-
writer.uint32(
|
|
270
|
+
writer.uint32(472).uint64(message.curatorOverturnDemotionStreak);
|
|
279
271
|
}
|
|
280
272
|
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
281
|
-
writer.uint32(
|
|
273
|
+
writer.uint32(480).int64(message.curatorUnbondCooldown);
|
|
282
274
|
}
|
|
283
275
|
if (message.makePermanentMinTrustLevel !== 0) {
|
|
284
|
-
writer.uint32(
|
|
276
|
+
writer.uint32(488).uint32(message.makePermanentMinTrustLevel);
|
|
285
277
|
}
|
|
286
278
|
if (message.maxMakePermanentPerDay !== 0) {
|
|
287
|
-
writer.uint32(
|
|
279
|
+
writer.uint32(552).uint32(message.maxMakePermanentPerDay);
|
|
288
280
|
}
|
|
289
281
|
if (message.nonMemberCollabDreamStake !== "") {
|
|
290
|
-
writer.uint32(
|
|
282
|
+
writer.uint32(498).string(message.nonMemberCollabDreamStake);
|
|
291
283
|
}
|
|
292
284
|
if (message.nonMemberCollabBurnFraction !== "") {
|
|
293
|
-
writer.uint32(
|
|
285
|
+
writer.uint32(506).string(Decimal.fromUserInput(message.nonMemberCollabBurnFraction, 18).atomics);
|
|
294
286
|
}
|
|
295
287
|
if (message.maxNonMemberCollaboratorsPerCollection !== 0) {
|
|
296
|
-
writer.uint32(
|
|
288
|
+
writer.uint32(512).uint32(message.maxNonMemberCollaboratorsPerCollection);
|
|
297
289
|
}
|
|
298
290
|
if (message.maxPromotionsPerBlock !== 0) {
|
|
299
|
-
writer.uint32(
|
|
291
|
+
writer.uint32(520).uint32(message.maxPromotionsPerBlock);
|
|
300
292
|
}
|
|
301
293
|
if (message.endorserRepPenalty !== "") {
|
|
302
|
-
writer.uint32(
|
|
294
|
+
writer.uint32(530).string(Decimal.fromUserInput(message.endorserRepPenalty, 18).atomics);
|
|
303
295
|
}
|
|
304
296
|
if (message.collabInviterRepPenalty !== "") {
|
|
305
|
-
writer.uint32(
|
|
297
|
+
writer.uint32(538).string(Decimal.fromUserInput(message.collabInviterRepPenalty, 18).atomics);
|
|
306
298
|
}
|
|
307
299
|
if (message.authorRepPenalty !== "") {
|
|
308
|
-
writer.uint32(
|
|
300
|
+
writer.uint32(546).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
|
|
309
301
|
}
|
|
310
302
|
return writer;
|
|
311
303
|
},
|
|
@@ -376,163 +368,157 @@ export const Params = {
|
|
|
376
368
|
case 20:
|
|
377
369
|
message.perItemSpamTax = reader.string();
|
|
378
370
|
break;
|
|
379
|
-
case
|
|
371
|
+
case 21:
|
|
380
372
|
message.sponsorFee = reader.string();
|
|
381
373
|
break;
|
|
382
|
-
case
|
|
374
|
+
case 22:
|
|
383
375
|
message.minSponsorTrustLevel = reader.string();
|
|
384
376
|
break;
|
|
385
|
-
case
|
|
377
|
+
case 23:
|
|
386
378
|
message.sponsorshipRequestTtlBlocks = reader.int64();
|
|
387
379
|
break;
|
|
388
|
-
case
|
|
380
|
+
case 24:
|
|
389
381
|
message.minCuratorBond = reader.string();
|
|
390
382
|
break;
|
|
391
|
-
case
|
|
383
|
+
case 25:
|
|
392
384
|
message.minCuratorTrustLevel = reader.string();
|
|
393
385
|
break;
|
|
394
|
-
case
|
|
386
|
+
case 26:
|
|
395
387
|
message.minCuratorAgeBlocks = reader.int64();
|
|
396
388
|
break;
|
|
397
|
-
case
|
|
389
|
+
case 27:
|
|
398
390
|
message.maxTagsPerReview = reader.uint32();
|
|
399
391
|
break;
|
|
400
|
-
case
|
|
392
|
+
case 28:
|
|
401
393
|
message.maxReviewCommentLength = reader.uint32();
|
|
402
394
|
break;
|
|
403
|
-
case
|
|
395
|
+
case 29:
|
|
404
396
|
message.maxReviewsPerCollection = reader.uint32();
|
|
405
397
|
break;
|
|
406
|
-
case
|
|
398
|
+
case 30:
|
|
407
399
|
message.curatorSlashFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
408
400
|
break;
|
|
409
|
-
case
|
|
401
|
+
case 31:
|
|
410
402
|
message.challengeWindowBlocks = reader.int64();
|
|
411
403
|
break;
|
|
412
|
-
case
|
|
404
|
+
case 32:
|
|
413
405
|
message.challengeDeposit = reader.string();
|
|
414
406
|
break;
|
|
415
|
-
case
|
|
407
|
+
case 33:
|
|
416
408
|
message.maxChallengeReasonLength = reader.uint32();
|
|
417
409
|
break;
|
|
418
|
-
case
|
|
410
|
+
case 34:
|
|
419
411
|
message.maxPrunePerBlock = reader.uint32();
|
|
420
412
|
break;
|
|
421
|
-
case
|
|
413
|
+
case 35:
|
|
422
414
|
message.challengeRewardFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
423
415
|
break;
|
|
424
|
-
case
|
|
416
|
+
case 36:
|
|
425
417
|
message.downvoteCost = reader.string();
|
|
426
418
|
break;
|
|
427
|
-
case
|
|
419
|
+
case 37:
|
|
428
420
|
message.maxUpvotesPerDay = reader.uint32();
|
|
429
421
|
break;
|
|
430
|
-
case
|
|
422
|
+
case 38:
|
|
431
423
|
message.maxDownvotesPerDay = reader.uint32();
|
|
432
424
|
break;
|
|
433
|
-
case
|
|
425
|
+
case 39:
|
|
434
426
|
message.flagReviewThreshold = reader.uint32();
|
|
435
427
|
break;
|
|
436
|
-
case
|
|
428
|
+
case 40:
|
|
437
429
|
message.maxFlagsPerDay = reader.uint32();
|
|
438
430
|
break;
|
|
439
|
-
case
|
|
431
|
+
case 41:
|
|
440
432
|
message.maxFlaggersPerTarget = reader.uint32();
|
|
441
433
|
break;
|
|
442
|
-
case
|
|
434
|
+
case 42:
|
|
443
435
|
message.flagExpirationBlocks = reader.int64();
|
|
444
436
|
break;
|
|
445
|
-
case
|
|
437
|
+
case 43:
|
|
446
438
|
message.maxFlagReasonLength = reader.uint32();
|
|
447
439
|
break;
|
|
448
|
-
case
|
|
440
|
+
case 44:
|
|
449
441
|
message.sentinelCommitAmount = reader.string();
|
|
450
442
|
break;
|
|
451
|
-
case
|
|
443
|
+
case 45:
|
|
452
444
|
message.hideExpiryBlocks = reader.int64();
|
|
453
445
|
break;
|
|
454
|
-
case
|
|
455
|
-
message.appealFee = reader.string();
|
|
456
|
-
break;
|
|
457
|
-
case 48:
|
|
446
|
+
case 46:
|
|
458
447
|
message.appealCooldownBlocks = reader.int64();
|
|
459
448
|
break;
|
|
460
|
-
case
|
|
461
|
-
message.appealDeadlineBlocks = reader.int64();
|
|
462
|
-
break;
|
|
463
|
-
case 76:
|
|
449
|
+
case 70:
|
|
464
450
|
message.sentinelUnhideWindowBlocks = reader.int64();
|
|
465
451
|
break;
|
|
466
|
-
case
|
|
452
|
+
case 71:
|
|
467
453
|
message.maxHidesPerSentinelPerDay = reader.uint32();
|
|
468
454
|
break;
|
|
469
|
-
case
|
|
455
|
+
case 47:
|
|
470
456
|
message.endorsementCreationFee = reader.string();
|
|
471
457
|
break;
|
|
472
|
-
case
|
|
458
|
+
case 48:
|
|
473
459
|
message.endorsementDreamStake = reader.string();
|
|
474
460
|
break;
|
|
475
|
-
case
|
|
461
|
+
case 49:
|
|
476
462
|
message.endorsementStakeDuration = reader.int64();
|
|
477
463
|
break;
|
|
478
|
-
case
|
|
464
|
+
case 50:
|
|
479
465
|
message.endorsementExpiryBlocks = reader.int64();
|
|
480
466
|
break;
|
|
481
|
-
case
|
|
467
|
+
case 51:
|
|
482
468
|
message.endorsementFeeEndorserShare = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
483
469
|
break;
|
|
484
|
-
case
|
|
470
|
+
case 52:
|
|
485
471
|
message.endorsementDeletionBurnFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
486
472
|
break;
|
|
487
|
-
case
|
|
473
|
+
case 53:
|
|
488
474
|
message.convictionRenewalThreshold = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
489
475
|
break;
|
|
490
|
-
case
|
|
476
|
+
case 54:
|
|
491
477
|
message.convictionRenewalPeriod = reader.int64();
|
|
492
478
|
break;
|
|
493
|
-
case
|
|
479
|
+
case 55:
|
|
494
480
|
message.pinMinTrustLevel = reader.uint32();
|
|
495
481
|
break;
|
|
496
|
-
case
|
|
482
|
+
case 56:
|
|
497
483
|
message.maxPinsPerDay = reader.uint32();
|
|
498
484
|
break;
|
|
499
|
-
case
|
|
485
|
+
case 57:
|
|
500
486
|
message.curatorDemotionCooldown = reader.int64();
|
|
501
487
|
break;
|
|
502
|
-
case
|
|
488
|
+
case 58:
|
|
503
489
|
message.curatorDemotionThreshold = reader.string();
|
|
504
490
|
break;
|
|
505
|
-
case
|
|
491
|
+
case 59:
|
|
506
492
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
507
493
|
break;
|
|
508
|
-
case
|
|
494
|
+
case 60:
|
|
509
495
|
message.curatorUnbondCooldown = reader.int64();
|
|
510
496
|
break;
|
|
511
|
-
case
|
|
497
|
+
case 61:
|
|
512
498
|
message.makePermanentMinTrustLevel = reader.uint32();
|
|
513
499
|
break;
|
|
514
|
-
case
|
|
500
|
+
case 69:
|
|
515
501
|
message.maxMakePermanentPerDay = reader.uint32();
|
|
516
502
|
break;
|
|
517
|
-
case
|
|
503
|
+
case 62:
|
|
518
504
|
message.nonMemberCollabDreamStake = reader.string();
|
|
519
505
|
break;
|
|
520
|
-
case
|
|
506
|
+
case 63:
|
|
521
507
|
message.nonMemberCollabBurnFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
522
508
|
break;
|
|
523
|
-
case
|
|
509
|
+
case 64:
|
|
524
510
|
message.maxNonMemberCollaboratorsPerCollection = reader.uint32();
|
|
525
511
|
break;
|
|
526
|
-
case
|
|
512
|
+
case 65:
|
|
527
513
|
message.maxPromotionsPerBlock = reader.uint32();
|
|
528
514
|
break;
|
|
529
|
-
case
|
|
515
|
+
case 66:
|
|
530
516
|
message.endorserRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
531
517
|
break;
|
|
532
|
-
case
|
|
518
|
+
case 67:
|
|
533
519
|
message.collabInviterRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
534
520
|
break;
|
|
535
|
-
case
|
|
521
|
+
case 68:
|
|
536
522
|
message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
537
523
|
break;
|
|
538
524
|
default:
|
|
@@ -589,9 +575,7 @@ export const Params = {
|
|
|
589
575
|
message.maxFlagReasonLength = object.maxFlagReasonLength ?? 0;
|
|
590
576
|
message.sentinelCommitAmount = object.sentinelCommitAmount ?? "";
|
|
591
577
|
message.hideExpiryBlocks = object.hideExpiryBlocks !== undefined && object.hideExpiryBlocks !== null ? BigInt(object.hideExpiryBlocks.toString()) : BigInt(0);
|
|
592
|
-
message.appealFee = object.appealFee ?? "";
|
|
593
578
|
message.appealCooldownBlocks = object.appealCooldownBlocks !== undefined && object.appealCooldownBlocks !== null ? BigInt(object.appealCooldownBlocks.toString()) : BigInt(0);
|
|
594
|
-
message.appealDeadlineBlocks = object.appealDeadlineBlocks !== undefined && object.appealDeadlineBlocks !== null ? BigInt(object.appealDeadlineBlocks.toString()) : BigInt(0);
|
|
595
579
|
message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
|
|
596
580
|
message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
|
|
597
581
|
message.endorsementCreationFee = object.endorsementCreationFee ?? "";
|
|
@@ -756,15 +740,9 @@ export const Params = {
|
|
|
756
740
|
if (object.hide_expiry_blocks !== undefined && object.hide_expiry_blocks !== null) {
|
|
757
741
|
message.hideExpiryBlocks = BigInt(object.hide_expiry_blocks);
|
|
758
742
|
}
|
|
759
|
-
if (object.appeal_fee !== undefined && object.appeal_fee !== null) {
|
|
760
|
-
message.appealFee = object.appeal_fee;
|
|
761
|
-
}
|
|
762
743
|
if (object.appeal_cooldown_blocks !== undefined && object.appeal_cooldown_blocks !== null) {
|
|
763
744
|
message.appealCooldownBlocks = BigInt(object.appeal_cooldown_blocks);
|
|
764
745
|
}
|
|
765
|
-
if (object.appeal_deadline_blocks !== undefined && object.appeal_deadline_blocks !== null) {
|
|
766
|
-
message.appealDeadlineBlocks = BigInt(object.appeal_deadline_blocks);
|
|
767
|
-
}
|
|
768
746
|
if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
|
|
769
747
|
message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
|
|
770
748
|
}
|
|
@@ -889,9 +867,7 @@ export const Params = {
|
|
|
889
867
|
obj.max_flag_reason_length = message.maxFlagReasonLength === 0 ? undefined : message.maxFlagReasonLength;
|
|
890
868
|
obj.sentinel_commit_amount = message.sentinelCommitAmount === "" ? undefined : message.sentinelCommitAmount;
|
|
891
869
|
obj.hide_expiry_blocks = message.hideExpiryBlocks !== BigInt(0) ? message.hideExpiryBlocks?.toString() : undefined;
|
|
892
|
-
obj.appeal_fee = message.appealFee === "" ? undefined : message.appealFee;
|
|
893
870
|
obj.appeal_cooldown_blocks = message.appealCooldownBlocks !== BigInt(0) ? message.appealCooldownBlocks?.toString() : undefined;
|
|
894
|
-
obj.appeal_deadline_blocks = message.appealDeadlineBlocks !== BigInt(0) ? message.appealDeadlineBlocks?.toString() : undefined;
|
|
895
871
|
obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
|
|
896
872
|
obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
|
|
897
873
|
obj.endorsement_creation_fee = message.endorsementCreationFee === "" ? undefined : message.endorsementCreationFee;
|