Skip to content

Commit

Permalink
Use CborBytes instead of Cbor
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchyCola committed Sep 30, 2022
1 parent 411ba79 commit ced9887
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -38,7 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- `Ctl.Examples.PlutusV2.OneShotMinting` example, demonstrating the use of `applyArgs` with a PlutusV2 script ([#1038](https://github.com/Plutonomicon/cardano-transaction-lib/pull/1038))
- New `Contract.Test.Utils` assertions and checks: `assertOutputHasRefScript`, `checkOutputHasRefScript`, `checkTxHasMetadata` ([#1044](https://github.com/Plutonomicon/cardano-transaction-lib/pull/1044))
- `Parallel` instance to `Contract` monad. Parallel capabilities are in the associated `ParContract` datatype ([#1037](https://github.com/Plutonomicon/cardano-transaction-lib/issues/1037))
- `Contract.Cbor.cborToHex` and `Contract.Cbor.hexToCbor` to encode/decode a hexadecimal string from/to a `Cbor`, respectively. ([#850](https://github.com/Plutonomicon/cardano-transaction-lib/issues/850))
- `Contract.CborBytes` for CBOR-related functionality. ([#850](https://github.com/Plutonomicon/cardano-transaction-lib/issues/850))

### Changed

Expand Down
22 changes: 0 additions & 22 deletions src/Contract/Cbor.purs

This file was deleted.

16 changes: 16 additions & 0 deletions src/Contract/CborBytes.purs
@@ -0,0 +1,16 @@
-- | A module with CBOR-related functionality.
module Contract.CborBytes (module CborBytes) where

import Ctl.Internal.Types.CborBytes
( CborBytes(CborBytes)
, byteLength
, cborBytesFromAscii
, cborBytesFromByteArray
, cborBytesFromIntArray
, cborBytesFromIntArrayUnsafe
, cborBytesToByteArray
, cborBytesToHex
, cborBytesToIntArray
, hexToCborBytes
, hexToCborBytesUnsafe
) as CborBytes

0 comments on commit ced9887

Please sign in to comment.