Function
createBuilderContext
({ network, chainId }: { network: Network; chainId: number })
Source from the content-addressed store, hash-verified
| 107 | } |
| 108 | |
| 109 | export const createBuilderContext = async ({ network, chainId }: { network: Network; chainId: number }) => { |
| 110 | return { |
| 111 | network: schemaNetwork.parse(network), |
| 112 | chainId, |
| 113 | projectRoot, |
| 114 | contractLoader: ContractLoader.load(network, chainId), |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | export type BuilderContext = Awaited<ReturnType<typeof createBuilderContext>> |
Tested by
no test coverage detected