-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update EraSummary slotLength type to be Milliseconds
EraSummary.parameters.slotLength unit is milliseconds. Use the appropriate opaque type to make it clear. BREAKING CHANGE: EraSummary.parameters.slotLength type changed from number to Milliseconds
- Loading branch information
1 parent
666701c
commit fb1f1a2
Showing
9 changed files
with
59 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import { EraSummary } from '@cardano-sdk/core'; | ||
import { EraSummary, Milliseconds } from '@cardano-sdk/core'; | ||
|
||
/** | ||
* Valid at 2022-05-28 | ||
*/ | ||
|
||
export const testnetEraSummaries: EraSummary[] = [ | ||
{ parameters: { epochLength: 21_600, slotLength: 20_000 }, start: { slot: 0, time: new Date(1_563_999_616_000) } }, | ||
{ | ||
parameters: { epochLength: 432_000, slotLength: 1000 }, | ||
parameters: { epochLength: 21_600, slotLength: Milliseconds(20_000) }, | ||
start: { slot: 0, time: new Date(1_563_999_616_000) } | ||
}, | ||
{ | ||
parameters: { epochLength: 432_000, slotLength: Milliseconds(1000) }, | ||
start: { slot: 1_598_400, time: new Date(1_595_967_616_000) } | ||
} | ||
]; |