mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 22:25:48 +00:00
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs. * Note that there are still a lot of linter errors.
62 lines
1.0 KiB
TypeScript
62 lines
1.0 KiB
TypeScript
export type LedgerIndex = number | ("validated" | "closed" | "current");
|
|
|
|
export type AccountObjectType =
|
|
| "check"
|
|
| "escrow"
|
|
| "offer"
|
|
| "payment_channel"
|
|
| "signer_list"
|
|
| "state";
|
|
|
|
export interface XRP {
|
|
currency: "XRP";
|
|
}
|
|
|
|
export interface IssuedCurrency {
|
|
currency: string;
|
|
issuer: string;
|
|
}
|
|
|
|
export type Currency = IssuedCurrency | XRP;
|
|
|
|
export interface IssuedCurrencyAmount extends IssuedCurrency {
|
|
value: string;
|
|
}
|
|
|
|
export type Amount = IssuedCurrencyAmount | string;
|
|
|
|
export interface Signer {
|
|
Account: string;
|
|
TxnSignature: string;
|
|
SigningPubKey: string;
|
|
}
|
|
|
|
export interface Memo {
|
|
MemoData?: string;
|
|
MemoType?: string;
|
|
MemoFormat?: string;
|
|
}
|
|
|
|
export type StreamType =
|
|
| "consensus"
|
|
| "ledger"
|
|
| "manifests"
|
|
| "peer_status"
|
|
| "transactions"
|
|
| "transactions_proposed"
|
|
| "server"
|
|
| "validations";
|
|
|
|
interface PathStep {
|
|
account?: string;
|
|
currency?: string;
|
|
issuer?: string;
|
|
}
|
|
|
|
export type Path = PathStep[];
|
|
|
|
export interface SignerEntry {
|
|
Account: string;
|
|
SignerWeight: number;
|
|
}
|