Skip to content
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
32 changes: 6 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/Amendments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export interface Majority {
* @category Ledger Entries
*/
export default interface Amendments
extends BaseLedgerEntry,
HasOptionalPreviousTxnID {
extends BaseLedgerEntry, HasOptionalPreviousTxnID {
LedgerEntryType: 'Amendments'
/**
* Array of 256-bit amendment IDs for all currently-enabled amendments. If
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/DepositPreauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
* @category Ledger Entries
*/
export default interface DepositPreauth
extends BaseLedgerEntry,
HasPreviousTxnID {
extends BaseLedgerEntry, HasPreviousTxnID {
LedgerEntryType: 'DepositPreauth'
/** The account that granted the preauthorization. */
Account: string
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/DirectoryNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { BaseLedgerEntry, HasOptionalPreviousTxnID } from './BaseLedgerEntry'
* @category Ledger Entries
*/
export default interface DirectoryNode
extends BaseLedgerEntry,
HasOptionalPreviousTxnID {
extends BaseLedgerEntry, HasOptionalPreviousTxnID {
LedgerEntryType: 'DirectoryNode'
/**
* A bit-map of boolean flags enabled for this directory. Currently, the
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/FeeSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export interface FeeSettingsPostAmendmentFields {
}

export interface FeeSettingsBase
extends BaseLedgerEntry,
HasOptionalPreviousTxnID {
extends BaseLedgerEntry, HasOptionalPreviousTxnID {
LedgerEntryType: 'FeeSettings'
/**
* A bit-map of boolean flags for this object. No flags are defined for this type.
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/NegativeUNL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const NEGATIVE_UNL_ID =
* @category Ledger Entries
*/
export default interface NegativeUNL
extends BaseLedgerEntry,
HasOptionalPreviousTxnID {
extends BaseLedgerEntry, HasOptionalPreviousTxnID {
LedgerEntryType: 'NegativeUNL'
/**
* A list of trusted validators that are currently disabled.
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/PermissionedDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { AuthorizeCredential } from '../common'
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'

export default interface PermissionedDomain
extends BaseLedgerEntry,
HasPreviousTxnID {
extends BaseLedgerEntry, HasPreviousTxnID {
/* The ledger object's type (PermissionedDomain). */
LedgerEntryType: 'PermissionedDomain'

Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/ledger/XChainOwnedClaimID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
* @category Ledger Entries
*/
export default interface XChainOwnedClaimID
extends BaseLedgerEntry,
HasPreviousTxnID {
extends BaseLedgerEntry, HasPreviousTxnID {
LedgerEntryType: 'XChainOwnedClaimID'

/** The account that checked out this unique claim ID value. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
* @category Ledger Entries
*/
export default interface XChainOwnedCreateAccountClaimID
extends BaseLedgerEntry,
HasPreviousTxnID {
extends BaseLedgerEntry, HasPreviousTxnID {
LedgerEntryType: 'XChainOwnedCreateAccountClaimID'

/** The account that owns this object. */
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/accountChannels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export interface Channel {
* @category Requests
*/
export interface AccountChannelsRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'account_channels'
/**
* The unique identifier of an account, typically the account's address. The
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/accountCurrencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface AccountCurrenciesRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'account_currencies'
/** A unique identifier for the account, most commonly the account's address. */
account: string
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/accountLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ 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 Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/accountObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export type AccountObjectType = Exclude<
* @category Requests
*/
export interface AccountObjectsRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'account_objects'
/** A unique identifier for the account, most commonly the account's address. */
account: string
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/accountOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface AccountOffersRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'account_offers'
/** A unique identifier for the account, most commonly the account's Address. */
account: string
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/depositAuthorized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface DepositAuthorizedRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'deposit_authorized'
/** The sender of a possible payment. */
source_account: string
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/gatewayBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface GatewayBalancesRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'gateway_balances'
/** The Address to check. This should be the issuing address. */
account: string
Expand Down
16 changes: 10 additions & 6 deletions packages/xrpl/src/models/methods/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export interface LedgerRequestExpandedAccountsOnly extends LedgerRequest {
*
* @category Requests
*/
export interface LedgerRequestExpandedAccountsAndTransactions
extends LedgerRequest {
// eslint-disable-next-line max-len -- Disable for interface declaration.
export interface LedgerRequestExpandedAccountsAndTransactions extends LedgerRequest {
expand: true
accounts: true
transactions: true
Expand Down Expand Up @@ -202,14 +202,18 @@ export interface LedgerQueueData {
max_spend_drops?: string
}

export interface LedgerBinary
extends Omit<Ledger, 'transactions' | 'accountState'> {
export interface LedgerBinary extends Omit<
Ledger,
'transactions' | 'accountState'
> {
accountState?: string[]
transactions?: string[]
}

export interface LedgerBinaryV1
extends Omit<LedgerV1, 'transactions' | 'accountState'> {
export interface LedgerBinaryV1 extends Omit<
LedgerV1,
'transactions' | 'accountState'
> {
accountState?: string[]
transactions?: string[]
}
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/nftBuyOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ 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.
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/nftSellOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ 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.
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/nftsByIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface NFTsByIssuerRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'nfts_by_issuer'
/**
* A unique identifier for the account, most commonly the account's address
Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/ripplePathFind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export interface SourceCurrencyAmount {
* @category Requests
*/
export interface RipplePathFindRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'ripple_path_find'
/** Unique address of the account that would send funds in a transaction. */
source_account: string
Expand Down
5 changes: 3 additions & 2 deletions packages/xrpl/src/models/methods/simulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ export interface SimulateBinaryResponse extends BaseResponse {
}
}

export interface SimulateJsonResponse<T extends BaseTransaction = Transaction>
extends BaseResponse {
export interface SimulateJsonResponse<
T extends BaseTransaction = Transaction,
> extends BaseResponse {
result: {
applied: false

Expand Down
3 changes: 1 addition & 2 deletions packages/xrpl/src/models/methods/transactionEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
* @category Requests
*/
export interface TransactionEntryRequest
extends BaseRequest,
LookupByLedgerRequest {
extends BaseRequest, LookupByLedgerRequest {
command: 'transaction_entry'

/** Unique hash of the transaction you are looking up. */
Expand Down
10 changes: 6 additions & 4 deletions packages/xrpl/src/models/methods/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ interface BaseTxResult<
*
* @category Responses
*/
export interface TxResponse<T extends BaseTransaction = Transaction>
extends BaseResponse {
export interface TxResponse<
T extends BaseTransaction = Transaction,
> extends BaseResponse {
result: BaseTxResult<typeof RIPPLED_API_V2, T> & { tx_json: T }
/**
* If true, the server was able to search all of the specified ledger
Expand All @@ -110,8 +111,9 @@ export interface TxResponse<T extends BaseTransaction = Transaction>
*
* @category ResponsesV1
*/
export interface TxV1Response<T extends BaseTransaction = Transaction>
extends BaseResponse {
export interface TxV1Response<
T extends BaseTransaction = Transaction,
> extends BaseResponse {
result: BaseTxResult<typeof RIPPLED_API_V1, T> & T
/**
* If true, the server was able to search all of the specified ledger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export enum MPTokenIssuanceCreateFlags {
*
* @category Transaction Flags
*/
export interface MPTokenIssuanceCreateFlagsInterface
extends GlobalFlagsInterface {
// eslint-disable-next-line max-len -- Disable for interface declaration.
export interface MPTokenIssuanceCreateFlagsInterface extends GlobalFlagsInterface {
tfMPTCanLock?: boolean
tfMPTRequireAuth?: boolean
tfMPTCanEscrow?: boolean
Expand Down
4 changes: 2 additions & 2 deletions packages/xrpl/src/models/transactions/paymentChannelClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export enum PaymentChannelClaimFlags {
* // }
* ```
*/
export interface PaymentChannelClaimFlagsInterface
extends GlobalFlagsInterface {
// eslint-disable-next-line max-len -- Disable for interface declaration.
export interface PaymentChannelClaimFlagsInterface extends GlobalFlagsInterface {
/**
* Clear the channel's Expiration time. (Expiration is different from the
* channel's immutable CancelAfter time.) Only the source address of the
Expand Down
Loading