Skip to content

Commit

Permalink
Merge pull request #163 from gudnuf/migration-update
Browse files Browse the repository at this point in the history
update v1.0.0 migration guide
  • Loading branch information
callebtc authored Aug 2, 2024
2 parents aa7cff6 + 70f14a5 commit 6c88848
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion migration-1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Decoding LN invoices is no longer used inside the lib.

### `CashuWallet` interface changes

**`receive()` does no longer support multi-token tokens**
**`receive()` no longer supports multi-token tokens**

To reduce complexity, simplify error handling and to prepare for token V4, this feature has been removed. only the first token inside a token will be processed

Expand All @@ -42,6 +42,7 @@ type MintQuoteResponse = {
quote: string;
paid: boolean;
expiry: number;
state: MintQuoteState;
};
```

Expand All @@ -60,13 +61,22 @@ type MeltQuoteResponse = {
fee_reserve: number;
paid: boolean;
expiry: number;
payment_preimage: string;
state: MeltQuoteState;
change?: Array<SerializedBlindedSignature>;
};
```

where `quote` is the identifier to pass to `meltTokens()`

---

**`receive()`** and **`receiveTokenEntry()`** now return `Array<Proofs>`

where `Proofs` are the newly created `Proofs` from the received token. Will now throw an error instead of returning `proofsWithError`

---

### Model changes

**`MintKeys`--> `Keys`**:
Expand Down

0 comments on commit 6c88848

Please sign in to comment.