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

additional amm flags are introduced #2667

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
revert the previous changes to AMM flags
ckeshava committed Mar 20, 2024
commit 4d15456a392a7bbf74a11e2b1d406dbc1c9c28cb
27 changes: 0 additions & 27 deletions packages/xrpl/src/models/transactions/AMMDeposit.ts
Original file line number Diff line number Diff line change
@@ -21,25 +21,6 @@ export enum AMMDepositFlags {
tfTwoAsset = 0x00100000,
tfOneAssetLPToken = 0x00200000,
tfLimitLPToken = 0x00400000,
tfWithdrawAll = 0x00020000,
tfOneAssetWithdrawAll = 0x00040000,
tfTwoAssetIfEmpty = 0x00800000,
tfWithdrawSubTx = tfLPToken |
tfSingleAsset |
tfTwoAsset |
tfOneAssetLPToken |
tfLimitLPToken |
tfWithdrawAll |
tfOneAssetWithdrawAll,
tfDepositSubTx = tfLPToken |
tfSingleAsset |
tfTwoAsset |
tfOneAssetLPToken |
tfLimitLPToken |
tfTwoAssetIfEmpty,
tfUniversal = 0x80000000,
tfWithdrawMask = ~(tfUniversal | tfWithdrawSubTx),
tfDepositMask = ~(tfUniversal | tfDepositSubTx),
}

export interface AMMDepositFlagsInterface extends GlobalFlags {
@@ -48,14 +29,6 @@ export interface AMMDepositFlagsInterface extends GlobalFlags {
tfTwoAsset?: boolean
tfOneAssetLPToken?: boolean
tfLimitLPToken?: boolean
tfWithdrawAll?: boolean
tfOneAssetWithdrawAll?: boolean
tfTwoAssetIfEmpty?: boolean
tfWithdrawSubTx?: boolean
tfDepositSubTx?: boolean
tfUniversal?: boolean
tfWithdrawMask?: boolean
tfDepositMask?: boolean
}

/**