Clique Application Structure
Clique provides an official task registry for the community to download, publish, build, and share tasks. You can easily submit a query composed of these tasks through our config file Clique Manifest. You can also deploy custom tasks yourself if there is no existing task that fits your needs.
Task Deployment
You can deploy a custom task by:
Initialize a custom task template through Clique CLI
Customize your task code and update your task manifest
Verify the manifest and submit it to the Clique TEE Network through Clique CLI
Here is a simple generated task manifest
The EVM template for the custom task is available on GitHub at
https://github.com/CliqueOfficial/template-evm
Clique Integration Flow
On-chain Application
Here is a diagram that describes how the Clique Network can be integrated with your DApp.
Step-by-Step Integration Flow
Register a callback by using our Smart Contract SDK
Once the response is fulfilled and verified by the
CliqueTaskManager
contract, it will invoke a callback registration.
Off-chain Application
You can check out our Clique Client SDK to integrate with your off-chain service. Here are integration examples for a few different languages:
[Rust example link]
[NodeJS example link]
[Web example link]
Last updated