Skip to content

Commit 8fd31c6

Browse files
Merge pull request #104 from IntersectMBO/feat/add-mint-builder-plutus-script
feat/add mint builder plutus script
2 parents fe0757e + c26391a commit 8fd31c6

File tree

202 files changed

+2399
-475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+2399
-475
lines changed

.changeset/salty-files-return.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
"@evolution-sdk/devnet": patch
3+
"@evolution-sdk/evolution": patch
4+
---
5+
6+
### PlutusV3 Minting Support
7+
8+
- Add PlutusV3 script minting with automatic script evaluation via Ogmios
9+
- Add `mintAssets` builder method for Plutus script-based minting policies
10+
- Add `attachScript` builder method for attaching Plutus scripts to transactions
11+
- Support both minting (positive amounts) and burning (negative amounts)
12+
13+
### Redeemer API Improvements
14+
15+
- **Breaking**: Change `redeemer` parameter type from `string` (CBOR hex) to `Data.Data`
16+
- Affects `collectFrom()` and `mintAssets()` builder methods
17+
- Provides type-safe redeemer construction without manual CBOR encoding
18+
- Example: `redeemer: Data.constr(0n, [Data.int(1n)])` instead of hex strings
19+
20+
### Core Module Additions
21+
22+
- Add `Redeemers` module with Conway CDDL-compliant encoding (array format)
23+
- Refactor `hashScriptData` to use proper module encoders for redeemers and datums
24+
- Add `Redeemers.toCBORBytes()` for script data hash computation
25+
26+
### Internal Improvements
27+
28+
- Store `PlutusData.Data` directly in builder state instead of CBOR hex strings
29+
- Remove redundant CBOR hex encoding/decoding in transaction assembly
30+
- Add PlutusV3 minting devnet tests with real script evaluation

0 commit comments

Comments
 (0)