MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseTransactionStatus

Method parseTransactionStatus

ts/src/woo.ts:2824–2833  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

2822 }
2823
2824 parseTransactionStatus (status: Str) {
2825 const statuses: Dict = {
2826 'NEW': 'pending',
2827 'CONFIRMING': 'pending',
2828 'PROCESSING': 'pending',
2829 'COMPLETED': 'ok',
2830 'CANCELED': 'canceled',
2831 };
2832 return this.safeString (statuses, (status as string), status);
2833 }
2834
2835 /**
2836 * @method

Callers 2

parseLedgerEntryMethod · 0.95
parseTransactionMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected