@sparkdreamnft/sparkdreamjs 0.0.36 → 0.0.37
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/federation/v1/genesis.js +101 -3
- package/esm/sparkdream/federation/v1/params.js +129 -117
- package/esm/sparkdream/federation/v1/query.js +204 -7
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -2
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +16 -3
- package/esm/sparkdream/federation/v1/types.js +73 -1
- package/esm/sparkdream/federation/v1/verifier_activity.js +143 -45
- package/esm/sparkdream/rep/v1/bonded_role.js +37 -1
- package/esm/sparkdream/rep/v1/params.js +194 -2
- package/esm/sparkdream/rep/v1/role_activity.js +13 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +50 -0
- package/sparkdream/federation/v1/genesis.d.ts +66 -0
- package/sparkdream/federation/v1/genesis.js +102 -4
- package/sparkdream/federation/v1/params.d.ts +72 -10
- package/sparkdream/federation/v1/params.js +129 -117
- package/sparkdream/federation/v1/query.d.ts +120 -3
- package/sparkdream/federation/v1/query.js +204 -7
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +11 -2
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +13 -3
- package/sparkdream/federation/v1/query.rpc.Query.js +15 -2
- package/sparkdream/federation/v1/types.d.ts +44 -0
- package/sparkdream/federation/v1/types.js +73 -1
- package/sparkdream/federation/v1/verifier_activity.d.ts +151 -68
- package/sparkdream/federation/v1/verifier_activity.js +144 -46
- package/sparkdream/rep/v1/bonded_role.d.ts +42 -0
- package/sparkdream/rep/v1/bonded_role.js +37 -1
- package/sparkdream/rep/v1/params.d.ts +96 -0
- package/sparkdream/rep/v1/params.js +194 -2
- package/sparkdream/rep/v1/role_activity.d.ts +26 -0
- package/sparkdream/rep/v1/role_activity.js +13 -1
- package/sparkdream/rpc.query.d.ts +1 -0
|
@@ -440,7 +440,15 @@ function createBaseParams() {
|
|
|
440
440
|
curatorAccuracyWindowEpochs: BigInt(0),
|
|
441
441
|
reviewRequiredAboveBudget: "",
|
|
442
442
|
reviewBountyReclaimDelay: BigInt(0),
|
|
443
|
-
permissionlessMinReviewBountyRate: ""
|
|
443
|
+
permissionlessMinReviewBountyRate: "",
|
|
444
|
+
maxVerifierRewardPool: "",
|
|
445
|
+
verifierRewardPoolOverflowBurnRatio: "",
|
|
446
|
+
verifierRewardEpochBlocks: BigInt(0),
|
|
447
|
+
minVerifierAccuracy: "",
|
|
448
|
+
verifierAccuracyWindowEpochs: BigInt(0),
|
|
449
|
+
minEpochVerifications: 0,
|
|
450
|
+
verifierDreamReward: "",
|
|
451
|
+
maxVerifierDreamMintPerEpoch: ""
|
|
444
452
|
};
|
|
445
453
|
}
|
|
446
454
|
/**
|
|
@@ -813,6 +821,30 @@ export const Params = {
|
|
|
813
821
|
if (message.permissionlessMinReviewBountyRate !== "") {
|
|
814
822
|
writer.uint32(962).string(Decimal.fromUserInput(message.permissionlessMinReviewBountyRate, 18).atomics);
|
|
815
823
|
}
|
|
824
|
+
if (message.maxVerifierRewardPool !== "") {
|
|
825
|
+
writer.uint32(970).string(message.maxVerifierRewardPool);
|
|
826
|
+
}
|
|
827
|
+
if (message.verifierRewardPoolOverflowBurnRatio !== "") {
|
|
828
|
+
writer.uint32(978).string(Decimal.fromUserInput(message.verifierRewardPoolOverflowBurnRatio, 18).atomics);
|
|
829
|
+
}
|
|
830
|
+
if (message.verifierRewardEpochBlocks !== BigInt(0)) {
|
|
831
|
+
writer.uint32(984).uint64(message.verifierRewardEpochBlocks);
|
|
832
|
+
}
|
|
833
|
+
if (message.minVerifierAccuracy !== "") {
|
|
834
|
+
writer.uint32(994).string(Decimal.fromUserInput(message.minVerifierAccuracy, 18).atomics);
|
|
835
|
+
}
|
|
836
|
+
if (message.verifierAccuracyWindowEpochs !== BigInt(0)) {
|
|
837
|
+
writer.uint32(1000).uint64(message.verifierAccuracyWindowEpochs);
|
|
838
|
+
}
|
|
839
|
+
if (message.minEpochVerifications !== 0) {
|
|
840
|
+
writer.uint32(1008).uint32(message.minEpochVerifications);
|
|
841
|
+
}
|
|
842
|
+
if (message.verifierDreamReward !== "") {
|
|
843
|
+
writer.uint32(1018).string(message.verifierDreamReward);
|
|
844
|
+
}
|
|
845
|
+
if (message.maxVerifierDreamMintPerEpoch !== "") {
|
|
846
|
+
writer.uint32(1026).string(message.maxVerifierDreamMintPerEpoch);
|
|
847
|
+
}
|
|
816
848
|
return writer;
|
|
817
849
|
},
|
|
818
850
|
decode(input, length) {
|
|
@@ -1182,6 +1214,30 @@ export const Params = {
|
|
|
1182
1214
|
case 120:
|
|
1183
1215
|
message.permissionlessMinReviewBountyRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1184
1216
|
break;
|
|
1217
|
+
case 121:
|
|
1218
|
+
message.maxVerifierRewardPool = reader.string();
|
|
1219
|
+
break;
|
|
1220
|
+
case 122:
|
|
1221
|
+
message.verifierRewardPoolOverflowBurnRatio = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1222
|
+
break;
|
|
1223
|
+
case 123:
|
|
1224
|
+
message.verifierRewardEpochBlocks = reader.uint64();
|
|
1225
|
+
break;
|
|
1226
|
+
case 124:
|
|
1227
|
+
message.minVerifierAccuracy = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1228
|
+
break;
|
|
1229
|
+
case 125:
|
|
1230
|
+
message.verifierAccuracyWindowEpochs = reader.uint64();
|
|
1231
|
+
break;
|
|
1232
|
+
case 126:
|
|
1233
|
+
message.minEpochVerifications = reader.uint32();
|
|
1234
|
+
break;
|
|
1235
|
+
case 127:
|
|
1236
|
+
message.verifierDreamReward = reader.string();
|
|
1237
|
+
break;
|
|
1238
|
+
case 128:
|
|
1239
|
+
message.maxVerifierDreamMintPerEpoch = reader.string();
|
|
1240
|
+
break;
|
|
1185
1241
|
default:
|
|
1186
1242
|
reader.skipType(tag & 7);
|
|
1187
1243
|
break;
|
|
@@ -1311,6 +1367,14 @@ export const Params = {
|
|
|
1311
1367
|
message.reviewRequiredAboveBudget = object.reviewRequiredAboveBudget ?? "";
|
|
1312
1368
|
message.reviewBountyReclaimDelay = object.reviewBountyReclaimDelay !== undefined && object.reviewBountyReclaimDelay !== null ? BigInt(object.reviewBountyReclaimDelay.toString()) : BigInt(0);
|
|
1313
1369
|
message.permissionlessMinReviewBountyRate = object.permissionlessMinReviewBountyRate ?? "";
|
|
1370
|
+
message.maxVerifierRewardPool = object.maxVerifierRewardPool ?? "";
|
|
1371
|
+
message.verifierRewardPoolOverflowBurnRatio = object.verifierRewardPoolOverflowBurnRatio ?? "";
|
|
1372
|
+
message.verifierRewardEpochBlocks = object.verifierRewardEpochBlocks !== undefined && object.verifierRewardEpochBlocks !== null ? BigInt(object.verifierRewardEpochBlocks.toString()) : BigInt(0);
|
|
1373
|
+
message.minVerifierAccuracy = object.minVerifierAccuracy ?? "";
|
|
1374
|
+
message.verifierAccuracyWindowEpochs = object.verifierAccuracyWindowEpochs !== undefined && object.verifierAccuracyWindowEpochs !== null ? BigInt(object.verifierAccuracyWindowEpochs.toString()) : BigInt(0);
|
|
1375
|
+
message.minEpochVerifications = object.minEpochVerifications ?? 0;
|
|
1376
|
+
message.verifierDreamReward = object.verifierDreamReward ?? "";
|
|
1377
|
+
message.maxVerifierDreamMintPerEpoch = object.maxVerifierDreamMintPerEpoch ?? "";
|
|
1314
1378
|
return message;
|
|
1315
1379
|
},
|
|
1316
1380
|
fromAmino(object) {
|
|
@@ -1675,6 +1739,30 @@ export const Params = {
|
|
|
1675
1739
|
if (object.permissionless_min_review_bounty_rate !== undefined && object.permissionless_min_review_bounty_rate !== null) {
|
|
1676
1740
|
message.permissionlessMinReviewBountyRate = object.permissionless_min_review_bounty_rate;
|
|
1677
1741
|
}
|
|
1742
|
+
if (object.max_verifier_reward_pool !== undefined && object.max_verifier_reward_pool !== null) {
|
|
1743
|
+
message.maxVerifierRewardPool = object.max_verifier_reward_pool;
|
|
1744
|
+
}
|
|
1745
|
+
if (object.verifier_reward_pool_overflow_burn_ratio !== undefined && object.verifier_reward_pool_overflow_burn_ratio !== null) {
|
|
1746
|
+
message.verifierRewardPoolOverflowBurnRatio = object.verifier_reward_pool_overflow_burn_ratio;
|
|
1747
|
+
}
|
|
1748
|
+
if (object.verifier_reward_epoch_blocks !== undefined && object.verifier_reward_epoch_blocks !== null) {
|
|
1749
|
+
message.verifierRewardEpochBlocks = BigInt(object.verifier_reward_epoch_blocks);
|
|
1750
|
+
}
|
|
1751
|
+
if (object.min_verifier_accuracy !== undefined && object.min_verifier_accuracy !== null) {
|
|
1752
|
+
message.minVerifierAccuracy = object.min_verifier_accuracy;
|
|
1753
|
+
}
|
|
1754
|
+
if (object.verifier_accuracy_window_epochs !== undefined && object.verifier_accuracy_window_epochs !== null) {
|
|
1755
|
+
message.verifierAccuracyWindowEpochs = BigInt(object.verifier_accuracy_window_epochs);
|
|
1756
|
+
}
|
|
1757
|
+
if (object.min_epoch_verifications !== undefined && object.min_epoch_verifications !== null) {
|
|
1758
|
+
message.minEpochVerifications = object.min_epoch_verifications;
|
|
1759
|
+
}
|
|
1760
|
+
if (object.verifier_dream_reward !== undefined && object.verifier_dream_reward !== null) {
|
|
1761
|
+
message.verifierDreamReward = object.verifier_dream_reward;
|
|
1762
|
+
}
|
|
1763
|
+
if (object.max_verifier_dream_mint_per_epoch !== undefined && object.max_verifier_dream_mint_per_epoch !== null) {
|
|
1764
|
+
message.maxVerifierDreamMintPerEpoch = object.max_verifier_dream_mint_per_epoch;
|
|
1765
|
+
}
|
|
1678
1766
|
return message;
|
|
1679
1767
|
},
|
|
1680
1768
|
toAmino(message) {
|
|
@@ -1799,6 +1887,14 @@ export const Params = {
|
|
|
1799
1887
|
obj.review_required_above_budget = message.reviewRequiredAboveBudget === "" ? undefined : message.reviewRequiredAboveBudget;
|
|
1800
1888
|
obj.review_bounty_reclaim_delay = message.reviewBountyReclaimDelay !== BigInt(0) ? message.reviewBountyReclaimDelay?.toString() : undefined;
|
|
1801
1889
|
obj.permissionless_min_review_bounty_rate = message.permissionlessMinReviewBountyRate === "" ? undefined : message.permissionlessMinReviewBountyRate;
|
|
1890
|
+
obj.max_verifier_reward_pool = message.maxVerifierRewardPool === "" ? undefined : message.maxVerifierRewardPool;
|
|
1891
|
+
obj.verifier_reward_pool_overflow_burn_ratio = message.verifierRewardPoolOverflowBurnRatio === "" ? undefined : message.verifierRewardPoolOverflowBurnRatio;
|
|
1892
|
+
obj.verifier_reward_epoch_blocks = message.verifierRewardEpochBlocks !== BigInt(0) ? message.verifierRewardEpochBlocks?.toString() : undefined;
|
|
1893
|
+
obj.min_verifier_accuracy = message.minVerifierAccuracy === "" ? undefined : message.minVerifierAccuracy;
|
|
1894
|
+
obj.verifier_accuracy_window_epochs = message.verifierAccuracyWindowEpochs !== BigInt(0) ? message.verifierAccuracyWindowEpochs?.toString() : undefined;
|
|
1895
|
+
obj.min_epoch_verifications = message.minEpochVerifications === 0 ? undefined : message.minEpochVerifications;
|
|
1896
|
+
obj.verifier_dream_reward = message.verifierDreamReward === "" ? undefined : message.verifierDreamReward;
|
|
1897
|
+
obj.max_verifier_dream_mint_per_epoch = message.maxVerifierDreamMintPerEpoch === "" ? undefined : message.maxVerifierDreamMintPerEpoch;
|
|
1802
1898
|
return obj;
|
|
1803
1899
|
},
|
|
1804
1900
|
fromAminoMsg(object) {
|
|
@@ -1924,7 +2020,15 @@ function createBaseRepOperationalParams() {
|
|
|
1924
2020
|
curatorAccuracyWindowEpochs: BigInt(0),
|
|
1925
2021
|
reviewRequiredAboveBudget: "",
|
|
1926
2022
|
reviewBountyReclaimDelay: BigInt(0),
|
|
1927
|
-
permissionlessMinReviewBountyRate: ""
|
|
2023
|
+
permissionlessMinReviewBountyRate: "",
|
|
2024
|
+
maxVerifierRewardPool: "",
|
|
2025
|
+
verifierRewardPoolOverflowBurnRatio: "",
|
|
2026
|
+
verifierRewardEpochBlocks: BigInt(0),
|
|
2027
|
+
minVerifierAccuracy: "",
|
|
2028
|
+
verifierAccuracyWindowEpochs: BigInt(0),
|
|
2029
|
+
minEpochVerifications: 0,
|
|
2030
|
+
verifierDreamReward: "",
|
|
2031
|
+
maxVerifierDreamMintPerEpoch: ""
|
|
1928
2032
|
};
|
|
1929
2033
|
}
|
|
1930
2034
|
/**
|
|
@@ -2239,6 +2343,30 @@ export const RepOperationalParams = {
|
|
|
2239
2343
|
if (message.permissionlessMinReviewBountyRate !== "") {
|
|
2240
2344
|
writer.uint32(802).string(Decimal.fromUserInput(message.permissionlessMinReviewBountyRate, 18).atomics);
|
|
2241
2345
|
}
|
|
2346
|
+
if (message.maxVerifierRewardPool !== "") {
|
|
2347
|
+
writer.uint32(810).string(message.maxVerifierRewardPool);
|
|
2348
|
+
}
|
|
2349
|
+
if (message.verifierRewardPoolOverflowBurnRatio !== "") {
|
|
2350
|
+
writer.uint32(818).string(Decimal.fromUserInput(message.verifierRewardPoolOverflowBurnRatio, 18).atomics);
|
|
2351
|
+
}
|
|
2352
|
+
if (message.verifierRewardEpochBlocks !== BigInt(0)) {
|
|
2353
|
+
writer.uint32(824).uint64(message.verifierRewardEpochBlocks);
|
|
2354
|
+
}
|
|
2355
|
+
if (message.minVerifierAccuracy !== "") {
|
|
2356
|
+
writer.uint32(834).string(Decimal.fromUserInput(message.minVerifierAccuracy, 18).atomics);
|
|
2357
|
+
}
|
|
2358
|
+
if (message.verifierAccuracyWindowEpochs !== BigInt(0)) {
|
|
2359
|
+
writer.uint32(840).uint64(message.verifierAccuracyWindowEpochs);
|
|
2360
|
+
}
|
|
2361
|
+
if (message.minEpochVerifications !== 0) {
|
|
2362
|
+
writer.uint32(848).uint32(message.minEpochVerifications);
|
|
2363
|
+
}
|
|
2364
|
+
if (message.verifierDreamReward !== "") {
|
|
2365
|
+
writer.uint32(858).string(message.verifierDreamReward);
|
|
2366
|
+
}
|
|
2367
|
+
if (message.maxVerifierDreamMintPerEpoch !== "") {
|
|
2368
|
+
writer.uint32(866).string(message.maxVerifierDreamMintPerEpoch);
|
|
2369
|
+
}
|
|
2242
2370
|
return writer;
|
|
2243
2371
|
},
|
|
2244
2372
|
decode(input, length) {
|
|
@@ -2548,6 +2676,30 @@ export const RepOperationalParams = {
|
|
|
2548
2676
|
case 100:
|
|
2549
2677
|
message.permissionlessMinReviewBountyRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2550
2678
|
break;
|
|
2679
|
+
case 101:
|
|
2680
|
+
message.maxVerifierRewardPool = reader.string();
|
|
2681
|
+
break;
|
|
2682
|
+
case 102:
|
|
2683
|
+
message.verifierRewardPoolOverflowBurnRatio = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2684
|
+
break;
|
|
2685
|
+
case 103:
|
|
2686
|
+
message.verifierRewardEpochBlocks = reader.uint64();
|
|
2687
|
+
break;
|
|
2688
|
+
case 104:
|
|
2689
|
+
message.minVerifierAccuracy = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2690
|
+
break;
|
|
2691
|
+
case 105:
|
|
2692
|
+
message.verifierAccuracyWindowEpochs = reader.uint64();
|
|
2693
|
+
break;
|
|
2694
|
+
case 106:
|
|
2695
|
+
message.minEpochVerifications = reader.uint32();
|
|
2696
|
+
break;
|
|
2697
|
+
case 107:
|
|
2698
|
+
message.verifierDreamReward = reader.string();
|
|
2699
|
+
break;
|
|
2700
|
+
case 108:
|
|
2701
|
+
message.maxVerifierDreamMintPerEpoch = reader.string();
|
|
2702
|
+
break;
|
|
2551
2703
|
default:
|
|
2552
2704
|
reader.skipType(tag & 7);
|
|
2553
2705
|
break;
|
|
@@ -2657,6 +2809,14 @@ export const RepOperationalParams = {
|
|
|
2657
2809
|
message.reviewRequiredAboveBudget = object.reviewRequiredAboveBudget ?? "";
|
|
2658
2810
|
message.reviewBountyReclaimDelay = object.reviewBountyReclaimDelay !== undefined && object.reviewBountyReclaimDelay !== null ? BigInt(object.reviewBountyReclaimDelay.toString()) : BigInt(0);
|
|
2659
2811
|
message.permissionlessMinReviewBountyRate = object.permissionlessMinReviewBountyRate ?? "";
|
|
2812
|
+
message.maxVerifierRewardPool = object.maxVerifierRewardPool ?? "";
|
|
2813
|
+
message.verifierRewardPoolOverflowBurnRatio = object.verifierRewardPoolOverflowBurnRatio ?? "";
|
|
2814
|
+
message.verifierRewardEpochBlocks = object.verifierRewardEpochBlocks !== undefined && object.verifierRewardEpochBlocks !== null ? BigInt(object.verifierRewardEpochBlocks.toString()) : BigInt(0);
|
|
2815
|
+
message.minVerifierAccuracy = object.minVerifierAccuracy ?? "";
|
|
2816
|
+
message.verifierAccuracyWindowEpochs = object.verifierAccuracyWindowEpochs !== undefined && object.verifierAccuracyWindowEpochs !== null ? BigInt(object.verifierAccuracyWindowEpochs.toString()) : BigInt(0);
|
|
2817
|
+
message.minEpochVerifications = object.minEpochVerifications ?? 0;
|
|
2818
|
+
message.verifierDreamReward = object.verifierDreamReward ?? "";
|
|
2819
|
+
message.maxVerifierDreamMintPerEpoch = object.maxVerifierDreamMintPerEpoch ?? "";
|
|
2660
2820
|
return message;
|
|
2661
2821
|
},
|
|
2662
2822
|
fromAmino(object) {
|
|
@@ -2961,6 +3121,30 @@ export const RepOperationalParams = {
|
|
|
2961
3121
|
if (object.permissionless_min_review_bounty_rate !== undefined && object.permissionless_min_review_bounty_rate !== null) {
|
|
2962
3122
|
message.permissionlessMinReviewBountyRate = object.permissionless_min_review_bounty_rate;
|
|
2963
3123
|
}
|
|
3124
|
+
if (object.max_verifier_reward_pool !== undefined && object.max_verifier_reward_pool !== null) {
|
|
3125
|
+
message.maxVerifierRewardPool = object.max_verifier_reward_pool;
|
|
3126
|
+
}
|
|
3127
|
+
if (object.verifier_reward_pool_overflow_burn_ratio !== undefined && object.verifier_reward_pool_overflow_burn_ratio !== null) {
|
|
3128
|
+
message.verifierRewardPoolOverflowBurnRatio = object.verifier_reward_pool_overflow_burn_ratio;
|
|
3129
|
+
}
|
|
3130
|
+
if (object.verifier_reward_epoch_blocks !== undefined && object.verifier_reward_epoch_blocks !== null) {
|
|
3131
|
+
message.verifierRewardEpochBlocks = BigInt(object.verifier_reward_epoch_blocks);
|
|
3132
|
+
}
|
|
3133
|
+
if (object.min_verifier_accuracy !== undefined && object.min_verifier_accuracy !== null) {
|
|
3134
|
+
message.minVerifierAccuracy = object.min_verifier_accuracy;
|
|
3135
|
+
}
|
|
3136
|
+
if (object.verifier_accuracy_window_epochs !== undefined && object.verifier_accuracy_window_epochs !== null) {
|
|
3137
|
+
message.verifierAccuracyWindowEpochs = BigInt(object.verifier_accuracy_window_epochs);
|
|
3138
|
+
}
|
|
3139
|
+
if (object.min_epoch_verifications !== undefined && object.min_epoch_verifications !== null) {
|
|
3140
|
+
message.minEpochVerifications = object.min_epoch_verifications;
|
|
3141
|
+
}
|
|
3142
|
+
if (object.verifier_dream_reward !== undefined && object.verifier_dream_reward !== null) {
|
|
3143
|
+
message.verifierDreamReward = object.verifier_dream_reward;
|
|
3144
|
+
}
|
|
3145
|
+
if (object.max_verifier_dream_mint_per_epoch !== undefined && object.max_verifier_dream_mint_per_epoch !== null) {
|
|
3146
|
+
message.maxVerifierDreamMintPerEpoch = object.max_verifier_dream_mint_per_epoch;
|
|
3147
|
+
}
|
|
2964
3148
|
return message;
|
|
2965
3149
|
},
|
|
2966
3150
|
toAmino(message) {
|
|
@@ -3065,6 +3249,14 @@ export const RepOperationalParams = {
|
|
|
3065
3249
|
obj.review_required_above_budget = message.reviewRequiredAboveBudget === "" ? undefined : message.reviewRequiredAboveBudget;
|
|
3066
3250
|
obj.review_bounty_reclaim_delay = message.reviewBountyReclaimDelay !== BigInt(0) ? message.reviewBountyReclaimDelay?.toString() : undefined;
|
|
3067
3251
|
obj.permissionless_min_review_bounty_rate = message.permissionlessMinReviewBountyRate === "" ? undefined : message.permissionlessMinReviewBountyRate;
|
|
3252
|
+
obj.max_verifier_reward_pool = message.maxVerifierRewardPool === "" ? undefined : message.maxVerifierRewardPool;
|
|
3253
|
+
obj.verifier_reward_pool_overflow_burn_ratio = message.verifierRewardPoolOverflowBurnRatio === "" ? undefined : message.verifierRewardPoolOverflowBurnRatio;
|
|
3254
|
+
obj.verifier_reward_epoch_blocks = message.verifierRewardEpochBlocks !== BigInt(0) ? message.verifierRewardEpochBlocks?.toString() : undefined;
|
|
3255
|
+
obj.min_verifier_accuracy = message.minVerifierAccuracy === "" ? undefined : message.minVerifierAccuracy;
|
|
3256
|
+
obj.verifier_accuracy_window_epochs = message.verifierAccuracyWindowEpochs !== BigInt(0) ? message.verifierAccuracyWindowEpochs?.toString() : undefined;
|
|
3257
|
+
obj.min_epoch_verifications = message.minEpochVerifications === 0 ? undefined : message.minEpochVerifications;
|
|
3258
|
+
obj.verifier_dream_reward = message.verifierDreamReward === "" ? undefined : message.verifierDreamReward;
|
|
3259
|
+
obj.max_verifier_dream_mint_per_epoch = message.maxVerifierDreamMintPerEpoch === "" ? undefined : message.maxVerifierDreamMintPerEpoch;
|
|
3068
3260
|
return obj;
|
|
3069
3261
|
},
|
|
3070
3262
|
fromAminoMsg(object) {
|
|
@@ -399,7 +399,8 @@ function createBaseRoleActivity() {
|
|
|
399
399
|
epochActions: {},
|
|
400
400
|
totalActions: {},
|
|
401
401
|
upheldActions: {},
|
|
402
|
-
overturnedActions: {}
|
|
402
|
+
overturnedActions: {},
|
|
403
|
+
lastSlashEpoch: BigInt(0)
|
|
403
404
|
};
|
|
404
405
|
}
|
|
405
406
|
/**
|
|
@@ -469,6 +470,9 @@ export const RoleActivity = {
|
|
|
469
470
|
value
|
|
470
471
|
}, writer.uint32(88).fork()).ldelim();
|
|
471
472
|
});
|
|
473
|
+
if (message.lastSlashEpoch !== BigInt(0)) {
|
|
474
|
+
writer.uint32(96).int64(message.lastSlashEpoch);
|
|
475
|
+
}
|
|
472
476
|
return writer;
|
|
473
477
|
},
|
|
474
478
|
decode(input, length) {
|
|
@@ -523,6 +527,9 @@ export const RoleActivity = {
|
|
|
523
527
|
message.overturnedActions[entry11.key] = entry11.value;
|
|
524
528
|
}
|
|
525
529
|
break;
|
|
530
|
+
case 12:
|
|
531
|
+
message.lastSlashEpoch = reader.int64();
|
|
532
|
+
break;
|
|
526
533
|
default:
|
|
527
534
|
reader.skipType(tag & 7);
|
|
528
535
|
break;
|
|
@@ -563,6 +570,7 @@ export const RoleActivity = {
|
|
|
563
570
|
}
|
|
564
571
|
return acc;
|
|
565
572
|
}, {});
|
|
573
|
+
message.lastSlashEpoch = object.lastSlashEpoch !== undefined && object.lastSlashEpoch !== null ? BigInt(object.lastSlashEpoch.toString()) : BigInt(0);
|
|
566
574
|
return message;
|
|
567
575
|
},
|
|
568
576
|
fromAmino(object) {
|
|
@@ -610,6 +618,9 @@ export const RoleActivity = {
|
|
|
610
618
|
}
|
|
611
619
|
return acc;
|
|
612
620
|
}, {});
|
|
621
|
+
if (object.last_slash_epoch !== undefined && object.last_slash_epoch !== null) {
|
|
622
|
+
message.lastSlashEpoch = BigInt(object.last_slash_epoch);
|
|
623
|
+
}
|
|
613
624
|
return message;
|
|
614
625
|
},
|
|
615
626
|
toAmino(message) {
|
|
@@ -650,6 +661,7 @@ export const RoleActivity = {
|
|
|
650
661
|
obj.overturned_actions[k] = v.toString();
|
|
651
662
|
});
|
|
652
663
|
}
|
|
664
|
+
obj.last_slash_epoch = message.lastSlashEpoch !== BigInt(0) ? message.lastSlashEpoch?.toString() : undefined;
|
|
653
665
|
return obj;
|
|
654
666
|
},
|
|
655
667
|
fromAminoMsg(object) {
|
package/package.json
CHANGED
package/sparkdream/bundle.d.ts
CHANGED
|
@@ -5697,6 +5697,7 @@ export declare namespace sparkdream {
|
|
|
5697
5697
|
getReputationAttestation(request: _391.QueryGetReputationAttestationRequest): Promise<_391.QueryGetReputationAttestationResponse>;
|
|
5698
5698
|
listOutboundAttestations(request?: _391.QueryListOutboundAttestationsRequest): Promise<_391.QueryListOutboundAttestationsResponse>;
|
|
5699
5699
|
verifierActivity(request: _391.QueryVerifierActivityRequest): Promise<_391.QueryVerifierActivityResponse>;
|
|
5700
|
+
operatorRewardPool(request?: _391.QueryOperatorRewardPoolRequest): Promise<_391.QueryOperatorRewardPoolResponse>;
|
|
5700
5701
|
getVerificationRecord(request: _391.QueryGetVerificationRecordRequest): Promise<_391.QueryGetVerificationRecordResponse>;
|
|
5701
5702
|
getEscalatedChallenge(request: _391.QueryGetEscalatedChallengeRequest): Promise<_391.QueryGetEscalatedChallengeResponse>;
|
|
5702
5703
|
};
|
|
@@ -6150,6 +6151,18 @@ export declare namespace sparkdream {
|
|
|
6150
6151
|
toProto(message: _394.VerifierActivity): Uint8Array;
|
|
6151
6152
|
toProtoMsg(message: _394.VerifierActivity): _394.VerifierActivityProtoMsg;
|
|
6152
6153
|
};
|
|
6154
|
+
VerifierActivityView: {
|
|
6155
|
+
typeUrl: string;
|
|
6156
|
+
encode(message: _394.VerifierActivityView, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
6157
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _394.VerifierActivityView;
|
|
6158
|
+
fromPartial(object: import("../helpers").DeepPartial<_394.VerifierActivityView>): _394.VerifierActivityView;
|
|
6159
|
+
fromAmino(object: _394.VerifierActivityViewAmino): _394.VerifierActivityView;
|
|
6160
|
+
toAmino(message: _394.VerifierActivityView): _394.VerifierActivityViewAmino;
|
|
6161
|
+
fromAminoMsg(object: _394.VerifierActivityViewAminoMsg): _394.VerifierActivityView;
|
|
6162
|
+
fromProtoMsg(message: _394.VerifierActivityViewProtoMsg): _394.VerifierActivityView;
|
|
6163
|
+
toProto(message: _394.VerifierActivityView): Uint8Array;
|
|
6164
|
+
toProtoMsg(message: _394.VerifierActivityView): _394.VerifierActivityViewProtoMsg;
|
|
6165
|
+
};
|
|
6153
6166
|
peerTypeFromJSON(object: any): _393.PeerType;
|
|
6154
6167
|
peerTypeToJSON(object: _393.PeerType): string;
|
|
6155
6168
|
peerStatusFromJSON(object: any): _393.PeerStatus;
|
|
@@ -7372,6 +7385,30 @@ export declare namespace sparkdream {
|
|
|
7372
7385
|
toProto(message: _391.QueryVerifierActivityResponse): Uint8Array;
|
|
7373
7386
|
toProtoMsg(message: _391.QueryVerifierActivityResponse): _391.QueryVerifierActivityResponseProtoMsg;
|
|
7374
7387
|
};
|
|
7388
|
+
QueryOperatorRewardPoolRequest: {
|
|
7389
|
+
typeUrl: string;
|
|
7390
|
+
encode(_: _391.QueryOperatorRewardPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7391
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _391.QueryOperatorRewardPoolRequest;
|
|
7392
|
+
fromPartial(_: import("../helpers").DeepPartial<_391.QueryOperatorRewardPoolRequest>): _391.QueryOperatorRewardPoolRequest;
|
|
7393
|
+
fromAmino(_: _391.QueryOperatorRewardPoolRequestAmino): _391.QueryOperatorRewardPoolRequest;
|
|
7394
|
+
toAmino(_: _391.QueryOperatorRewardPoolRequest): _391.QueryOperatorRewardPoolRequestAmino;
|
|
7395
|
+
fromAminoMsg(object: _391.QueryOperatorRewardPoolRequestAminoMsg): _391.QueryOperatorRewardPoolRequest;
|
|
7396
|
+
fromProtoMsg(message: _391.QueryOperatorRewardPoolRequestProtoMsg): _391.QueryOperatorRewardPoolRequest;
|
|
7397
|
+
toProto(message: _391.QueryOperatorRewardPoolRequest): Uint8Array;
|
|
7398
|
+
toProtoMsg(message: _391.QueryOperatorRewardPoolRequest): _391.QueryOperatorRewardPoolRequestProtoMsg;
|
|
7399
|
+
};
|
|
7400
|
+
QueryOperatorRewardPoolResponse: {
|
|
7401
|
+
typeUrl: string;
|
|
7402
|
+
encode(message: _391.QueryOperatorRewardPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7403
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _391.QueryOperatorRewardPoolResponse;
|
|
7404
|
+
fromPartial(object: import("../helpers").DeepPartial<_391.QueryOperatorRewardPoolResponse>): _391.QueryOperatorRewardPoolResponse;
|
|
7405
|
+
fromAmino(object: _391.QueryOperatorRewardPoolResponseAmino): _391.QueryOperatorRewardPoolResponse;
|
|
7406
|
+
toAmino(message: _391.QueryOperatorRewardPoolResponse): _391.QueryOperatorRewardPoolResponseAmino;
|
|
7407
|
+
fromAminoMsg(object: _391.QueryOperatorRewardPoolResponseAminoMsg): _391.QueryOperatorRewardPoolResponse;
|
|
7408
|
+
fromProtoMsg(message: _391.QueryOperatorRewardPoolResponseProtoMsg): _391.QueryOperatorRewardPoolResponse;
|
|
7409
|
+
toProto(message: _391.QueryOperatorRewardPoolResponse): Uint8Array;
|
|
7410
|
+
toProtoMsg(message: _391.QueryOperatorRewardPoolResponse): _391.QueryOperatorRewardPoolResponseProtoMsg;
|
|
7411
|
+
};
|
|
7375
7412
|
QueryGetVerificationRecordRequest: {
|
|
7376
7413
|
typeUrl: string;
|
|
7377
7414
|
encode(message: _391.QueryGetVerificationRecordRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -7554,6 +7591,18 @@ export declare namespace sparkdream {
|
|
|
7554
7591
|
toProto(message: _388.GenesisState): Uint8Array;
|
|
7555
7592
|
toProtoMsg(message: _388.GenesisState): _388.GenesisStateProtoMsg;
|
|
7556
7593
|
};
|
|
7594
|
+
OperatorRewardDayFunding: {
|
|
7595
|
+
typeUrl: string;
|
|
7596
|
+
encode(message: _388.OperatorRewardDayFunding, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7597
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _388.OperatorRewardDayFunding;
|
|
7598
|
+
fromPartial(object: import("../helpers").DeepPartial<_388.OperatorRewardDayFunding>): _388.OperatorRewardDayFunding;
|
|
7599
|
+
fromAmino(object: _388.OperatorRewardDayFundingAmino): _388.OperatorRewardDayFunding;
|
|
7600
|
+
toAmino(message: _388.OperatorRewardDayFunding): _388.OperatorRewardDayFundingAmino;
|
|
7601
|
+
fromAminoMsg(object: _388.OperatorRewardDayFundingAminoMsg): _388.OperatorRewardDayFunding;
|
|
7602
|
+
fromProtoMsg(message: _388.OperatorRewardDayFundingProtoMsg): _388.OperatorRewardDayFunding;
|
|
7603
|
+
toProto(message: _388.OperatorRewardDayFunding): Uint8Array;
|
|
7604
|
+
toProtoMsg(message: _388.OperatorRewardDayFunding): _388.OperatorRewardDayFundingProtoMsg;
|
|
7605
|
+
};
|
|
7557
7606
|
};
|
|
7558
7607
|
}
|
|
7559
7608
|
namespace forum {
|
|
@@ -26065,6 +26114,7 @@ export declare namespace sparkdream {
|
|
|
26065
26114
|
getReputationAttestation(request: _391.QueryGetReputationAttestationRequest): Promise<_391.QueryGetReputationAttestationResponse>;
|
|
26066
26115
|
listOutboundAttestations(request?: _391.QueryListOutboundAttestationsRequest): Promise<_391.QueryListOutboundAttestationsResponse>;
|
|
26067
26116
|
verifierActivity(request: _391.QueryVerifierActivityRequest): Promise<_391.QueryVerifierActivityResponse>;
|
|
26117
|
+
operatorRewardPool(request?: _391.QueryOperatorRewardPoolRequest): Promise<_391.QueryOperatorRewardPoolResponse>;
|
|
26068
26118
|
getVerificationRecord(request: _391.QueryGetVerificationRecordRequest): Promise<_391.QueryGetVerificationRecordResponse>;
|
|
26069
26119
|
getEscalatedChallenge(request: _391.QueryGetEscalatedChallengeRequest): Promise<_391.QueryGetEscalatedChallengeResponse>;
|
|
26070
26120
|
};
|
|
@@ -26,6 +26,13 @@ export interface GenesisState {
|
|
|
26
26
|
verificationRecords: VerificationRecord[];
|
|
27
27
|
nextContentId: bigint;
|
|
28
28
|
nextOutboundAttestationId: bigint;
|
|
29
|
+
/**
|
|
30
|
+
* Per-UTC-day community-pool draw ledger for the bridge-operator reward
|
|
31
|
+
* pool. Dropping it on import hands the chain a fresh daily allowance, so
|
|
32
|
+
* operator_reward_daily_funding would bound a day only until the next
|
|
33
|
+
* export. Mirrors x/rep's role_reward_day_funding_list.
|
|
34
|
+
*/
|
|
35
|
+
operatorRewardDayFundingList: OperatorRewardDayFunding[];
|
|
29
36
|
}
|
|
30
37
|
export interface GenesisStateProtoMsg {
|
|
31
38
|
typeUrl: "/sparkdream.federation.v1.GenesisState";
|
|
@@ -54,11 +61,50 @@ export interface GenesisStateAmino {
|
|
|
54
61
|
verification_records?: VerificationRecordAmino[];
|
|
55
62
|
next_content_id?: string;
|
|
56
63
|
next_outbound_attestation_id?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Per-UTC-day community-pool draw ledger for the bridge-operator reward
|
|
66
|
+
* pool. Dropping it on import hands the chain a fresh daily allowance, so
|
|
67
|
+
* operator_reward_daily_funding would bound a day only until the next
|
|
68
|
+
* export. Mirrors x/rep's role_reward_day_funding_list.
|
|
69
|
+
*/
|
|
70
|
+
operator_reward_day_funding_list?: OperatorRewardDayFundingAmino[];
|
|
57
71
|
}
|
|
58
72
|
export interface GenesisStateAminoMsg {
|
|
59
73
|
type: "/sparkdream.federation.v1.GenesisState";
|
|
60
74
|
value: GenesisStateAmino;
|
|
61
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* OperatorRewardDayFunding is one UTC day's community-pool draw for the
|
|
78
|
+
* bridge-operator reward pool, ledgered so the daily cap bounds a day rather
|
|
79
|
+
* than a block.
|
|
80
|
+
* @name OperatorRewardDayFunding
|
|
81
|
+
* @package sparkdream.federation.v1
|
|
82
|
+
* @see proto type: sparkdream.federation.v1.OperatorRewardDayFunding
|
|
83
|
+
*/
|
|
84
|
+
export interface OperatorRewardDayFunding {
|
|
85
|
+
day: bigint;
|
|
86
|
+
amountFunded: string;
|
|
87
|
+
}
|
|
88
|
+
export interface OperatorRewardDayFundingProtoMsg {
|
|
89
|
+
typeUrl: "/sparkdream.federation.v1.OperatorRewardDayFunding";
|
|
90
|
+
value: Uint8Array;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* OperatorRewardDayFunding is one UTC day's community-pool draw for the
|
|
94
|
+
* bridge-operator reward pool, ledgered so the daily cap bounds a day rather
|
|
95
|
+
* than a block.
|
|
96
|
+
* @name OperatorRewardDayFundingAmino
|
|
97
|
+
* @package sparkdream.federation.v1
|
|
98
|
+
* @see proto type: sparkdream.federation.v1.OperatorRewardDayFunding
|
|
99
|
+
*/
|
|
100
|
+
export interface OperatorRewardDayFundingAmino {
|
|
101
|
+
day?: string;
|
|
102
|
+
amount_funded?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface OperatorRewardDayFundingAminoMsg {
|
|
105
|
+
type: "/sparkdream.federation.v1.OperatorRewardDayFunding";
|
|
106
|
+
value: OperatorRewardDayFundingAmino;
|
|
107
|
+
}
|
|
62
108
|
/**
|
|
63
109
|
* GenesisState defines the federation module's genesis state.
|
|
64
110
|
* @name GenesisState
|
|
@@ -77,3 +123,23 @@ export declare const GenesisState: {
|
|
|
77
123
|
toProto(message: GenesisState): Uint8Array;
|
|
78
124
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
79
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* OperatorRewardDayFunding is one UTC day's community-pool draw for the
|
|
128
|
+
* bridge-operator reward pool, ledgered so the daily cap bounds a day rather
|
|
129
|
+
* than a block.
|
|
130
|
+
* @name OperatorRewardDayFunding
|
|
131
|
+
* @package sparkdream.federation.v1
|
|
132
|
+
* @see proto type: sparkdream.federation.v1.OperatorRewardDayFunding
|
|
133
|
+
*/
|
|
134
|
+
export declare const OperatorRewardDayFunding: {
|
|
135
|
+
typeUrl: string;
|
|
136
|
+
encode(message: OperatorRewardDayFunding, writer?: BinaryWriter): BinaryWriter;
|
|
137
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OperatorRewardDayFunding;
|
|
138
|
+
fromPartial(object: DeepPartial<OperatorRewardDayFunding>): OperatorRewardDayFunding;
|
|
139
|
+
fromAmino(object: OperatorRewardDayFundingAmino): OperatorRewardDayFunding;
|
|
140
|
+
toAmino(message: OperatorRewardDayFunding): OperatorRewardDayFundingAmino;
|
|
141
|
+
fromAminoMsg(object: OperatorRewardDayFundingAminoMsg): OperatorRewardDayFunding;
|
|
142
|
+
fromProtoMsg(message: OperatorRewardDayFundingProtoMsg): OperatorRewardDayFunding;
|
|
143
|
+
toProto(message: OperatorRewardDayFunding): Uint8Array;
|
|
144
|
+
toProtoMsg(message: OperatorRewardDayFunding): OperatorRewardDayFundingProtoMsg;
|
|
145
|
+
};
|