Skip to content

Commit 7905507

Browse files
committed
docs: add changeset
1 parent 4b4e9d8 commit 7905507

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.changeset/yummy-shoes-double.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
"@evolution-sdk/evolution": patch
3+
---
4+
5+
Add `attachMetadata()` operation to TransactionBuilder for attaching transaction metadata according to CIP-10 standard.
6+
7+
**Changes:**
8+
- Added `attachMetadata()` method to attach metadata with custom labels
9+
- Metadata labels are now bigint (unbounded positive integers) supporting CIP-20 messages (label 674) and custom labels
10+
- Automatic computation of auxiliaryDataHash in transaction body when metadata is present
11+
- Proper fee calculation accounting for auxiliary data size
12+
- TransactionMetadatum refactored to simple union type: `string | bigint | Uint8Array | Map | Array`
13+
- Added `NonNegativeInteger` schema to Numeric module for unbounded non-negative integers
14+
15+
**Example:**
16+
```typescript
17+
await client
18+
.newTx()
19+
.attachMetadata({
20+
label: 674n, // CIP-20 message label
21+
metadata: "Hello Cardano!"
22+
})
23+
.payToAddress({ address, assets })
24+
.build()
25+
.then(tx => tx.sign().submit())
26+
```

0 commit comments

Comments
 (0)