UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

17 lines (15 loc) 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.typeKey = void 0; let id = 0; const getID = (type) => { const typeAny = type; if (typeAny.id == undefined && typeAny.__id === undefined) { id += 1; typeAny.__id = id; return id; } return typeAny.id || typeAny.__id; }; exports.typeKey = (type) => `${getID(type)}`; //# sourceMappingURL=typeKey.js.map