Files
xahau.js/src/models/common/index.ts
Nathan Nichols 6742e2048a build: Initial linting setup (#1560)
* 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.
2021-09-14 17:00:46 -04:00

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;
}