/** Create Topic String
 *
 * The topic channel identifier
 * @param topicType
 * @returns
 */
export function createTopicString(topicType) {
    return '/aztec/' + topicType + '/0.1.0';
}
/**
 *
 */
export var TopicType;
(function (TopicType) {
    TopicType["tx"] = "tx";
    TopicType["block_proposal"] = "block_proposal";
    TopicType["block_attestation"] = "block_attestation";
    TopicType["epoch_proof_quote"] = "epoch_proof_quote";
})(TopicType || (TopicType = {}));
/**
 * Convert the topic string into a set of labels
 *
 * In the form:
 * {
 *  "/aztec/tx/0.1.0": "tx",
 *  ...
 * }
 */
export function metricsTopicStrToLabels() {
    const topicStrToLabel = new Map();
    for (const topic in TopicType) {
        topicStrToLabel.set(createTopicString(TopicType[topic]), topic);
    }
    return topicStrToLabel;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9waWNfdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wMnAvdG9waWNfdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7R0FLRztBQUNILE1BQU0sVUFBVSxpQkFBaUIsQ0FBQyxTQUFvQjtJQUNwRCxPQUFPLFNBQVMsR0FBRyxTQUFTLEdBQUcsUUFBUSxDQUFDO0FBQzFDLENBQUM7QUFFRDs7R0FFRztBQUNILE1BQU0sQ0FBTixJQUFZLFNBS1g7QUFMRCxXQUFZLFNBQVM7SUFDbkIsc0JBQVMsQ0FBQTtJQUNULDhDQUFpQyxDQUFBO0lBQ2pDLG9EQUF1QyxDQUFBO0lBQ3ZDLG9EQUF1QyxDQUFBO0FBQ3pDLENBQUMsRUFMVyxTQUFTLEtBQVQsU0FBUyxRQUtwQjtBQUVEOzs7Ozs7OztHQVFHO0FBQ0gsTUFBTSxVQUFVLHVCQUF1QjtJQUNyQyxNQUFNLGVBQWUsR0FBRyxJQUFJLEdBQUcsRUFBa0IsQ0FBQztJQUNsRCxLQUFLLE1BQU0sS0FBSyxJQUFJLFNBQVMsRUFBRSxDQUFDO1FBQzlCLGVBQWUsQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsU0FBUyxDQUFDLEtBQStCLENBQUMsQ0FBQyxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBQzVGLENBQUM7SUFFRCxPQUFPLGVBQWUsQ0FBQztBQUN6QixDQUFDIn0=