DApp operating system

Patract is a parachain network focused on the development of Polkadot Wasm contracts. Today we officially released PatraStore (https://patrastore.io), which is the wallet entrance to Patract Network and the portal of the on-chain DApp ecosystem. It will be the gathering place of developers and users to form a one-stop DApp operating system experience. We have developed 4 sample DApps that are the most representative in all aspects of PatraStore. This is the first full demonstration of contract applications that can be deployed and experienced in the Polkadot ecosystem.

The 3 DeFi applications include:

PatraAsset:one-click issuance of fixed or additional ERC20 assets
PatraSwap: DEX based on AMM mode is a simplified version of Uniswap
PatraMaker:deposit DOT to issue stablecoins is a simplified version of MakerDAO

The other 1 game applications include:

PatraPixel: public canvas, you can draw on public advertising boards by paying DOT
PatraStore Homepage

We have also open-sourced the contract source code, contract testing and debugging code (powered by Patract tool suite), DApp front-end code, etc. of these 4 DApps. Community developers can refer to these to develop their own products. PatraStore currently only supports PC browsers and will support other major mobile wallets in the future.

PatraStore in depth

PatraStore is not a simple DApp static and statistical information display website, but a highly optimized and convenient DApp interacting system, which abandons the drawbacks of the Ethereum ecosystem. Each of the current Ethereum DApps needs to register a domain name, the user entrance is decentralized, and wallet connection functions need to be developed, corresponding to wallets with different protocols, such as Metamask, WalletConnect, Ledger, Coinbase, and so on. Users have to perform repeated wallet connection operations for each DApp. If the user has multiple accounts, there is also a lack of a list page function that can display all account assets, because each connection can only support one account, and the current page is only displayed for this account. Due to the composability between DApps, there is currently a lack of more messaging and transaction connectivity functions between DApps.

from MakerDAO and Uniswap

Polkadot supports multiple chains, and a single account can be used in multiple chains. Therefore, a more efficient way to manage these accounts and DApps is needed, and it has developed into an era that requires an operating system. PatraStore will help DApp complete some front-end public components, including wallet connection, transaction signatures and public libraries, which greatly simplifies the front-end workload of developers. PatraStore also supports simultaneous operation and free switching in multiple DApps in one browser Tab, which is completely similar to the experience of Mac and Windows operating systems.

1.Unified wallet connection

Polkadot currently supports mnemonics, Keystore, Polkadot{.js} plug-in, Parity Signer cold wallet, Ledger, etc., and will also support WalletConnect in the future. Users only need to use PatraStore to connect to these wallets once, and they can directly use all the DApps in the Store itself. The user only needs to click once to authorize when entering the third-party DApp.

one-click authorization

2.Asset summary across the chain

We directly use KSM or DOT as the underlying assets, and will also display assets such as ERC20 and ERC721 issued by the upper-layer contract. The asset list supports customization and total value summary.

3.DApp publish

The interaction between PatraStore and the embedded DApp complies with the Polkadot{.js} protocol. As long as DApp developers have access to PatraStore, they do not need to connect to any other types of wallets, they can be listed on PatraStore for users to use, and participate in subsequent rankings, statistics, hackathons, etc. In the future, it will also support decentralized IPFS links, or other front-end technology forms of DApp URLs.

4.Dock navigation bar

Users can simultaneously open, switch, and bookmark multiple DApps in a single webpage Tab, just like in the dock of a desktop operating system.

5.Install to desktop

PatraStore supports the Google Chrome browser protocol, allowing users to directly click on the upper right corner to download PatraStore as an application on the operating system so that it can appear in the system dock and establish the most direct application entry. If the screen is full, it can also cover the taskbar of the system and become an independent operating system interface. If the screen is full, it can also cover the taskbar of the system and become an independent operating system interface.

Welcome to Developers

Relying on the Patract development tool suite, Patract has opened up the full-stack development process of Wasm contracts, covering contract development, testing, debugging, node services, and front-end interface support. Most of the existing Polkadot projects that claim to support the Wasm contract only integrate the contract executing module developed by Parity, and a complete DApp development requires a full set of support from contract development, contract executing, and front-end interface, which Patract pioneered most of the aspects of Wasm contract development will eventually be able to launch usable user-side products, which opened the prelude to the era of new smart contracts.

Developers have always been on the edge and trial stage of Polkadot Wasm contract technology. At present, most of the applications are still developed on the EVM technology and rely on the project ecology of Ethereum. But now with the launch of PatraStore, the construction of a more advanced Wasm contract ecosystem has begun, and early developers can enjoy early benefits. The above 6 DApps are only the first-level template demo products and have not yet played the real advantages of the Wasm contract. Except that PatraLottery uses the unique BABE random number of Polkadot Consensus, the other 5 products are all existing simplified products on Ethereum. We will launch complete Wasm contract development documents and our tool library documents in the follow-up and will introduce more high-level features of Wasm contracts, as well as comparative advantages with EVM contracts.

At the same time, we will develop more DApp Demo products that can show the advantages of Wasm, so stay tuned and participate in innovation together. Use new weapons, open up new ideas, and design new products.

PatraStore Explaining Video (Part 1)


PatraStore’s follow-up plan

Redesign the system DApp. The current system DApp continues to use the pages and functions of Polkadot Apps. The data on this page is completely based on nodes and has not been designed for a good user experience. We will redraw all the main functions of the system in the later stage.

Improve the DApp listing and scoring system. The current data sources on the chain are very imperfect. We are vigorously developing the PatraScan project to improve the blockchain browser functions related to the contract function. After that, we will support the ranking of DApps based on PatraScan’s on-chain statistics.

Open source strategy. The current version is only our PoC and will need to be refactored in the future, so we are not prepared to open source the current code. In the later period, our code will be more complete and can support the community to carry out secondary development on it. We will adopt a strategy similar to Google Android, focus on the core public basic functions, and rely on the upper-level design and operating forces of the community to jointly promote the development of the Wasm contract ecosystem.

DApp contract source code: https://github.com/patractlabs/store-contracts

DApp front-end source code: https://github.com/patractlabs/store-dapps-ui