Punica Suite is Ontology's dApp development framework and has (almost) everything you need to start developing your Ontology based dApp.
Punica provides developers with a complete set of open-source development tools for dApp development, will allow developers to develop their projects quickly and easily for use on the Ontology blockchain. Please see below for a list of open-source tools and resources to help get you started.
Punica-Cli is a command line interface designed to allow devlopers to compile, deploy and invoke smart contracts without the need for a full SDK. Punica-Cli is currently available in two languages: Punica Python CLI or Punica TypeScript CLI.
pip install punica
npm install punica-ts -g
python setup.py install
Note: If you are using Python, please ensure you have Python v3.7 or above installed.
punicaUsage: punica [OPTIONS] COMMAND [ARGS]...Options:-p, --project PATH Specify a punica project directory.-v, --version Show the version and exit.-h, --help Show this message and exit.Commands:compile Compile the specified contracts to avm and...deploy Deploys the specified contracts to specified...init Initialize new and empty Ontology DApp...invoke Invoke the function list in default-config or...node Ontology Blockchain private net in test mode.scpm Smart contract package manager，support...smartx Ontology smart contract IDE,SmartX...test Unit test with specified smart contractunbox Download a Punica Box, a pre-built Ontology...wallet Manager your ontid, account, asset.
You can create an empty Punica project with no smart contracts using the
Once this operation has completed, you will have a project structure with the following items:
contracts/: Directory for Ontology smart contracts.
src/: Directory for DApp source file(s).
test/: Directory for test files to test your application and contracts.
wallet/: Directory for saved Ontology wallet file.
For more usage information, you can use
punica init --help
punica init --helpUsage: punica init [OPTIONS]Initialize new and empty Ontology DApp project.Options:-h, --help Show this message and exit.
Note: If you are not running punica-cli in the root directory of your project, you need to use the
--project option to specify your DApp project path.
Compile a smart contract
Deploy a smart contract
Display the list of functions that can be invoked and then invoke a function
punica invoke listpunica invoke --functions testHello
Please feel free to give any suggestionContact: Yue ZhaoWechat: 16621171248Email: email@example.com