PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo-express/node_modules/ripple-lib/dist/npm/ledger/parse
Просмотр файла: escrow-creation.js
'use strict'; // eslint-disable-line strict
var assert = require('assert');
var utils = require('./utils');
var parseAmount = require('./amount');
function parseEscrowCreation(tx) {
assert(tx.TransactionType === 'EscrowCreate');
return utils.removeUndefined({
amount: parseAmount(tx.Amount).value,
destination: tx.Destination,
memos: utils.parseMemos(tx),
condition: tx.Condition,
allowCancelAfter: utils.parseTimestamp(tx.CancelAfter),
allowExecuteAfter: utils.parseTimestamp(tx.FinishAfter),
sourceTag: tx.SourceTag,
destinationTag: tx.DestinationTag
});
}
module.exports = parseEscrowCreation;Выполнить команду
Для локальной разработки. Не используйте в интернете!