Skip to content

Commit

Permalink
Deprecate AllowTrustOp & update changelog accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Mar 20, 2021
1 parent c3f6dae commit cecfcda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

## Unreleased

### Add
- Introduced new CAP-35 operations, `ClawbackOp` and `ClawbackClaimableBalanceOp` ([#asdf]()).

### Update

- Add an additional parameter check to `claimClaimableBalance` to fail faster ([#390](https://github.com/stellar/js-stellar-base/pull/390)).

- The XDR & TS definitions have been updated to support CAP-35 ([#394](https://github.com/stellar/js-stellar-base/pull/394))
- The XDR & TS definitions have been updated to support CAP-35 ([#394](https://github.com/stellar/js-stellar-base/pull/394)).

### Breaking

- `AllowTrustOpAsset` has been renamed to `AssetCode` ([#394](https://github.com/stellar/js-stellar-base/pull/394))

### Deprecated

- `AllowTrustOp` is now a deprecated operation.

## [v4.0.3](https://github.com/stellar/js-stellar-base/compare/v4.0.2..v4.0.3)

## Update
Expand Down
5 changes: 5 additions & 0 deletions src/operations/allow_trust.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ import { Keypair } from '../keypair';
import { StrKey } from '../strkey';

/**
* @deprecated since v5.0
*
* Returns an XDR AllowTrustOp. An "allow trust" operation authorizes another
* account to hold your account's credit for a given asset.
*
* @function
* @alias Operation.allowTrust
*
* @param {object} opts Options object
* @param {string} opts.trustor - The trusting account (the one being authorized)
* @param {string} opts.assetCode - The asset code being authorized.
* @param {(0|1|2)} opts.authorize - `1` to authorize, `2` to authorize to maintain liabilities, and `0` to deauthorize.
* @param {string} [opts.source] - The source account (defaults to transaction source).
*
* @returns {xdr.AllowTrustOp} Allow Trust operation
*/
export function allowTrust(opts) {
Expand Down

0 comments on commit cecfcda

Please sign in to comment.