DEX UI & Front-end for Asset Conversion pallet (3DPRC-2 standard supported)
2023 This project is part of Polkadot initiative for building front-end and UI for Asset Conversion Pallet on Polkadot's AssetHub. Link to the proposal here. Currently, the standard inplementation of the app is deployed on Westend, Rococo and Kusama - here.
2024 - This project is part of 3DPass initiative, which stands for global support of 3DPRC-2 tokenization standard. The app is deployed on The Ledger of Things mainnet - here
The main difference between The Ledger of Things DEX and some standard AssetConversion
Substrate pallet inteegration comes down to 3DPRC-2 tokenization standard support. There is a poscanAssets pallet implemented into The Ledger of Things, which allows for dealing with both conventional Fungible tokens and 3DPRC-2 objects share-tokens. Whereas, the standard integration of the AssetConversion
pallet leverages two instances of the Assets
pallet supporting regular Fungible Tokens only.
-
Standard
AssetConversion
Substrate pallet implementation:- standard
Assets
pallet (fungible tokens only) for tokens created by users - standard
Assets
pallet (fungible tokens only) for Liquidity Pools tokens
- standard
-
The Ledger of Things featured integration of the
AssetConversion
pallet:poscanAssets
custom pallet (fungible tokens & 3DPRC-2 objects share-tokens) for tokens created by users- standard
poscanPoolAssets
pallet (fungible tokens only) for Liquidity Pools tokens
All important information regarding the pallet communication is here.
pnpm install
pnpm run dev
pnpm run test
In order to test the app on The Ledger of Things please follow this guide.
To report any bugs or security vulnerability found please follow the instructions under the issues section here.
The project uses Tailwind.css for styling, making it easy to customize the look and feel of your decentralized exchange. To make style adjustments, you can edit the tailwind.config.js
file. This file contains configuration options for colors, fonts, spacing, and more. Developers can modify these settings to match their project's branding and design requirements.
In addition to tailwind.css, you can also customize images, fonts, and global SCSS (Sass) styles. These assets can be found in the ./src/assets/
directory. Developers can replace existing images, add new fonts, or make changes to the global SCSS to tailor the project's visual elements to their needs.
For projects with a global audience, multilingual support is crucial. The project uses i18n for translation and dynamic text changes. Developers can configure language support in the ./src/app/config/i18n/index.ts
file and provide translations in different languages in the ./src/app/translations/
directory. This makes it easy to add new languages and ensure that your decentralized exchange is accessible to users from around the world.
To expand the functionality of your decentralized exchange, developers can create new routes and pages. This can be done by editing the router configuration and adding new pages to the ./src/pages/
directory. This modular approach allows developers to extend the application with additional features and user interfaces.
The project includes global state management logic that helps maintain shared application state. Developers can update global state properties to reflect changes in the application's data and user interactions. This global state can be accessed and modified as needed to ensure consistent and responsive user experiences.
By providing these guidelines, you're offering developers a clear roadmap for customizing and extending your decentralized exchange project. This will help them make the most of your codebase and contribute to the success of the project.
Yes please! See the contributing guidelines for details.