This commit is contained in:
nitowa
2023-08-15 22:28:03 +02:00
commit 1dae68b1c7
5529 changed files with 1659171 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
export type LedgerIndex = number | ('validated' | 'closed' | 'current');
interface XRP {
currency: 'XRP';
}
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 {
Signer: {
Account: string;
TxnSignature: string;
SigningPubKey: string;
};
}
export interface Memo {
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 {
SignerEntry: {
Account: string;
SignerWeight: number;
WalletLocator?: string;
};
}
export interface ResponseOnlyTxInfo {
date?: number;
hash?: string;
ledger_index?: number;
inLedger?: number;
}
export interface NFTOffer {
amount: Amount;
flags: number;
nft_offer_index: string;
owner: string;
destination?: string;
expiration?: number;
}
export {};
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/common/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;AAEvE,UAAU,GAAG;IACX,QAAQ,EAAE,KAAK,CAAA;CAChB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,GAAG,CAAA;AAE3C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,MAAM,GAA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,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/common/index.ts"],"names":[],"mappings":""}