|
1 | 1 | # @evolution-sdk/evolution |
2 | 2 |
|
| 3 | +## 0.3.4 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#101](https://github.com/IntersectMBO/evolution-sdk/pull/101) [`aaf0882`](https://github.com/IntersectMBO/evolution-sdk/commit/aaf0882e280fad9769410a81419ebf1c6af48785) Thanks [@solidsnakedev](https://github.com/solidsnakedev)! - ### Core Module Enhancements |
| 8 | + |
| 9 | + **Mint Module** |
| 10 | + - Added `Mint.getByHex()` and `Mint.getAssetsByPolicyHex()` utilities for hex-based lookups |
| 11 | + - Fixed `Mint.insert`, `removePolicy`, `removeAsset`, and `get` to use content-based equality (`Equal.equals`) instead of reference equality for PolicyId/AssetName lookups |
| 12 | + |
| 13 | + **Fee Calculation** |
| 14 | + - Fixed `calculateFeeIteratively` to include mint field in fee calculation via TxContext access |
| 15 | + - Removed unnecessary 5000n fee buffer that caused fee overpayment |
| 16 | + |
| 17 | + **Transaction Builder** |
| 18 | + - Added `.mint()` method to TransactionBuilder for native token minting/burning |
| 19 | + - `.attachScript()` now accepts `{ script: CoreScript }` parameter format |
| 20 | + - Improved type safety by using Core types directly instead of SDK wrappers |
| 21 | + |
| 22 | + ### Devnet Package |
| 23 | + |
| 24 | + **Test Infrastructure** |
| 25 | + - Added `TxBuilder.Mint.test.ts` with devnet submit tests for minting and burning |
| 26 | + - Updated `TxBuilder.Scripts.test.ts` to use Core types (`PlutusV2.PlutusV2`) instead of SDK format |
| 27 | + - Refactored `createCoreTestUtxo` helper to accept Core `Script` types directly |
| 28 | + - Removed unused `createTestUtxo` (SDK format) helper |
| 29 | + - Added `Genesis.calculateUtxosFromConfig()` for retrieving initial UTxOs from genesis config |
| 30 | + - Replaced all `Buffer.from().toString("hex")` with `Text.toHex()` in tests |
| 31 | + |
| 32 | + ### Breaking Changes |
| 33 | + - `attachScript()` now requires `{ script: ... }` object format instead of passing script directly |
| 34 | + - Test helpers now use Core types exclusively |
| 35 | + |
| 36 | +- [#103](https://github.com/IntersectMBO/evolution-sdk/pull/103) [`65b7259`](https://github.com/IntersectMBO/evolution-sdk/commit/65b7259b8b250b87d5420bca6458a5e862ba9406) Thanks [@solidsnakedev](https://github.com/solidsnakedev)! - ### Remove Buffer Usage from Source Code |
| 37 | + |
| 38 | + Replaced all `Buffer.from()` usage with `Bytes.fromHex()` and `Bytes.toHex()` from the core module for better cross-platform compatibility. |
| 39 | + |
| 40 | + **Files Updated:** |
| 41 | + - `TxBuilderImpl.ts` - Use `Bytes.toHex()` for key hash hex conversion in `buildFakeWitnessSet` |
| 42 | + - `Assets/index.ts` - Use `Bytes.fromHex()` for policy ID and asset name decoding |
| 43 | + - `MaestroEffect.ts` - Use `Bytes.fromHex()` for transaction CBOR conversion |
| 44 | + - `Ogmios.ts` - Use `Bytes.toHex()` for datum hash hex conversion |
| 45 | + - `KupmiosEffects.ts` - Use `Bytes.fromHex()` for datum hash and script bytes decoding |
| 46 | + |
3 | 47 | ## 0.3.3 |
4 | 48 |
|
5 | 49 | ### Patch Changes |
|
0 commit comments