@sparkdreamnft/sparkdreamjs 0.0.38 → 0.0.39
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/esm/sparkdream/rep/v1/challenge.js +13 -2
- package/esm/sparkdream/rep/v1/genesis.js +362 -2
- package/esm/sparkdream/rep/v1/interim.js +58 -1
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/rep/v1/params.js +193 -1
- package/esm/sparkdream/rep/v1/query.js +16 -16
- package/esm/sparkdream/rep/v1/tx.js +13 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +28 -0
- package/sparkdream/rep/v1/challenge.d.ts +23 -0
- package/sparkdream/rep/v1/challenge.js +13 -2
- package/sparkdream/rep/v1/genesis.d.ts +170 -1
- package/sparkdream/rep/v1/genesis.js +362 -2
- package/sparkdream/rep/v1/interim.d.ts +32 -0
- package/sparkdream/rep/v1/interim.js +61 -2
- package/sparkdream/rep/v1/member.d.ts +54 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/params.d.ts +242 -0
- package/sparkdream/rep/v1/params.js +193 -1
- package/sparkdream/rep/v1/query.d.ts +26 -4
- package/sparkdream/rep/v1/query.js +16 -16
- package/sparkdream/rep/v1/tx.d.ts +13 -1
- package/sparkdream/rep/v1/tx.js +13 -1
|
@@ -387,12 +387,18 @@ function createBaseParams() {
|
|
|
387
387
|
invitationStakeBurnRate: "",
|
|
388
388
|
maxReputationGainPerEpoch: "",
|
|
389
389
|
maxStakingRewardsPerSeason: "",
|
|
390
|
+
stakingRewardYieldPerEpoch: "",
|
|
391
|
+
stakingPoolMintShare: "",
|
|
392
|
+
stakingPoolCapBase: "",
|
|
393
|
+
stakingPoolCapRate: "",
|
|
390
394
|
stakedDecayRate: "",
|
|
391
395
|
newMemberDecayGraceEpochs: BigInt(0),
|
|
392
396
|
maxTreasuryBalance: "",
|
|
393
397
|
treasuryFundsInterims: false,
|
|
394
398
|
treasuryFundsRetroPgf: false,
|
|
395
399
|
maxInitiativeStakePerMember: "",
|
|
400
|
+
minStakeAmount: "",
|
|
401
|
+
maxInterimRewardsPerSeason: "",
|
|
396
402
|
maxInitiativeRewardsPerSeason: "",
|
|
397
403
|
largeProjectBudgetThreshold: "",
|
|
398
404
|
projectCreationFee: "",
|
|
@@ -426,6 +432,8 @@ function createBaseParams() {
|
|
|
426
432
|
minJurorSelectionWeight: "",
|
|
427
433
|
minJurySeatingsForWeighting: BigInt(0),
|
|
428
434
|
initiativeCompletionBonusRate: "",
|
|
435
|
+
maxCompletionBonusStakeMultiple: "",
|
|
436
|
+
maxTotalContentStakePerMember: "",
|
|
429
437
|
maxJuryRedraws: 0,
|
|
430
438
|
reviewerBondReserveRate: "",
|
|
431
439
|
reviewFeeRate: "",
|
|
@@ -660,6 +668,18 @@ exports.Params = {
|
|
|
660
668
|
if (message.maxStakingRewardsPerSeason !== "") {
|
|
661
669
|
writer.uint32(506).string(message.maxStakingRewardsPerSeason);
|
|
662
670
|
}
|
|
671
|
+
if (message.stakingRewardYieldPerEpoch !== "") {
|
|
672
|
+
writer.uint32(1090).string(math_1.Decimal.fromUserInput(message.stakingRewardYieldPerEpoch, 18).atomics);
|
|
673
|
+
}
|
|
674
|
+
if (message.stakingPoolMintShare !== "") {
|
|
675
|
+
writer.uint32(1098).string(math_1.Decimal.fromUserInput(message.stakingPoolMintShare, 18).atomics);
|
|
676
|
+
}
|
|
677
|
+
if (message.stakingPoolCapBase !== "") {
|
|
678
|
+
writer.uint32(1106).string(message.stakingPoolCapBase);
|
|
679
|
+
}
|
|
680
|
+
if (message.stakingPoolCapRate !== "") {
|
|
681
|
+
writer.uint32(1114).string(math_1.Decimal.fromUserInput(message.stakingPoolCapRate, 18).atomics);
|
|
682
|
+
}
|
|
663
683
|
if (message.stakedDecayRate !== "") {
|
|
664
684
|
writer.uint32(514).string(math_1.Decimal.fromUserInput(message.stakedDecayRate, 18).atomics);
|
|
665
685
|
}
|
|
@@ -678,6 +698,12 @@ exports.Params = {
|
|
|
678
698
|
if (message.maxInitiativeStakePerMember !== "") {
|
|
679
699
|
writer.uint32(554).string(message.maxInitiativeStakePerMember);
|
|
680
700
|
}
|
|
701
|
+
if (message.minStakeAmount !== "") {
|
|
702
|
+
writer.uint32(1122).string(message.minStakeAmount);
|
|
703
|
+
}
|
|
704
|
+
if (message.maxInterimRewardsPerSeason !== "") {
|
|
705
|
+
writer.uint32(1146).string(message.maxInterimRewardsPerSeason);
|
|
706
|
+
}
|
|
681
707
|
if (message.maxInitiativeRewardsPerSeason !== "") {
|
|
682
708
|
writer.uint32(562).string(message.maxInitiativeRewardsPerSeason);
|
|
683
709
|
}
|
|
@@ -777,6 +803,12 @@ exports.Params = {
|
|
|
777
803
|
if (message.initiativeCompletionBonusRate !== "") {
|
|
778
804
|
writer.uint32(818).string(math_1.Decimal.fromUserInput(message.initiativeCompletionBonusRate, 18).atomics);
|
|
779
805
|
}
|
|
806
|
+
if (message.maxCompletionBonusStakeMultiple !== "") {
|
|
807
|
+
writer.uint32(1130).string(math_1.Decimal.fromUserInput(message.maxCompletionBonusStakeMultiple, 18).atomics);
|
|
808
|
+
}
|
|
809
|
+
if (message.maxTotalContentStakePerMember !== "") {
|
|
810
|
+
writer.uint32(1138).string(message.maxTotalContentStakePerMember);
|
|
811
|
+
}
|
|
780
812
|
if (message.maxJuryRedraws !== 0) {
|
|
781
813
|
writer.uint32(824).uint32(message.maxJuryRedraws);
|
|
782
814
|
}
|
|
@@ -1074,6 +1106,18 @@ exports.Params = {
|
|
|
1074
1106
|
case 63:
|
|
1075
1107
|
message.maxStakingRewardsPerSeason = reader.string();
|
|
1076
1108
|
break;
|
|
1109
|
+
case 136:
|
|
1110
|
+
message.stakingRewardYieldPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1111
|
+
break;
|
|
1112
|
+
case 137:
|
|
1113
|
+
message.stakingPoolMintShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1114
|
+
break;
|
|
1115
|
+
case 138:
|
|
1116
|
+
message.stakingPoolCapBase = reader.string();
|
|
1117
|
+
break;
|
|
1118
|
+
case 139:
|
|
1119
|
+
message.stakingPoolCapRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1120
|
+
break;
|
|
1077
1121
|
case 64:
|
|
1078
1122
|
message.stakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1079
1123
|
break;
|
|
@@ -1092,6 +1136,12 @@ exports.Params = {
|
|
|
1092
1136
|
case 69:
|
|
1093
1137
|
message.maxInitiativeStakePerMember = reader.string();
|
|
1094
1138
|
break;
|
|
1139
|
+
case 140:
|
|
1140
|
+
message.minStakeAmount = reader.string();
|
|
1141
|
+
break;
|
|
1142
|
+
case 143:
|
|
1143
|
+
message.maxInterimRewardsPerSeason = reader.string();
|
|
1144
|
+
break;
|
|
1095
1145
|
case 70:
|
|
1096
1146
|
message.maxInitiativeRewardsPerSeason = reader.string();
|
|
1097
1147
|
break;
|
|
@@ -1191,6 +1241,12 @@ exports.Params = {
|
|
|
1191
1241
|
case 102:
|
|
1192
1242
|
message.initiativeCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1193
1243
|
break;
|
|
1244
|
+
case 141:
|
|
1245
|
+
message.maxCompletionBonusStakeMultiple = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1246
|
+
break;
|
|
1247
|
+
case 142:
|
|
1248
|
+
message.maxTotalContentStakePerMember = reader.string();
|
|
1249
|
+
break;
|
|
1194
1250
|
case 103:
|
|
1195
1251
|
message.maxJuryRedraws = reader.uint32();
|
|
1196
1252
|
break;
|
|
@@ -1362,12 +1418,18 @@ exports.Params = {
|
|
|
1362
1418
|
message.invitationStakeBurnRate = object.invitationStakeBurnRate ?? "";
|
|
1363
1419
|
message.maxReputationGainPerEpoch = object.maxReputationGainPerEpoch ?? "";
|
|
1364
1420
|
message.maxStakingRewardsPerSeason = object.maxStakingRewardsPerSeason ?? "";
|
|
1421
|
+
message.stakingRewardYieldPerEpoch = object.stakingRewardYieldPerEpoch ?? "";
|
|
1422
|
+
message.stakingPoolMintShare = object.stakingPoolMintShare ?? "";
|
|
1423
|
+
message.stakingPoolCapBase = object.stakingPoolCapBase ?? "";
|
|
1424
|
+
message.stakingPoolCapRate = object.stakingPoolCapRate ?? "";
|
|
1365
1425
|
message.stakedDecayRate = object.stakedDecayRate ?? "";
|
|
1366
1426
|
message.newMemberDecayGraceEpochs = object.newMemberDecayGraceEpochs !== undefined && object.newMemberDecayGraceEpochs !== null ? BigInt(object.newMemberDecayGraceEpochs.toString()) : BigInt(0);
|
|
1367
1427
|
message.maxTreasuryBalance = object.maxTreasuryBalance ?? "";
|
|
1368
1428
|
message.treasuryFundsInterims = object.treasuryFundsInterims ?? false;
|
|
1369
1429
|
message.treasuryFundsRetroPgf = object.treasuryFundsRetroPgf ?? false;
|
|
1370
1430
|
message.maxInitiativeStakePerMember = object.maxInitiativeStakePerMember ?? "";
|
|
1431
|
+
message.minStakeAmount = object.minStakeAmount ?? "";
|
|
1432
|
+
message.maxInterimRewardsPerSeason = object.maxInterimRewardsPerSeason ?? "";
|
|
1371
1433
|
message.maxInitiativeRewardsPerSeason = object.maxInitiativeRewardsPerSeason ?? "";
|
|
1372
1434
|
message.largeProjectBudgetThreshold = object.largeProjectBudgetThreshold ?? "";
|
|
1373
1435
|
message.projectCreationFee = object.projectCreationFee ?? "";
|
|
@@ -1401,6 +1463,8 @@ exports.Params = {
|
|
|
1401
1463
|
message.minJurorSelectionWeight = object.minJurorSelectionWeight ?? "";
|
|
1402
1464
|
message.minJurySeatingsForWeighting = object.minJurySeatingsForWeighting !== undefined && object.minJurySeatingsForWeighting !== null ? BigInt(object.minJurySeatingsForWeighting.toString()) : BigInt(0);
|
|
1403
1465
|
message.initiativeCompletionBonusRate = object.initiativeCompletionBonusRate ?? "";
|
|
1466
|
+
message.maxCompletionBonusStakeMultiple = object.maxCompletionBonusStakeMultiple ?? "";
|
|
1467
|
+
message.maxTotalContentStakePerMember = object.maxTotalContentStakePerMember ?? "";
|
|
1404
1468
|
message.maxJuryRedraws = object.maxJuryRedraws ?? 0;
|
|
1405
1469
|
message.reviewerBondReserveRate = object.reviewerBondReserveRate ?? "";
|
|
1406
1470
|
message.reviewFeeRate = object.reviewFeeRate ?? "";
|
|
@@ -1627,6 +1691,18 @@ exports.Params = {
|
|
|
1627
1691
|
if (object.max_staking_rewards_per_season !== undefined && object.max_staking_rewards_per_season !== null) {
|
|
1628
1692
|
message.maxStakingRewardsPerSeason = object.max_staking_rewards_per_season;
|
|
1629
1693
|
}
|
|
1694
|
+
if (object.staking_reward_yield_per_epoch !== undefined && object.staking_reward_yield_per_epoch !== null) {
|
|
1695
|
+
message.stakingRewardYieldPerEpoch = object.staking_reward_yield_per_epoch;
|
|
1696
|
+
}
|
|
1697
|
+
if (object.staking_pool_mint_share !== undefined && object.staking_pool_mint_share !== null) {
|
|
1698
|
+
message.stakingPoolMintShare = object.staking_pool_mint_share;
|
|
1699
|
+
}
|
|
1700
|
+
if (object.staking_pool_cap_base !== undefined && object.staking_pool_cap_base !== null) {
|
|
1701
|
+
message.stakingPoolCapBase = object.staking_pool_cap_base;
|
|
1702
|
+
}
|
|
1703
|
+
if (object.staking_pool_cap_rate !== undefined && object.staking_pool_cap_rate !== null) {
|
|
1704
|
+
message.stakingPoolCapRate = object.staking_pool_cap_rate;
|
|
1705
|
+
}
|
|
1630
1706
|
if (object.staked_decay_rate !== undefined && object.staked_decay_rate !== null) {
|
|
1631
1707
|
message.stakedDecayRate = object.staked_decay_rate;
|
|
1632
1708
|
}
|
|
@@ -1645,6 +1721,12 @@ exports.Params = {
|
|
|
1645
1721
|
if (object.max_initiative_stake_per_member !== undefined && object.max_initiative_stake_per_member !== null) {
|
|
1646
1722
|
message.maxInitiativeStakePerMember = object.max_initiative_stake_per_member;
|
|
1647
1723
|
}
|
|
1724
|
+
if (object.min_stake_amount !== undefined && object.min_stake_amount !== null) {
|
|
1725
|
+
message.minStakeAmount = object.min_stake_amount;
|
|
1726
|
+
}
|
|
1727
|
+
if (object.max_interim_rewards_per_season !== undefined && object.max_interim_rewards_per_season !== null) {
|
|
1728
|
+
message.maxInterimRewardsPerSeason = object.max_interim_rewards_per_season;
|
|
1729
|
+
}
|
|
1648
1730
|
if (object.max_initiative_rewards_per_season !== undefined && object.max_initiative_rewards_per_season !== null) {
|
|
1649
1731
|
message.maxInitiativeRewardsPerSeason = object.max_initiative_rewards_per_season;
|
|
1650
1732
|
}
|
|
@@ -1744,6 +1826,12 @@ exports.Params = {
|
|
|
1744
1826
|
if (object.initiative_completion_bonus_rate !== undefined && object.initiative_completion_bonus_rate !== null) {
|
|
1745
1827
|
message.initiativeCompletionBonusRate = object.initiative_completion_bonus_rate;
|
|
1746
1828
|
}
|
|
1829
|
+
if (object.max_completion_bonus_stake_multiple !== undefined && object.max_completion_bonus_stake_multiple !== null) {
|
|
1830
|
+
message.maxCompletionBonusStakeMultiple = object.max_completion_bonus_stake_multiple;
|
|
1831
|
+
}
|
|
1832
|
+
if (object.max_total_content_stake_per_member !== undefined && object.max_total_content_stake_per_member !== null) {
|
|
1833
|
+
message.maxTotalContentStakePerMember = object.max_total_content_stake_per_member;
|
|
1834
|
+
}
|
|
1747
1835
|
if (object.max_jury_redraws !== undefined && object.max_jury_redraws !== null) {
|
|
1748
1836
|
message.maxJuryRedraws = object.max_jury_redraws;
|
|
1749
1837
|
}
|
|
@@ -1910,12 +1998,18 @@ exports.Params = {
|
|
|
1910
1998
|
obj.invitation_stake_burn_rate = message.invitationStakeBurnRate === "" ? undefined : message.invitationStakeBurnRate;
|
|
1911
1999
|
obj.max_reputation_gain_per_epoch = message.maxReputationGainPerEpoch === "" ? undefined : message.maxReputationGainPerEpoch;
|
|
1912
2000
|
obj.max_staking_rewards_per_season = message.maxStakingRewardsPerSeason === "" ? undefined : message.maxStakingRewardsPerSeason;
|
|
2001
|
+
obj.staking_reward_yield_per_epoch = message.stakingRewardYieldPerEpoch === "" ? undefined : message.stakingRewardYieldPerEpoch;
|
|
2002
|
+
obj.staking_pool_mint_share = message.stakingPoolMintShare === "" ? undefined : message.stakingPoolMintShare;
|
|
2003
|
+
obj.staking_pool_cap_base = message.stakingPoolCapBase === "" ? undefined : message.stakingPoolCapBase;
|
|
2004
|
+
obj.staking_pool_cap_rate = message.stakingPoolCapRate === "" ? undefined : message.stakingPoolCapRate;
|
|
1913
2005
|
obj.staked_decay_rate = message.stakedDecayRate === "" ? undefined : message.stakedDecayRate;
|
|
1914
2006
|
obj.new_member_decay_grace_epochs = message.newMemberDecayGraceEpochs !== BigInt(0) ? message.newMemberDecayGraceEpochs?.toString() : undefined;
|
|
1915
2007
|
obj.max_treasury_balance = message.maxTreasuryBalance === "" ? undefined : message.maxTreasuryBalance;
|
|
1916
2008
|
obj.treasury_funds_interims = message.treasuryFundsInterims === false ? undefined : message.treasuryFundsInterims;
|
|
1917
2009
|
obj.treasury_funds_retro_pgf = message.treasuryFundsRetroPgf === false ? undefined : message.treasuryFundsRetroPgf;
|
|
1918
2010
|
obj.max_initiative_stake_per_member = message.maxInitiativeStakePerMember === "" ? undefined : message.maxInitiativeStakePerMember;
|
|
2011
|
+
obj.min_stake_amount = message.minStakeAmount === "" ? undefined : message.minStakeAmount;
|
|
2012
|
+
obj.max_interim_rewards_per_season = message.maxInterimRewardsPerSeason === "" ? undefined : message.maxInterimRewardsPerSeason;
|
|
1919
2013
|
obj.max_initiative_rewards_per_season = message.maxInitiativeRewardsPerSeason === "" ? undefined : message.maxInitiativeRewardsPerSeason;
|
|
1920
2014
|
obj.large_project_budget_threshold = message.largeProjectBudgetThreshold === "" ? undefined : message.largeProjectBudgetThreshold;
|
|
1921
2015
|
obj.project_creation_fee = message.projectCreationFee === "" ? undefined : message.projectCreationFee;
|
|
@@ -1949,6 +2043,8 @@ exports.Params = {
|
|
|
1949
2043
|
obj.min_juror_selection_weight = message.minJurorSelectionWeight === "" ? undefined : message.minJurorSelectionWeight;
|
|
1950
2044
|
obj.min_jury_seatings_for_weighting = message.minJurySeatingsForWeighting !== BigInt(0) ? message.minJurySeatingsForWeighting?.toString() : undefined;
|
|
1951
2045
|
obj.initiative_completion_bonus_rate = message.initiativeCompletionBonusRate === "" ? undefined : message.initiativeCompletionBonusRate;
|
|
2046
|
+
obj.max_completion_bonus_stake_multiple = message.maxCompletionBonusStakeMultiple === "" ? undefined : message.maxCompletionBonusStakeMultiple;
|
|
2047
|
+
obj.max_total_content_stake_per_member = message.maxTotalContentStakePerMember === "" ? undefined : message.maxTotalContentStakePerMember;
|
|
1952
2048
|
obj.max_jury_redraws = message.maxJuryRedraws === 0 ? undefined : message.maxJuryRedraws;
|
|
1953
2049
|
obj.reviewer_bond_reserve_rate = message.reviewerBondReserveRate === "" ? undefined : message.reviewerBondReserveRate;
|
|
1954
2050
|
obj.review_fee_rate = message.reviewFeeRate === "" ? undefined : message.reviewFeeRate;
|
|
@@ -2063,6 +2159,8 @@ function createBaseRepOperationalParams() {
|
|
|
2063
2159
|
treasuryFundsInterims: false,
|
|
2064
2160
|
treasuryFundsRetroPgf: false,
|
|
2065
2161
|
maxInitiativeStakePerMember: "",
|
|
2162
|
+
minStakeAmount: "",
|
|
2163
|
+
maxInterimRewardsPerSeason: "",
|
|
2066
2164
|
maxInitiativeRewardsPerSeason: "",
|
|
2067
2165
|
largeProjectBudgetThreshold: "",
|
|
2068
2166
|
projectCreationFee: "",
|
|
@@ -2089,6 +2187,8 @@ function createBaseRepOperationalParams() {
|
|
|
2089
2187
|
minJurorSelectionWeight: "",
|
|
2090
2188
|
minJurySeatingsForWeighting: BigInt(0),
|
|
2091
2189
|
initiativeCompletionBonusRate: "",
|
|
2190
|
+
maxCompletionBonusStakeMultiple: "",
|
|
2191
|
+
maxTotalContentStakePerMember: "",
|
|
2092
2192
|
juryAcceptanceWindowRatio: "",
|
|
2093
2193
|
maxJuryRedraws: 0,
|
|
2094
2194
|
reviewerBondReserveRate: "",
|
|
@@ -2122,7 +2222,11 @@ function createBaseRepOperationalParams() {
|
|
|
2122
2222
|
minReviewerRepTier: BigInt(0),
|
|
2123
2223
|
minReviewerAgeBlocks: BigInt(0),
|
|
2124
2224
|
reviewerDemotionCooldown: BigInt(0),
|
|
2125
|
-
reviewerUnbondCooldown: BigInt(0)
|
|
2225
|
+
reviewerUnbondCooldown: BigInt(0),
|
|
2226
|
+
stakingRewardYieldPerEpoch: "",
|
|
2227
|
+
stakingPoolMintShare: "",
|
|
2228
|
+
stakingPoolCapBase: "",
|
|
2229
|
+
stakingPoolCapRate: ""
|
|
2126
2230
|
};
|
|
2127
2231
|
}
|
|
2128
2232
|
/**
|
|
@@ -2302,6 +2406,12 @@ exports.RepOperationalParams = {
|
|
|
2302
2406
|
if (message.maxInitiativeStakePerMember !== "") {
|
|
2303
2407
|
writer.uint32(442).string(message.maxInitiativeStakePerMember);
|
|
2304
2408
|
}
|
|
2409
|
+
if (message.minStakeAmount !== "") {
|
|
2410
|
+
writer.uint32(962).string(message.minStakeAmount);
|
|
2411
|
+
}
|
|
2412
|
+
if (message.maxInterimRewardsPerSeason !== "") {
|
|
2413
|
+
writer.uint32(986).string(message.maxInterimRewardsPerSeason);
|
|
2414
|
+
}
|
|
2305
2415
|
if (message.maxInitiativeRewardsPerSeason !== "") {
|
|
2306
2416
|
writer.uint32(450).string(message.maxInitiativeRewardsPerSeason);
|
|
2307
2417
|
}
|
|
@@ -2380,6 +2490,12 @@ exports.RepOperationalParams = {
|
|
|
2380
2490
|
if (message.initiativeCompletionBonusRate !== "") {
|
|
2381
2491
|
writer.uint32(650).string(math_1.Decimal.fromUserInput(message.initiativeCompletionBonusRate, 18).atomics);
|
|
2382
2492
|
}
|
|
2493
|
+
if (message.maxCompletionBonusStakeMultiple !== "") {
|
|
2494
|
+
writer.uint32(970).string(math_1.Decimal.fromUserInput(message.maxCompletionBonusStakeMultiple, 18).atomics);
|
|
2495
|
+
}
|
|
2496
|
+
if (message.maxTotalContentStakePerMember !== "") {
|
|
2497
|
+
writer.uint32(978).string(message.maxTotalContentStakePerMember);
|
|
2498
|
+
}
|
|
2383
2499
|
if (message.juryAcceptanceWindowRatio !== "") {
|
|
2384
2500
|
writer.uint32(658).string(math_1.Decimal.fromUserInput(message.juryAcceptanceWindowRatio, 18).atomics);
|
|
2385
2501
|
}
|
|
@@ -2482,6 +2598,18 @@ exports.RepOperationalParams = {
|
|
|
2482
2598
|
if (message.reviewerUnbondCooldown !== BigInt(0)) {
|
|
2483
2599
|
writer.uint32(920).int64(message.reviewerUnbondCooldown);
|
|
2484
2600
|
}
|
|
2601
|
+
if (message.stakingRewardYieldPerEpoch !== "") {
|
|
2602
|
+
writer.uint32(930).string(math_1.Decimal.fromUserInput(message.stakingRewardYieldPerEpoch, 18).atomics);
|
|
2603
|
+
}
|
|
2604
|
+
if (message.stakingPoolMintShare !== "") {
|
|
2605
|
+
writer.uint32(938).string(math_1.Decimal.fromUserInput(message.stakingPoolMintShare, 18).atomics);
|
|
2606
|
+
}
|
|
2607
|
+
if (message.stakingPoolCapBase !== "") {
|
|
2608
|
+
writer.uint32(946).string(message.stakingPoolCapBase);
|
|
2609
|
+
}
|
|
2610
|
+
if (message.stakingPoolCapRate !== "") {
|
|
2611
|
+
writer.uint32(954).string(math_1.Decimal.fromUserInput(message.stakingPoolCapRate, 18).atomics);
|
|
2612
|
+
}
|
|
2485
2613
|
return writer;
|
|
2486
2614
|
},
|
|
2487
2615
|
decode(input, length) {
|
|
@@ -2656,6 +2784,12 @@ exports.RepOperationalParams = {
|
|
|
2656
2784
|
case 55:
|
|
2657
2785
|
message.maxInitiativeStakePerMember = reader.string();
|
|
2658
2786
|
break;
|
|
2787
|
+
case 120:
|
|
2788
|
+
message.minStakeAmount = reader.string();
|
|
2789
|
+
break;
|
|
2790
|
+
case 123:
|
|
2791
|
+
message.maxInterimRewardsPerSeason = reader.string();
|
|
2792
|
+
break;
|
|
2659
2793
|
case 56:
|
|
2660
2794
|
message.maxInitiativeRewardsPerSeason = reader.string();
|
|
2661
2795
|
break;
|
|
@@ -2734,6 +2868,12 @@ exports.RepOperationalParams = {
|
|
|
2734
2868
|
case 81:
|
|
2735
2869
|
message.initiativeCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2736
2870
|
break;
|
|
2871
|
+
case 121:
|
|
2872
|
+
message.maxCompletionBonusStakeMultiple = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2873
|
+
break;
|
|
2874
|
+
case 122:
|
|
2875
|
+
message.maxTotalContentStakePerMember = reader.string();
|
|
2876
|
+
break;
|
|
2737
2877
|
case 82:
|
|
2738
2878
|
message.juryAcceptanceWindowRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2739
2879
|
break;
|
|
@@ -2836,6 +2976,18 @@ exports.RepOperationalParams = {
|
|
|
2836
2976
|
case 115:
|
|
2837
2977
|
message.reviewerUnbondCooldown = reader.int64();
|
|
2838
2978
|
break;
|
|
2979
|
+
case 116:
|
|
2980
|
+
message.stakingRewardYieldPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2981
|
+
break;
|
|
2982
|
+
case 117:
|
|
2983
|
+
message.stakingPoolMintShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2984
|
+
break;
|
|
2985
|
+
case 118:
|
|
2986
|
+
message.stakingPoolCapBase = reader.string();
|
|
2987
|
+
break;
|
|
2988
|
+
case 119:
|
|
2989
|
+
message.stakingPoolCapRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2990
|
+
break;
|
|
2839
2991
|
default:
|
|
2840
2992
|
reader.skipType(tag & 7);
|
|
2841
2993
|
break;
|
|
@@ -2900,6 +3052,8 @@ exports.RepOperationalParams = {
|
|
|
2900
3052
|
message.treasuryFundsInterims = object.treasuryFundsInterims ?? false;
|
|
2901
3053
|
message.treasuryFundsRetroPgf = object.treasuryFundsRetroPgf ?? false;
|
|
2902
3054
|
message.maxInitiativeStakePerMember = object.maxInitiativeStakePerMember ?? "";
|
|
3055
|
+
message.minStakeAmount = object.minStakeAmount ?? "";
|
|
3056
|
+
message.maxInterimRewardsPerSeason = object.maxInterimRewardsPerSeason ?? "";
|
|
2903
3057
|
message.maxInitiativeRewardsPerSeason = object.maxInitiativeRewardsPerSeason ?? "";
|
|
2904
3058
|
message.largeProjectBudgetThreshold = object.largeProjectBudgetThreshold ?? "";
|
|
2905
3059
|
message.projectCreationFee = object.projectCreationFee ?? "";
|
|
@@ -2926,6 +3080,8 @@ exports.RepOperationalParams = {
|
|
|
2926
3080
|
message.minJurorSelectionWeight = object.minJurorSelectionWeight ?? "";
|
|
2927
3081
|
message.minJurySeatingsForWeighting = object.minJurySeatingsForWeighting !== undefined && object.minJurySeatingsForWeighting !== null ? BigInt(object.minJurySeatingsForWeighting.toString()) : BigInt(0);
|
|
2928
3082
|
message.initiativeCompletionBonusRate = object.initiativeCompletionBonusRate ?? "";
|
|
3083
|
+
message.maxCompletionBonusStakeMultiple = object.maxCompletionBonusStakeMultiple ?? "";
|
|
3084
|
+
message.maxTotalContentStakePerMember = object.maxTotalContentStakePerMember ?? "";
|
|
2929
3085
|
message.juryAcceptanceWindowRatio = object.juryAcceptanceWindowRatio ?? "";
|
|
2930
3086
|
message.maxJuryRedraws = object.maxJuryRedraws ?? 0;
|
|
2931
3087
|
message.reviewerBondReserveRate = object.reviewerBondReserveRate ?? "";
|
|
@@ -2960,6 +3116,10 @@ exports.RepOperationalParams = {
|
|
|
2960
3116
|
message.minReviewerAgeBlocks = object.minReviewerAgeBlocks !== undefined && object.minReviewerAgeBlocks !== null ? BigInt(object.minReviewerAgeBlocks.toString()) : BigInt(0);
|
|
2961
3117
|
message.reviewerDemotionCooldown = object.reviewerDemotionCooldown !== undefined && object.reviewerDemotionCooldown !== null ? BigInt(object.reviewerDemotionCooldown.toString()) : BigInt(0);
|
|
2962
3118
|
message.reviewerUnbondCooldown = object.reviewerUnbondCooldown !== undefined && object.reviewerUnbondCooldown !== null ? BigInt(object.reviewerUnbondCooldown.toString()) : BigInt(0);
|
|
3119
|
+
message.stakingRewardYieldPerEpoch = object.stakingRewardYieldPerEpoch ?? "";
|
|
3120
|
+
message.stakingPoolMintShare = object.stakingPoolMintShare ?? "";
|
|
3121
|
+
message.stakingPoolCapBase = object.stakingPoolCapBase ?? "";
|
|
3122
|
+
message.stakingPoolCapRate = object.stakingPoolCapRate ?? "";
|
|
2963
3123
|
return message;
|
|
2964
3124
|
},
|
|
2965
3125
|
fromAmino(object) {
|
|
@@ -3129,6 +3289,12 @@ exports.RepOperationalParams = {
|
|
|
3129
3289
|
if (object.max_initiative_stake_per_member !== undefined && object.max_initiative_stake_per_member !== null) {
|
|
3130
3290
|
message.maxInitiativeStakePerMember = object.max_initiative_stake_per_member;
|
|
3131
3291
|
}
|
|
3292
|
+
if (object.min_stake_amount !== undefined && object.min_stake_amount !== null) {
|
|
3293
|
+
message.minStakeAmount = object.min_stake_amount;
|
|
3294
|
+
}
|
|
3295
|
+
if (object.max_interim_rewards_per_season !== undefined && object.max_interim_rewards_per_season !== null) {
|
|
3296
|
+
message.maxInterimRewardsPerSeason = object.max_interim_rewards_per_season;
|
|
3297
|
+
}
|
|
3132
3298
|
if (object.max_initiative_rewards_per_season !== undefined && object.max_initiative_rewards_per_season !== null) {
|
|
3133
3299
|
message.maxInitiativeRewardsPerSeason = object.max_initiative_rewards_per_season;
|
|
3134
3300
|
}
|
|
@@ -3207,6 +3373,12 @@ exports.RepOperationalParams = {
|
|
|
3207
3373
|
if (object.initiative_completion_bonus_rate !== undefined && object.initiative_completion_bonus_rate !== null) {
|
|
3208
3374
|
message.initiativeCompletionBonusRate = object.initiative_completion_bonus_rate;
|
|
3209
3375
|
}
|
|
3376
|
+
if (object.max_completion_bonus_stake_multiple !== undefined && object.max_completion_bonus_stake_multiple !== null) {
|
|
3377
|
+
message.maxCompletionBonusStakeMultiple = object.max_completion_bonus_stake_multiple;
|
|
3378
|
+
}
|
|
3379
|
+
if (object.max_total_content_stake_per_member !== undefined && object.max_total_content_stake_per_member !== null) {
|
|
3380
|
+
message.maxTotalContentStakePerMember = object.max_total_content_stake_per_member;
|
|
3381
|
+
}
|
|
3210
3382
|
if (object.jury_acceptance_window_ratio !== undefined && object.jury_acceptance_window_ratio !== null) {
|
|
3211
3383
|
message.juryAcceptanceWindowRatio = object.jury_acceptance_window_ratio;
|
|
3212
3384
|
}
|
|
@@ -3309,6 +3481,18 @@ exports.RepOperationalParams = {
|
|
|
3309
3481
|
if (object.reviewer_unbond_cooldown !== undefined && object.reviewer_unbond_cooldown !== null) {
|
|
3310
3482
|
message.reviewerUnbondCooldown = BigInt(object.reviewer_unbond_cooldown);
|
|
3311
3483
|
}
|
|
3484
|
+
if (object.staking_reward_yield_per_epoch !== undefined && object.staking_reward_yield_per_epoch !== null) {
|
|
3485
|
+
message.stakingRewardYieldPerEpoch = object.staking_reward_yield_per_epoch;
|
|
3486
|
+
}
|
|
3487
|
+
if (object.staking_pool_mint_share !== undefined && object.staking_pool_mint_share !== null) {
|
|
3488
|
+
message.stakingPoolMintShare = object.staking_pool_mint_share;
|
|
3489
|
+
}
|
|
3490
|
+
if (object.staking_pool_cap_base !== undefined && object.staking_pool_cap_base !== null) {
|
|
3491
|
+
message.stakingPoolCapBase = object.staking_pool_cap_base;
|
|
3492
|
+
}
|
|
3493
|
+
if (object.staking_pool_cap_rate !== undefined && object.staking_pool_cap_rate !== null) {
|
|
3494
|
+
message.stakingPoolCapRate = object.staking_pool_cap_rate;
|
|
3495
|
+
}
|
|
3312
3496
|
return message;
|
|
3313
3497
|
},
|
|
3314
3498
|
toAmino(message) {
|
|
@@ -3368,6 +3552,8 @@ exports.RepOperationalParams = {
|
|
|
3368
3552
|
obj.treasury_funds_interims = message.treasuryFundsInterims === false ? undefined : message.treasuryFundsInterims;
|
|
3369
3553
|
obj.treasury_funds_retro_pgf = message.treasuryFundsRetroPgf === false ? undefined : message.treasuryFundsRetroPgf;
|
|
3370
3554
|
obj.max_initiative_stake_per_member = message.maxInitiativeStakePerMember === "" ? undefined : message.maxInitiativeStakePerMember;
|
|
3555
|
+
obj.min_stake_amount = message.minStakeAmount === "" ? undefined : message.minStakeAmount;
|
|
3556
|
+
obj.max_interim_rewards_per_season = message.maxInterimRewardsPerSeason === "" ? undefined : message.maxInterimRewardsPerSeason;
|
|
3371
3557
|
obj.max_initiative_rewards_per_season = message.maxInitiativeRewardsPerSeason === "" ? undefined : message.maxInitiativeRewardsPerSeason;
|
|
3372
3558
|
obj.large_project_budget_threshold = message.largeProjectBudgetThreshold === "" ? undefined : message.largeProjectBudgetThreshold;
|
|
3373
3559
|
obj.project_creation_fee = message.projectCreationFee === "" ? undefined : message.projectCreationFee;
|
|
@@ -3394,6 +3580,8 @@ exports.RepOperationalParams = {
|
|
|
3394
3580
|
obj.min_juror_selection_weight = message.minJurorSelectionWeight === "" ? undefined : message.minJurorSelectionWeight;
|
|
3395
3581
|
obj.min_jury_seatings_for_weighting = message.minJurySeatingsForWeighting !== BigInt(0) ? message.minJurySeatingsForWeighting?.toString() : undefined;
|
|
3396
3582
|
obj.initiative_completion_bonus_rate = message.initiativeCompletionBonusRate === "" ? undefined : message.initiativeCompletionBonusRate;
|
|
3583
|
+
obj.max_completion_bonus_stake_multiple = message.maxCompletionBonusStakeMultiple === "" ? undefined : message.maxCompletionBonusStakeMultiple;
|
|
3584
|
+
obj.max_total_content_stake_per_member = message.maxTotalContentStakePerMember === "" ? undefined : message.maxTotalContentStakePerMember;
|
|
3397
3585
|
obj.jury_acceptance_window_ratio = message.juryAcceptanceWindowRatio === "" ? undefined : message.juryAcceptanceWindowRatio;
|
|
3398
3586
|
obj.max_jury_redraws = message.maxJuryRedraws === 0 ? undefined : message.maxJuryRedraws;
|
|
3399
3587
|
obj.reviewer_bond_reserve_rate = message.reviewerBondReserveRate === "" ? undefined : message.reviewerBondReserveRate;
|
|
@@ -3428,6 +3616,10 @@ exports.RepOperationalParams = {
|
|
|
3428
3616
|
obj.min_reviewer_age_blocks = message.minReviewerAgeBlocks !== BigInt(0) ? message.minReviewerAgeBlocks?.toString() : undefined;
|
|
3429
3617
|
obj.reviewer_demotion_cooldown = message.reviewerDemotionCooldown !== BigInt(0) ? message.reviewerDemotionCooldown?.toString() : undefined;
|
|
3430
3618
|
obj.reviewer_unbond_cooldown = message.reviewerUnbondCooldown !== BigInt(0) ? message.reviewerUnbondCooldown?.toString() : undefined;
|
|
3619
|
+
obj.staking_reward_yield_per_epoch = message.stakingRewardYieldPerEpoch === "" ? undefined : message.stakingRewardYieldPerEpoch;
|
|
3620
|
+
obj.staking_pool_mint_share = message.stakingPoolMintShare === "" ? undefined : message.stakingPoolMintShare;
|
|
3621
|
+
obj.staking_pool_cap_base = message.stakingPoolCapBase === "" ? undefined : message.stakingPoolCapBase;
|
|
3622
|
+
obj.staking_pool_cap_rate = message.stakingPoolCapRate === "" ? undefined : message.stakingPoolCapRate;
|
|
3431
3623
|
return obj;
|
|
3432
3624
|
},
|
|
3433
3625
|
fromAminoMsg(object) {
|
|
@@ -2706,8 +2706,19 @@ export interface QueryDreamSupplyStatsRequestAminoMsg {
|
|
|
2706
2706
|
* @see proto type: sparkdream.rep.v1.QueryDreamSupplyStatsResponse
|
|
2707
2707
|
*/
|
|
2708
2708
|
export interface QueryDreamSupplyStatsResponse {
|
|
2709
|
-
|
|
2710
|
-
|
|
2709
|
+
/**
|
|
2710
|
+
* Season-scoped flow figures, the same pair QueryMintBurnRatio returns. They
|
|
2711
|
+
* were named total_minted/total_burned while reading the per-season
|
|
2712
|
+
* counters, which reads as an all-time supply figure and is not: those
|
|
2713
|
+
* counters reset every season in InitSeasonalPool.
|
|
2714
|
+
*
|
|
2715
|
+
* There are no all-time counters to point them at instead, and adding some
|
|
2716
|
+
* would be redundant — circulating (every member's balance, staked included)
|
|
2717
|
+
* plus treasury_balance below is already the complete live supply, which is
|
|
2718
|
+
* what all-time minted-minus-burned would only approximate.
|
|
2719
|
+
*/
|
|
2720
|
+
seasonMinted: string;
|
|
2721
|
+
seasonBurned: string;
|
|
2711
2722
|
circulating: string;
|
|
2712
2723
|
totalStaked: string;
|
|
2713
2724
|
treasuryBalance: string;
|
|
@@ -2723,8 +2734,19 @@ export interface QueryDreamSupplyStatsResponseProtoMsg {
|
|
|
2723
2734
|
* @see proto type: sparkdream.rep.v1.QueryDreamSupplyStatsResponse
|
|
2724
2735
|
*/
|
|
2725
2736
|
export interface QueryDreamSupplyStatsResponseAmino {
|
|
2726
|
-
|
|
2727
|
-
|
|
2737
|
+
/**
|
|
2738
|
+
* Season-scoped flow figures, the same pair QueryMintBurnRatio returns. They
|
|
2739
|
+
* were named total_minted/total_burned while reading the per-season
|
|
2740
|
+
* counters, which reads as an all-time supply figure and is not: those
|
|
2741
|
+
* counters reset every season in InitSeasonalPool.
|
|
2742
|
+
*
|
|
2743
|
+
* There are no all-time counters to point them at instead, and adding some
|
|
2744
|
+
* would be redundant — circulating (every member's balance, staked included)
|
|
2745
|
+
* plus treasury_balance below is already the complete live supply, which is
|
|
2746
|
+
* what all-time minted-minus-burned would only approximate.
|
|
2747
|
+
*/
|
|
2748
|
+
season_minted?: string;
|
|
2749
|
+
season_burned?: string;
|
|
2728
2750
|
circulating?: string;
|
|
2729
2751
|
total_staked?: string;
|
|
2730
2752
|
treasury_balance?: string;
|
|
@@ -7318,8 +7318,8 @@ exports.QueryDreamSupplyStatsRequest = {
|
|
|
7318
7318
|
};
|
|
7319
7319
|
function createBaseQueryDreamSupplyStatsResponse() {
|
|
7320
7320
|
return {
|
|
7321
|
-
|
|
7322
|
-
|
|
7321
|
+
seasonMinted: "",
|
|
7322
|
+
seasonBurned: "",
|
|
7323
7323
|
circulating: "",
|
|
7324
7324
|
totalStaked: "",
|
|
7325
7325
|
treasuryBalance: "",
|
|
@@ -7334,11 +7334,11 @@ function createBaseQueryDreamSupplyStatsResponse() {
|
|
|
7334
7334
|
exports.QueryDreamSupplyStatsResponse = {
|
|
7335
7335
|
typeUrl: "/sparkdream.rep.v1.QueryDreamSupplyStatsResponse",
|
|
7336
7336
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
7337
|
-
if (message.
|
|
7338
|
-
writer.uint32(10).string(message.
|
|
7337
|
+
if (message.seasonMinted !== "") {
|
|
7338
|
+
writer.uint32(10).string(message.seasonMinted);
|
|
7339
7339
|
}
|
|
7340
|
-
if (message.
|
|
7341
|
-
writer.uint32(18).string(message.
|
|
7340
|
+
if (message.seasonBurned !== "") {
|
|
7341
|
+
writer.uint32(18).string(message.seasonBurned);
|
|
7342
7342
|
}
|
|
7343
7343
|
if (message.circulating !== "") {
|
|
7344
7344
|
writer.uint32(26).string(message.circulating);
|
|
@@ -7362,10 +7362,10 @@ exports.QueryDreamSupplyStatsResponse = {
|
|
|
7362
7362
|
const tag = reader.uint32();
|
|
7363
7363
|
switch (tag >>> 3) {
|
|
7364
7364
|
case 1:
|
|
7365
|
-
message.
|
|
7365
|
+
message.seasonMinted = reader.string();
|
|
7366
7366
|
break;
|
|
7367
7367
|
case 2:
|
|
7368
|
-
message.
|
|
7368
|
+
message.seasonBurned = reader.string();
|
|
7369
7369
|
break;
|
|
7370
7370
|
case 3:
|
|
7371
7371
|
message.circulating = reader.string();
|
|
@@ -7388,8 +7388,8 @@ exports.QueryDreamSupplyStatsResponse = {
|
|
|
7388
7388
|
},
|
|
7389
7389
|
fromPartial(object) {
|
|
7390
7390
|
const message = createBaseQueryDreamSupplyStatsResponse();
|
|
7391
|
-
message.
|
|
7392
|
-
message.
|
|
7391
|
+
message.seasonMinted = object.seasonMinted ?? "";
|
|
7392
|
+
message.seasonBurned = object.seasonBurned ?? "";
|
|
7393
7393
|
message.circulating = object.circulating ?? "";
|
|
7394
7394
|
message.totalStaked = object.totalStaked ?? "";
|
|
7395
7395
|
message.treasuryBalance = object.treasuryBalance ?? "";
|
|
@@ -7398,11 +7398,11 @@ exports.QueryDreamSupplyStatsResponse = {
|
|
|
7398
7398
|
},
|
|
7399
7399
|
fromAmino(object) {
|
|
7400
7400
|
const message = createBaseQueryDreamSupplyStatsResponse();
|
|
7401
|
-
if (object.
|
|
7402
|
-
message.
|
|
7401
|
+
if (object.season_minted !== undefined && object.season_minted !== null) {
|
|
7402
|
+
message.seasonMinted = object.season_minted;
|
|
7403
7403
|
}
|
|
7404
|
-
if (object.
|
|
7405
|
-
message.
|
|
7404
|
+
if (object.season_burned !== undefined && object.season_burned !== null) {
|
|
7405
|
+
message.seasonBurned = object.season_burned;
|
|
7406
7406
|
}
|
|
7407
7407
|
if (object.circulating !== undefined && object.circulating !== null) {
|
|
7408
7408
|
message.circulating = object.circulating;
|
|
@@ -7420,8 +7420,8 @@ exports.QueryDreamSupplyStatsResponse = {
|
|
|
7420
7420
|
},
|
|
7421
7421
|
toAmino(message) {
|
|
7422
7422
|
const obj = {};
|
|
7423
|
-
obj.
|
|
7424
|
-
obj.
|
|
7423
|
+
obj.season_minted = message.seasonMinted === "" ? undefined : message.seasonMinted;
|
|
7424
|
+
obj.season_burned = message.seasonBurned === "" ? undefined : message.seasonBurned;
|
|
7425
7425
|
obj.circulating = message.circulating === "" ? undefined : message.circulating;
|
|
7426
7426
|
obj.total_staked = message.totalStaked === "" ? undefined : message.totalStaked;
|
|
7427
7427
|
obj.treasury_balance = message.treasuryBalance === "" ? undefined : message.treasuryBalance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Params, ParamsAmino, RepOperationalParams, RepOperationalParamsAmino } from "./params";
|
|
2
|
-
import { InterimType, InterimComplexity } from "./interim";
|
|
2
|
+
import { InterimType, InterimComplexity, AdjudicationDecision } from "./interim";
|
|
3
3
|
import { ProjectCategory, VerificationPolicy, VerificationPolicyAmino } from "./project";
|
|
4
4
|
import { VerificationCriteria, VerificationCriteriaAmino } from "./acceptance_criteria";
|
|
5
5
|
import { StakeTargetType } from "./stake";
|
|
@@ -608,6 +608,12 @@ export interface MsgCompleteInterim {
|
|
|
608
608
|
creator: string;
|
|
609
609
|
interimId: bigint;
|
|
610
610
|
completionNotes: string;
|
|
611
|
+
/**
|
|
612
|
+
* Required when the interim is an ADJUDICATION: the committee's verdict on
|
|
613
|
+
* the challenge the interim was raised to settle. Ignored for every other
|
|
614
|
+
* interim type.
|
|
615
|
+
*/
|
|
616
|
+
decision: AdjudicationDecision;
|
|
611
617
|
}
|
|
612
618
|
export interface MsgCompleteInterimProtoMsg {
|
|
613
619
|
typeUrl: "/sparkdream.rep.v1.MsgCompleteInterim";
|
|
@@ -623,6 +629,12 @@ export interface MsgCompleteInterimAmino {
|
|
|
623
629
|
creator?: string;
|
|
624
630
|
interim_id?: string;
|
|
625
631
|
completion_notes?: string;
|
|
632
|
+
/**
|
|
633
|
+
* Required when the interim is an ADJUDICATION: the committee's verdict on
|
|
634
|
+
* the challenge the interim was raised to settle. Ignored for every other
|
|
635
|
+
* interim type.
|
|
636
|
+
*/
|
|
637
|
+
decision?: AdjudicationDecision;
|
|
626
638
|
}
|
|
627
639
|
export interface MsgCompleteInterimAminoMsg {
|
|
628
640
|
type: "sparkdream/x/rep/MsgCompleteInterim";
|
package/sparkdream/rep/v1/tx.js
CHANGED
|
@@ -1680,7 +1680,8 @@ function createBaseMsgCompleteInterim() {
|
|
|
1680
1680
|
return {
|
|
1681
1681
|
creator: "",
|
|
1682
1682
|
interimId: BigInt(0),
|
|
1683
|
-
completionNotes: ""
|
|
1683
|
+
completionNotes: "",
|
|
1684
|
+
decision: 0
|
|
1684
1685
|
};
|
|
1685
1686
|
}
|
|
1686
1687
|
/**
|
|
@@ -1702,6 +1703,9 @@ exports.MsgCompleteInterim = {
|
|
|
1702
1703
|
if (message.completionNotes !== "") {
|
|
1703
1704
|
writer.uint32(26).string(message.completionNotes);
|
|
1704
1705
|
}
|
|
1706
|
+
if (message.decision !== 0) {
|
|
1707
|
+
writer.uint32(32).int32(message.decision);
|
|
1708
|
+
}
|
|
1705
1709
|
return writer;
|
|
1706
1710
|
},
|
|
1707
1711
|
decode(input, length) {
|
|
@@ -1720,6 +1724,9 @@ exports.MsgCompleteInterim = {
|
|
|
1720
1724
|
case 3:
|
|
1721
1725
|
message.completionNotes = reader.string();
|
|
1722
1726
|
break;
|
|
1727
|
+
case 4:
|
|
1728
|
+
message.decision = reader.int32();
|
|
1729
|
+
break;
|
|
1723
1730
|
default:
|
|
1724
1731
|
reader.skipType(tag & 7);
|
|
1725
1732
|
break;
|
|
@@ -1732,6 +1739,7 @@ exports.MsgCompleteInterim = {
|
|
|
1732
1739
|
message.creator = object.creator ?? "";
|
|
1733
1740
|
message.interimId = object.interimId !== undefined && object.interimId !== null ? BigInt(object.interimId.toString()) : BigInt(0);
|
|
1734
1741
|
message.completionNotes = object.completionNotes ?? "";
|
|
1742
|
+
message.decision = object.decision ?? 0;
|
|
1735
1743
|
return message;
|
|
1736
1744
|
},
|
|
1737
1745
|
fromAmino(object) {
|
|
@@ -1745,6 +1753,9 @@ exports.MsgCompleteInterim = {
|
|
|
1745
1753
|
if (object.completion_notes !== undefined && object.completion_notes !== null) {
|
|
1746
1754
|
message.completionNotes = object.completion_notes;
|
|
1747
1755
|
}
|
|
1756
|
+
if (object.decision !== undefined && object.decision !== null) {
|
|
1757
|
+
message.decision = object.decision;
|
|
1758
|
+
}
|
|
1748
1759
|
return message;
|
|
1749
1760
|
},
|
|
1750
1761
|
toAmino(message) {
|
|
@@ -1752,6 +1763,7 @@ exports.MsgCompleteInterim = {
|
|
|
1752
1763
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
1753
1764
|
obj.interim_id = message.interimId !== BigInt(0) ? message.interimId?.toString() : undefined;
|
|
1754
1765
|
obj.completion_notes = message.completionNotes === "" ? undefined : message.completionNotes;
|
|
1766
|
+
obj.decision = message.decision === 0 ? undefined : message.decision;
|
|
1755
1767
|
return obj;
|
|
1756
1768
|
},
|
|
1757
1769
|
fromAminoMsg(object) {
|