By the default the template creates a single HelloWorld
contract under auction folder in the smart_contracts
directory. To add a new contract:
- Create a new folder under
smart_contracts
directory and add define your new contract incontract.py
file. - Each contract has potentially has different creation parameters and deployment steps. Hence, you need to define your deployment logic in
deploy-config.ts
file. - Reference your contract in
config.py
file. This will tell instruct the helper scripts on which exact contracts require building and generation of typed clients. - Since you are generating a TypeScript client, you also need to reference your contract in
index.ts
file. This will instruct the TypeScript specific helper scripts on how exactly to deploy your contract.
Please note, above is just a suggested convention tailored for the base configuration and structure of this template. You are free to modify the structure and naming conventions as you see fit.