@trezor/connect
Version:
High-level javascript interface for Trezor hardware wallet.
33 lines (32 loc) • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
const protobuf_1 = require("@trezor/protobuf");
const schema_utils_1 = require("@trezor/schema-utils");
const AbstractMethod_1 = require("../core/AbstractMethod");
const paramsValidator_1 = require("./common/paramsValidator");
class EvoluGetNode extends AbstractMethod_1.AbstractMethod {
hasBundle;
init() {
this.requiredPermissions = ['read'];
this.firmwareRange = (0, paramsValidator_1.getFirmwareRange)(this.name, null, this.firmwareRange);
const {
payload
} = this;
(0, schema_utils_1.Assert)(protobuf_1.MessagesSchema.EvoluGetNode, payload);
this.params = {
proof_of_delegated_identity: payload.proof_of_delegated_identity
};
}
get info() {
return 'Evolu get node';
}
async run() {
const cmd = this.device.getCommands();
const response = await cmd.typedCall('EvoluGetNode', 'EvoluNode', this.params);
return response.message;
}
}
exports.default = EvoluGetNode;
//# sourceMappingURL=evoluGetNode.js.map