|
3 | 3 |
|
4 | 4 | ## Unreleased
|
5 | 5 |
|
6 |
| -### Add |
7 |
| - |
8 |
| - - A new helper method is introduced to help convert from muxed account addresses to their underlying Stellar addresses ([#485](https://github.com/stellar/js-stellar-base/pull/485)): |
9 |
| - |
10 |
| -```ts |
11 |
| -function extractBaseAddess(address: string): string; |
12 |
| -``` |
13 |
| - |
14 |
| - - The following muxed account validation functions are now available from Typescript ([#483](https://github.com/stellar/js-stellar-base/pull/483/files)): |
15 |
| - |
16 |
| -```typescript |
17 |
| -namespace StrKey { |
18 |
| - function encodeMed25519PublicKey(data: Buffer): string; |
19 |
| - function decodeMed25519PublicKey(data: string): Buffer; |
20 |
| - function isValidMed25519PublicKey(publicKey: string): boolean; |
21 |
| -} |
22 | 6 |
|
23 |
| -function decodeAddressToMuxedAccount(address: string, supportMuxing: boolean): xdr.MuxedAccount; |
24 |
| -function encodeMuxedAccountToAddress(account: xdr.MuxedAccount, supportMuxing: boolean): string; |
25 |
| -function encodeMuxedAccount(gAddress: string, id: string): xdr.MuxedAccount; |
26 |
| -``` |
| 7 | +## [v7.0.0](https://github.com/stellar/js-stellar-base/compare/v6.0.6..v7.0.0) |
27 | 8 |
|
28 |
| -- Adds a helper function `Transaction.getClaimableBalanceId(int)` which lets you pre-determine the hex claimable balance ID of a `createClaimableBalance` operation prior to submission to the network ([#482](https://github.com/stellar/js-stellar-base/pull/482)). |
| 9 | +This release introduces **unconditional support for muxed accounts** ([#485](https://github.com/stellar/js-stellar-base/pull/485)). |
29 | 10 |
|
30 | 11 | ### Breaking Changes
|
31 | 12 |
|
32 |
| -This release introduces **unconditional support for muxed accounts** ([#485](https://github.com/stellar/js-stellar-base/pull/485)). |
33 |
| - |
34 | 13 | In [v5.2.0](https://github.com/stellar/js-stellar-base/releases/tag/v5.2.0), we introduced _opt-in_ support for muxed accounts, where you would need to explicitly pass a `true` flag if you wanted to interpret muxed account objects as muxed addresses (in the form `M...`, see [SEP-23](https://stellar.org/protocol/sep-23)). We stated that this would become the default in the future. That is now the case.
|
35 | 14 |
|
36 | 15 | The following fields will now always support muxed properties:
|
@@ -73,9 +52,32 @@ There are several other breaking changes:
|
73 | 52 | let mux2 = new MuxedAccount(mux1.baseAccount(), '2');
|
74 | 53 | ```
|
75 | 54 |
|
| 55 | + |
| 56 | + - Introduced a new helper method to help convert from muxed account addresses to their underlying Stellar addresses ([#485](https://github.com/stellar/js-stellar-base/pull/485)): |
| 57 | + |
| 58 | +```ts |
| 59 | +function extractBaseAddess(address: string): string; |
| 60 | +``` |
| 61 | + |
| 62 | + - The following muxed account validation functions are now available from Typescript ([#483](https://github.com/stellar/js-stellar-base/pull/483/files)): |
| 63 | + |
| 64 | +```typescript |
| 65 | +namespace StrKey { |
| 66 | + function encodeMed25519PublicKey(data: Buffer): string; |
| 67 | + function decodeMed25519PublicKey(data: string): Buffer; |
| 68 | + function isValidMed25519PublicKey(publicKey: string): boolean; |
| 69 | +} |
| 70 | + |
| 71 | +function decodeAddressToMuxedAccount(address: string, supportMuxing: boolean): xdr.MuxedAccount; |
| 72 | +function encodeMuxedAccountToAddress(account: xdr.MuxedAccount, supportMuxing: boolean): string; |
| 73 | +function encodeMuxedAccount(gAddress: string, id: string): xdr.MuxedAccount; |
| 74 | +``` |
| 75 | + |
| 76 | +- Added a helper function `Transaction.getClaimableBalanceId(int)` which lets you pre-determine the hex claimable balance ID of a `createClaimableBalance` operation prior to submission to the network ([#482](https://github.com/stellar/js-stellar-base/pull/482)). |
| 77 | + |
76 | 78 | ### Fix
|
77 | 79 |
|
78 |
| -- Add `Buffer` as a parameter type option for the `Keypair` constructor in Typescript [#484](https://github.com/stellar/js-stellar-base/pull/484). |
| 80 | +- Add `Buffer` as a parameter type option for the `Keypair` constructor in Typescript ([#484](https://github.com/stellar/js-stellar-base/pull/484)). |
79 | 81 |
|
80 | 82 |
|
81 | 83 | ## [v6.0.6](https://github.com/stellar/js-stellar-base/compare/v6.0.5..v6.0.6)
|
|
0 commit comments