Skip to content

Commit

Permalink
Use upstream Ripple type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Aug 24, 2023
1 parent 6739d09 commit 95ccc4d
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/ripple/RippleEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
import {
getBalanceChanges,
OfferCreate,
Payment as PaymentJson,
rippleTimeToUnixTime,
TrustSet,
unixTimeToRippleTime,
Expand Down Expand Up @@ -91,24 +92,8 @@ const tfSetNoRipple = 131072 // No Rippling Flag for token sends
const TRUST_LINE_APPROVAL_AMOUNT = '1000000'
const SET_TRUST_LINE_FEE = '12'

interface PaymentJson {
Amount:
| string
| {
currency: string
issuer: string
value: string
}
TransactionType: string
Account: string
Destination: string
Fee: string
DestinationTag?: number
Flags?: number
}

interface XrpParams {
preparedTx: Object
preparedTx: PaymentJson
}

export class XrpEngine extends CurrencyEngine<
Expand Down

0 comments on commit 95ccc4d

Please sign in to comment.