mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 20:55:48 +00:00
34 lines
628 B
TypeScript
34 lines
628 B
TypeScript
import {Memo} from '../common/types'
|
|
|
|
export type TrustLineSpecification = {
|
|
currency: string,
|
|
counterparty: string,
|
|
limit: string,
|
|
qualityIn?: number,
|
|
qualityOut?: number,
|
|
ripplingDisabled?: boolean,
|
|
authorized?: boolean,
|
|
frozen?: boolean,
|
|
memos?: Memo[]
|
|
}
|
|
|
|
export type Trustline = {
|
|
specification: TrustLineSpecification,
|
|
counterparty: {
|
|
limit: string,
|
|
ripplingDisabled?: boolean,
|
|
frozen?: boolean,
|
|
authorized?: boolean
|
|
},
|
|
state: {
|
|
balance: string
|
|
}
|
|
}
|
|
|
|
export type TrustlinesOptions = {
|
|
counterparty?: string,
|
|
currency?: string,
|
|
limit?: number,
|
|
ledgerVersion?: number
|
|
}
|