chore: improve EpochSchedule docs

This commit is contained in:
Justin Starry
2020-03-29 22:18:02 +08:00
committed by Michael Vines
parent 7184fd79f6
commit ed2a0c7acb

View File

@ -189,11 +189,11 @@ const GetEpochInfoResult = struct({
* (see https://docs.solana.com/terminology#epoch) * (see https://docs.solana.com/terminology#epoch)
* *
* @typedef {Object} EpochSchedule * @typedef {Object} EpochSchedule
* @property {number} slots_per_epoch * @property {number} slotsPerEpoch The maximum number of slots in each epoch
* @property {number} leader_schedule_slot_offset * @property {number} leaderScheduleSlotOffset The number of slots before beginning of an epoch to calculate a leader schedule for that epoch
* @property {boolean} warmup * @property {boolean} warmup Indicates whether epochs start short and grow
* @property {number} first_normal_epoch * @property {number} firstNormalEpoch The first epoch with `slotsPerEpoch` slots
* @property {number} first_normal_slot * @property {number} firstNormalSlot The first slot of `firstNormalEpoch`
*/ */
const GetEpochScheduleResult = struct({ const GetEpochScheduleResult = struct({
slotsPerEpoch: 'number', slotsPerEpoch: 'number',