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

Function getAccessorOptions

src/code-gen/fields.ts:203–210  ·  view source on GitHub ↗
(name: string, accessors?: Accessors)

Source from the content-addressed store, hash-verified

201}
202
203const getAccessorOptions = (name: string, accessors?: Accessors): AccessorOptions => ({
204 generateGetter: Boolean(!accessors || accessors.getterCoderType),
205 generateSetter: Boolean(!accessors || accessors.setterCoderType),
206 getterCoderType: accessors?.getterCoderType,
207 setterCoderType: accessors?.setterCoderType,
208 getterName: `get${name.toPascalCase()}`,
209 setterName: `set${name.toPascalCase()}`,
210})
211
212export const processStruct = (
213 abiStruct: AbiStruct,

Callers 2

processFieldsFunction · 0.85
processStructFunction · 0.85

Calls 1

toPascalCaseMethod · 0.80

Tested by

no test coverage detected