diff --git a/README.md b/README.md index 3f4f23f7f..63dd64c4c 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,22 @@ It is possible to expose the test networks defined in `docker-compose.yaml` on y yarn start ``` -You will need to use the `MNEMONIC` defined in `docker-compose.templates.yaml` if you require funded accounts: +Once the networks are running, you can go to the `ua-utils-evm-hardhat-test` package: ```bash -export MNEMONIC='test test test test test test test test test test test junk' +cd packages/ua-utils-hardhat-test +``` + +Setup the default `EndpointV2` and `DefaultOApp`: + +```bash +npx hardhat lz:test:oapp:deploy +``` + +And execute `hardhat` tasks as usual: + +```bash +npx hardhat lz:oapp:getDefaultConfig ``` To stop the network containers, just run: diff --git a/packages/ua-utils-evm-hardhat-test/hardhat.config.ts b/packages/ua-utils-evm-hardhat-test/hardhat.config.ts index 689ef45ce..fac8ccae8 100644 --- a/packages/ua-utils-evm-hardhat-test/hardhat.config.ts +++ b/packages/ua-utils-evm-hardhat-test/hardhat.config.ts @@ -1,6 +1,5 @@ import 'hardhat-deploy' import '@layerzerolabs/toolbox-hardhat' -import assert from 'assert' import { EndpointId } from '@layerzerolabs/lz-definitions' import type { HardhatUserConfig } from 'hardhat/types' @@ -8,8 +7,9 @@ import type { HardhatUserConfig } from 'hardhat/types' // using your own keyboard (using exposed networks) import './tasks' -const MNEMONIC = process.env.MNEMONIC -assert(MNEMONIC, `Missing MNEMONIC environment variable`) +// We will default the mnemonic to the value we use in docker compose +// for easy exposed network workflow +const MNEMONIC = process.env.MNEMONIC ?? 'test test test test test test test test test test test junk' /** * This is a dummy hardhat config that enables us to test