Skip to content

Commit

Permalink
methods account for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
achowdhry-ripple committed Nov 15, 2024
1 parent 618c195 commit 039a882
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/xrpl/src/models/ledger/LedgerEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type LedgerEntryFilter =
| 'amm'
| 'bridge'
| 'check'
| 'credential'
| 'deposit_preauth'
| 'did'
| 'directory'
Expand Down
6 changes: 6 additions & 0 deletions packages/xrpl/src/models/methods/depositAuthorized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export interface DepositAuthorizedRequest
source_account: string
/** The recipient of a possible payment. */
destination_account: string
/**
* The object IDs of Credential objects. If this field is included, then the
* credential will be taken into account when analyzing whether the sender can send
* funds to the destination.
*/
credentials?: string[]
}

/**
Expand Down
8 changes: 7 additions & 1 deletion packages/xrpl/src/models/methods/ledgerEntry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Currency, XChainBridge } from '../common'
import { AuthorizeCredential, Currency, XChainBridge } from '../common'
import { LedgerEntry } from '../ledger'

import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
Expand Down Expand Up @@ -67,6 +67,12 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
/** The object ID of a Check object to retrieve. */
check?: string

/* Specify the Credential to retrieve. If a string, must be the ledger entry ID of
* the entry, as hexadecimal. If an object, requires subject, issuer, and
* credential_type sub-fields.
*/
credential?: AuthorizeCredential | string

/**
* Specify a DepositPreauth object to retrieve. If a string, must be the
* object ID of the DepositPreauth object, as hexadecimal. If an object,
Expand Down

0 comments on commit 039a882

Please sign in to comment.