Smart contracts and dApps in 3DPass

dApp development is one of the most important part of 3DPass Layer 1 blockchain infrastructure. In order to take advantage of Proof of Scan protocol, there must be some essential instruments and tools around to interact with. Let’s make a quick review on what is available now.

Smart contracts

It couldn’t have left aside, that the actual 3DPass node implementation is based on Substrate framework, which provides the Smart contract module using ink, a Rust-based embedded domain specific language (eDSL) for writing WebAssembly smart contracts.

ink! — Rust-based embedded domain specific language (eDSL)

Thus, smart contracts written in ink can now be uploaded and executed on 3DPass network. Follow ink documentation to learn more detail and standard examples (ERC-20, ERC-721, etc).

Runtime development

There is a different approach to implementation and execution of custom business logic called runtime development, which allows for creation of custom “pallets” leveraging network events as a trigger. Custom pallet would provide a logic “what to do on new block initialization or finalization, storage changes, transaction status changes, etc.” It might, as well, be equipped with RPC API calls to interact with and off-chain worker possibilities. Use Substrate documentation for more details.

As an example, 3DPass has integrated a pallet called “Assets” providing useful methods for dealing with fungible assets without a necessity to run a smart contract.

assets

In order to implement a custom pallet into 3DPass runtime pull request is required.

What is planned next?

3DP-RC2 API for the tokenization of user’s objects, including methods for its recognition, HASH ID verification and asset issuance.

Hope, you’ll enjoy 3DPass and create the best dApps ever!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
3DPass

3DPass is an open source Layer 1 decentralized blockchain platform for the tokenization of objects