Releases: input-output-hk/sc-tools
Releases · input-output-hk/sc-tools
v0.3.0.0
Changes
- Move
Convex.BuildTxfromconvex-coin-selectiontoconvex-base - Added a
Tracer m TxBalancingMessageargument to the coin selection functions. This prints out useful information about decisions taken during coin selection and balancing. Instantiate withmemptyto ignore the messages. - Export
Convex.Wallet.MockWallet.w4 - The balancing algorithm now correctly calculates the number of required signatures when computing the transaction fee
- Deleted spurious
runQuery'log messages - The constraints for most of the functions in
Convex.CoinSelectionhave changed fromMonadFail mtoMonadError BalanceTxError m, allowing for better error handling - Relaxed the
MonadErrorinstance ofMonadBlockchainCardanoNodeTby removing theMonadError e mconstraint; fixed the implementation ofcatchError Convex.BuildTx: Ensure that at least 3 Ada is present when computing minimum UTxO value inminAdaDeposit.- Update dependencies to
cardano-node-8.7.2,cardano-api-8.36.1.1andghc-9.6.3
Added
- More fine-grained functions in
Convex.Wallet.OperatorandConvex.Querysigning & balancing transactions - JSON instances for
CoinSelectionErrorandBalancingError - Add
Convex.Devnet.CardanoNode.withCardanoNodeDevnetConfigand associated types for modifications to the genesis config files. IncludesallowLargeTransactionsfor large transactions. - MonadLog instance for
MockchainT - API documentation published on github pages (https://j-mueller.github.io/sc-tools/)
- A mockchain test that shows how to increase the maximum tx size
Convex.MockChain.Utils.runMockchainPropWithto run a mockchain action in a quickcheck property with custom node params and initial distribution
Deleted
Convex.Era,Convex.Measure,Convex.Eventmodules
Contributors
Thanks to @etiennejf and @amirmrad for contributing to this release!
v0.2.0.0
GHC-9.2.4 / cardano-api-8.8.0.0 branch - see v0.2.0.0-old-node for the GHC-8.10.7 version.
Changed
- Update
queryTipandqueryTipSlotNoinConvex.Devnet.NodeQueriesto also returnSlotLength. - Rename
toUtxoTxtofromUtxoTxinConvex.Utxos - Add generic return type to
withCardanoNodeandwithCardanoNodeDevnetinConvex.Devnet.CardanoNode. - Update dependencies to
cardano-api-8.8.0.0andcardano-node-8.1.1. Simplifiedcabal.project Convex.BuildTx: Include stake reference inpayToScriptHash,payToPlutusV1andpayToPlutusV2Convex.CoinSelection:- Export
requiredTxIns,spentTxIns - Fix a bug in coin selection that added too much output value for non-Ada assets
- Add a "change output" parameter to the coin selection functions
- Export
- Set
slotLengthinConvex.MockChain.Defaultsto 1 second (it was set to 1000 seconds by accident) - Change base monad of
mockchainSucceedstoIO - Change
_PlutusScriptWitnessinConvex.Lensesto_PlutusScriptWitnessV1 - Increased the amount of UTxOs generated for wallets in the devnet from 1 to 10.
- Relax the context type of
_TxOutDatumInlinefromCtxTxtoctx(any context type) - Added a field for
(LocalNodeConnectInfo CardanoMode, Env)toRunningNodeinconvex-devnet
Added
convex-baseConvex.PlutusLedger:transAddressInEra, prisms and isos for theIntervaltype,transValueConvex.Utxos.singletonConvex.Utxos: Added redeemer and ex units toRemoveUtxoEventConvex.Lenses: Added_TxOutDatumInline,_TxOutDatumInTx,_ScriptData,_PlutusScriptWitness,_TxExtraKeyWitnesses, prisms for validity intervals,_TxOutDatumHash
convex-devnet:- Some haddocks in
Convex.Devnet.NodeQueries - Added
Convex.Devnet.NodeQueries.queryUTxOWhole
- Some haddocks in
convex-mockchain:Convex.MockChain: Support for profiling plutus scripts.evaluateTxreturns the script contexts for a transaction. These can be turned into a fully applied script withfullyAppliedScript.Convex.MockChain: ExportfromLedgerUTxOConvex.MockChain:MonadTransinstance forMockchainT, export constructorConvex.MockChain: AddMockchainIOtypeConvex.MockChain: AddresolveDatumHashfunction, giving access to all datums that were previously seenConvex.NodeParams: Add lenses forProtocolParameterstype fromcardano-apiConvex.MockChain: AddrunMockchain0IOWithto allow easy manipulation of the protocol parameters for emulator tests, incl.mockchainSucceedsWithandmockchainFailsWithinConvex.MockChain.Utils
convex-node-client: AddConvex.NodeClient.WaitForTxnClientConvex.BuildTx:- Add a monadic (writer) interface for building transactions
- Add
addRequiredSignature,prependTxOut,payToPlutusV2InlineDatum,spendPlutusV2InlineDatumfunctions - Add
spendPlutusV2RefWithInlineDatum,spendPlutusV2RefWithoutInRefandspendPlutusV2RefWithoutInRefInlineDatumfunctions - Add
payToPlutusV2InlineWithDatumandpayToPlutusV2InlineWithInlineDatumfunctions - Add
mintPlutusV2Reffunction
- Add
querySlotNotoMonadBlockchaintypeclass and update both blockchain and mockchain implementations. - Add
utcTimeToPosixTime,toShelleyPaymentCredentialinConvex.Utils. - Considering explicit error type
MonadBlockchainErrorforMonadBlockchainCardanoNodeTto enable proper error handling by caller. convex-wallet:- Add HTTP server
- Add
Convex.Wallet.Operatorfor managing credentials
convex-coin-selection:- Add
Convex.Queryfor UTxO queries, add convex-wallet backend for operator UTxOs - Add
utxosByPaymentCredentialstoMonadUtxoQuery
- Add
- Add
_PlutusScriptWitnessV2toConvex.Lenses
Deleted
- Deleted the
trading-botandmueslipackages. - Deleted
spendPlutusV1Refas it does not make sense.