Skip to content

Commit

Permalink
Merge pull request #33 from maestro-org/drop-v0
Browse files Browse the repository at this point in the history
Drop V0 support
  • Loading branch information
Vardominator authored Sep 23, 2023
2 parents 541bc5a + c2947fd commit 0a2dcc5
Show file tree
Hide file tree
Showing 87 changed files with 1,005 additions and 3,291 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-22.04
environment: build
outputs:
MAESTRO_SDK_VERSION: ${{ steps.get_maestro_sdk_version.outputs.MAESTRO_SDK_VERSION }}
steps:
Expand Down Expand Up @@ -73,8 +74,8 @@ jobs:
run: cabal v2-build --only-dependencies --enable-tests --enable-benchmarks
- name: Build all targets (cabal)
run: cabal v2-build --enable-tests --enable-benchmarks all
- name: Run all tests (cabal)
run: cabal v2-test maestro-sdk-tests
# - name: Run all tests (cabal)
# run: cabal v2-test maestro-sdk-tests
- name: Run doctest (docspec)
run: |
# Install docspec and run doctests.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cabal
dist-newstyle
dist
dist-*
Expand Down
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Revision history for maestro
# Revision history for `maestro-sdk`

## 0.1.0.0 -- YYYY-mm-dd
## [1.1.0](https://github.com/maestro-org/haskell-sdk/compare/v1.0.0..v1.1.0) -- 2023-09-23

* First version. Released on an unsuspecting world.
* Support of v0 family of endpoints have been dropped, [#33](https://github.com/maestro-org/haskell-sdk/pull/33).
* Support of backoff, to automatically handle rate limit errors by allowing clients to use exponential backoff with maximum delay threshold, [#40](https://github.com/maestro-org/haskell-sdk/pull/40).
* Support of Preview network is added, [#37](https://github.com/maestro-org/haskell-sdk/pull/37).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

main :: IO ()
main = do
env <- mkMaestroEnv @'V1 "<Your-API-Key>" Preprod -- This is how we create an environment against which we'll query endpoints.
env <- mkMaestroEnv @'V1 "<Your-API-Key>" Preprod defaultBackoff -- This is how we create an environment against which we'll query endpoints.
chainTip :: ChainTip <- getTimestampedData <$> getChainTip env -- Maestro endpoint to get for chain-tip has data & timestamp against which data was calculated. All endpoints which are timestamped, has functions `getTimestampedData` to get for underlying data & `getTimestamp` to get the timestamp.
addressesUTxOs :: Either MaestroError [UtxoWithSlot] <-
try -- To catch for any errors, given in type `MaestroError`.
Expand Down
20 changes: 0 additions & 20 deletions maestro-exe/Maestro/Run/Address.hs

This file was deleted.

11 changes: 0 additions & 11 deletions maestro-exe/Maestro/Run/Datum.hs

This file was deleted.

12 changes: 0 additions & 12 deletions maestro-exe/Maestro/Run/Epochs.hs

This file was deleted.

9 changes: 0 additions & 9 deletions maestro-exe/Maestro/Run/General.hs

This file was deleted.

65 changes: 0 additions & 65 deletions maestro-exe/Maestro/Run/Pools.hs

This file was deleted.

11 changes: 0 additions & 11 deletions maestro-exe/Maestro/Run/Scripts.hs

This file was deleted.

30 changes: 0 additions & 30 deletions maestro-exe/Maestro/Run/Tx.hs

This file was deleted.

29 changes: 0 additions & 29 deletions maestro-exe/Main.hs

This file was deleted.

Loading

0 comments on commit 0a2dcc5

Please sign in to comment.