-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from geniusyield/allow-ref-script-for-higher-…
- Loading branch information
Showing
20 changed files
with
306 additions
and
106 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{- | | ||
Module : GeniusYield.Types.Epoch | ||
Copyright : (c) 2024 GYELD GMBH | ||
License : Apache 2.0 | ||
Maintainer : support@geniusyield.co | ||
Stability : develop | ||
-} | ||
module GeniusYield.Types.Epoch ( | ||
GYEpochNo (..), | ||
epochNoFromApi, | ||
epochNoToApi, | ||
GYEpochSize (..), | ||
) where | ||
|
||
import Cardano.Api qualified as Api | ||
import Data.Word (Word64) | ||
import GeniusYield.Imports (coerce) | ||
|
||
newtype GYEpochNo = GYEpochNo Word64 | ||
deriving (Show, Read, Eq, Ord) | ||
|
||
epochNoFromApi :: Api.EpochNo -> GYEpochNo | ||
epochNoFromApi = coerce | ||
|
||
epochNoToApi :: GYEpochNo -> Api.EpochNo | ||
epochNoToApi = coerce | ||
|
||
newtype GYEpochSize = GYEpochSize Word64 | ||
deriving (Show, Read, Eq, Ord) |
Oops, something went wrong.