MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / generateSolFile

Function generateSolFile

src/code-gen/word-packer.ts:78–87  ·  view source on GitHub ↗
(codeLines: string[], context: FileContext, imports: string[])

Source from the content-addressed store, hash-verified

76}
77
78function generateSolFile(codeLines: string[], context: FileContext, imports: string[]) {
79 let code = arrJoiner([
80 ...generateFileHeader(true, context.opts.unsafe, imports),
81 ...codeLines,
82 ])
83 code = prettierFormat(
84 context.opts.noComments ? strip(code) : code
85 );
86 return code;
87}
88
89export class UnpackerGen {
90 static createLibrary(structsAndEnums: Array<AbiStruct | AbiEnum>, context: FileContext): {

Callers 1

createLibraryMethod · 0.85

Calls 4

arrJoinerFunction · 0.90
generateFileHeaderFunction · 0.90
prettierFormatFunction · 0.90
stripFunction · 0.85

Tested by

no test coverage detected