Punica Python
Last updated
Was this helpful?
Last updated
Was this helpful?
Punica Python is a dApp development command line tool which has (almost) everything you need to start developing your dApp based on Ontology network.
There are a few technical requirements before we start. Please install the following:
Then, execute the following command to install your tool:
To use most Punica commands, you need to run them against an existing Punica project. So the first step is to create a Punica project.
You can create a bare Punica project with no smart contracts included, use punica init
command.
Once this operation is completed, you'll now have a project structure with the following items:
contracts/
: Directory for Ontology smart contracts.
src/
: Directory for DApp source file.
test/
: Directory for test files for testing your application and contracts.
wallet/
: Directory for save Ontology wallet file.
To use most Punica commands, you need to run them against an existing Punica project. So the first step is to create a Punica project.
You can create a bare Punica project with no smart contracts included, use punica init
command.
Once this operation is completed, you'll now have a project structure with the following items:
contracts/
: Directory for Ontology smart contracts.
src/
: Directory for DApp source file.
test/
: Directory for test files for testing your application and contracts.
wallet/
: Directory for save Ontology wallet file.
You can create a bare project template, but for those just getting started, you can use Punica Boxes, which are example applications and project templates.
Create a new directory for your Punica project:
Download ("unbox") the MetaCoin box:
We'll use the , which creates a OEP4 token that can be transferred between accounts: