hardhat/config#internalTask TypeScript Examples

The following examples show how to use hardhat/config#internalTask. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: subtasks.ts    From index-coop-smart-contracts with Apache License 2.0 5 votes vote down vote up
// Use native solc if available locally at config specified version
internalTask(TASK_COMPILE_SOLIDITY_COMPILE).setAction(setupNativeSolc);
Example #2
Source File: hardhat.config.ts    From hardhat-deploy with MIT License 5 votes vote down vote up
internalTask(TASK_COMPILE_SOLIDITY_GET_COMPILER_INPUT).setAction(
  async (_, __, runSuper) => {
    const input = await runSuper();
    setupExtraSolcSettings(input.settings);

    return input;
  }
);