Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the missing AMMDeposit flag TF_TWO_ASSET_IF_EMPTY #696

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Currency codes with special characters not being allowed by IssuedCurrency objects.
- Construction of Wallet throws an "Invalid Seed" error, if the secret is not decode-able.
- Rectify the incorrect usage of a transaction flag name: Update `TF_NO_DIRECT_RIPPLE` to `TF_NO_RIPPLE_DIRECT`
- Add the missing `AMMDeposit` Flag `TF_TWO_ASSET_IF_EMPTY`

## [2.5.0] - 2023-11-30

Expand Down
2 changes: 2 additions & 0 deletions xrpl/models/transactions/amm_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AMMDepositFlag(int, Enum):
TF_TWO_ASSET = 0x00100000
TF_ONE_ASSET_LP_TOKEN = 0x00200000
TF_LIMIT_LP_TOKEN = 0x00400000
TF_TWO_ASSET_IF_EMPTY = 0x00800000


class AMMDepositFlagInterface(FlagInterface):
Expand All @@ -38,6 +39,7 @@ class AMMDepositFlagInterface(FlagInterface):
TF_TWO_ASSET: bool
TF_ONE_ASSET_LP_TOKEN: bool
TF_LIMIT_LP_TOKEN: bool
TF_TWO_ASSET_IF_EMPTY: bool


@require_kwargs_on_init
Expand Down
Loading