@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.9
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/bundle.js +368 -332
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +244 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2629 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +152 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +189 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +139 -0
- package/esm/sparkdream/federation/v1/tx.js +4199 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +501 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +173 -0
- package/esm/sparkdream/federation/v1/types.js +2571 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/genesis.js +209 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5260 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +286 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +333 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/rep/v1/sentinel_activity.js +214 -0
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2439 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +102 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- 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/bundle.d.ts +13210 -11120
- package/sparkdream/bundle.js +368 -332
- package/sparkdream/client.d.ts +202 -57
- package/sparkdream/client.js +4 -1
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +78 -0
- package/sparkdream/federation/v1/genesis.js +247 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1541 -0
- package/sparkdream/federation/v1/query.js +2632 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +26 -0
- package/sparkdream/federation/v1/query.lcd.js +156 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +66 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +194 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +138 -0
- package/sparkdream/federation/v1/tx.amino.js +142 -0
- package/sparkdream/federation/v1/tx.d.ts +2311 -0
- package/sparkdream/federation/v1/tx.js +4203 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +337 -0
- package/sparkdream/federation/v1/tx.registry.js +505 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +64 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +178 -0
- package/sparkdream/federation/v1/types.d.ts +906 -0
- package/sparkdream/federation/v1/types.js +2588 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/genesis.d.ts +68 -0
- package/sparkdream/rep/v1/genesis.js +209 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/{forum → rep}/v1/member_report.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4197 -1129
- package/sparkdream/rep/v1/query.js +5263 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +286 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +137 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +332 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/rep/v1/sentinel_activity.d.ts +79 -0
- package/sparkdream/rep/v1/sentinel_activity.js +219 -0
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1467 -0
- package/sparkdream/rep/v1/tx.js +2440 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +62 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +101 -0
- package/sparkdream/rpc.query.d.ts +58 -34
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -326,7 +326,6 @@ function createBaseParams() {
|
|
|
326
326
|
return {
|
|
327
327
|
epochBlocks: BigInt(0),
|
|
328
328
|
seasonDurationEpochs: BigInt(0),
|
|
329
|
-
stakingApy: "",
|
|
330
329
|
unstakedDecayRate: "",
|
|
331
330
|
transferTaxRate: "",
|
|
332
331
|
maxTipAmount: "",
|
|
@@ -368,7 +367,6 @@ function createBaseParams() {
|
|
|
368
367
|
moderateSlashPenalty: "",
|
|
369
368
|
severeSlashPenalty: "",
|
|
370
369
|
zeroingSlashPenalty: "",
|
|
371
|
-
projectStakingApy: "",
|
|
372
370
|
projectCompletionBonusRate: "",
|
|
373
371
|
memberStakeRevenueShare: "",
|
|
374
372
|
tagStakeRevenueShare: "",
|
|
@@ -387,7 +385,32 @@ function createBaseParams() {
|
|
|
387
385
|
reputationDecayRate: "",
|
|
388
386
|
maxConvictionSharePerMember: "",
|
|
389
387
|
invitationStakeBurnRate: "",
|
|
390
|
-
maxReputationGainPerEpoch: ""
|
|
388
|
+
maxReputationGainPerEpoch: "",
|
|
389
|
+
maxStakingRewardsPerSeason: "",
|
|
390
|
+
stakedDecayRate: "",
|
|
391
|
+
newMemberDecayGraceEpochs: BigInt(0),
|
|
392
|
+
maxTreasuryBalance: "",
|
|
393
|
+
treasuryFundsInterims: false,
|
|
394
|
+
treasuryFundsRetroPgf: false,
|
|
395
|
+
maxInitiativeStakePerMember: "",
|
|
396
|
+
maxInitiativeRewardsPerSeason: "",
|
|
397
|
+
largeProjectBudgetThreshold: "",
|
|
398
|
+
projectCreationFee: "",
|
|
399
|
+
initiativeCreationFeeApprentice: "",
|
|
400
|
+
initiativeCreationFeeStandard: "",
|
|
401
|
+
permissionlessMinTrustLevel: 0,
|
|
402
|
+
permissionlessMaxTier: 0,
|
|
403
|
+
tagCreationFee: "",
|
|
404
|
+
maxSentinelRewardPool: "",
|
|
405
|
+
sentinelRewardPoolOverflowBurnRatio: "",
|
|
406
|
+
sentinelRewardEpochBlocks: BigInt(0),
|
|
407
|
+
minSentinelAccuracy: "",
|
|
408
|
+
minAppealsForAccuracy: BigInt(0),
|
|
409
|
+
minEpochActivityForReward: BigInt(0),
|
|
410
|
+
minAppealRate: "",
|
|
411
|
+
maxActiveInitiativesPerMember: 0,
|
|
412
|
+
maxActiveInterimsPerMember: 0,
|
|
413
|
+
maxDreamMintPerEpoch: ""
|
|
391
414
|
};
|
|
392
415
|
}
|
|
393
416
|
/**
|
|
@@ -406,191 +429,260 @@ exports.Params = {
|
|
|
406
429
|
if (message.seasonDurationEpochs !== BigInt(0)) {
|
|
407
430
|
writer.uint32(16).int64(message.seasonDurationEpochs);
|
|
408
431
|
}
|
|
409
|
-
if (message.stakingApy !== "") {
|
|
410
|
-
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.stakingApy, 18).atomics);
|
|
411
|
-
}
|
|
412
432
|
if (message.unstakedDecayRate !== "") {
|
|
413
|
-
writer.uint32(
|
|
433
|
+
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.unstakedDecayRate, 18).atomics);
|
|
414
434
|
}
|
|
415
435
|
if (message.transferTaxRate !== "") {
|
|
416
|
-
writer.uint32(
|
|
436
|
+
writer.uint32(34).string(math_1.Decimal.fromUserInput(message.transferTaxRate, 18).atomics);
|
|
417
437
|
}
|
|
418
438
|
if (message.maxTipAmount !== "") {
|
|
419
|
-
writer.uint32(
|
|
439
|
+
writer.uint32(42).string(message.maxTipAmount);
|
|
420
440
|
}
|
|
421
441
|
if (message.maxTipsPerEpoch !== 0) {
|
|
422
|
-
writer.uint32(
|
|
442
|
+
writer.uint32(48).uint32(message.maxTipsPerEpoch);
|
|
423
443
|
}
|
|
424
444
|
if (message.maxGiftAmount !== "") {
|
|
425
|
-
writer.uint32(
|
|
445
|
+
writer.uint32(58).string(message.maxGiftAmount);
|
|
426
446
|
}
|
|
427
447
|
if (message.giftOnlyToInvitees === true) {
|
|
428
|
-
writer.uint32(
|
|
448
|
+
writer.uint32(64).bool(message.giftOnlyToInvitees);
|
|
429
449
|
}
|
|
430
450
|
if (message.completerShare !== "") {
|
|
431
|
-
writer.uint32(
|
|
451
|
+
writer.uint32(74).string(math_1.Decimal.fromUserInput(message.completerShare, 18).atomics);
|
|
432
452
|
}
|
|
433
453
|
if (message.treasuryShare !== "") {
|
|
434
|
-
writer.uint32(
|
|
454
|
+
writer.uint32(82).string(math_1.Decimal.fromUserInput(message.treasuryShare, 18).atomics);
|
|
435
455
|
}
|
|
436
456
|
if (message.minReputationMultiplier !== "") {
|
|
437
|
-
writer.uint32(
|
|
457
|
+
writer.uint32(90).string(math_1.Decimal.fromUserInput(message.minReputationMultiplier, 18).atomics);
|
|
438
458
|
}
|
|
439
459
|
if (message.apprenticeTier !== undefined) {
|
|
440
|
-
exports.TierConfig.encode(message.apprenticeTier, writer.uint32(
|
|
460
|
+
exports.TierConfig.encode(message.apprenticeTier, writer.uint32(98).fork()).ldelim();
|
|
441
461
|
}
|
|
442
462
|
if (message.standardTier !== undefined) {
|
|
443
|
-
exports.TierConfig.encode(message.standardTier, writer.uint32(
|
|
463
|
+
exports.TierConfig.encode(message.standardTier, writer.uint32(106).fork()).ldelim();
|
|
444
464
|
}
|
|
445
465
|
if (message.expertTier !== undefined) {
|
|
446
|
-
exports.TierConfig.encode(message.expertTier, writer.uint32(
|
|
466
|
+
exports.TierConfig.encode(message.expertTier, writer.uint32(114).fork()).ldelim();
|
|
447
467
|
}
|
|
448
468
|
if (message.epicTier !== undefined) {
|
|
449
|
-
exports.TierConfig.encode(message.epicTier, writer.uint32(
|
|
469
|
+
exports.TierConfig.encode(message.epicTier, writer.uint32(122).fork()).ldelim();
|
|
450
470
|
}
|
|
451
471
|
if (message.convictionHalfLifeEpochs !== BigInt(0)) {
|
|
452
|
-
writer.uint32(
|
|
472
|
+
writer.uint32(128).int64(message.convictionHalfLifeEpochs);
|
|
453
473
|
}
|
|
454
474
|
if (message.externalConvictionRatio !== "") {
|
|
455
|
-
writer.uint32(
|
|
475
|
+
writer.uint32(138).string(math_1.Decimal.fromUserInput(message.externalConvictionRatio, 18).atomics);
|
|
456
476
|
}
|
|
457
477
|
if (message.convictionPerDream !== "") {
|
|
458
|
-
writer.uint32(
|
|
478
|
+
writer.uint32(146).string(math_1.Decimal.fromUserInput(message.convictionPerDream, 18).atomics);
|
|
459
479
|
}
|
|
460
480
|
if (message.defaultReviewPeriodEpochs !== BigInt(0)) {
|
|
461
|
-
writer.uint32(
|
|
481
|
+
writer.uint32(152).int64(message.defaultReviewPeriodEpochs);
|
|
462
482
|
}
|
|
463
483
|
if (message.defaultChallengePeriodEpochs !== BigInt(0)) {
|
|
464
|
-
writer.uint32(
|
|
484
|
+
writer.uint32(160).int64(message.defaultChallengePeriodEpochs);
|
|
465
485
|
}
|
|
466
486
|
if (message.minInvitationStake !== "") {
|
|
467
|
-
writer.uint32(
|
|
487
|
+
writer.uint32(170).string(message.minInvitationStake);
|
|
468
488
|
}
|
|
469
489
|
if (message.invitationAccountabilityEpochs !== BigInt(0)) {
|
|
470
|
-
writer.uint32(
|
|
490
|
+
writer.uint32(176).int64(message.invitationAccountabilityEpochs);
|
|
471
491
|
}
|
|
472
492
|
if (message.referralRewardRate !== "") {
|
|
473
|
-
writer.uint32(
|
|
493
|
+
writer.uint32(186).string(math_1.Decimal.fromUserInput(message.referralRewardRate, 18).atomics);
|
|
474
494
|
}
|
|
475
495
|
if (message.invitationCostMultiplier !== "") {
|
|
476
|
-
writer.uint32(
|
|
496
|
+
writer.uint32(194).string(math_1.Decimal.fromUserInput(message.invitationCostMultiplier, 18).atomics);
|
|
477
497
|
}
|
|
478
498
|
if (message.trustLevelConfig !== undefined) {
|
|
479
|
-
exports.TrustLevelConfig.encode(message.trustLevelConfig, writer.uint32(
|
|
499
|
+
exports.TrustLevelConfig.encode(message.trustLevelConfig, writer.uint32(202).fork()).ldelim();
|
|
480
500
|
}
|
|
481
501
|
if (message.minChallengeStake !== "") {
|
|
482
|
-
writer.uint32(
|
|
502
|
+
writer.uint32(210).string(message.minChallengeStake);
|
|
483
503
|
}
|
|
484
504
|
if (message.challengerRewardRate !== "") {
|
|
485
|
-
writer.uint32(
|
|
505
|
+
writer.uint32(218).string(math_1.Decimal.fromUserInput(message.challengerRewardRate, 18).atomics);
|
|
486
506
|
}
|
|
487
507
|
if (message.jurySize !== 0) {
|
|
488
|
-
writer.uint32(
|
|
508
|
+
writer.uint32(224).uint32(message.jurySize);
|
|
489
509
|
}
|
|
490
510
|
if (message.jurySuperMajority !== "") {
|
|
491
|
-
writer.uint32(
|
|
511
|
+
writer.uint32(234).string(math_1.Decimal.fromUserInput(message.jurySuperMajority, 18).atomics);
|
|
492
512
|
}
|
|
493
513
|
if (message.minJurorReputation !== "") {
|
|
494
|
-
writer.uint32(
|
|
514
|
+
writer.uint32(242).string(math_1.Decimal.fromUserInput(message.minJurorReputation, 18).atomics);
|
|
495
515
|
}
|
|
496
516
|
if (message.simpleComplexityBudget !== "") {
|
|
497
|
-
writer.uint32(
|
|
517
|
+
writer.uint32(250).string(message.simpleComplexityBudget);
|
|
498
518
|
}
|
|
499
519
|
if (message.standardComplexityBudget !== "") {
|
|
500
|
-
writer.uint32(
|
|
520
|
+
writer.uint32(258).string(message.standardComplexityBudget);
|
|
501
521
|
}
|
|
502
522
|
if (message.complexComplexityBudget !== "") {
|
|
503
|
-
writer.uint32(
|
|
523
|
+
writer.uint32(266).string(message.complexComplexityBudget);
|
|
504
524
|
}
|
|
505
525
|
if (message.expertComplexityBudget !== "") {
|
|
506
|
-
writer.uint32(
|
|
526
|
+
writer.uint32(274).string(message.expertComplexityBudget);
|
|
507
527
|
}
|
|
508
528
|
if (message.soloExpertBonusRate !== "") {
|
|
509
|
-
writer.uint32(
|
|
529
|
+
writer.uint32(282).string(math_1.Decimal.fromUserInput(message.soloExpertBonusRate, 18).atomics);
|
|
510
530
|
}
|
|
511
531
|
if (message.interimDeadlineEpochs !== BigInt(0)) {
|
|
512
|
-
writer.uint32(
|
|
532
|
+
writer.uint32(288).int64(message.interimDeadlineEpochs);
|
|
513
533
|
}
|
|
514
534
|
if (message.maxActiveChallengesPerCommittee !== 0) {
|
|
515
|
-
writer.uint32(
|
|
535
|
+
writer.uint32(296).uint32(message.maxActiveChallengesPerCommittee);
|
|
516
536
|
}
|
|
517
537
|
if (message.maxNewChallengesPerEpoch !== 0) {
|
|
518
|
-
writer.uint32(
|
|
538
|
+
writer.uint32(304).uint32(message.maxNewChallengesPerEpoch);
|
|
519
539
|
}
|
|
520
540
|
if (message.challengeQueueMaxSize !== 0) {
|
|
521
|
-
writer.uint32(
|
|
541
|
+
writer.uint32(312).uint32(message.challengeQueueMaxSize);
|
|
522
542
|
}
|
|
523
543
|
if (message.minorSlashPenalty !== "") {
|
|
524
|
-
writer.uint32(
|
|
544
|
+
writer.uint32(322).string(math_1.Decimal.fromUserInput(message.minorSlashPenalty, 18).atomics);
|
|
525
545
|
}
|
|
526
546
|
if (message.moderateSlashPenalty !== "") {
|
|
527
|
-
writer.uint32(
|
|
547
|
+
writer.uint32(330).string(math_1.Decimal.fromUserInput(message.moderateSlashPenalty, 18).atomics);
|
|
528
548
|
}
|
|
529
549
|
if (message.severeSlashPenalty !== "") {
|
|
530
|
-
writer.uint32(
|
|
550
|
+
writer.uint32(338).string(math_1.Decimal.fromUserInput(message.severeSlashPenalty, 18).atomics);
|
|
531
551
|
}
|
|
532
552
|
if (message.zeroingSlashPenalty !== "") {
|
|
533
|
-
writer.uint32(
|
|
534
|
-
}
|
|
535
|
-
if (message.projectStakingApy !== "") {
|
|
536
|
-
writer.uint32(362).string(math_1.Decimal.fromUserInput(message.projectStakingApy, 18).atomics);
|
|
553
|
+
writer.uint32(346).string(math_1.Decimal.fromUserInput(message.zeroingSlashPenalty, 18).atomics);
|
|
537
554
|
}
|
|
538
555
|
if (message.projectCompletionBonusRate !== "") {
|
|
539
|
-
writer.uint32(
|
|
556
|
+
writer.uint32(354).string(math_1.Decimal.fromUserInput(message.projectCompletionBonusRate, 18).atomics);
|
|
540
557
|
}
|
|
541
558
|
if (message.memberStakeRevenueShare !== "") {
|
|
542
|
-
writer.uint32(
|
|
559
|
+
writer.uint32(362).string(math_1.Decimal.fromUserInput(message.memberStakeRevenueShare, 18).atomics);
|
|
543
560
|
}
|
|
544
561
|
if (message.tagStakeRevenueShare !== "") {
|
|
545
|
-
writer.uint32(
|
|
562
|
+
writer.uint32(370).string(math_1.Decimal.fromUserInput(message.tagStakeRevenueShare, 18).atomics);
|
|
546
563
|
}
|
|
547
564
|
if (message.minStakeDurationSeconds !== BigInt(0)) {
|
|
548
|
-
writer.uint32(
|
|
565
|
+
writer.uint32(376).int64(message.minStakeDurationSeconds);
|
|
549
566
|
}
|
|
550
567
|
if (message.allowSelfMemberStake === true) {
|
|
551
|
-
writer.uint32(
|
|
568
|
+
writer.uint32(384).bool(message.allowSelfMemberStake);
|
|
552
569
|
}
|
|
553
570
|
if (message.challengeResponseDeadlineEpochs !== BigInt(0)) {
|
|
554
|
-
writer.uint32(
|
|
571
|
+
writer.uint32(392).int64(message.challengeResponseDeadlineEpochs);
|
|
555
572
|
}
|
|
556
573
|
if (message.giftCooldownBlocks !== BigInt(0)) {
|
|
557
|
-
writer.uint32(
|
|
574
|
+
writer.uint32(400).int64(message.giftCooldownBlocks);
|
|
558
575
|
}
|
|
559
576
|
if (message.maxGiftsPerSenderEpoch !== "") {
|
|
560
|
-
writer.uint32(
|
|
577
|
+
writer.uint32(410).string(message.maxGiftsPerSenderEpoch);
|
|
561
578
|
}
|
|
562
579
|
if (message.contentConvictionHalfLifeEpochs !== BigInt(0)) {
|
|
563
|
-
writer.uint32(
|
|
580
|
+
writer.uint32(416).int64(message.contentConvictionHalfLifeEpochs);
|
|
564
581
|
}
|
|
565
582
|
if (message.maxContentStakePerMember !== "") {
|
|
566
|
-
writer.uint32(
|
|
583
|
+
writer.uint32(426).string(message.maxContentStakePerMember);
|
|
567
584
|
}
|
|
568
585
|
if (message.maxAuthorBondPerContent !== "") {
|
|
569
|
-
writer.uint32(
|
|
586
|
+
writer.uint32(434).string(message.maxAuthorBondPerContent);
|
|
570
587
|
}
|
|
571
588
|
if (message.authorBondSlashOnModeration === true) {
|
|
572
|
-
writer.uint32(
|
|
589
|
+
writer.uint32(440).bool(message.authorBondSlashOnModeration);
|
|
573
590
|
}
|
|
574
591
|
if (message.contentChallengeRewardShare !== "") {
|
|
575
|
-
writer.uint32(
|
|
592
|
+
writer.uint32(450).string(math_1.Decimal.fromUserInput(message.contentChallengeRewardShare, 18).atomics);
|
|
576
593
|
}
|
|
577
594
|
if (message.convictionPropagationRatio !== "") {
|
|
578
|
-
writer.uint32(
|
|
595
|
+
writer.uint32(458).string(math_1.Decimal.fromUserInput(message.convictionPropagationRatio, 18).atomics);
|
|
579
596
|
}
|
|
580
597
|
if (message.maxTagsPerInitiative !== 0) {
|
|
581
|
-
writer.uint32(
|
|
598
|
+
writer.uint32(464).uint32(message.maxTagsPerInitiative);
|
|
582
599
|
}
|
|
583
600
|
if (message.reputationDecayRate !== "") {
|
|
584
|
-
writer.uint32(
|
|
601
|
+
writer.uint32(474).string(math_1.Decimal.fromUserInput(message.reputationDecayRate, 18).atomics);
|
|
585
602
|
}
|
|
586
603
|
if (message.maxConvictionSharePerMember !== "") {
|
|
587
|
-
writer.uint32(
|
|
604
|
+
writer.uint32(482).string(math_1.Decimal.fromUserInput(message.maxConvictionSharePerMember, 18).atomics);
|
|
588
605
|
}
|
|
589
606
|
if (message.invitationStakeBurnRate !== "") {
|
|
590
|
-
writer.uint32(
|
|
607
|
+
writer.uint32(490).string(math_1.Decimal.fromUserInput(message.invitationStakeBurnRate, 18).atomics);
|
|
591
608
|
}
|
|
592
609
|
if (message.maxReputationGainPerEpoch !== "") {
|
|
593
|
-
writer.uint32(
|
|
610
|
+
writer.uint32(498).string(math_1.Decimal.fromUserInput(message.maxReputationGainPerEpoch, 18).atomics);
|
|
611
|
+
}
|
|
612
|
+
if (message.maxStakingRewardsPerSeason !== "") {
|
|
613
|
+
writer.uint32(506).string(message.maxStakingRewardsPerSeason);
|
|
614
|
+
}
|
|
615
|
+
if (message.stakedDecayRate !== "") {
|
|
616
|
+
writer.uint32(514).string(math_1.Decimal.fromUserInput(message.stakedDecayRate, 18).atomics);
|
|
617
|
+
}
|
|
618
|
+
if (message.newMemberDecayGraceEpochs !== BigInt(0)) {
|
|
619
|
+
writer.uint32(520).int64(message.newMemberDecayGraceEpochs);
|
|
620
|
+
}
|
|
621
|
+
if (message.maxTreasuryBalance !== "") {
|
|
622
|
+
writer.uint32(530).string(message.maxTreasuryBalance);
|
|
623
|
+
}
|
|
624
|
+
if (message.treasuryFundsInterims === true) {
|
|
625
|
+
writer.uint32(536).bool(message.treasuryFundsInterims);
|
|
626
|
+
}
|
|
627
|
+
if (message.treasuryFundsRetroPgf === true) {
|
|
628
|
+
writer.uint32(544).bool(message.treasuryFundsRetroPgf);
|
|
629
|
+
}
|
|
630
|
+
if (message.maxInitiativeStakePerMember !== "") {
|
|
631
|
+
writer.uint32(554).string(message.maxInitiativeStakePerMember);
|
|
632
|
+
}
|
|
633
|
+
if (message.maxInitiativeRewardsPerSeason !== "") {
|
|
634
|
+
writer.uint32(562).string(message.maxInitiativeRewardsPerSeason);
|
|
635
|
+
}
|
|
636
|
+
if (message.largeProjectBudgetThreshold !== "") {
|
|
637
|
+
writer.uint32(570).string(message.largeProjectBudgetThreshold);
|
|
638
|
+
}
|
|
639
|
+
if (message.projectCreationFee !== "") {
|
|
640
|
+
writer.uint32(578).string(message.projectCreationFee);
|
|
641
|
+
}
|
|
642
|
+
if (message.initiativeCreationFeeApprentice !== "") {
|
|
643
|
+
writer.uint32(586).string(message.initiativeCreationFeeApprentice);
|
|
644
|
+
}
|
|
645
|
+
if (message.initiativeCreationFeeStandard !== "") {
|
|
646
|
+
writer.uint32(594).string(message.initiativeCreationFeeStandard);
|
|
647
|
+
}
|
|
648
|
+
if (message.permissionlessMinTrustLevel !== 0) {
|
|
649
|
+
writer.uint32(600).uint32(message.permissionlessMinTrustLevel);
|
|
650
|
+
}
|
|
651
|
+
if (message.permissionlessMaxTier !== 0) {
|
|
652
|
+
writer.uint32(608).uint32(message.permissionlessMaxTier);
|
|
653
|
+
}
|
|
654
|
+
if (message.tagCreationFee !== "") {
|
|
655
|
+
writer.uint32(618).string(message.tagCreationFee);
|
|
656
|
+
}
|
|
657
|
+
if (message.maxSentinelRewardPool !== "") {
|
|
658
|
+
writer.uint32(626).string(message.maxSentinelRewardPool);
|
|
659
|
+
}
|
|
660
|
+
if (message.sentinelRewardPoolOverflowBurnRatio !== "") {
|
|
661
|
+
writer.uint32(634).string(math_1.Decimal.fromUserInput(message.sentinelRewardPoolOverflowBurnRatio, 18).atomics);
|
|
662
|
+
}
|
|
663
|
+
if (message.sentinelRewardEpochBlocks !== BigInt(0)) {
|
|
664
|
+
writer.uint32(640).uint64(message.sentinelRewardEpochBlocks);
|
|
665
|
+
}
|
|
666
|
+
if (message.minSentinelAccuracy !== "") {
|
|
667
|
+
writer.uint32(650).string(math_1.Decimal.fromUserInput(message.minSentinelAccuracy, 18).atomics);
|
|
668
|
+
}
|
|
669
|
+
if (message.minAppealsForAccuracy !== BigInt(0)) {
|
|
670
|
+
writer.uint32(656).uint64(message.minAppealsForAccuracy);
|
|
671
|
+
}
|
|
672
|
+
if (message.minEpochActivityForReward !== BigInt(0)) {
|
|
673
|
+
writer.uint32(664).uint64(message.minEpochActivityForReward);
|
|
674
|
+
}
|
|
675
|
+
if (message.minAppealRate !== "") {
|
|
676
|
+
writer.uint32(674).string(math_1.Decimal.fromUserInput(message.minAppealRate, 18).atomics);
|
|
677
|
+
}
|
|
678
|
+
if (message.maxActiveInitiativesPerMember !== 0) {
|
|
679
|
+
writer.uint32(680).uint32(message.maxActiveInitiativesPerMember);
|
|
680
|
+
}
|
|
681
|
+
if (message.maxActiveInterimsPerMember !== 0) {
|
|
682
|
+
writer.uint32(688).uint32(message.maxActiveInterimsPerMember);
|
|
683
|
+
}
|
|
684
|
+
if (message.maxDreamMintPerEpoch !== "") {
|
|
685
|
+
writer.uint32(698).string(message.maxDreamMintPerEpoch);
|
|
594
686
|
}
|
|
595
687
|
return writer;
|
|
596
688
|
},
|
|
@@ -608,190 +700,259 @@ exports.Params = {
|
|
|
608
700
|
message.seasonDurationEpochs = reader.int64();
|
|
609
701
|
break;
|
|
610
702
|
case 3:
|
|
611
|
-
message.
|
|
703
|
+
message.unstakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
612
704
|
break;
|
|
613
705
|
case 4:
|
|
614
|
-
message.
|
|
706
|
+
message.transferTaxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
615
707
|
break;
|
|
616
708
|
case 5:
|
|
617
|
-
message.
|
|
709
|
+
message.maxTipAmount = reader.string();
|
|
618
710
|
break;
|
|
619
711
|
case 6:
|
|
620
|
-
message.
|
|
712
|
+
message.maxTipsPerEpoch = reader.uint32();
|
|
621
713
|
break;
|
|
622
714
|
case 7:
|
|
623
|
-
message.
|
|
715
|
+
message.maxGiftAmount = reader.string();
|
|
624
716
|
break;
|
|
625
717
|
case 8:
|
|
626
|
-
message.
|
|
718
|
+
message.giftOnlyToInvitees = reader.bool();
|
|
627
719
|
break;
|
|
628
720
|
case 9:
|
|
629
|
-
message.
|
|
721
|
+
message.completerShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
630
722
|
break;
|
|
631
723
|
case 10:
|
|
632
|
-
message.
|
|
724
|
+
message.treasuryShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
633
725
|
break;
|
|
634
726
|
case 11:
|
|
635
|
-
message.
|
|
727
|
+
message.minReputationMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
636
728
|
break;
|
|
637
729
|
case 12:
|
|
638
|
-
message.
|
|
730
|
+
message.apprenticeTier = exports.TierConfig.decode(reader, reader.uint32());
|
|
639
731
|
break;
|
|
640
732
|
case 13:
|
|
641
|
-
message.
|
|
733
|
+
message.standardTier = exports.TierConfig.decode(reader, reader.uint32());
|
|
642
734
|
break;
|
|
643
735
|
case 14:
|
|
644
|
-
message.
|
|
736
|
+
message.expertTier = exports.TierConfig.decode(reader, reader.uint32());
|
|
645
737
|
break;
|
|
646
738
|
case 15:
|
|
647
|
-
message.
|
|
739
|
+
message.epicTier = exports.TierConfig.decode(reader, reader.uint32());
|
|
648
740
|
break;
|
|
649
741
|
case 16:
|
|
650
|
-
message.
|
|
742
|
+
message.convictionHalfLifeEpochs = reader.int64();
|
|
651
743
|
break;
|
|
652
744
|
case 17:
|
|
653
|
-
message.
|
|
745
|
+
message.externalConvictionRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
654
746
|
break;
|
|
655
747
|
case 18:
|
|
656
|
-
message.
|
|
748
|
+
message.convictionPerDream = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
657
749
|
break;
|
|
658
750
|
case 19:
|
|
659
|
-
message.
|
|
751
|
+
message.defaultReviewPeriodEpochs = reader.int64();
|
|
660
752
|
break;
|
|
661
753
|
case 20:
|
|
662
|
-
message.
|
|
754
|
+
message.defaultChallengePeriodEpochs = reader.int64();
|
|
663
755
|
break;
|
|
664
756
|
case 21:
|
|
665
|
-
message.
|
|
757
|
+
message.minInvitationStake = reader.string();
|
|
666
758
|
break;
|
|
667
759
|
case 22:
|
|
668
|
-
message.
|
|
760
|
+
message.invitationAccountabilityEpochs = reader.int64();
|
|
669
761
|
break;
|
|
670
762
|
case 23:
|
|
671
|
-
message.
|
|
763
|
+
message.referralRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
672
764
|
break;
|
|
673
765
|
case 24:
|
|
674
|
-
message.
|
|
766
|
+
message.invitationCostMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
675
767
|
break;
|
|
676
768
|
case 25:
|
|
677
|
-
message.
|
|
769
|
+
message.trustLevelConfig = exports.TrustLevelConfig.decode(reader, reader.uint32());
|
|
678
770
|
break;
|
|
679
771
|
case 26:
|
|
680
|
-
message.
|
|
772
|
+
message.minChallengeStake = reader.string();
|
|
681
773
|
break;
|
|
682
774
|
case 27:
|
|
683
|
-
message.
|
|
775
|
+
message.challengerRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
684
776
|
break;
|
|
685
777
|
case 28:
|
|
686
|
-
message.
|
|
778
|
+
message.jurySize = reader.uint32();
|
|
687
779
|
break;
|
|
688
780
|
case 29:
|
|
689
|
-
message.
|
|
781
|
+
message.jurySuperMajority = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
690
782
|
break;
|
|
691
783
|
case 30:
|
|
692
|
-
message.
|
|
784
|
+
message.minJurorReputation = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
693
785
|
break;
|
|
694
786
|
case 31:
|
|
695
|
-
message.
|
|
787
|
+
message.simpleComplexityBudget = reader.string();
|
|
696
788
|
break;
|
|
697
789
|
case 32:
|
|
698
|
-
message.
|
|
790
|
+
message.standardComplexityBudget = reader.string();
|
|
699
791
|
break;
|
|
700
792
|
case 33:
|
|
701
|
-
message.
|
|
793
|
+
message.complexComplexityBudget = reader.string();
|
|
702
794
|
break;
|
|
703
795
|
case 34:
|
|
704
|
-
message.
|
|
796
|
+
message.expertComplexityBudget = reader.string();
|
|
705
797
|
break;
|
|
706
798
|
case 35:
|
|
707
|
-
message.
|
|
799
|
+
message.soloExpertBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
708
800
|
break;
|
|
709
801
|
case 36:
|
|
710
|
-
message.
|
|
802
|
+
message.interimDeadlineEpochs = reader.int64();
|
|
711
803
|
break;
|
|
712
804
|
case 37:
|
|
713
|
-
message.
|
|
805
|
+
message.maxActiveChallengesPerCommittee = reader.uint32();
|
|
714
806
|
break;
|
|
715
807
|
case 38:
|
|
716
|
-
message.
|
|
808
|
+
message.maxNewChallengesPerEpoch = reader.uint32();
|
|
717
809
|
break;
|
|
718
810
|
case 39:
|
|
719
|
-
message.
|
|
811
|
+
message.challengeQueueMaxSize = reader.uint32();
|
|
720
812
|
break;
|
|
721
813
|
case 40:
|
|
722
|
-
message.
|
|
814
|
+
message.minorSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
723
815
|
break;
|
|
724
816
|
case 41:
|
|
725
|
-
message.
|
|
817
|
+
message.moderateSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
726
818
|
break;
|
|
727
819
|
case 42:
|
|
728
|
-
message.
|
|
820
|
+
message.severeSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
729
821
|
break;
|
|
730
822
|
case 43:
|
|
731
|
-
message.
|
|
823
|
+
message.zeroingSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
732
824
|
break;
|
|
733
825
|
case 44:
|
|
734
|
-
message.
|
|
826
|
+
message.projectCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
735
827
|
break;
|
|
736
828
|
case 45:
|
|
737
|
-
message.
|
|
829
|
+
message.memberStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
738
830
|
break;
|
|
739
831
|
case 46:
|
|
740
|
-
message.
|
|
832
|
+
message.tagStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
741
833
|
break;
|
|
742
834
|
case 47:
|
|
743
|
-
message.
|
|
835
|
+
message.minStakeDurationSeconds = reader.int64();
|
|
744
836
|
break;
|
|
745
837
|
case 48:
|
|
746
|
-
message.
|
|
838
|
+
message.allowSelfMemberStake = reader.bool();
|
|
747
839
|
break;
|
|
748
840
|
case 49:
|
|
749
|
-
message.
|
|
841
|
+
message.challengeResponseDeadlineEpochs = reader.int64();
|
|
750
842
|
break;
|
|
751
843
|
case 50:
|
|
752
|
-
message.
|
|
844
|
+
message.giftCooldownBlocks = reader.int64();
|
|
753
845
|
break;
|
|
754
846
|
case 51:
|
|
755
|
-
message.
|
|
847
|
+
message.maxGiftsPerSenderEpoch = reader.string();
|
|
756
848
|
break;
|
|
757
849
|
case 52:
|
|
758
|
-
message.
|
|
850
|
+
message.contentConvictionHalfLifeEpochs = reader.int64();
|
|
759
851
|
break;
|
|
760
852
|
case 53:
|
|
761
|
-
message.
|
|
853
|
+
message.maxContentStakePerMember = reader.string();
|
|
762
854
|
break;
|
|
763
855
|
case 54:
|
|
764
|
-
message.
|
|
856
|
+
message.maxAuthorBondPerContent = reader.string();
|
|
765
857
|
break;
|
|
766
858
|
case 55:
|
|
767
|
-
message.
|
|
859
|
+
message.authorBondSlashOnModeration = reader.bool();
|
|
768
860
|
break;
|
|
769
861
|
case 56:
|
|
770
|
-
message.
|
|
862
|
+
message.contentChallengeRewardShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
771
863
|
break;
|
|
772
864
|
case 57:
|
|
773
|
-
message.
|
|
865
|
+
message.convictionPropagationRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
774
866
|
break;
|
|
775
867
|
case 58:
|
|
776
|
-
message.
|
|
868
|
+
message.maxTagsPerInitiative = reader.uint32();
|
|
777
869
|
break;
|
|
778
870
|
case 59:
|
|
779
|
-
message.
|
|
871
|
+
message.reputationDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
780
872
|
break;
|
|
781
873
|
case 60:
|
|
782
|
-
message.
|
|
874
|
+
message.maxConvictionSharePerMember = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
783
875
|
break;
|
|
784
876
|
case 61:
|
|
785
|
-
message.
|
|
877
|
+
message.invitationStakeBurnRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
786
878
|
break;
|
|
787
879
|
case 62:
|
|
788
|
-
message.
|
|
880
|
+
message.maxReputationGainPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
789
881
|
break;
|
|
790
882
|
case 63:
|
|
791
|
-
message.
|
|
883
|
+
message.maxStakingRewardsPerSeason = reader.string();
|
|
792
884
|
break;
|
|
793
885
|
case 64:
|
|
794
|
-
message.
|
|
886
|
+
message.stakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
887
|
+
break;
|
|
888
|
+
case 65:
|
|
889
|
+
message.newMemberDecayGraceEpochs = reader.int64();
|
|
890
|
+
break;
|
|
891
|
+
case 66:
|
|
892
|
+
message.maxTreasuryBalance = reader.string();
|
|
893
|
+
break;
|
|
894
|
+
case 67:
|
|
895
|
+
message.treasuryFundsInterims = reader.bool();
|
|
896
|
+
break;
|
|
897
|
+
case 68:
|
|
898
|
+
message.treasuryFundsRetroPgf = reader.bool();
|
|
899
|
+
break;
|
|
900
|
+
case 69:
|
|
901
|
+
message.maxInitiativeStakePerMember = reader.string();
|
|
902
|
+
break;
|
|
903
|
+
case 70:
|
|
904
|
+
message.maxInitiativeRewardsPerSeason = reader.string();
|
|
905
|
+
break;
|
|
906
|
+
case 71:
|
|
907
|
+
message.largeProjectBudgetThreshold = reader.string();
|
|
908
|
+
break;
|
|
909
|
+
case 72:
|
|
910
|
+
message.projectCreationFee = reader.string();
|
|
911
|
+
break;
|
|
912
|
+
case 73:
|
|
913
|
+
message.initiativeCreationFeeApprentice = reader.string();
|
|
914
|
+
break;
|
|
915
|
+
case 74:
|
|
916
|
+
message.initiativeCreationFeeStandard = reader.string();
|
|
917
|
+
break;
|
|
918
|
+
case 75:
|
|
919
|
+
message.permissionlessMinTrustLevel = reader.uint32();
|
|
920
|
+
break;
|
|
921
|
+
case 76:
|
|
922
|
+
message.permissionlessMaxTier = reader.uint32();
|
|
923
|
+
break;
|
|
924
|
+
case 77:
|
|
925
|
+
message.tagCreationFee = reader.string();
|
|
926
|
+
break;
|
|
927
|
+
case 78:
|
|
928
|
+
message.maxSentinelRewardPool = reader.string();
|
|
929
|
+
break;
|
|
930
|
+
case 79:
|
|
931
|
+
message.sentinelRewardPoolOverflowBurnRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
932
|
+
break;
|
|
933
|
+
case 80:
|
|
934
|
+
message.sentinelRewardEpochBlocks = reader.uint64();
|
|
935
|
+
break;
|
|
936
|
+
case 81:
|
|
937
|
+
message.minSentinelAccuracy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
938
|
+
break;
|
|
939
|
+
case 82:
|
|
940
|
+
message.minAppealsForAccuracy = reader.uint64();
|
|
941
|
+
break;
|
|
942
|
+
case 83:
|
|
943
|
+
message.minEpochActivityForReward = reader.uint64();
|
|
944
|
+
break;
|
|
945
|
+
case 84:
|
|
946
|
+
message.minAppealRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
947
|
+
break;
|
|
948
|
+
case 85:
|
|
949
|
+
message.maxActiveInitiativesPerMember = reader.uint32();
|
|
950
|
+
break;
|
|
951
|
+
case 86:
|
|
952
|
+
message.maxActiveInterimsPerMember = reader.uint32();
|
|
953
|
+
break;
|
|
954
|
+
case 87:
|
|
955
|
+
message.maxDreamMintPerEpoch = reader.string();
|
|
795
956
|
break;
|
|
796
957
|
default:
|
|
797
958
|
reader.skipType(tag & 7);
|
|
@@ -804,7 +965,6 @@ exports.Params = {
|
|
|
804
965
|
const message = createBaseParams();
|
|
805
966
|
message.epochBlocks = object.epochBlocks !== undefined && object.epochBlocks !== null ? BigInt(object.epochBlocks.toString()) : BigInt(0);
|
|
806
967
|
message.seasonDurationEpochs = object.seasonDurationEpochs !== undefined && object.seasonDurationEpochs !== null ? BigInt(object.seasonDurationEpochs.toString()) : BigInt(0);
|
|
807
|
-
message.stakingApy = object.stakingApy ?? "";
|
|
808
968
|
message.unstakedDecayRate = object.unstakedDecayRate ?? "";
|
|
809
969
|
message.transferTaxRate = object.transferTaxRate ?? "";
|
|
810
970
|
message.maxTipAmount = object.maxTipAmount ?? "";
|
|
@@ -846,7 +1006,6 @@ exports.Params = {
|
|
|
846
1006
|
message.moderateSlashPenalty = object.moderateSlashPenalty ?? "";
|
|
847
1007
|
message.severeSlashPenalty = object.severeSlashPenalty ?? "";
|
|
848
1008
|
message.zeroingSlashPenalty = object.zeroingSlashPenalty ?? "";
|
|
849
|
-
message.projectStakingApy = object.projectStakingApy ?? "";
|
|
850
1009
|
message.projectCompletionBonusRate = object.projectCompletionBonusRate ?? "";
|
|
851
1010
|
message.memberStakeRevenueShare = object.memberStakeRevenueShare ?? "";
|
|
852
1011
|
message.tagStakeRevenueShare = object.tagStakeRevenueShare ?? "";
|
|
@@ -866,6 +1025,31 @@ exports.Params = {
|
|
|
866
1025
|
message.maxConvictionSharePerMember = object.maxConvictionSharePerMember ?? "";
|
|
867
1026
|
message.invitationStakeBurnRate = object.invitationStakeBurnRate ?? "";
|
|
868
1027
|
message.maxReputationGainPerEpoch = object.maxReputationGainPerEpoch ?? "";
|
|
1028
|
+
message.maxStakingRewardsPerSeason = object.maxStakingRewardsPerSeason ?? "";
|
|
1029
|
+
message.stakedDecayRate = object.stakedDecayRate ?? "";
|
|
1030
|
+
message.newMemberDecayGraceEpochs = object.newMemberDecayGraceEpochs !== undefined && object.newMemberDecayGraceEpochs !== null ? BigInt(object.newMemberDecayGraceEpochs.toString()) : BigInt(0);
|
|
1031
|
+
message.maxTreasuryBalance = object.maxTreasuryBalance ?? "";
|
|
1032
|
+
message.treasuryFundsInterims = object.treasuryFundsInterims ?? false;
|
|
1033
|
+
message.treasuryFundsRetroPgf = object.treasuryFundsRetroPgf ?? false;
|
|
1034
|
+
message.maxInitiativeStakePerMember = object.maxInitiativeStakePerMember ?? "";
|
|
1035
|
+
message.maxInitiativeRewardsPerSeason = object.maxInitiativeRewardsPerSeason ?? "";
|
|
1036
|
+
message.largeProjectBudgetThreshold = object.largeProjectBudgetThreshold ?? "";
|
|
1037
|
+
message.projectCreationFee = object.projectCreationFee ?? "";
|
|
1038
|
+
message.initiativeCreationFeeApprentice = object.initiativeCreationFeeApprentice ?? "";
|
|
1039
|
+
message.initiativeCreationFeeStandard = object.initiativeCreationFeeStandard ?? "";
|
|
1040
|
+
message.permissionlessMinTrustLevel = object.permissionlessMinTrustLevel ?? 0;
|
|
1041
|
+
message.permissionlessMaxTier = object.permissionlessMaxTier ?? 0;
|
|
1042
|
+
message.tagCreationFee = object.tagCreationFee ?? "";
|
|
1043
|
+
message.maxSentinelRewardPool = object.maxSentinelRewardPool ?? "";
|
|
1044
|
+
message.sentinelRewardPoolOverflowBurnRatio = object.sentinelRewardPoolOverflowBurnRatio ?? "";
|
|
1045
|
+
message.sentinelRewardEpochBlocks = object.sentinelRewardEpochBlocks !== undefined && object.sentinelRewardEpochBlocks !== null ? BigInt(object.sentinelRewardEpochBlocks.toString()) : BigInt(0);
|
|
1046
|
+
message.minSentinelAccuracy = object.minSentinelAccuracy ?? "";
|
|
1047
|
+
message.minAppealsForAccuracy = object.minAppealsForAccuracy !== undefined && object.minAppealsForAccuracy !== null ? BigInt(object.minAppealsForAccuracy.toString()) : BigInt(0);
|
|
1048
|
+
message.minEpochActivityForReward = object.minEpochActivityForReward !== undefined && object.minEpochActivityForReward !== null ? BigInt(object.minEpochActivityForReward.toString()) : BigInt(0);
|
|
1049
|
+
message.minAppealRate = object.minAppealRate ?? "";
|
|
1050
|
+
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
1051
|
+
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
1052
|
+
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
869
1053
|
return message;
|
|
870
1054
|
},
|
|
871
1055
|
fromAmino(object) {
|
|
@@ -876,9 +1060,6 @@ exports.Params = {
|
|
|
876
1060
|
if (object.season_duration_epochs !== undefined && object.season_duration_epochs !== null) {
|
|
877
1061
|
message.seasonDurationEpochs = BigInt(object.season_duration_epochs);
|
|
878
1062
|
}
|
|
879
|
-
if (object.staking_apy !== undefined && object.staking_apy !== null) {
|
|
880
|
-
message.stakingApy = object.staking_apy;
|
|
881
|
-
}
|
|
882
1063
|
if (object.unstaked_decay_rate !== undefined && object.unstaked_decay_rate !== null) {
|
|
883
1064
|
message.unstakedDecayRate = object.unstaked_decay_rate;
|
|
884
1065
|
}
|
|
@@ -1002,9 +1183,6 @@ exports.Params = {
|
|
|
1002
1183
|
if (object.zeroing_slash_penalty !== undefined && object.zeroing_slash_penalty !== null) {
|
|
1003
1184
|
message.zeroingSlashPenalty = object.zeroing_slash_penalty;
|
|
1004
1185
|
}
|
|
1005
|
-
if (object.project_staking_apy !== undefined && object.project_staking_apy !== null) {
|
|
1006
|
-
message.projectStakingApy = object.project_staking_apy;
|
|
1007
|
-
}
|
|
1008
1186
|
if (object.project_completion_bonus_rate !== undefined && object.project_completion_bonus_rate !== null) {
|
|
1009
1187
|
message.projectCompletionBonusRate = object.project_completion_bonus_rate;
|
|
1010
1188
|
}
|
|
@@ -1062,13 +1240,87 @@ exports.Params = {
|
|
|
1062
1240
|
if (object.max_reputation_gain_per_epoch !== undefined && object.max_reputation_gain_per_epoch !== null) {
|
|
1063
1241
|
message.maxReputationGainPerEpoch = object.max_reputation_gain_per_epoch;
|
|
1064
1242
|
}
|
|
1243
|
+
if (object.max_staking_rewards_per_season !== undefined && object.max_staking_rewards_per_season !== null) {
|
|
1244
|
+
message.maxStakingRewardsPerSeason = object.max_staking_rewards_per_season;
|
|
1245
|
+
}
|
|
1246
|
+
if (object.staked_decay_rate !== undefined && object.staked_decay_rate !== null) {
|
|
1247
|
+
message.stakedDecayRate = object.staked_decay_rate;
|
|
1248
|
+
}
|
|
1249
|
+
if (object.new_member_decay_grace_epochs !== undefined && object.new_member_decay_grace_epochs !== null) {
|
|
1250
|
+
message.newMemberDecayGraceEpochs = BigInt(object.new_member_decay_grace_epochs);
|
|
1251
|
+
}
|
|
1252
|
+
if (object.max_treasury_balance !== undefined && object.max_treasury_balance !== null) {
|
|
1253
|
+
message.maxTreasuryBalance = object.max_treasury_balance;
|
|
1254
|
+
}
|
|
1255
|
+
if (object.treasury_funds_interims !== undefined && object.treasury_funds_interims !== null) {
|
|
1256
|
+
message.treasuryFundsInterims = object.treasury_funds_interims;
|
|
1257
|
+
}
|
|
1258
|
+
if (object.treasury_funds_retro_pgf !== undefined && object.treasury_funds_retro_pgf !== null) {
|
|
1259
|
+
message.treasuryFundsRetroPgf = object.treasury_funds_retro_pgf;
|
|
1260
|
+
}
|
|
1261
|
+
if (object.max_initiative_stake_per_member !== undefined && object.max_initiative_stake_per_member !== null) {
|
|
1262
|
+
message.maxInitiativeStakePerMember = object.max_initiative_stake_per_member;
|
|
1263
|
+
}
|
|
1264
|
+
if (object.max_initiative_rewards_per_season !== undefined && object.max_initiative_rewards_per_season !== null) {
|
|
1265
|
+
message.maxInitiativeRewardsPerSeason = object.max_initiative_rewards_per_season;
|
|
1266
|
+
}
|
|
1267
|
+
if (object.large_project_budget_threshold !== undefined && object.large_project_budget_threshold !== null) {
|
|
1268
|
+
message.largeProjectBudgetThreshold = object.large_project_budget_threshold;
|
|
1269
|
+
}
|
|
1270
|
+
if (object.project_creation_fee !== undefined && object.project_creation_fee !== null) {
|
|
1271
|
+
message.projectCreationFee = object.project_creation_fee;
|
|
1272
|
+
}
|
|
1273
|
+
if (object.initiative_creation_fee_apprentice !== undefined && object.initiative_creation_fee_apprentice !== null) {
|
|
1274
|
+
message.initiativeCreationFeeApprentice = object.initiative_creation_fee_apprentice;
|
|
1275
|
+
}
|
|
1276
|
+
if (object.initiative_creation_fee_standard !== undefined && object.initiative_creation_fee_standard !== null) {
|
|
1277
|
+
message.initiativeCreationFeeStandard = object.initiative_creation_fee_standard;
|
|
1278
|
+
}
|
|
1279
|
+
if (object.permissionless_min_trust_level !== undefined && object.permissionless_min_trust_level !== null) {
|
|
1280
|
+
message.permissionlessMinTrustLevel = object.permissionless_min_trust_level;
|
|
1281
|
+
}
|
|
1282
|
+
if (object.permissionless_max_tier !== undefined && object.permissionless_max_tier !== null) {
|
|
1283
|
+
message.permissionlessMaxTier = object.permissionless_max_tier;
|
|
1284
|
+
}
|
|
1285
|
+
if (object.tag_creation_fee !== undefined && object.tag_creation_fee !== null) {
|
|
1286
|
+
message.tagCreationFee = object.tag_creation_fee;
|
|
1287
|
+
}
|
|
1288
|
+
if (object.max_sentinel_reward_pool !== undefined && object.max_sentinel_reward_pool !== null) {
|
|
1289
|
+
message.maxSentinelRewardPool = object.max_sentinel_reward_pool;
|
|
1290
|
+
}
|
|
1291
|
+
if (object.sentinel_reward_pool_overflow_burn_ratio !== undefined && object.sentinel_reward_pool_overflow_burn_ratio !== null) {
|
|
1292
|
+
message.sentinelRewardPoolOverflowBurnRatio = object.sentinel_reward_pool_overflow_burn_ratio;
|
|
1293
|
+
}
|
|
1294
|
+
if (object.sentinel_reward_epoch_blocks !== undefined && object.sentinel_reward_epoch_blocks !== null) {
|
|
1295
|
+
message.sentinelRewardEpochBlocks = BigInt(object.sentinel_reward_epoch_blocks);
|
|
1296
|
+
}
|
|
1297
|
+
if (object.min_sentinel_accuracy !== undefined && object.min_sentinel_accuracy !== null) {
|
|
1298
|
+
message.minSentinelAccuracy = object.min_sentinel_accuracy;
|
|
1299
|
+
}
|
|
1300
|
+
if (object.min_appeals_for_accuracy !== undefined && object.min_appeals_for_accuracy !== null) {
|
|
1301
|
+
message.minAppealsForAccuracy = BigInt(object.min_appeals_for_accuracy);
|
|
1302
|
+
}
|
|
1303
|
+
if (object.min_epoch_activity_for_reward !== undefined && object.min_epoch_activity_for_reward !== null) {
|
|
1304
|
+
message.minEpochActivityForReward = BigInt(object.min_epoch_activity_for_reward);
|
|
1305
|
+
}
|
|
1306
|
+
if (object.min_appeal_rate !== undefined && object.min_appeal_rate !== null) {
|
|
1307
|
+
message.minAppealRate = object.min_appeal_rate;
|
|
1308
|
+
}
|
|
1309
|
+
if (object.max_active_initiatives_per_member !== undefined && object.max_active_initiatives_per_member !== null) {
|
|
1310
|
+
message.maxActiveInitiativesPerMember = object.max_active_initiatives_per_member;
|
|
1311
|
+
}
|
|
1312
|
+
if (object.max_active_interims_per_member !== undefined && object.max_active_interims_per_member !== null) {
|
|
1313
|
+
message.maxActiveInterimsPerMember = object.max_active_interims_per_member;
|
|
1314
|
+
}
|
|
1315
|
+
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
1316
|
+
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
1317
|
+
}
|
|
1065
1318
|
return message;
|
|
1066
1319
|
},
|
|
1067
1320
|
toAmino(message) {
|
|
1068
1321
|
const obj = {};
|
|
1069
1322
|
obj.epoch_blocks = message.epochBlocks !== BigInt(0) ? message.epochBlocks?.toString() : undefined;
|
|
1070
1323
|
obj.season_duration_epochs = message.seasonDurationEpochs !== BigInt(0) ? message.seasonDurationEpochs?.toString() : undefined;
|
|
1071
|
-
obj.staking_apy = message.stakingApy === "" ? undefined : message.stakingApy;
|
|
1072
1324
|
obj.unstaked_decay_rate = message.unstakedDecayRate === "" ? undefined : message.unstakedDecayRate;
|
|
1073
1325
|
obj.transfer_tax_rate = message.transferTaxRate === "" ? undefined : message.transferTaxRate;
|
|
1074
1326
|
obj.max_tip_amount = message.maxTipAmount === "" ? undefined : message.maxTipAmount;
|
|
@@ -1110,7 +1362,6 @@ exports.Params = {
|
|
|
1110
1362
|
obj.moderate_slash_penalty = message.moderateSlashPenalty === "" ? undefined : message.moderateSlashPenalty;
|
|
1111
1363
|
obj.severe_slash_penalty = message.severeSlashPenalty === "" ? undefined : message.severeSlashPenalty;
|
|
1112
1364
|
obj.zeroing_slash_penalty = message.zeroingSlashPenalty === "" ? undefined : message.zeroingSlashPenalty;
|
|
1113
|
-
obj.project_staking_apy = message.projectStakingApy === "" ? undefined : message.projectStakingApy;
|
|
1114
1365
|
obj.project_completion_bonus_rate = message.projectCompletionBonusRate === "" ? undefined : message.projectCompletionBonusRate;
|
|
1115
1366
|
obj.member_stake_revenue_share = message.memberStakeRevenueShare === "" ? undefined : message.memberStakeRevenueShare;
|
|
1116
1367
|
obj.tag_stake_revenue_share = message.tagStakeRevenueShare === "" ? undefined : message.tagStakeRevenueShare;
|
|
@@ -1130,6 +1381,31 @@ exports.Params = {
|
|
|
1130
1381
|
obj.max_conviction_share_per_member = message.maxConvictionSharePerMember === "" ? undefined : message.maxConvictionSharePerMember;
|
|
1131
1382
|
obj.invitation_stake_burn_rate = message.invitationStakeBurnRate === "" ? undefined : message.invitationStakeBurnRate;
|
|
1132
1383
|
obj.max_reputation_gain_per_epoch = message.maxReputationGainPerEpoch === "" ? undefined : message.maxReputationGainPerEpoch;
|
|
1384
|
+
obj.max_staking_rewards_per_season = message.maxStakingRewardsPerSeason === "" ? undefined : message.maxStakingRewardsPerSeason;
|
|
1385
|
+
obj.staked_decay_rate = message.stakedDecayRate === "" ? undefined : message.stakedDecayRate;
|
|
1386
|
+
obj.new_member_decay_grace_epochs = message.newMemberDecayGraceEpochs !== BigInt(0) ? message.newMemberDecayGraceEpochs?.toString() : undefined;
|
|
1387
|
+
obj.max_treasury_balance = message.maxTreasuryBalance === "" ? undefined : message.maxTreasuryBalance;
|
|
1388
|
+
obj.treasury_funds_interims = message.treasuryFundsInterims === false ? undefined : message.treasuryFundsInterims;
|
|
1389
|
+
obj.treasury_funds_retro_pgf = message.treasuryFundsRetroPgf === false ? undefined : message.treasuryFundsRetroPgf;
|
|
1390
|
+
obj.max_initiative_stake_per_member = message.maxInitiativeStakePerMember === "" ? undefined : message.maxInitiativeStakePerMember;
|
|
1391
|
+
obj.max_initiative_rewards_per_season = message.maxInitiativeRewardsPerSeason === "" ? undefined : message.maxInitiativeRewardsPerSeason;
|
|
1392
|
+
obj.large_project_budget_threshold = message.largeProjectBudgetThreshold === "" ? undefined : message.largeProjectBudgetThreshold;
|
|
1393
|
+
obj.project_creation_fee = message.projectCreationFee === "" ? undefined : message.projectCreationFee;
|
|
1394
|
+
obj.initiative_creation_fee_apprentice = message.initiativeCreationFeeApprentice === "" ? undefined : message.initiativeCreationFeeApprentice;
|
|
1395
|
+
obj.initiative_creation_fee_standard = message.initiativeCreationFeeStandard === "" ? undefined : message.initiativeCreationFeeStandard;
|
|
1396
|
+
obj.permissionless_min_trust_level = message.permissionlessMinTrustLevel === 0 ? undefined : message.permissionlessMinTrustLevel;
|
|
1397
|
+
obj.permissionless_max_tier = message.permissionlessMaxTier === 0 ? undefined : message.permissionlessMaxTier;
|
|
1398
|
+
obj.tag_creation_fee = message.tagCreationFee === "" ? undefined : message.tagCreationFee;
|
|
1399
|
+
obj.max_sentinel_reward_pool = message.maxSentinelRewardPool === "" ? undefined : message.maxSentinelRewardPool;
|
|
1400
|
+
obj.sentinel_reward_pool_overflow_burn_ratio = message.sentinelRewardPoolOverflowBurnRatio === "" ? undefined : message.sentinelRewardPoolOverflowBurnRatio;
|
|
1401
|
+
obj.sentinel_reward_epoch_blocks = message.sentinelRewardEpochBlocks !== BigInt(0) ? message.sentinelRewardEpochBlocks?.toString() : undefined;
|
|
1402
|
+
obj.min_sentinel_accuracy = message.minSentinelAccuracy === "" ? undefined : message.minSentinelAccuracy;
|
|
1403
|
+
obj.min_appeals_for_accuracy = message.minAppealsForAccuracy !== BigInt(0) ? message.minAppealsForAccuracy?.toString() : undefined;
|
|
1404
|
+
obj.min_epoch_activity_for_reward = message.minEpochActivityForReward !== BigInt(0) ? message.minEpochActivityForReward?.toString() : undefined;
|
|
1405
|
+
obj.min_appeal_rate = message.minAppealRate === "" ? undefined : message.minAppealRate;
|
|
1406
|
+
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
1407
|
+
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
1408
|
+
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
1133
1409
|
return obj;
|
|
1134
1410
|
},
|
|
1135
1411
|
fromAminoMsg(object) {
|
|
@@ -1158,7 +1434,6 @@ function createBaseRepOperationalParams() {
|
|
|
1158
1434
|
return {
|
|
1159
1435
|
epochBlocks: BigInt(0),
|
|
1160
1436
|
seasonDurationEpochs: BigInt(0),
|
|
1161
|
-
stakingApy: "",
|
|
1162
1437
|
unstakedDecayRate: "",
|
|
1163
1438
|
transferTaxRate: "",
|
|
1164
1439
|
maxTipAmount: "",
|
|
@@ -1186,7 +1461,6 @@ function createBaseRepOperationalParams() {
|
|
|
1186
1461
|
maxActiveChallengesPerCommittee: 0,
|
|
1187
1462
|
maxNewChallengesPerEpoch: 0,
|
|
1188
1463
|
challengeQueueMaxSize: 0,
|
|
1189
|
-
projectStakingApy: "",
|
|
1190
1464
|
projectCompletionBonusRate: "",
|
|
1191
1465
|
memberStakeRevenueShare: "",
|
|
1192
1466
|
tagStakeRevenueShare: "",
|
|
@@ -1205,7 +1479,30 @@ function createBaseRepOperationalParams() {
|
|
|
1205
1479
|
reputationDecayRate: "",
|
|
1206
1480
|
maxConvictionSharePerMember: "",
|
|
1207
1481
|
invitationStakeBurnRate: "",
|
|
1208
|
-
maxReputationGainPerEpoch: ""
|
|
1482
|
+
maxReputationGainPerEpoch: "",
|
|
1483
|
+
maxStakingRewardsPerSeason: "",
|
|
1484
|
+
stakedDecayRate: "",
|
|
1485
|
+
newMemberDecayGraceEpochs: BigInt(0),
|
|
1486
|
+
maxTreasuryBalance: "",
|
|
1487
|
+
treasuryFundsInterims: false,
|
|
1488
|
+
treasuryFundsRetroPgf: false,
|
|
1489
|
+
maxInitiativeStakePerMember: "",
|
|
1490
|
+
maxInitiativeRewardsPerSeason: "",
|
|
1491
|
+
largeProjectBudgetThreshold: "",
|
|
1492
|
+
projectCreationFee: "",
|
|
1493
|
+
initiativeCreationFeeApprentice: "",
|
|
1494
|
+
initiativeCreationFeeStandard: "",
|
|
1495
|
+
tagCreationFee: "",
|
|
1496
|
+
maxSentinelRewardPool: "",
|
|
1497
|
+
sentinelRewardPoolOverflowBurnRatio: "",
|
|
1498
|
+
sentinelRewardEpochBlocks: BigInt(0),
|
|
1499
|
+
minSentinelAccuracy: "",
|
|
1500
|
+
minAppealsForAccuracy: BigInt(0),
|
|
1501
|
+
minEpochActivityForReward: BigInt(0),
|
|
1502
|
+
minAppealRate: "",
|
|
1503
|
+
maxActiveInitiativesPerMember: 0,
|
|
1504
|
+
maxActiveInterimsPerMember: 0,
|
|
1505
|
+
maxDreamMintPerEpoch: ""
|
|
1209
1506
|
};
|
|
1210
1507
|
}
|
|
1211
1508
|
/**
|
|
@@ -1226,149 +1523,212 @@ exports.RepOperationalParams = {
|
|
|
1226
1523
|
if (message.seasonDurationEpochs !== BigInt(0)) {
|
|
1227
1524
|
writer.uint32(16).int64(message.seasonDurationEpochs);
|
|
1228
1525
|
}
|
|
1229
|
-
if (message.stakingApy !== "") {
|
|
1230
|
-
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.stakingApy, 18).atomics);
|
|
1231
|
-
}
|
|
1232
1526
|
if (message.unstakedDecayRate !== "") {
|
|
1233
|
-
writer.uint32(
|
|
1527
|
+
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.unstakedDecayRate, 18).atomics);
|
|
1234
1528
|
}
|
|
1235
1529
|
if (message.transferTaxRate !== "") {
|
|
1236
|
-
writer.uint32(
|
|
1530
|
+
writer.uint32(34).string(math_1.Decimal.fromUserInput(message.transferTaxRate, 18).atomics);
|
|
1237
1531
|
}
|
|
1238
1532
|
if (message.maxTipAmount !== "") {
|
|
1239
|
-
writer.uint32(
|
|
1533
|
+
writer.uint32(42).string(message.maxTipAmount);
|
|
1240
1534
|
}
|
|
1241
1535
|
if (message.maxTipsPerEpoch !== 0) {
|
|
1242
|
-
writer.uint32(
|
|
1536
|
+
writer.uint32(48).uint32(message.maxTipsPerEpoch);
|
|
1243
1537
|
}
|
|
1244
1538
|
if (message.maxGiftAmount !== "") {
|
|
1245
|
-
writer.uint32(
|
|
1539
|
+
writer.uint32(58).string(message.maxGiftAmount);
|
|
1246
1540
|
}
|
|
1247
1541
|
if (message.giftOnlyToInvitees === true) {
|
|
1248
|
-
writer.uint32(
|
|
1542
|
+
writer.uint32(64).bool(message.giftOnlyToInvitees);
|
|
1249
1543
|
}
|
|
1250
1544
|
if (message.minReputationMultiplier !== "") {
|
|
1251
|
-
writer.uint32(
|
|
1545
|
+
writer.uint32(74).string(math_1.Decimal.fromUserInput(message.minReputationMultiplier, 18).atomics);
|
|
1252
1546
|
}
|
|
1253
1547
|
if (message.defaultReviewPeriodEpochs !== BigInt(0)) {
|
|
1254
|
-
writer.uint32(
|
|
1548
|
+
writer.uint32(80).int64(message.defaultReviewPeriodEpochs);
|
|
1255
1549
|
}
|
|
1256
1550
|
if (message.defaultChallengePeriodEpochs !== BigInt(0)) {
|
|
1257
|
-
writer.uint32(
|
|
1551
|
+
writer.uint32(88).int64(message.defaultChallengePeriodEpochs);
|
|
1258
1552
|
}
|
|
1259
1553
|
if (message.minInvitationStake !== "") {
|
|
1260
|
-
writer.uint32(
|
|
1554
|
+
writer.uint32(98).string(message.minInvitationStake);
|
|
1261
1555
|
}
|
|
1262
1556
|
if (message.invitationAccountabilityEpochs !== BigInt(0)) {
|
|
1263
|
-
writer.uint32(
|
|
1557
|
+
writer.uint32(104).int64(message.invitationAccountabilityEpochs);
|
|
1264
1558
|
}
|
|
1265
1559
|
if (message.referralRewardRate !== "") {
|
|
1266
|
-
writer.uint32(
|
|
1560
|
+
writer.uint32(114).string(math_1.Decimal.fromUserInput(message.referralRewardRate, 18).atomics);
|
|
1267
1561
|
}
|
|
1268
1562
|
if (message.invitationCostMultiplier !== "") {
|
|
1269
|
-
writer.uint32(
|
|
1563
|
+
writer.uint32(122).string(math_1.Decimal.fromUserInput(message.invitationCostMultiplier, 18).atomics);
|
|
1270
1564
|
}
|
|
1271
1565
|
if (message.minChallengeStake !== "") {
|
|
1272
|
-
writer.uint32(
|
|
1566
|
+
writer.uint32(130).string(message.minChallengeStake);
|
|
1273
1567
|
}
|
|
1274
1568
|
if (message.challengerRewardRate !== "") {
|
|
1275
|
-
writer.uint32(
|
|
1569
|
+
writer.uint32(138).string(math_1.Decimal.fromUserInput(message.challengerRewardRate, 18).atomics);
|
|
1276
1570
|
}
|
|
1277
1571
|
if (message.jurySize !== 0) {
|
|
1278
|
-
writer.uint32(
|
|
1572
|
+
writer.uint32(144).uint32(message.jurySize);
|
|
1279
1573
|
}
|
|
1280
1574
|
if (message.jurySuperMajority !== "") {
|
|
1281
|
-
writer.uint32(
|
|
1575
|
+
writer.uint32(154).string(math_1.Decimal.fromUserInput(message.jurySuperMajority, 18).atomics);
|
|
1282
1576
|
}
|
|
1283
1577
|
if (message.minJurorReputation !== "") {
|
|
1284
|
-
writer.uint32(
|
|
1578
|
+
writer.uint32(162).string(math_1.Decimal.fromUserInput(message.minJurorReputation, 18).atomics);
|
|
1285
1579
|
}
|
|
1286
1580
|
if (message.simpleComplexityBudget !== "") {
|
|
1287
|
-
writer.uint32(
|
|
1581
|
+
writer.uint32(170).string(message.simpleComplexityBudget);
|
|
1288
1582
|
}
|
|
1289
1583
|
if (message.standardComplexityBudget !== "") {
|
|
1290
|
-
writer.uint32(
|
|
1584
|
+
writer.uint32(178).string(message.standardComplexityBudget);
|
|
1291
1585
|
}
|
|
1292
1586
|
if (message.complexComplexityBudget !== "") {
|
|
1293
|
-
writer.uint32(
|
|
1587
|
+
writer.uint32(186).string(message.complexComplexityBudget);
|
|
1294
1588
|
}
|
|
1295
1589
|
if (message.expertComplexityBudget !== "") {
|
|
1296
|
-
writer.uint32(
|
|
1590
|
+
writer.uint32(194).string(message.expertComplexityBudget);
|
|
1297
1591
|
}
|
|
1298
1592
|
if (message.soloExpertBonusRate !== "") {
|
|
1299
|
-
writer.uint32(
|
|
1593
|
+
writer.uint32(202).string(math_1.Decimal.fromUserInput(message.soloExpertBonusRate, 18).atomics);
|
|
1300
1594
|
}
|
|
1301
1595
|
if (message.interimDeadlineEpochs !== BigInt(0)) {
|
|
1302
|
-
writer.uint32(
|
|
1596
|
+
writer.uint32(208).int64(message.interimDeadlineEpochs);
|
|
1303
1597
|
}
|
|
1304
1598
|
if (message.maxActiveChallengesPerCommittee !== 0) {
|
|
1305
|
-
writer.uint32(
|
|
1599
|
+
writer.uint32(216).uint32(message.maxActiveChallengesPerCommittee);
|
|
1306
1600
|
}
|
|
1307
1601
|
if (message.maxNewChallengesPerEpoch !== 0) {
|
|
1308
|
-
writer.uint32(
|
|
1602
|
+
writer.uint32(224).uint32(message.maxNewChallengesPerEpoch);
|
|
1309
1603
|
}
|
|
1310
1604
|
if (message.challengeQueueMaxSize !== 0) {
|
|
1311
|
-
writer.uint32(
|
|
1312
|
-
}
|
|
1313
|
-
if (message.projectStakingApy !== "") {
|
|
1314
|
-
writer.uint32(250).string(math_1.Decimal.fromUserInput(message.projectStakingApy, 18).atomics);
|
|
1605
|
+
writer.uint32(232).uint32(message.challengeQueueMaxSize);
|
|
1315
1606
|
}
|
|
1316
1607
|
if (message.projectCompletionBonusRate !== "") {
|
|
1317
|
-
writer.uint32(
|
|
1608
|
+
writer.uint32(242).string(math_1.Decimal.fromUserInput(message.projectCompletionBonusRate, 18).atomics);
|
|
1318
1609
|
}
|
|
1319
1610
|
if (message.memberStakeRevenueShare !== "") {
|
|
1320
|
-
writer.uint32(
|
|
1611
|
+
writer.uint32(250).string(math_1.Decimal.fromUserInput(message.memberStakeRevenueShare, 18).atomics);
|
|
1321
1612
|
}
|
|
1322
1613
|
if (message.tagStakeRevenueShare !== "") {
|
|
1323
|
-
writer.uint32(
|
|
1614
|
+
writer.uint32(258).string(math_1.Decimal.fromUserInput(message.tagStakeRevenueShare, 18).atomics);
|
|
1324
1615
|
}
|
|
1325
1616
|
if (message.minStakeDurationSeconds !== BigInt(0)) {
|
|
1326
|
-
writer.uint32(
|
|
1617
|
+
writer.uint32(264).int64(message.minStakeDurationSeconds);
|
|
1327
1618
|
}
|
|
1328
1619
|
if (message.allowSelfMemberStake === true) {
|
|
1329
|
-
writer.uint32(
|
|
1620
|
+
writer.uint32(272).bool(message.allowSelfMemberStake);
|
|
1330
1621
|
}
|
|
1331
1622
|
if (message.challengeResponseDeadlineEpochs !== BigInt(0)) {
|
|
1332
|
-
writer.uint32(
|
|
1623
|
+
writer.uint32(280).int64(message.challengeResponseDeadlineEpochs);
|
|
1333
1624
|
}
|
|
1334
1625
|
if (message.giftCooldownBlocks !== BigInt(0)) {
|
|
1335
|
-
writer.uint32(
|
|
1626
|
+
writer.uint32(288).int64(message.giftCooldownBlocks);
|
|
1336
1627
|
}
|
|
1337
1628
|
if (message.maxGiftsPerSenderEpoch !== "") {
|
|
1338
|
-
writer.uint32(
|
|
1629
|
+
writer.uint32(298).string(message.maxGiftsPerSenderEpoch);
|
|
1339
1630
|
}
|
|
1340
1631
|
if (message.contentConvictionHalfLifeEpochs !== BigInt(0)) {
|
|
1341
|
-
writer.uint32(
|
|
1632
|
+
writer.uint32(304).int64(message.contentConvictionHalfLifeEpochs);
|
|
1342
1633
|
}
|
|
1343
1634
|
if (message.maxContentStakePerMember !== "") {
|
|
1344
|
-
writer.uint32(
|
|
1635
|
+
writer.uint32(314).string(message.maxContentStakePerMember);
|
|
1345
1636
|
}
|
|
1346
1637
|
if (message.maxAuthorBondPerContent !== "") {
|
|
1347
|
-
writer.uint32(
|
|
1638
|
+
writer.uint32(322).string(message.maxAuthorBondPerContent);
|
|
1348
1639
|
}
|
|
1349
1640
|
if (message.authorBondSlashOnModeration === true) {
|
|
1350
|
-
writer.uint32(
|
|
1641
|
+
writer.uint32(328).bool(message.authorBondSlashOnModeration);
|
|
1351
1642
|
}
|
|
1352
1643
|
if (message.contentChallengeRewardShare !== "") {
|
|
1353
|
-
writer.uint32(
|
|
1644
|
+
writer.uint32(338).string(math_1.Decimal.fromUserInput(message.contentChallengeRewardShare, 18).atomics);
|
|
1354
1645
|
}
|
|
1355
1646
|
if (message.convictionPropagationRatio !== "") {
|
|
1356
|
-
writer.uint32(
|
|
1647
|
+
writer.uint32(346).string(math_1.Decimal.fromUserInput(message.convictionPropagationRatio, 18).atomics);
|
|
1357
1648
|
}
|
|
1358
1649
|
if (message.maxTagsPerInitiative !== 0) {
|
|
1359
|
-
writer.uint32(
|
|
1650
|
+
writer.uint32(352).uint32(message.maxTagsPerInitiative);
|
|
1360
1651
|
}
|
|
1361
1652
|
if (message.reputationDecayRate !== "") {
|
|
1362
|
-
writer.uint32(
|
|
1653
|
+
writer.uint32(362).string(math_1.Decimal.fromUserInput(message.reputationDecayRate, 18).atomics);
|
|
1363
1654
|
}
|
|
1364
1655
|
if (message.maxConvictionSharePerMember !== "") {
|
|
1365
|
-
writer.uint32(
|
|
1656
|
+
writer.uint32(370).string(math_1.Decimal.fromUserInput(message.maxConvictionSharePerMember, 18).atomics);
|
|
1366
1657
|
}
|
|
1367
1658
|
if (message.invitationStakeBurnRate !== "") {
|
|
1368
|
-
writer.uint32(
|
|
1659
|
+
writer.uint32(378).string(math_1.Decimal.fromUserInput(message.invitationStakeBurnRate, 18).atomics);
|
|
1369
1660
|
}
|
|
1370
1661
|
if (message.maxReputationGainPerEpoch !== "") {
|
|
1371
|
-
writer.uint32(
|
|
1662
|
+
writer.uint32(386).string(math_1.Decimal.fromUserInput(message.maxReputationGainPerEpoch, 18).atomics);
|
|
1663
|
+
}
|
|
1664
|
+
if (message.maxStakingRewardsPerSeason !== "") {
|
|
1665
|
+
writer.uint32(394).string(message.maxStakingRewardsPerSeason);
|
|
1666
|
+
}
|
|
1667
|
+
if (message.stakedDecayRate !== "") {
|
|
1668
|
+
writer.uint32(402).string(math_1.Decimal.fromUserInput(message.stakedDecayRate, 18).atomics);
|
|
1669
|
+
}
|
|
1670
|
+
if (message.newMemberDecayGraceEpochs !== BigInt(0)) {
|
|
1671
|
+
writer.uint32(408).int64(message.newMemberDecayGraceEpochs);
|
|
1672
|
+
}
|
|
1673
|
+
if (message.maxTreasuryBalance !== "") {
|
|
1674
|
+
writer.uint32(418).string(message.maxTreasuryBalance);
|
|
1675
|
+
}
|
|
1676
|
+
if (message.treasuryFundsInterims === true) {
|
|
1677
|
+
writer.uint32(424).bool(message.treasuryFundsInterims);
|
|
1678
|
+
}
|
|
1679
|
+
if (message.treasuryFundsRetroPgf === true) {
|
|
1680
|
+
writer.uint32(432).bool(message.treasuryFundsRetroPgf);
|
|
1681
|
+
}
|
|
1682
|
+
if (message.maxInitiativeStakePerMember !== "") {
|
|
1683
|
+
writer.uint32(442).string(message.maxInitiativeStakePerMember);
|
|
1684
|
+
}
|
|
1685
|
+
if (message.maxInitiativeRewardsPerSeason !== "") {
|
|
1686
|
+
writer.uint32(450).string(message.maxInitiativeRewardsPerSeason);
|
|
1687
|
+
}
|
|
1688
|
+
if (message.largeProjectBudgetThreshold !== "") {
|
|
1689
|
+
writer.uint32(458).string(message.largeProjectBudgetThreshold);
|
|
1690
|
+
}
|
|
1691
|
+
if (message.projectCreationFee !== "") {
|
|
1692
|
+
writer.uint32(466).string(message.projectCreationFee);
|
|
1693
|
+
}
|
|
1694
|
+
if (message.initiativeCreationFeeApprentice !== "") {
|
|
1695
|
+
writer.uint32(474).string(message.initiativeCreationFeeApprentice);
|
|
1696
|
+
}
|
|
1697
|
+
if (message.initiativeCreationFeeStandard !== "") {
|
|
1698
|
+
writer.uint32(482).string(message.initiativeCreationFeeStandard);
|
|
1699
|
+
}
|
|
1700
|
+
if (message.tagCreationFee !== "") {
|
|
1701
|
+
writer.uint32(490).string(message.tagCreationFee);
|
|
1702
|
+
}
|
|
1703
|
+
if (message.maxSentinelRewardPool !== "") {
|
|
1704
|
+
writer.uint32(498).string(message.maxSentinelRewardPool);
|
|
1705
|
+
}
|
|
1706
|
+
if (message.sentinelRewardPoolOverflowBurnRatio !== "") {
|
|
1707
|
+
writer.uint32(506).string(math_1.Decimal.fromUserInput(message.sentinelRewardPoolOverflowBurnRatio, 18).atomics);
|
|
1708
|
+
}
|
|
1709
|
+
if (message.sentinelRewardEpochBlocks !== BigInt(0)) {
|
|
1710
|
+
writer.uint32(512).uint64(message.sentinelRewardEpochBlocks);
|
|
1711
|
+
}
|
|
1712
|
+
if (message.minSentinelAccuracy !== "") {
|
|
1713
|
+
writer.uint32(522).string(math_1.Decimal.fromUserInput(message.minSentinelAccuracy, 18).atomics);
|
|
1714
|
+
}
|
|
1715
|
+
if (message.minAppealsForAccuracy !== BigInt(0)) {
|
|
1716
|
+
writer.uint32(528).uint64(message.minAppealsForAccuracy);
|
|
1717
|
+
}
|
|
1718
|
+
if (message.minEpochActivityForReward !== BigInt(0)) {
|
|
1719
|
+
writer.uint32(536).uint64(message.minEpochActivityForReward);
|
|
1720
|
+
}
|
|
1721
|
+
if (message.minAppealRate !== "") {
|
|
1722
|
+
writer.uint32(546).string(math_1.Decimal.fromUserInput(message.minAppealRate, 18).atomics);
|
|
1723
|
+
}
|
|
1724
|
+
if (message.maxActiveInitiativesPerMember !== 0) {
|
|
1725
|
+
writer.uint32(552).uint32(message.maxActiveInitiativesPerMember);
|
|
1726
|
+
}
|
|
1727
|
+
if (message.maxActiveInterimsPerMember !== 0) {
|
|
1728
|
+
writer.uint32(560).uint32(message.maxActiveInterimsPerMember);
|
|
1729
|
+
}
|
|
1730
|
+
if (message.maxDreamMintPerEpoch !== "") {
|
|
1731
|
+
writer.uint32(570).string(message.maxDreamMintPerEpoch);
|
|
1372
1732
|
}
|
|
1373
1733
|
return writer;
|
|
1374
1734
|
},
|
|
@@ -1386,148 +1746,211 @@ exports.RepOperationalParams = {
|
|
|
1386
1746
|
message.seasonDurationEpochs = reader.int64();
|
|
1387
1747
|
break;
|
|
1388
1748
|
case 3:
|
|
1389
|
-
message.
|
|
1749
|
+
message.unstakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1390
1750
|
break;
|
|
1391
1751
|
case 4:
|
|
1392
|
-
message.
|
|
1752
|
+
message.transferTaxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1393
1753
|
break;
|
|
1394
1754
|
case 5:
|
|
1395
|
-
message.
|
|
1755
|
+
message.maxTipAmount = reader.string();
|
|
1396
1756
|
break;
|
|
1397
1757
|
case 6:
|
|
1398
|
-
message.
|
|
1758
|
+
message.maxTipsPerEpoch = reader.uint32();
|
|
1399
1759
|
break;
|
|
1400
1760
|
case 7:
|
|
1401
|
-
message.
|
|
1761
|
+
message.maxGiftAmount = reader.string();
|
|
1402
1762
|
break;
|
|
1403
1763
|
case 8:
|
|
1404
|
-
message.
|
|
1764
|
+
message.giftOnlyToInvitees = reader.bool();
|
|
1405
1765
|
break;
|
|
1406
1766
|
case 9:
|
|
1407
|
-
message.
|
|
1767
|
+
message.minReputationMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1408
1768
|
break;
|
|
1409
1769
|
case 10:
|
|
1410
|
-
message.
|
|
1770
|
+
message.defaultReviewPeriodEpochs = reader.int64();
|
|
1411
1771
|
break;
|
|
1412
1772
|
case 11:
|
|
1413
|
-
message.
|
|
1773
|
+
message.defaultChallengePeriodEpochs = reader.int64();
|
|
1414
1774
|
break;
|
|
1415
1775
|
case 12:
|
|
1416
|
-
message.
|
|
1776
|
+
message.minInvitationStake = reader.string();
|
|
1417
1777
|
break;
|
|
1418
1778
|
case 13:
|
|
1419
|
-
message.
|
|
1779
|
+
message.invitationAccountabilityEpochs = reader.int64();
|
|
1420
1780
|
break;
|
|
1421
1781
|
case 14:
|
|
1422
|
-
message.
|
|
1782
|
+
message.referralRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1423
1783
|
break;
|
|
1424
1784
|
case 15:
|
|
1425
|
-
message.
|
|
1785
|
+
message.invitationCostMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1426
1786
|
break;
|
|
1427
1787
|
case 16:
|
|
1428
|
-
message.
|
|
1788
|
+
message.minChallengeStake = reader.string();
|
|
1429
1789
|
break;
|
|
1430
1790
|
case 17:
|
|
1431
|
-
message.
|
|
1791
|
+
message.challengerRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1432
1792
|
break;
|
|
1433
1793
|
case 18:
|
|
1434
|
-
message.
|
|
1794
|
+
message.jurySize = reader.uint32();
|
|
1435
1795
|
break;
|
|
1436
1796
|
case 19:
|
|
1437
|
-
message.
|
|
1797
|
+
message.jurySuperMajority = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1438
1798
|
break;
|
|
1439
1799
|
case 20:
|
|
1440
|
-
message.
|
|
1800
|
+
message.minJurorReputation = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1441
1801
|
break;
|
|
1442
1802
|
case 21:
|
|
1443
|
-
message.
|
|
1803
|
+
message.simpleComplexityBudget = reader.string();
|
|
1444
1804
|
break;
|
|
1445
1805
|
case 22:
|
|
1446
|
-
message.
|
|
1806
|
+
message.standardComplexityBudget = reader.string();
|
|
1447
1807
|
break;
|
|
1448
1808
|
case 23:
|
|
1449
|
-
message.
|
|
1809
|
+
message.complexComplexityBudget = reader.string();
|
|
1450
1810
|
break;
|
|
1451
1811
|
case 24:
|
|
1452
|
-
message.
|
|
1812
|
+
message.expertComplexityBudget = reader.string();
|
|
1453
1813
|
break;
|
|
1454
1814
|
case 25:
|
|
1455
|
-
message.
|
|
1815
|
+
message.soloExpertBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1456
1816
|
break;
|
|
1457
1817
|
case 26:
|
|
1458
|
-
message.
|
|
1818
|
+
message.interimDeadlineEpochs = reader.int64();
|
|
1459
1819
|
break;
|
|
1460
1820
|
case 27:
|
|
1461
|
-
message.
|
|
1821
|
+
message.maxActiveChallengesPerCommittee = reader.uint32();
|
|
1462
1822
|
break;
|
|
1463
1823
|
case 28:
|
|
1464
|
-
message.
|
|
1824
|
+
message.maxNewChallengesPerEpoch = reader.uint32();
|
|
1465
1825
|
break;
|
|
1466
1826
|
case 29:
|
|
1467
|
-
message.
|
|
1827
|
+
message.challengeQueueMaxSize = reader.uint32();
|
|
1468
1828
|
break;
|
|
1469
1829
|
case 30:
|
|
1470
|
-
message.
|
|
1830
|
+
message.projectCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1471
1831
|
break;
|
|
1472
1832
|
case 31:
|
|
1473
|
-
message.
|
|
1833
|
+
message.memberStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1474
1834
|
break;
|
|
1475
1835
|
case 32:
|
|
1476
|
-
message.
|
|
1836
|
+
message.tagStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1477
1837
|
break;
|
|
1478
1838
|
case 33:
|
|
1479
|
-
message.
|
|
1839
|
+
message.minStakeDurationSeconds = reader.int64();
|
|
1480
1840
|
break;
|
|
1481
1841
|
case 34:
|
|
1482
|
-
message.
|
|
1842
|
+
message.allowSelfMemberStake = reader.bool();
|
|
1483
1843
|
break;
|
|
1484
1844
|
case 35:
|
|
1485
|
-
message.
|
|
1845
|
+
message.challengeResponseDeadlineEpochs = reader.int64();
|
|
1486
1846
|
break;
|
|
1487
1847
|
case 36:
|
|
1488
|
-
message.
|
|
1848
|
+
message.giftCooldownBlocks = reader.int64();
|
|
1489
1849
|
break;
|
|
1490
1850
|
case 37:
|
|
1491
|
-
message.
|
|
1851
|
+
message.maxGiftsPerSenderEpoch = reader.string();
|
|
1492
1852
|
break;
|
|
1493
1853
|
case 38:
|
|
1494
|
-
message.
|
|
1854
|
+
message.contentConvictionHalfLifeEpochs = reader.int64();
|
|
1495
1855
|
break;
|
|
1496
1856
|
case 39:
|
|
1497
|
-
message.
|
|
1857
|
+
message.maxContentStakePerMember = reader.string();
|
|
1498
1858
|
break;
|
|
1499
1859
|
case 40:
|
|
1500
|
-
message.
|
|
1860
|
+
message.maxAuthorBondPerContent = reader.string();
|
|
1501
1861
|
break;
|
|
1502
1862
|
case 41:
|
|
1503
|
-
message.
|
|
1863
|
+
message.authorBondSlashOnModeration = reader.bool();
|
|
1504
1864
|
break;
|
|
1505
1865
|
case 42:
|
|
1506
|
-
message.
|
|
1866
|
+
message.contentChallengeRewardShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1507
1867
|
break;
|
|
1508
1868
|
case 43:
|
|
1509
|
-
message.
|
|
1869
|
+
message.convictionPropagationRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1510
1870
|
break;
|
|
1511
1871
|
case 44:
|
|
1512
|
-
message.
|
|
1872
|
+
message.maxTagsPerInitiative = reader.uint32();
|
|
1513
1873
|
break;
|
|
1514
1874
|
case 45:
|
|
1515
|
-
message.
|
|
1875
|
+
message.reputationDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1516
1876
|
break;
|
|
1517
1877
|
case 46:
|
|
1518
|
-
message.
|
|
1878
|
+
message.maxConvictionSharePerMember = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1519
1879
|
break;
|
|
1520
1880
|
case 47:
|
|
1521
|
-
message.
|
|
1881
|
+
message.invitationStakeBurnRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1522
1882
|
break;
|
|
1523
1883
|
case 48:
|
|
1524
|
-
message.
|
|
1884
|
+
message.maxReputationGainPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1525
1885
|
break;
|
|
1526
1886
|
case 49:
|
|
1527
|
-
message.
|
|
1887
|
+
message.maxStakingRewardsPerSeason = reader.string();
|
|
1528
1888
|
break;
|
|
1529
1889
|
case 50:
|
|
1530
|
-
message.
|
|
1890
|
+
message.stakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1891
|
+
break;
|
|
1892
|
+
case 51:
|
|
1893
|
+
message.newMemberDecayGraceEpochs = reader.int64();
|
|
1894
|
+
break;
|
|
1895
|
+
case 52:
|
|
1896
|
+
message.maxTreasuryBalance = reader.string();
|
|
1897
|
+
break;
|
|
1898
|
+
case 53:
|
|
1899
|
+
message.treasuryFundsInterims = reader.bool();
|
|
1900
|
+
break;
|
|
1901
|
+
case 54:
|
|
1902
|
+
message.treasuryFundsRetroPgf = reader.bool();
|
|
1903
|
+
break;
|
|
1904
|
+
case 55:
|
|
1905
|
+
message.maxInitiativeStakePerMember = reader.string();
|
|
1906
|
+
break;
|
|
1907
|
+
case 56:
|
|
1908
|
+
message.maxInitiativeRewardsPerSeason = reader.string();
|
|
1909
|
+
break;
|
|
1910
|
+
case 57:
|
|
1911
|
+
message.largeProjectBudgetThreshold = reader.string();
|
|
1912
|
+
break;
|
|
1913
|
+
case 58:
|
|
1914
|
+
message.projectCreationFee = reader.string();
|
|
1915
|
+
break;
|
|
1916
|
+
case 59:
|
|
1917
|
+
message.initiativeCreationFeeApprentice = reader.string();
|
|
1918
|
+
break;
|
|
1919
|
+
case 60:
|
|
1920
|
+
message.initiativeCreationFeeStandard = reader.string();
|
|
1921
|
+
break;
|
|
1922
|
+
case 61:
|
|
1923
|
+
message.tagCreationFee = reader.string();
|
|
1924
|
+
break;
|
|
1925
|
+
case 62:
|
|
1926
|
+
message.maxSentinelRewardPool = reader.string();
|
|
1927
|
+
break;
|
|
1928
|
+
case 63:
|
|
1929
|
+
message.sentinelRewardPoolOverflowBurnRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1930
|
+
break;
|
|
1931
|
+
case 64:
|
|
1932
|
+
message.sentinelRewardEpochBlocks = reader.uint64();
|
|
1933
|
+
break;
|
|
1934
|
+
case 65:
|
|
1935
|
+
message.minSentinelAccuracy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1936
|
+
break;
|
|
1937
|
+
case 66:
|
|
1938
|
+
message.minAppealsForAccuracy = reader.uint64();
|
|
1939
|
+
break;
|
|
1940
|
+
case 67:
|
|
1941
|
+
message.minEpochActivityForReward = reader.uint64();
|
|
1942
|
+
break;
|
|
1943
|
+
case 68:
|
|
1944
|
+
message.minAppealRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1945
|
+
break;
|
|
1946
|
+
case 69:
|
|
1947
|
+
message.maxActiveInitiativesPerMember = reader.uint32();
|
|
1948
|
+
break;
|
|
1949
|
+
case 70:
|
|
1950
|
+
message.maxActiveInterimsPerMember = reader.uint32();
|
|
1951
|
+
break;
|
|
1952
|
+
case 71:
|
|
1953
|
+
message.maxDreamMintPerEpoch = reader.string();
|
|
1531
1954
|
break;
|
|
1532
1955
|
default:
|
|
1533
1956
|
reader.skipType(tag & 7);
|
|
@@ -1540,7 +1963,6 @@ exports.RepOperationalParams = {
|
|
|
1540
1963
|
const message = createBaseRepOperationalParams();
|
|
1541
1964
|
message.epochBlocks = object.epochBlocks !== undefined && object.epochBlocks !== null ? BigInt(object.epochBlocks.toString()) : BigInt(0);
|
|
1542
1965
|
message.seasonDurationEpochs = object.seasonDurationEpochs !== undefined && object.seasonDurationEpochs !== null ? BigInt(object.seasonDurationEpochs.toString()) : BigInt(0);
|
|
1543
|
-
message.stakingApy = object.stakingApy ?? "";
|
|
1544
1966
|
message.unstakedDecayRate = object.unstakedDecayRate ?? "";
|
|
1545
1967
|
message.transferTaxRate = object.transferTaxRate ?? "";
|
|
1546
1968
|
message.maxTipAmount = object.maxTipAmount ?? "";
|
|
@@ -1568,7 +1990,6 @@ exports.RepOperationalParams = {
|
|
|
1568
1990
|
message.maxActiveChallengesPerCommittee = object.maxActiveChallengesPerCommittee ?? 0;
|
|
1569
1991
|
message.maxNewChallengesPerEpoch = object.maxNewChallengesPerEpoch ?? 0;
|
|
1570
1992
|
message.challengeQueueMaxSize = object.challengeQueueMaxSize ?? 0;
|
|
1571
|
-
message.projectStakingApy = object.projectStakingApy ?? "";
|
|
1572
1993
|
message.projectCompletionBonusRate = object.projectCompletionBonusRate ?? "";
|
|
1573
1994
|
message.memberStakeRevenueShare = object.memberStakeRevenueShare ?? "";
|
|
1574
1995
|
message.tagStakeRevenueShare = object.tagStakeRevenueShare ?? "";
|
|
@@ -1588,6 +2009,29 @@ exports.RepOperationalParams = {
|
|
|
1588
2009
|
message.maxConvictionSharePerMember = object.maxConvictionSharePerMember ?? "";
|
|
1589
2010
|
message.invitationStakeBurnRate = object.invitationStakeBurnRate ?? "";
|
|
1590
2011
|
message.maxReputationGainPerEpoch = object.maxReputationGainPerEpoch ?? "";
|
|
2012
|
+
message.maxStakingRewardsPerSeason = object.maxStakingRewardsPerSeason ?? "";
|
|
2013
|
+
message.stakedDecayRate = object.stakedDecayRate ?? "";
|
|
2014
|
+
message.newMemberDecayGraceEpochs = object.newMemberDecayGraceEpochs !== undefined && object.newMemberDecayGraceEpochs !== null ? BigInt(object.newMemberDecayGraceEpochs.toString()) : BigInt(0);
|
|
2015
|
+
message.maxTreasuryBalance = object.maxTreasuryBalance ?? "";
|
|
2016
|
+
message.treasuryFundsInterims = object.treasuryFundsInterims ?? false;
|
|
2017
|
+
message.treasuryFundsRetroPgf = object.treasuryFundsRetroPgf ?? false;
|
|
2018
|
+
message.maxInitiativeStakePerMember = object.maxInitiativeStakePerMember ?? "";
|
|
2019
|
+
message.maxInitiativeRewardsPerSeason = object.maxInitiativeRewardsPerSeason ?? "";
|
|
2020
|
+
message.largeProjectBudgetThreshold = object.largeProjectBudgetThreshold ?? "";
|
|
2021
|
+
message.projectCreationFee = object.projectCreationFee ?? "";
|
|
2022
|
+
message.initiativeCreationFeeApprentice = object.initiativeCreationFeeApprentice ?? "";
|
|
2023
|
+
message.initiativeCreationFeeStandard = object.initiativeCreationFeeStandard ?? "";
|
|
2024
|
+
message.tagCreationFee = object.tagCreationFee ?? "";
|
|
2025
|
+
message.maxSentinelRewardPool = object.maxSentinelRewardPool ?? "";
|
|
2026
|
+
message.sentinelRewardPoolOverflowBurnRatio = object.sentinelRewardPoolOverflowBurnRatio ?? "";
|
|
2027
|
+
message.sentinelRewardEpochBlocks = object.sentinelRewardEpochBlocks !== undefined && object.sentinelRewardEpochBlocks !== null ? BigInt(object.sentinelRewardEpochBlocks.toString()) : BigInt(0);
|
|
2028
|
+
message.minSentinelAccuracy = object.minSentinelAccuracy ?? "";
|
|
2029
|
+
message.minAppealsForAccuracy = object.minAppealsForAccuracy !== undefined && object.minAppealsForAccuracy !== null ? BigInt(object.minAppealsForAccuracy.toString()) : BigInt(0);
|
|
2030
|
+
message.minEpochActivityForReward = object.minEpochActivityForReward !== undefined && object.minEpochActivityForReward !== null ? BigInt(object.minEpochActivityForReward.toString()) : BigInt(0);
|
|
2031
|
+
message.minAppealRate = object.minAppealRate ?? "";
|
|
2032
|
+
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
2033
|
+
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
2034
|
+
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
1591
2035
|
return message;
|
|
1592
2036
|
},
|
|
1593
2037
|
fromAmino(object) {
|
|
@@ -1598,9 +2042,6 @@ exports.RepOperationalParams = {
|
|
|
1598
2042
|
if (object.season_duration_epochs !== undefined && object.season_duration_epochs !== null) {
|
|
1599
2043
|
message.seasonDurationEpochs = BigInt(object.season_duration_epochs);
|
|
1600
2044
|
}
|
|
1601
|
-
if (object.staking_apy !== undefined && object.staking_apy !== null) {
|
|
1602
|
-
message.stakingApy = object.staking_apy;
|
|
1603
|
-
}
|
|
1604
2045
|
if (object.unstaked_decay_rate !== undefined && object.unstaked_decay_rate !== null) {
|
|
1605
2046
|
message.unstakedDecayRate = object.unstaked_decay_rate;
|
|
1606
2047
|
}
|
|
@@ -1682,9 +2123,6 @@ exports.RepOperationalParams = {
|
|
|
1682
2123
|
if (object.challenge_queue_max_size !== undefined && object.challenge_queue_max_size !== null) {
|
|
1683
2124
|
message.challengeQueueMaxSize = object.challenge_queue_max_size;
|
|
1684
2125
|
}
|
|
1685
|
-
if (object.project_staking_apy !== undefined && object.project_staking_apy !== null) {
|
|
1686
|
-
message.projectStakingApy = object.project_staking_apy;
|
|
1687
|
-
}
|
|
1688
2126
|
if (object.project_completion_bonus_rate !== undefined && object.project_completion_bonus_rate !== null) {
|
|
1689
2127
|
message.projectCompletionBonusRate = object.project_completion_bonus_rate;
|
|
1690
2128
|
}
|
|
@@ -1742,13 +2180,81 @@ exports.RepOperationalParams = {
|
|
|
1742
2180
|
if (object.max_reputation_gain_per_epoch !== undefined && object.max_reputation_gain_per_epoch !== null) {
|
|
1743
2181
|
message.maxReputationGainPerEpoch = object.max_reputation_gain_per_epoch;
|
|
1744
2182
|
}
|
|
2183
|
+
if (object.max_staking_rewards_per_season !== undefined && object.max_staking_rewards_per_season !== null) {
|
|
2184
|
+
message.maxStakingRewardsPerSeason = object.max_staking_rewards_per_season;
|
|
2185
|
+
}
|
|
2186
|
+
if (object.staked_decay_rate !== undefined && object.staked_decay_rate !== null) {
|
|
2187
|
+
message.stakedDecayRate = object.staked_decay_rate;
|
|
2188
|
+
}
|
|
2189
|
+
if (object.new_member_decay_grace_epochs !== undefined && object.new_member_decay_grace_epochs !== null) {
|
|
2190
|
+
message.newMemberDecayGraceEpochs = BigInt(object.new_member_decay_grace_epochs);
|
|
2191
|
+
}
|
|
2192
|
+
if (object.max_treasury_balance !== undefined && object.max_treasury_balance !== null) {
|
|
2193
|
+
message.maxTreasuryBalance = object.max_treasury_balance;
|
|
2194
|
+
}
|
|
2195
|
+
if (object.treasury_funds_interims !== undefined && object.treasury_funds_interims !== null) {
|
|
2196
|
+
message.treasuryFundsInterims = object.treasury_funds_interims;
|
|
2197
|
+
}
|
|
2198
|
+
if (object.treasury_funds_retro_pgf !== undefined && object.treasury_funds_retro_pgf !== null) {
|
|
2199
|
+
message.treasuryFundsRetroPgf = object.treasury_funds_retro_pgf;
|
|
2200
|
+
}
|
|
2201
|
+
if (object.max_initiative_stake_per_member !== undefined && object.max_initiative_stake_per_member !== null) {
|
|
2202
|
+
message.maxInitiativeStakePerMember = object.max_initiative_stake_per_member;
|
|
2203
|
+
}
|
|
2204
|
+
if (object.max_initiative_rewards_per_season !== undefined && object.max_initiative_rewards_per_season !== null) {
|
|
2205
|
+
message.maxInitiativeRewardsPerSeason = object.max_initiative_rewards_per_season;
|
|
2206
|
+
}
|
|
2207
|
+
if (object.large_project_budget_threshold !== undefined && object.large_project_budget_threshold !== null) {
|
|
2208
|
+
message.largeProjectBudgetThreshold = object.large_project_budget_threshold;
|
|
2209
|
+
}
|
|
2210
|
+
if (object.project_creation_fee !== undefined && object.project_creation_fee !== null) {
|
|
2211
|
+
message.projectCreationFee = object.project_creation_fee;
|
|
2212
|
+
}
|
|
2213
|
+
if (object.initiative_creation_fee_apprentice !== undefined && object.initiative_creation_fee_apprentice !== null) {
|
|
2214
|
+
message.initiativeCreationFeeApprentice = object.initiative_creation_fee_apprentice;
|
|
2215
|
+
}
|
|
2216
|
+
if (object.initiative_creation_fee_standard !== undefined && object.initiative_creation_fee_standard !== null) {
|
|
2217
|
+
message.initiativeCreationFeeStandard = object.initiative_creation_fee_standard;
|
|
2218
|
+
}
|
|
2219
|
+
if (object.tag_creation_fee !== undefined && object.tag_creation_fee !== null) {
|
|
2220
|
+
message.tagCreationFee = object.tag_creation_fee;
|
|
2221
|
+
}
|
|
2222
|
+
if (object.max_sentinel_reward_pool !== undefined && object.max_sentinel_reward_pool !== null) {
|
|
2223
|
+
message.maxSentinelRewardPool = object.max_sentinel_reward_pool;
|
|
2224
|
+
}
|
|
2225
|
+
if (object.sentinel_reward_pool_overflow_burn_ratio !== undefined && object.sentinel_reward_pool_overflow_burn_ratio !== null) {
|
|
2226
|
+
message.sentinelRewardPoolOverflowBurnRatio = object.sentinel_reward_pool_overflow_burn_ratio;
|
|
2227
|
+
}
|
|
2228
|
+
if (object.sentinel_reward_epoch_blocks !== undefined && object.sentinel_reward_epoch_blocks !== null) {
|
|
2229
|
+
message.sentinelRewardEpochBlocks = BigInt(object.sentinel_reward_epoch_blocks);
|
|
2230
|
+
}
|
|
2231
|
+
if (object.min_sentinel_accuracy !== undefined && object.min_sentinel_accuracy !== null) {
|
|
2232
|
+
message.minSentinelAccuracy = object.min_sentinel_accuracy;
|
|
2233
|
+
}
|
|
2234
|
+
if (object.min_appeals_for_accuracy !== undefined && object.min_appeals_for_accuracy !== null) {
|
|
2235
|
+
message.minAppealsForAccuracy = BigInt(object.min_appeals_for_accuracy);
|
|
2236
|
+
}
|
|
2237
|
+
if (object.min_epoch_activity_for_reward !== undefined && object.min_epoch_activity_for_reward !== null) {
|
|
2238
|
+
message.minEpochActivityForReward = BigInt(object.min_epoch_activity_for_reward);
|
|
2239
|
+
}
|
|
2240
|
+
if (object.min_appeal_rate !== undefined && object.min_appeal_rate !== null) {
|
|
2241
|
+
message.minAppealRate = object.min_appeal_rate;
|
|
2242
|
+
}
|
|
2243
|
+
if (object.max_active_initiatives_per_member !== undefined && object.max_active_initiatives_per_member !== null) {
|
|
2244
|
+
message.maxActiveInitiativesPerMember = object.max_active_initiatives_per_member;
|
|
2245
|
+
}
|
|
2246
|
+
if (object.max_active_interims_per_member !== undefined && object.max_active_interims_per_member !== null) {
|
|
2247
|
+
message.maxActiveInterimsPerMember = object.max_active_interims_per_member;
|
|
2248
|
+
}
|
|
2249
|
+
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
2250
|
+
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
2251
|
+
}
|
|
1745
2252
|
return message;
|
|
1746
2253
|
},
|
|
1747
2254
|
toAmino(message) {
|
|
1748
2255
|
const obj = {};
|
|
1749
2256
|
obj.epoch_blocks = message.epochBlocks !== BigInt(0) ? message.epochBlocks?.toString() : undefined;
|
|
1750
2257
|
obj.season_duration_epochs = message.seasonDurationEpochs !== BigInt(0) ? message.seasonDurationEpochs?.toString() : undefined;
|
|
1751
|
-
obj.staking_apy = message.stakingApy === "" ? undefined : message.stakingApy;
|
|
1752
2258
|
obj.unstaked_decay_rate = message.unstakedDecayRate === "" ? undefined : message.unstakedDecayRate;
|
|
1753
2259
|
obj.transfer_tax_rate = message.transferTaxRate === "" ? undefined : message.transferTaxRate;
|
|
1754
2260
|
obj.max_tip_amount = message.maxTipAmount === "" ? undefined : message.maxTipAmount;
|
|
@@ -1776,7 +2282,6 @@ exports.RepOperationalParams = {
|
|
|
1776
2282
|
obj.max_active_challenges_per_committee = message.maxActiveChallengesPerCommittee === 0 ? undefined : message.maxActiveChallengesPerCommittee;
|
|
1777
2283
|
obj.max_new_challenges_per_epoch = message.maxNewChallengesPerEpoch === 0 ? undefined : message.maxNewChallengesPerEpoch;
|
|
1778
2284
|
obj.challenge_queue_max_size = message.challengeQueueMaxSize === 0 ? undefined : message.challengeQueueMaxSize;
|
|
1779
|
-
obj.project_staking_apy = message.projectStakingApy === "" ? undefined : message.projectStakingApy;
|
|
1780
2285
|
obj.project_completion_bonus_rate = message.projectCompletionBonusRate === "" ? undefined : message.projectCompletionBonusRate;
|
|
1781
2286
|
obj.member_stake_revenue_share = message.memberStakeRevenueShare === "" ? undefined : message.memberStakeRevenueShare;
|
|
1782
2287
|
obj.tag_stake_revenue_share = message.tagStakeRevenueShare === "" ? undefined : message.tagStakeRevenueShare;
|
|
@@ -1796,6 +2301,29 @@ exports.RepOperationalParams = {
|
|
|
1796
2301
|
obj.max_conviction_share_per_member = message.maxConvictionSharePerMember === "" ? undefined : message.maxConvictionSharePerMember;
|
|
1797
2302
|
obj.invitation_stake_burn_rate = message.invitationStakeBurnRate === "" ? undefined : message.invitationStakeBurnRate;
|
|
1798
2303
|
obj.max_reputation_gain_per_epoch = message.maxReputationGainPerEpoch === "" ? undefined : message.maxReputationGainPerEpoch;
|
|
2304
|
+
obj.max_staking_rewards_per_season = message.maxStakingRewardsPerSeason === "" ? undefined : message.maxStakingRewardsPerSeason;
|
|
2305
|
+
obj.staked_decay_rate = message.stakedDecayRate === "" ? undefined : message.stakedDecayRate;
|
|
2306
|
+
obj.new_member_decay_grace_epochs = message.newMemberDecayGraceEpochs !== BigInt(0) ? message.newMemberDecayGraceEpochs?.toString() : undefined;
|
|
2307
|
+
obj.max_treasury_balance = message.maxTreasuryBalance === "" ? undefined : message.maxTreasuryBalance;
|
|
2308
|
+
obj.treasury_funds_interims = message.treasuryFundsInterims === false ? undefined : message.treasuryFundsInterims;
|
|
2309
|
+
obj.treasury_funds_retro_pgf = message.treasuryFundsRetroPgf === false ? undefined : message.treasuryFundsRetroPgf;
|
|
2310
|
+
obj.max_initiative_stake_per_member = message.maxInitiativeStakePerMember === "" ? undefined : message.maxInitiativeStakePerMember;
|
|
2311
|
+
obj.max_initiative_rewards_per_season = message.maxInitiativeRewardsPerSeason === "" ? undefined : message.maxInitiativeRewardsPerSeason;
|
|
2312
|
+
obj.large_project_budget_threshold = message.largeProjectBudgetThreshold === "" ? undefined : message.largeProjectBudgetThreshold;
|
|
2313
|
+
obj.project_creation_fee = message.projectCreationFee === "" ? undefined : message.projectCreationFee;
|
|
2314
|
+
obj.initiative_creation_fee_apprentice = message.initiativeCreationFeeApprentice === "" ? undefined : message.initiativeCreationFeeApprentice;
|
|
2315
|
+
obj.initiative_creation_fee_standard = message.initiativeCreationFeeStandard === "" ? undefined : message.initiativeCreationFeeStandard;
|
|
2316
|
+
obj.tag_creation_fee = message.tagCreationFee === "" ? undefined : message.tagCreationFee;
|
|
2317
|
+
obj.max_sentinel_reward_pool = message.maxSentinelRewardPool === "" ? undefined : message.maxSentinelRewardPool;
|
|
2318
|
+
obj.sentinel_reward_pool_overflow_burn_ratio = message.sentinelRewardPoolOverflowBurnRatio === "" ? undefined : message.sentinelRewardPoolOverflowBurnRatio;
|
|
2319
|
+
obj.sentinel_reward_epoch_blocks = message.sentinelRewardEpochBlocks !== BigInt(0) ? message.sentinelRewardEpochBlocks?.toString() : undefined;
|
|
2320
|
+
obj.min_sentinel_accuracy = message.minSentinelAccuracy === "" ? undefined : message.minSentinelAccuracy;
|
|
2321
|
+
obj.min_appeals_for_accuracy = message.minAppealsForAccuracy !== BigInt(0) ? message.minAppealsForAccuracy?.toString() : undefined;
|
|
2322
|
+
obj.min_epoch_activity_for_reward = message.minEpochActivityForReward !== BigInt(0) ? message.minEpochActivityForReward?.toString() : undefined;
|
|
2323
|
+
obj.min_appeal_rate = message.minAppealRate === "" ? undefined : message.minAppealRate;
|
|
2324
|
+
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
2325
|
+
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
2326
|
+
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
1799
2327
|
return obj;
|
|
1800
2328
|
},
|
|
1801
2329
|
fromAminoMsg(object) {
|