Skip to content
Open
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
12 changes: 11 additions & 1 deletion packages/xrpl/src/models/methods/accountLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export interface AccountLinesTrustline {
* @category Requests
*/
export interface AccountLinesRequest
extends BaseRequest, LookupByLedgerRequest {
extends BaseRequest,
LookupByLedgerRequest {
command: 'account_lines'
/** A unique identifier for the account, most commonly the account's Address. */
account: string
Expand All @@ -82,6 +83,11 @@ export interface AccountLinesRequest
* connecting the two accounts.
*/
peer?: string
/**
* If true, filter out trust lines with balances at their default values.
* The default is false.
*/
ignore_default?: boolean
/**
* Limit the number of trust lines to retrieve. The server is not required to
* honor this value. Must be within the inclusive range 10 to 400.
Expand Down Expand Up @@ -132,5 +138,9 @@ export interface AccountLinesResponse extends BaseResponse {
* No additional pages after this one.
*/
marker?: unknown
/**
* The limit value used in the request.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not true. Please use the text from the xrpl.org website verbatim:

The maximum number of trust lines retrieved. The server may return fewer than the specified limit, even if more results are available. If no limit was specified in the request, use a default limit of 200.

*/
limit?: number
}
}
16 changes: 13 additions & 3 deletions packages/xrpl/src/models/methods/accountNFTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,19 @@ export interface AccountNFTsResponse extends BaseResponse {
* The ledger index of the current open ledger, which was used when
* retrieving this information.
*/
ledger_current_index: number
/** If true, this data comes from a validated ledger. */
validated: boolean
ledger_current_index?: number
/**
* The identifying hash of the ledger that was used to generate this response.
*/
ledger_hash?: string
/**
* The ledger index of the ledger that was used to generate this response.
*/
ledger_index?: number
/**
* If true, this data comes from a validated ledger.
*/
validated?: boolean
/**
* Server-defined value indicating the response is paginated. Pass this to
* the next call to resume where this call left off. Omitted when there are
Expand Down
7 changes: 7 additions & 0 deletions packages/xrpl/src/models/methods/ammInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ export interface AMMInfoRequest extends BaseRequest {
* The other asset of the AMM pool.
*/
asset2?: Currency

/**
* The address of another account which holds LP Tokens for the requested AMM.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not correct. The documentation text reads:

Show only LP Tokens held by this liquidity provider.

* If specified, the response includes a field for the amount of the specified
* account's LP Tokens.
*/
account?: string
}

/**
Expand Down
22 changes: 21 additions & 1 deletion packages/xrpl/src/models/methods/nftBuyOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface NFTBuyOffersRequest
extends BaseRequest, LookupByLedgerRequest {
extends BaseRequest,
LookupByLedgerRequest {
command: 'nft_buy_offers'
/**
* The unique identifier of an NFToken. The request returns buy offers for this NFToken.
*/
nft_id: string
/**
* Limit the number of NFT buy offers to retrieve. The server may return
* fewer results. Valid values are within 50-500. The default is 250.
*/
limit?: number
/**
* Value from a previous paginated response. Resume retrieving data where
* that response left off.
*/
marker?: unknown
}

/**
Expand All @@ -32,5 +43,14 @@ export interface NFTBuyOffersResponse extends BaseResponse {
* The token ID of the NFToken to which these offers pertain.
*/
nft_id: string
/**
* The limit value used in the request.
*/
limit?: number
/**
* Server-defined value indicating the response is paginated. Pass this to
* the next call to resume where this call left off.
*/
marker?: unknown
}
}
22 changes: 21 additions & 1 deletion packages/xrpl/src/models/methods/nftSellOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface NFTSellOffersRequest
extends BaseRequest, LookupByLedgerRequest {
extends BaseRequest,
LookupByLedgerRequest {
command: 'nft_sell_offers'
/**
* The unique identifier of an NFToken. The request returns sell offers for this NFToken.
*/
nft_id: string
/**
* Limit the number of NFT sell offers to retrieve. The server may return
* fewer results. Valid values are within 50-500. The default is 250.
*/
limit?: number
/**
* Value from a previous paginated response. Resume retrieving data where
* that response left off.
*/
marker?: unknown
}

/**
Expand All @@ -32,5 +43,14 @@ export interface NFTSellOffersResponse extends BaseResponse {
* The token ID of the NFToken to which these offers pertain.
*/
nft_id: string
/**
* The limit value used in the request.
*/
limit?: number
/**
* Server-defined value indicating the response is paginated. Pass this to
* the next call to resume where this call left off.
*/
marker?: unknown
}
}
6 changes: 6 additions & 0 deletions packages/xrpl/src/models/methods/vaultInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ export interface VaultInfoResponse extends BaseResponse {
*/
ledger_index?: number

/**
* The ledger index of the current in-progress ledger, which was used when
* retrieving this information. May be omitted.
*/
ledger_current_index?: number

/**
* If included and set to true, the information in this response comes from
* a validated ledger version. Otherwise, the information is subject to
Expand Down
Loading