Skip to content

Commit

Permalink
Update liquidity pool effect types to their correct values. (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Nov 10, 2021
1 parent c09f8f5 commit f3dd394
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ A breaking change will get clearly marked in this log.

## Unreleased

### Fix

- Fixes the `type_i` enumeration field to accurately reflect liquidity pool effects ([#723](https://github.com/stellar/js-stellar-sdk/pull/723)).

### Updates

- Updates the following SEP-10 utility functions to include [client domain verification](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md#verifying-the-client-domain) functionality ([#720](https://github.com/stellar/js-stellar-sdk/pull/720)):
- Updated `Utils.buildChallengeTx()` to accept the `clientDomain` and `clientSigningKey` optional parameters
- Updated `Utils.readChallengeTx()` to parse challenge transactions containing a `client_domain` ManageData operation
- Updated `Utils.verifyChallengeTxSigners()` to verify an additional signature from the `clientSigningKey` keypair if a `client_domain` Manage Data operation is included in the challenge


## [v9.0.0](https://github.com/stellar/js-stellar-sdk/compare/v9.0.0-beta.1...v9.0.0)

This stable release adds **support for Protocol 18**. For details, you can refer to [CAP-38](https://stellar.org/protocol/cap-38) for XDR changes and [this document](https://docs.google.com/document/d/1pXL8kr1a2vfYSap9T67R-g72B_WWbaE1YsLMa04OgoU/view) for changes to the Horizon API.
Expand Down
14 changes: 8 additions & 6 deletions src/types/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ export enum EffectType {
signer_sponsorship_created = 72,
signer_sponsorship_updated = 73,
signer_sponsorship_removed = 74,
// clawback effects
claimable_balance_clawed_back = 80,
liquidity_pool_deposited = 81,
liquidity_pool_withdrew = 82,
liquidity_pool_trade = 83,
liquidity_pool_created = 84,
liquidity_pool_removed = 85,
liquidity_pool_revoked = 86,
// liquidity pool effects
liquidity_pool_deposited = 90,
liquidity_pool_withdrew = 91,
liquidity_pool_trade = 92,
liquidity_pool_created = 93,
liquidity_pool_removed = 94,
liquidity_pool_revoked = 95,
}
export interface BaseEffectRecord extends Horizon.BaseResponse {
id: string;
Expand Down

0 comments on commit f3dd394

Please sign in to comment.