UNPKG

@usecannon/router

Version:

Fork of Synthetix Router Proxy Architecture Manager, including only contract generation logic.

14 lines 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPrivateConstantCase = toPrivateConstantCase; /** * Converts the contracts name to private _CONSTANT_CASE format. * E.g.: * 'BearableModule' => '_BEARABLE_MODULE' * 'Proxy' => '_PROXY' * 'ERC20Token' => '_ERC20_TOKEN' */ function toPrivateConstantCase(name) { return name.replace(/(?<![A-Z])[A-Z]/g, '_$&').toUpperCase(); } //# sourceMappingURL=router-helper.js.map