MCPcopy Create free account

hub / github.com/d1ll0n/stack-packer / functions

Functions174 in github.com/d1ll0n/stack-packer

↓ 15 callersMethodaddConstant
* Add a constant and get the reference to it * @param name Name of constant to use * @param value Value for the constant * @returns Reference
src/code-gen/context.ts:80
↓ 10 callersFunctiontoTypeName
(def: AbiType, roundToNearestByte?: boolean)
src/code-gen/fields.ts:9
↓ 9 callersFunctionarrJoiner
(arr: ArrayJoinInput)
src/lib/text.ts:25
↓ 9 callersFunctiontoHex
(n: number)
src/lib/bytes.ts:6
↓ 8 callersFunctionarrayifyFields
( beforeStr: string, arr: string[] | string, afterStr: string )
src/code-gen/codegen-helpers.ts:5
↓ 8 callersFunctionmodifyItem
( arrOrStr: ArrayJoinInput<string>, modification: ArrayModification )
src/lib/text.ts:69
↓ 7 callersFunctionmkdirIfNotExists
(target: string)
src/project/paths.ts:43
↓ 7 callersMethodtoPascalCase
()
src/lib/String.ts:2
↓ 6 callersFunctionapplyCoderType
(field: ProcessedField, coderType: CoderType)
src/code-gen/fields.ts:99
↓ 6 callersFunctionbuildAssemblyBlock
(lines: ArrayJoinInput<string>)
src/code-gen/codegen-helpers.ts:22
↓ 5 callersFunctiongetDir
(_path: string)
src/project/paths.ts:10
↓ 5 callersFunctiongetMaxUint
(bits: number)
src/lib/bytes.ts:18
↓ 5 callersMethodhandleFields
(fields: StructField[])
src/parser/index.ts:57
↓ 5 callersFunctionisSolFile
(_path: string)
src/project/paths.ts:6
↓ 5 callersFunctionmaxUint
(bits: number)
src/lib/bytes.ts:16
↓ 5 callersFunctionparseMember
(scopeName: string, member: VariableDeclaration, defaultCoderType: CoderType)
src/parser/parser.ts:52
↓ 5 callersFunctionsuffixLastString
( arrOrStr: ArrayJoinInput<string>, text: string )
src/lib/text.ts:113
↓ 4 callersMethodaddFunctions
(fns: CodeGenFunction[], sectionTitle?: string)
src/code-gen/context.ts:46
↓ 4 callersMethodfindGetterOrSetterForFields
( struct: ProcessedStruct, fields: ProcessedField[], fn: CodeGenFunction, contractName: string
src/code-gen/test/generic.ts:99
↓ 4 callersFunctiongetFieldValue
(field: ProcessedField, kind: TestValueKind)
src/code-gen/test/hardhat.ts:63
↓ 4 callersFunctiongetFieldValue
(field: ProcessedField, kind: TestValueKind)
src/code-gen/test/foundry.ts:62
↓ 4 callersFunctiongetSetterTest
( testName: string, fields: ProcessedField[], setterCode: ArrayJoinInput<string>, getterCode: ArrayJoi
src/code-gen/test/hardhat.ts:105
↓ 4 callersFunctiongetSetterTest
( testName: string, fields: ProcessedField[], setterCode: ArrayJoinInput<string>, getterCode: ArrayJoi
src/code-gen/test/foundry.ts:104
↓ 4 callersFunctionintAllowed
(typeName: AbiType)
src/code-gen/fields.ts:118
↓ 4 callersFunctionremoveTrailingNewLines
(arrOrStr: ArrayJoinInput<string>)
src/lib/text.ts:128
↓ 3 callersFunction_generateCall
(contractName: string, fn: {name:string}, args: string[])
src/code-gen/test/hardhat.ts:72
↓ 3 callersFunction_generateCall
(contractName: string, fn: {name:string}, args: string[])
src/code-gen/test/foundry.ts:71
↓ 3 callersFunctionbuildFunctionBlock
( name: string, input: string[] | string, output: string[] | string, lines: ArrayJoinInput<string> )
src/code-gen/codegen-helpers.ts:78
↓ 3 callersFunctionelementaryToTypeDef
(typeName: string)
src/parser/index.ts:221
↓ 3 callersFunctiongenerateIt
(name: string, code: ArrayJoinInput<string>[])
src/code-gen/test/hardhat.ts:73
↓ 3 callersFunctiongenerateIt
(name: string, code: ArrayJoinInput<string>[])
src/code-gen/test/foundry.ts:72
↓ 3 callersFunctiongetAccessorOptions
(name: string, accessors?: Accessors)
src/code-gen/fields.ts:203
↓ 3 callersFunctiongetEncoder
( struct: AbiStruct, fields: ProcessedField[], context: FileContext, name: string, maskReference?: s
src/code-gen/functions.ts:150
↓ 3 callersFunctiongetExtension
(_path: string)
src/project/paths.ts:4
↓ 3 callersFunctiongetFieldsGetter
(name: string, struct: AbiStruct, fields: ProcessedField[])
src/code-gen/functions.ts:23
↓ 3 callersFunctionshouldCheckForOverflow
(field: AbiStructField)
src/code-gen/fields.ts:122
↓ 3 callersFunctiontoArray
(arr: ArrayJoinInput<string>)
src/lib/text.ts:5
↓ 3 callersFunctiontryFindHardhatProjectInPath
(contractsPath?: string)
src/project/hardhat.ts:46
↓ 2 callersFunctionapplyGroupAccessCoder
( group: GroupType, fields: ProcessedField[], groupCoderLocation: 'get' | 'set' )
src/code-gen/fields.ts:78
↓ 2 callersFunctionbuildNestedAssemblyOr
( fields: { positioned: ProcessedField["positioned"] }[] )
src/code-gen/codegen-helpers.ts:121
↓ 2 callersMethodconvertFieldType
(typeName: TypeName)
src/parser/index.ts:169
↓ 2 callersFunctioncopyFnDef
(fn: CodeGenFunction)
src/code-gen/test/external.ts:4
↓ 2 callersFunctionfindChild
(_path: string, childOrPossibleChildren: string | string[])
src/project/paths.ts:23
↓ 2 callersFunctionfindDirectoryInTree
(_path: string, parentName: string)
src/project/paths.ts:16
↓ 2 callersFunctiongenerateCall
(args: string[])
src/code-gen/test/hardhat.ts:125
↓ 2 callersFunctiongenerateCall
(args: string[])
src/code-gen/test/foundry.ts:124
↓ 2 callersFunctiongenerateFileHeader
(withNotice?: boolean, unsafeWarning?: boolean, imports?: string[])
src/code-gen/context.ts:27
↓ 2 callersFunctiongenerateFunctionCode
(fn: CodeGenFunction)
src/code-gen/codegen-helpers.ts:48
↓ 2 callersFunctiongenerateSolFile
(codeLines: string[], context: FileContext, imports: string[])
src/code-gen/word-packer.ts:78
↓ 2 callersFunctiongetFoundryRootFromSrc
(srcDirectory: string)
src/project/foundry.ts:5
↓ 2 callersFunctiongetOmitMask
(offset: number, size: number)
src/lib/bytes.ts:20
↓ 2 callersFunctiongetParameterDefinition
(field: AbiStructField)
src/code-gen/fields.ts:128
↓ 2 callersFunctionisDir
(_path: string)
src/project/paths.ts:8
↓ 2 callersFunctionparentOf
(_path: string)
src/project/paths.ts:12
↓ 2 callersFunctionparseSubNode
(scopeName: string, subNode: SubNodeType)
src/parser/parser.ts:142
↓ 2 callersFunctionprefixFirstString
( arrOrStr: ArrayJoinInput<string>, text: string )
src/lib/text.ts:95
↓ 2 callersFunctionuintAllowed
(typeName: AbiType)
src/code-gen/fields.ts:110
↓ 1 callersFunction_getOverflowTest
(contractName: string, fn: {name:string}, args: string[], field: ProcessedField)
src/code-gen/test/hardhat.ts:78
↓ 1 callersFunction_getOverflowTest
(contractName: string, fn: {name:string}, args: string[], field: ProcessedField)
src/code-gen/test/foundry.ts:77
↓ 1 callersFunction_getUnderflowTest
(contractName: string, fn: {name:string}, args: string[], field: ProcessedField)
src/code-gen/test/hardhat.ts:87
↓ 1 callersFunction_getUnderflowTest
(contractName: string, fn: {name:string}, args: string[], field: ProcessedField)
src/code-gen/test/foundry.ts:86
↓ 1 callersFunctionabiStructToSol
(struct: AbiStruct | AbiEnum)
src/code-gen/fields.ts:34
↓ 1 callersMethodaddSection
(title: string, code: ArrayJoinInput<string>[])
src/code-gen/context.ts:68
↓ 1 callersFunctionbitsRequired
(n: number, roundUp?: boolean)
src/lib/bytes.ts:42
↓ 1 callersMethodclearCode
()
src/code-gen/context.ts:60
↓ 1 callersFunctioncontainsChild
(_path: string, child: string)
src/project/paths.ts:14
↓ 1 callersFunctionconvertFieldType
(typeName: TypeName, structs: Record<string, AbiStruct>, enums: Record<string, AbiEnum>)
src/parser/index.ts:7
↓ 1 callersMethodcreateLibrary
(structsAndEnums: Array<AbiStruct | AbiEnum>, context: FileContext)
src/code-gen/word-packer.ts:90
↓ 1 callersFunctiondoMap
(subArr: ArrayJoinInput<string>, depth = 0)
src/lib/text.ts:27
↓ 1 callersFunctiongenerateCoderLibrary
(struct: ProcessedStruct, context: FileContext)
src/code-gen/word-packer.ts:27
↓ 1 callersFunctiongenerateComparisonFunctions
(struct: AbiStruct)
src/code-gen/functions.ts:92
↓ 1 callersFunctiongenerateEqualityFunction
(struct: AbiStruct)
src/code-gen/functions.ts:68
↓ 1 callersFunctiongenerateExternalCoder
( functions: CodeGenFunction[], structTypeName: string, structStorageName: string, libraryName: string
src/code-gen/test/external.ts:52
↓ 1 callersFunctiongenerateExternalFunction
(fn: CodeGenFunction, structStorageName: string, libraryName: string)
src/code-gen/test/external.ts:10
↓ 1 callersFunctiongenerateFieldAccessors
(struct: AbiStruct, field: ProcessedField, context: FileContext)
src/code-gen/functions.ts:128
↓ 1 callersFunctiongenerateFieldGetter
(struct: AbiStruct, field: ProcessedField)
src/code-gen/functions.ts:126
↓ 1 callersFunctiongenerateFieldSetter
( struct: AbiStruct, field: ProcessedField, context: FileContext )
src/code-gen/functions.ts:183
↓ 1 callersFunctiongenerateFoundryTestForFunction
( struct: ProcessedStruct, fn: CodeGenFunction, libraryName: string )
src/code-gen/test/foundry.ts:117
↓ 1 callersFunctiongenerateHardhatTest
( struct: ProcessedStruct, functions: CodeGenFunction[], libraryName: string )
src/code-gen/test/hardhat.ts:208
↓ 1 callersFunctiongenerateHardhatTestForFunction
( struct: ProcessedStruct, fn: CodeGenFunction, libraryName: string )
src/code-gen/test/hardhat.ts:118
↓ 1 callersFunctiongenerateInternalLibraryCall
(fn: CodeGenFunction, libraryName: string)
src/code-gen/codegen-helpers.ts:28
↓ 1 callersFunctiongenerateIsNullFunction
(struct: AbiStruct)
src/code-gen/functions.ts:44
↓ 1 callersFunctiongenerateNotice
(unsafe: boolean)
src/code-gen/comments.ts:29
↓ 1 callersFunctiongetChunk
(index: number)
src/code-gen/codegen-helpers.ts:126
↓ 1 callersFunctiongetDeclareConstant
(name: string, value: string)
src/code-gen/context.ts:7
↓ 1 callersFunctiongetDecodeFunction
(struct: ProcessedStruct, fields: ProcessedField[])
src/code-gen/functions.ts:112
↓ 1 callersFunctiongetDecodeGroupFunction
(struct: AbiStruct, group: ProcessedGroup)
src/code-gen/functions.ts:35
↓ 1 callersFunctiongetEncodeFunction
( struct: ProcessedStruct, fields: ProcessedField[], context: FileContext )
src/code-gen/functions.ts:117
↓ 1 callersFunctiongetEncodeGroupFunction
( struct: ProcessedStruct, group: ProcessedGroup, context: FileContext )
src/code-gen/functions.ts:99
↓ 1 callersFunctiongetGroupOmissionMask
(fields: {type: { size?: number }, offset: number}[])
src/lib/bytes.ts:28
↓ 1 callersFunctiongetHardhatProjectInfo
(argv: { output: string; input: string; constantsFile: any; testContracts?: string; hardhatOutput?: string })
src/project/hardhat.ts:73
↓ 1 callersFunctiongetHardhatRootFromContracts
(srcDirectory: string)
src/project/hardhat.ts:31
↓ 1 callersFunctiongetHardhatTestDirectory
(opts: { hardhatOutput?: string; rootDirectory: string; })
src/project/hardhat.ts:40
↓ 1 callersFunctiongetInputFiles
(argv: { input: string })
src/project/inputs.ts:9
↓ 1 callersFunctiongetMaxUintForField
(field: AbiStructField)
src/code-gen/fields.ts:146
↓ 1 callersFunctiongetMinMaxValues
(fields: ProcessedField[])
src/code-gen/test/hardhat.ts:96
↓ 1 callersFunctiongetMinMaxValues
(fields: ProcessedField[])
src/code-gen/test/foundry.ts:95
↓ 1 callersFunctiongetOmissionMask
(bitsBefore: number, size: number)
src/lib/bytes.ts:36
↓ 1 callersFunctiongetOverflowCheck
(originalFields: ProcessedField[], context: FileContext)
src/code-gen/functions.ts:208
↓ 1 callersFunctiongetOverflowTest
(args: string[], field: ProcessedField)
src/code-gen/test/hardhat.ts:126
next →1–100 of 174, ranked by callers