DOT.Insights » Patract

Institutional-grade research reports, covering a broad range of topics in Polkadot ecosystem

Introducing Patract - Wasm Contract Platform

Published date: May 12 2021
Share:

1. Main Goal

Patract is providing solutions for the development of Parachains and DApps in the WASM smart contract ecosystem of Polkadot. Patract helps the community to design and develop on-chain contract modules and Runtime support, and provide DApp developers with full-stack tools and services support, covering development, testing, debugging, deployment, monitoring, data provider and front-end development stages.

2. Patract’s products:

Patract provides solutions for Polkadot’s parachain smart contract ecosystem, supporting smart contract parachains in Polkadot’s public blockchain network, and smart contract consortium blockchains based on Polkadot’s technology. Patract operates as an offshore company and will not issue any new cryptocurrency. All solutions will focus on the usage and value of DOT.

Patract has 12 products: 

  • Jupiter - Contract testnet

  • Ask! - A smart contract language

  • Metis - Contract Library

  • Redspot - Contract Dev Scaffold 

  • Europa - Contract Sandbox Enviroment

  • zkMega - ZKP Support

  • Himalia - Multi-lang Contract SDKs

  • Elara - API service

  • Leda - Contract Monitor

  • Carpo - Smart Cloud IDE

  • PatraStore - DApp Store

  • PatraScan - Contract Explorer

3. Jupiter

WASM smart contract networks powered by Substrate FRAME Contracts pallet in Polkadot ecosystem.

Jupiter aims to be an open blockchain network, which supports contract developers to use ink!, Ask! and other language frameworks which can run on FRAME Contracts pallet contract model. Patract will directly use DOT(test coin)/ROC(rococo coin) as native token for gas fee and governance.

4. Ask!

Ask! is a smart contract language designed based on AssemblyScript and running on Substrate FRAME Contracts. Ask! uses the similar way to ink! of designing the procedural macro in the form of eDSL, to write contracts by providing annotation type in AssemblyScript (aka AS). This way can hide the implementation details of the contract, and reduces the difficulty of writing contracts. Ask! will be similar to ink!’s existing implementation, and the final product will maintain maximum compatibility with ink!’s existing standards. The WASM and metadata files compiled by Ask! can be deployed on the Substrate chain and run normally.

5. Metis

Metis is inspired by the OpenZeppelin-Contracts from the Ethereum ecosystem. Metis will develop the corresponding version of the ink! implementation for each newly generated ink! contract standard. Metis will be audited at the same time to ensure the security of the contract. Metis will also be able to be easily searched and downloaded just like Solidity development, and integrated into the developer's project as a Redspot plug-in.

6. Redspot

Redspot is named after Jupiter's Great Red Spot, which is also the largest DOT in the solar system. Redspot's target project is Truffle in Truffle Suite. Redspot is a development environment, testing framework and asset pipeline for pallet-contracts. Redspot is trying to let the development of ink! be projectized and simplify the testing and interacting with contracts.

Patract think Redspot needs to be a flexible system for the reason that pallet-contracts would be integrated to any substrate chain with some partial modification. Thus Patract decide using hardhat as Redspot core architecture for it has an outstanding design to allow developer using plugins to add new features.

Therefore, Patract establish our project on the hardhat core framework and modify it a lot to suit substrate under MIT licence. In future, Redspot would build more features based on this forked hardhat core.

This project is used for contracts developer, if developers want to deploy and test on a blockchain, Patract advice developer to use "jupiter" blockchain, which is a open testnet for substrate pallet-contracts. Better than that, jupiter also provide a develop type node, that could very easily for testing contracts.

7. Europa

Europa is a sandbox environment that runs FRAME Contracts pallet, and it is also a framework that provides a sandbox environment for substrate runtime. Europa could be used to simplify the developing, debugging, and integration test when developers develop Substrate runtime pallets and test smart contract (like ink!, ask! and Solang) for FRAME Contracts pallet.

8. zkMega

Compared with the privacy function, the performance improvement brought by Rollup is the early application direction of zero-knowledge proof. At present, the Layer 2 expansion plan of the blockchain is to transfer a considerable part of the on-chain workload to off-chain to complete, and the most watched one is ZK Rollup. The essence of ZK Rollup is to compress the application on-chain state and store it in a Merkle tree, and move the state transition funtions to off-chain. At the same time, the correctness of the off-chain state transition process is guaranteed through the proof of zkSNARK. Compared with the high cost of directly processing state changes on the chain, the ZK Proof's on-chain smart contract verification is extremely cost low. At the same time, the compressed information will also be submitted to the chain together with the proof, which ensures data availability and obtains the same level of security as Layer 1.

The Ethereum Layer 2 protocols related to ZK Rollup are: zkSync, aztec, etc. Their contract verification modules share a part of the elliptic curve's basic algorithms. In 2017, Ethereum integrated three basic cryptographic calculation units of the alt bn128 curve in the form of pre-compiled contracts, which are EIP196’s ADD and Scalar_MUL algorithms, and EIP197’s Pairing algorithm. On top of this, due to the lack of rapid upgrade capabilities of Ethereum, the community can only encapsulate some tool libraries through costly Solidity contracts. On top of these basic contract libraries, many DApps can combine ZK Rollup technology to achieve some innovations, such as loopring, gitcoin and uniswap etc. However, in the past 3 years, ZK technology has further developed, such as the more practical BLS curve, and PLONK algorithm etc. Ethereum has not yet supported it.

9. Himalia

Multi-language contract SDK. Himalia supports developers to interact with contracts in multiple development languages from different clients, including:

  • PatractGo (Finished)

  • PatractPy (Finished)

  • PatractJ (Planning)

  • PatractN (Planning)

10. Elara

Elara is the infrastructure and network public access service of the Polkadot ecosystem. This project will be connected to the Polkadot and Kusama relay chains, the parachains on them, and the independent chains based on Substrate.

There are dozens of main chains in the current Polkadot ecosystem. With ecological development, more and more main chains and parachains will come online. In order to provide the community with timely and comprehensive access services. Elara will access various mainnet nodes and open API documents as quickly as possible. Therefore, Elara faces the community and invites all Polkadot ecological project parties, developers and users to jointly build an RPC document warehouse.

11. Leda

Leda is a Contract monitor. Leda will monitor the key data of the contract in development, testing, deployment and operation, so that developers can know the status of the contract in real time.

12. Carpo

Cloud smart IDE. Carpo will automatically integrate all development toolkits, plug-ins and services of Patract on the server side, saving developers the trouble of setting up and configuring a local development environment.

13. PatraStore

DApp store framework. Multi-chain account management and DApp convenient interactive system, supporting the community to carry out secondary development and independent operation. Patract only connect with Jupiter, without other mainnets.

14. PatraScan

Contract chain browser. A blockchain browser that contains basic functions of parachains and analysis of Wasm contract modules. PatraScan will actively connect the testnets and mainnets in our open platform.

About Patract

Patract is providing solutions for the development of Parachains and DApps in the Wasm smart contract ecosystem of Polkadot. They help the community to design and develop on-chain contract modules and Runtime support, and provide DApp developers with full-stack tools and services support, covering development, testing, debugging, deployment, monitoring, data provider and front-end development stages.

Website | Telegram | Twitter | Medium | Github

See Patract on DotMarketCap: https://api.dotmarketcap.com/coin/patractlabs