PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/stargate/build
Просмотр файла: events.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromTendermint34Event = void 0;
const encoding_1 = require("@cosmjs/encoding");
/**
* Takes a Tendemrint 0.34 event with binary encoded key and value
* and converts it into an `Event` with string attributes.
*/
function fromTendermint34Event(event) {
return {
type: event.type,
attributes: event.attributes.map((attr) => ({
key: (0, encoding_1.fromUtf8)(attr.key, true),
value: (0, encoding_1.fromUtf8)(attr.value, true),
})),
};
}
exports.fromTendermint34Event = fromTendermint34Event;
//# sourceMappingURL=events.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!