fix: add transactionCount field to GetEpochInfo

This commit is contained in:
Michael Vines
2020-12-17 10:04:39 -08:00
parent e1f2d384db
commit 01fe835e73

View File

@ -276,6 +276,7 @@ const GetInflationGovernorResult = struct({
* @property {number} slotsInEpoch * @property {number} slotsInEpoch
* @property {number} absoluteSlot * @property {number} absoluteSlot
* @property {number} blockHeight * @property {number} blockHeight
* @property {number} transactionCount
*/ */
type EpochInfo = { type EpochInfo = {
epoch: number, epoch: number,
@ -283,6 +284,7 @@ type EpochInfo = {
slotsInEpoch: number, slotsInEpoch: number,
absoluteSlot: number, absoluteSlot: number,
blockHeight: number | null, blockHeight: number | null,
transactionCount: number | null,
}; };
const GetEpochInfoResult = struct({ const GetEpochInfoResult = struct({
@ -291,6 +293,7 @@ const GetEpochInfoResult = struct({
slotsInEpoch: 'number', slotsInEpoch: 'number',
absoluteSlot: 'number', absoluteSlot: 'number',
blockHeight: 'number?', blockHeight: 'number?',
transactionCount: 'number?',
}); });
/** /**