Releases: Python-Cardano/pycardano
Releases · Python-Cardano/pycardano
v0.12.2
What's Changed
- Fix StakeRegistration deser by @cffls in #380
- Fix ogmios v6 backend / plutusv3 by @nielstron in #383
- Fix failure to report blockfrost error when cbor decode fails by @kieransimkin in #386
- Fix witness deser by @cffls in #385
- Methods to add certificate scripts for smart staking by @SCMusson in #388
- ExtendedSigningKey from hd wallet: use key type from class by @gszabo in #400
- Fix min amount for collateral return by @cffls in #403
New Contributors
- @kieransimkin made their first contribution in #386
- @SCMusson made their first contribution in #388
- @gszabo made their first contribution in #400
Full Changelog: v0.12.0...v0.12.2
v0.12.0
This release fully supports Chang hardfork.
Major changes
OgmiosChainContext
will now be only compatible with Ogmios v6+, underlying class being OgmiosV6ChainContext. For backward support, OgmiosV5ChainContext could be used along with Ogmios v5, but the support will be limited in the future.- Redeemers will be serialized in a map instead of a list by default. The redeemers could be still serialized as a list by setting
use_redeemer_map
toFalse
in a txbuilder.
What's Changed
- Added RawPlutusData to PlutusData primitive types by @theeldermillenial in #363
- Disable state logging in build_and_sign by @cffls in #367
- Improve example flow chart by @tacmota in #370
- Automatically reduce 0 and empty multiassets by @nielstron in #372
- Blockfrost for chang by @cffls in #373
- Fix Redeemer Deserialization Issue by @bhatt-deep in #374
- Make vkey witnesses None when empty by @theeldermillenial in #377
- Fixed transaction imbalance when burning assets from the same policy by @xxAVOGADROxx in #376
- Chang support by @nielstron in #371
New Contributors
- @tacmota made their first contribution in #370
- @xxAVOGADROxx made their first contribution in #376
Full Changelog: v0.11.1...v0.12.0
v0.11.1
v0.11.0
What's Changed
- Make deserializing exception more descriptive by @cffls in #288
- Fix plutus script deserialization by @theeldermillenial in #293
- Add support for asset fingerprint (CIP14) by @theeldermillenial in #294
- Fix transaction submission example by @nielstron in #296
- Bump pytest from 7.4.2 to 7.4.4 by @dependabot in #291
- Bump frozendict from 2.3.8 to 2.4.0 by @dependabot in #290
- Bump pytest-xdist from 3.3.1 to 3.5.0 by @dependabot in #284
- Support to/from json raw plutus data by @nielstron in #300
- Cardano cli chain context by @KINGH242 in #274
- Fix the printing of RawPlutusData by @nielstron in #301
- Add test cases and fix inlineDatum fetching for the Cardano CLI Backend by @nielstron in #303
- Accept empty values for restoration by @nielstron in #306
- Enable adding scripts with redeemers for withdrawals by @nielstron in #308
- Perform math.ceil for fee computation by @nielstron in #313
- Add a fee buffer to the transaction builder by @nielstron in #315
- Rename the reward redeemer tag to withdrawal by @nielstron in #312
- Use Fraction for protocol parameters by @nielstron in #314
- Fix crucial references to withdrawal by @nielstron in #316
- Pool certificates by @KINGH242 in #321
- Allow subtracting assets if not existing before by @nielstron in #317
- Fix/disallow attach inline datum by @nielstron in #325
- Test for correctness of the supplied script by @nielstron in #322
- Consider all_scripts for smartness of transaction by @nielstron in #323
- Add transaction builder with metadata example by @B3nac in #327
- Correct variable name and Address input in docs example by @B3nac in #328
- Fix coinselection by @nielstron in #329
- Add some docs on the datum deserialization by @nielstron in #333
- Fix codecov by @cffls in #334
- Add boundary check for asset value by @cffls in #338
- Update node version for integration tests by @cffls in #345
- Handle utxoCostPerByte vs coinsPerUtxoByte in cardano-cli chain context protocol params by @KINGH242 in #351
- State logger by @cffls in #352
- [bugfix] Set network value to 'mainnet' in blockfrost if only mainnet api url is provided by @cffls in #353
- Update dependencies by @cffls in #355
New Contributors
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- Add utxo and datum cache in Ogmios context by @cffls in #237
- Fix parsing of multiple asset that has an empty asset name in Ogmios by @cffls in #238
- More ogmios context optimizations by @cffls in #249
- Fix kupo plutusv2 script from kupo by @nielstron in #253
- [Bug fix] Allow minting script to be added without redeemer by @cffls in #257
- Ogmios v5.6.0 by @cffls in #265
- Implement new default constr ID by @nielstron in #262
- Fix reference scripts fetched from ogmios by @nielstron in #254
- bugfix: fixed incorrect bytestring encoding PlutusData by @theeldermillenial in #269
- Added extended signing key support for cip8 by @theeldermillenial in #273
- Use potential inputs to satisfy collateral amount by @nielstron in #275
- Fix: negative minted amount is also requested by @nielstron in #264
- Reconstructable deterministic constrids by @nielstron in #272
- Added support for
ByteString
in_restore_typed_primitive
by @theeldermillenial in #279
New Contributors
- @theeldermillenial made their first contribution in #269
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
- fix minor inaccuracies in the plutus smart contract tutorial by @chrissiwaffler in #196
- Fix keys in plutus tutorial by @cffls in #200
- Automatically add build_and_sign signers to required_signers by @nielstron in #202
- Simplifies the backend interface (use available classes!) by @nielstron in #206
- Validate field type on serializing by @cffls in #208
- Make use of spent_at and unspent flag by @nielstron in #210
- Only resolve inline datums in kupo by @nielstron in #214
- Per default refetch the chain tip at most every 20 seconds by @nielstron in #211
- Fix _get_script in blockfrost context by @cffls in #218
- Return empty utxo list from blockfrost when an address is never used before by @cffls in #219
- Fix/parse raw plutus data by @nielstron in #220
- Restore ogmios tests by @cffls in #221
- Support potential inputs in txbuilder by @cffls in #223
- Include utxo with datum and script in utxo selection by @cffls in #222
- Fix deep copy of plutus data by @cffls in #225
- implement no type checking flag by @juliusfrost in #230
- Freeze dictionary keys to make them hashable by @nielstron in #228
- Accept cbor and str as input type in submit_tx by @cffls in #231
- Change the default returning type of 'to_cbor' to bytes by @cffls in #232
- Datum hash was assigned to the wrong field when deserializing pre-alonzo tx by @cffls in #233
- Update docker images in integration tests by @cffls in #234
Breaking changes
- On querying an unused address, chain context will now return an empty list instead of throwing an exception. #219
- Before
v0.9.0
,to_cbor
will return a hex string by default, and it also accepts an encoding argument. After v0.9.0, it will no longer accept an argument and will only return cbor bytes. To get cbor hex string, users will need to callto_cbor_hex
. #232
New Contributors
- @chrissiwaffler made their first contribution in #196
Full Changelog: v0.8.1...v0.9.0
v0.8.1
[0.8.1] - 2023-04-06
This patch contains a number of bug fixes to v0.8.0
.
Implemented enhancements:
Fixed bugs:
- PyCardano does not correctly load nested PlutusData from cbor where the keys are unions of PlutusData #193
- [Bug fix] Return a value directly if its type is 'Any' on deserializing #195 (cffls)
- Fix recursive deserialization of cbor bytes #194 (nielstron)
- Fix error when adding multiple redeemers #192 (cffls)
- Fix redeemer initalization #189 (nielstron)
v0.8.0
[0.8.0] - 2023-03-29
This patch contains a number of bug fixes and enhancements.
Implemented enhancements and bug fixes:
- Allow str addresses as change address in txbuilder #187
- Include API responses in submit_tx method #185
- Specification of the Redeemer Tag necessary? #177
- Error when submit NFT minting tx #165
- Add error handling to blockfrost submit_tx method #188 (bhatt-deep)
- Get UTxO from Transaction ID and Index #186 (juliusfrost)
- Reference UTxOs are UTxOs (not TransactionInputs) #181 (nielstron)
- Add support for complex dictionary types #180 (nielstron)
- Add functions to automatically add required signers and validity range #179 (nielstron)
- Remove the need to specify the RedeemerTag #178 (nielstron)
- Fix timezone info for Ogmios backend #176 (juliusfrost)
- Correctly parse List[X] annotated objects #170 (nielstron)
- Fixed the plutus script returned by blockfrost eabd613 (cffls)
- Change plutus example to inline datum and inline script f5542b4. (cffls)
- [Bug fix] Force set timezone in system start unix to utc 7771a3c (cffls)
Closed issues:
- Verification and Signing Keys Bug #184
- Error: The seed must be exactly 32 bytes long #159
- Move to hashlib for hashing #153
Merged pull requests:
- Update tutorial with renamed smart contract language #183 (nielstron)
- Bump blockfrost-python from 0.5.2 to 0.5.3 #162 (dependabot[bot])
v0.7.3
[0.7.3] - 2023-02-05
Implemented enhancements:
- CIP-0008: Allow for signing with stake key directly #154 (thaddeusdiamond)
- Generalize the "plutus" section and introduce alternative languages #145 (nielstron)
- Switch the Plutus introduction to eopsin #144 (nielstron)
- Fix static typing #139 (cffls)
Fixed bugs:
Closed issues:
- Docs for adding arbitrary datum value to .add_output method #116
Merged pull requests:
- Fix typo in documentation pointing to Network.PREPROD #152 (nielstron)
- Bump pytest from 7.2.0 to 7.2.1 #150 (dependabot[bot])
- Fix typo that broke link formatting in the plutus introduction #149 (nielstron)
- Remove mention of pyaiken in plutus docs #147 (nielstron)
- Rename plutus sample contract name to correct "Gift contract" #146 (nielstron)
- Bump isort from 5.10.1 to 5.11.4 #142 (dependabot[bot])
- Bump mypy from 0.990 to 0.991 #133 (dependabot[bot])
v0.7.2
[0.7.2] - 2022-12-03
Implemented enhancements:
- Modified IndefiniteList as subclass of UserList. #138 (bhatt-deep)
- Slight modification ExtendedSigningKey creation from HDWallet #132 (henryyuanheng-wang)
Fixed bugs: