To set up your development environment, follow these steps:
-
Install Foundry: Foundry is a smart contract development toolchain. You can install it by following the instructions at Foundry's installation guide.
forge install
-
Install Node.js dependencies:
pnpm install
To ensure your environment is set up correctly, you can run the following tests:
-
Using npm:
pnpm test
-
Using Foundry:
forge test
To use the Patchwork Development Kit (PDK), run:
pdk
For development tasks such as building the TypeScript project and linking the executable, follow these steps:
-
Build TypeScript to JavaScript:
pnpm build
-
Link the Executable:
pnpm link --global
-
Using the PDK: After linking, you can use the
pdk
command to access the Patchwork Development Kit:pdk