@eliseev_s/tolk-tlb-transpiler
Version:
Transpile Tolk structs to TLB definitions and generate TypeScript wrappers for TON blockchain smart contracts
28 lines • 944 B
JavaScript
;
// ============================================================================
// Type Mappings and Constants
// ============================================================================
Object.defineProperty(exports, "__esModule", { value: true });
exports.COMMON_TLB_DEFINITIONS = exports.TYPE_MAPPINGS = void 0;
exports.TYPE_MAPPINGS = {
// Special types
bool: 'Bool',
coins: 'Grams',
address: 'MsgAddress',
// Cell and slice types
cell: '^Cell',
slice: 'Cell',
builder: 'Cell',
// Dictionary type (legacy) - keep for backward compatibility
dict: '(Maybe ^Cell)',
// Special types
RemainingBitsAndRefs: 'Cell',
};
/**
* Common TLB definitions that are used across generators
*/
exports.COMMON_TLB_DEFINITIONS = `// Common TLB definitions
left$0 {X:Type} {Y:Type} value:X = Either X Y;
right$1 {X:Type} {Y:Type} value:Y = Either X Y;
`;
//# sourceMappingURL=constants.js.map