ghost-node/utils/staking-miner/playground/runtime/src/voter_bags.rs

442 lines
13 KiB
Rust
Raw Normal View History

// This file is part of Ghost Network.
// Ghost Network is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Ghost Network is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Ghost Network. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated bag thresholds.
//!
//! Generated on 2023-06-14T16:02:49.211048528+00:00
//! Arguments
//! Total issuance: 30000000000000000000000000
//! Minimum balance: 100000000000000
//! for the casper runtime.
/// Existential weight for this runtime.
#[cfg(any(test, feature = "std"))]
#[allow(unused)]
pub const EXISTENTIAL_WEIGHT: u64 = 61_489_156;
/// Constant ratio between bags for this runtime.
#[cfg(any(test, feature = "std"))]
#[allow(unused)]
pub const CONSTANT_RATIO: f64 = 1.1420206998172278;
/// Upper thresholds delimiting the bag list.
pub const THRESHOLDS: [u64; 200] = [
61_489_156,
70_221_889,
80_194_851,
91_584_180,
104_591_029,
119_445_120,
136_408_800,
155_781_673,
177_905_895,
203_172_215,
232_026_875,
264_979_494,
302_612_067,
345_589_245,
394_670_071,
450_721_391,
514_733_158,
587_835_921,
671_320_790,
766_662_238,
875_544_146,
999_889_538,
1_141_894_550,
1_304_067_213,
1_489_271_751,
1_700_779_167,
1_942_325_015,
2_218_175_373,
2_533_202_192,
2_892_969_340,
3_303_830_870,
3_773_043_242,
4_308_893_484,
4_920_845_552,
5_619_707_481,
6_417_822_270,
7_329_285_880,
8_370_196_190,
9_558_937_311,
10_916_504_277,
12_466_873_854,
14_237_428_003,
16_259_437_492,
18_568_614_183,
21_205_741_764,
24_217_396_049,
27_656_767_584,
31_584_601_071,
36_070_268_219,
41_192_992_954,
47_043_250_641,
53_724_366_019,
61_354_338_078,
70_067_924_109,
80_019_019_726,
91_383_376_906,
104_361_708_046,
119_183_230_857,
136_109_716_710,
155_440_113_929,
177_515_827_689,
202_726_749_766,
231_518_144_639,
264_398_513_561,
301_948_575_488,
344_831_523_488,
393_804_737_773,
449_733_162_223,
513_604_580_653,
586_547_062_627,
669_848_886_937,
764_981_294_632,
873_624_473_443,
997_697_232_539,
1_139_390_891_710,
1_301_207_983_516,
1_486_006_451_943,
1_697_050_128_181,
1_938_066_375_010,
2_213_311_917_881,
2_527_648_025_372,
2_886_626_366_827,
3_296_587_063_555,
3_764_770_665_330,
4_299_446_029_872,
4_910_056_363_861,
5_607_386_004_799,
6_403_750_889_346,
7_313_216_072_106,
8_351_844_136_581,
9_537_978_885_623,
10_892_569_321_801,
12_439_539_639_691,
14_206_211_764_724,
16_223_787_901_302,
18_527_901_612_731,
21_159_247_165_916,
24_164_298_256_025,
27_596_128_804_938,
31_515_350_330_062,
35_991_182_438_923,
41_102_675_356_148,
46_940_106_074_588,
53_606_572_788_796,
61_219_815_771_064,
69_914_296_849_552,
79_843_574_215_355,
91_183_014_501_328,
104_132_890_032_251,
118_921_915_948_622,
135_811_289_675_251,
155_099_304_078_010,
177_126_615_784_334,
202_282_261_714_282,
231_010_530_083_556,
263_818_807_231_171,
301_286_538_859_088,
344_075_463_953_366,
392_941_302_133_960,
448_747_100_850_118,
512_478_478_153_804,
585_261_030_262_475,
668_380_211_356_103,
763_304_036_716_883,
871_709_010_184_730,
995_509_733_848_148,
1_136_892_722_924_124,
1_298_355_023_050_922,
1_482_748_312_035_827,
1_693_329_264_963_968,
1_933_817_072_195_143,
2_208_459_126_106_800,
2_522_106_036_714_231,
2_880_297_301_061_641,
3_289_359_139_440_088,
3_756_516_226_373_564,
4_290_019_289_717_909,
4_899_290_831_473_053,
5_595_091_543_966_984,
6_389_710_360_582_628,
7_297_181_497_621_964,
8_333_532_320_607_561,
9_517_066_412_729_732,
10_868_686_844_872_642,
12_412_265_356_675_752,
14_175_063_968_947_974,
16_188_216_473_771_936,
18_487_278_306_169_800,
21_112_854_508_927_888,
24_111_316_881_425_140,
27_535_622_978_440_076,
31_446_251_423_741_472,
35_912_270_057_569_732,
41_012_555_783_171_056,
46_837_187_656_790_104,
53_489_037_825_278_256,
61_085_588_409_774_440,
69_761_006_424_477_744,
79_668_513_376_836_192,
90_983_091_400_012_640,
103_904_573_712_177_232,
118_661_173_984_991_376,
135_513_516_955_473_664,
154_759_241_468_183_808,
176_738_257_244_678_592,
201_838_748_223_045_056,
230_504_028_495_915_136,
263_240_371_933_595_200,
300_625_953_775_751_680,
343_321_062_114_205_504,
392_079_759_617_658_880,
447_763_201_462_729_216,
511_354_844_686_868_352,
583_977_817_584_227_200,
666_914_755_915_276_544,
761_630_456_268_799_744,
869_797_746_670_209_152,
993_327_031_351_760_000,
1_134_400_031_491_706_240,
1_295_508_317_836_843_520,
1_479_497_315_755_071_488,
1_689_616_559_916_316_672,
1_929_577_086_178_408_960,
2_203_616_974_308_753_920,
2_516_576_199_129_205_248,
2_873_982_112_072_913_920,
3_282_147_062_891_703_296,
3_748_279_885_666_641_408,
4_280_613_218_139_856_384,
4_888_548_903_026_954_240,
5_582_824_039_325_583_360,
6_375_700_616_347_044_864,
7_281_182_079_705_782_272,
8_315_260_654_162_254_848,
9_496_199_791_429_038_080,
10_844_856_731_412_002_816,
12_385_050_873_824_708_608,
14_143_984_466_197_262_336,
16_152_723_038_290_595_840,
18_446_744_073_709_551_615,
];
/// Upper thresholds delimiting the bag list.
#[allow(dead_code)]
pub const THRESHOLDS_BALANCES: [u128; 200] = [
61_489_156,
70_221_889,
80_194_851,
91_584_180,
104_591_029,
119_445_120,
136_408_800,
155_781_673,
177_905_895,
203_172_215,
232_026_875,
264_979_494,
302_612_067,
345_589_245,
394_670_071,
450_721_391,
514_733_158,
587_835_921,
671_320_790,
766_662_238,
875_544_146,
999_889_538,
1_141_894_550,
1_304_067_213,
1_489_271_751,
1_700_779_167,
1_942_325_015,
2_218_175_373,
2_533_202_192,
2_892_969_340,
3_303_830_870,
3_773_043_242,
4_308_893_484,
4_920_845_552,
5_619_707_481,
6_417_822_270,
7_329_285_880,
8_370_196_190,
9_558_937_311,
10_916_504_277,
12_466_873_854,
14_237_428_003,
16_259_437_492,
18_568_614_183,
21_205_741_764,
24_217_396_049,
27_656_767_584,
31_584_601_071,
36_070_268_219,
41_192_992_954,
47_043_250_641,
53_724_366_019,
61_354_338_078,
70_067_924_109,
80_019_019_726,
91_383_376_906,
104_361_708_046,
119_183_230_857,
136_109_716_710,
155_440_113_929,
177_515_827_689,
202_726_749_766,
231_518_144_639,
264_398_513_561,
301_948_575_488,
344_831_523_488,
393_804_737_773,
449_733_162_223,
513_604_580_653,
586_547_062_627,
669_848_886_937,
764_981_294_632,
873_624_473_443,
997_697_232_539,
1_139_390_891_710,
1_301_207_983_516,
1_486_006_451_943,
1_697_050_128_181,
1_938_066_375_010,
2_213_311_917_881,
2_527_648_025_372,
2_886_626_366_827,
3_296_587_063_555,
3_764_770_665_330,
4_299_446_029_872,
4_910_056_363_861,
5_607_386_004_799,
6_403_750_889_346,
7_313_216_072_106,
8_351_844_136_581,
9_537_978_885_623,
10_892_569_321_801,
12_439_539_639_691,
14_206_211_764_724,
16_223_787_901_302,
18_527_901_612_731,
21_159_247_165_916,
24_164_298_256_025,
27_596_128_804_938,
31_515_350_330_062,
35_991_182_438_923,
41_102_675_356_148,
46_940_106_074_588,
53_606_572_788_796,
61_219_815_771_064,
69_914_296_849_552,
79_843_574_215_355,
91_183_014_501_328,
104_132_890_032_251,
118_921_915_948_622,
135_811_289_675_251,
155_099_304_078_010,
177_126_615_784_334,
202_282_261_714_282,
231_010_530_083_556,
263_818_807_231_171,
301_286_538_859_088,
344_075_463_953_366,
392_941_302_133_960,
448_747_100_850_118,
512_478_478_153_804,
585_261_030_262_475,
668_380_211_356_103,
763_304_036_716_883,
871_709_010_184_730,
995_509_733_848_148,
1_136_892_722_924_124,
1_298_355_023_050_922,
1_482_748_312_035_827,
1_693_329_264_963_968,
1_933_817_072_195_143,
2_208_459_126_106_800,
2_522_106_036_714_231,
2_880_297_301_061_641,
3_289_359_139_440_088,
3_756_516_226_373_564,
4_290_019_289_717_909,
4_899_290_831_473_053,
5_595_091_543_966_984,
6_389_710_360_582_628,
7_297_181_497_621_964,
8_333_532_320_607_561,
9_517_066_412_729_732,
10_868_686_844_872_642,
12_412_265_356_675_752,
14_175_063_968_947_974,
16_188_216_473_771_936,
18_487_278_306_169_800,
21_112_854_508_927_888,
24_111_316_881_425_140,
27_535_622_978_440_076,
31_446_251_423_741_472,
35_912_270_057_569_732,
41_012_555_783_171_056,
46_837_187_656_790_104,
53_489_037_825_278_256,
61_085_588_409_774_440,
69_761_006_424_477_744,
79_668_513_376_836_192,
90_983_091_400_012_640,
103_904_573_712_177_232,
118_661_173_984_991_376,
135_513_516_955_473_664,
154_759_241_468_183_808,
176_738_257_244_678_592,
201_838_748_223_045_056,
230_504_028_495_915_136,
263_240_371_933_595_200,
300_625_953_775_751_680,
343_321_062_114_205_504,
392_079_759_617_658_880,
447_763_201_462_729_216,
511_354_844_686_868_352,
583_977_817_584_227_200,
666_914_755_915_276_544,
761_630_456_268_799_744,
869_797_746_670_209_152,
993_327_031_351_760_000,
1_134_400_031_491_706_240,
1_295_508_317_836_843_520,
1_479_497_315_755_071_488,
1_689_616_559_916_316_672,
1_929_577_086_178_408_960,
2_203_616_974_308_753_920,
2_516_576_199_129_205_248,
2_873_982_112_072_913_920,
3_282_147_062_891_703_296,
3_748_279_885_666_641_408,
4_280_613_218_139_856_384,
4_888_548_903_026_954_240,
5_582_824_039_325_583_360,
6_375_700_616_347_044_864,
7_281_182_079_705_782_272,
8_315_260_654_162_254_848,
9_496_199_791_429_038_080,
10_844_856_731_412_002_816,
12_385_050_873_824_708_608,
14_143_984_466_197_262_336,
16_152_723_038_290_595_840,
18_446_744_073_709_551_615,
];