Skip to content
/ swap Public

3DPass DEX UI (3DPRC-2 tokenization standard is supported)

Notifications You must be signed in to change notification settings

3Dpass/swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the_ledger_of_things_dex

DEX UI & Front-end for Asset Conversion pallet (3DPRC-2 standard supported)

Table of contents

Description

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.

Compare:

  • 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
  • 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

Useful links

All important information regarding the pallet communication is here.

How to install

Install All Packages

pnpm install

Run Project

pnpm run dev

Run Tests

pnpm run test

How to manually test the app

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.

UI Kit

Customizing Styles with Tailwind.css:

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.

Modifying Images, Fonts, and Global SCSS:

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.

Multilingual Support with i18n:

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.

Adding New Routes and Pages:

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.

Updating Global State:

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.

Contributions

Yes please! See the contributing guidelines for details.

About

3DPass DEX UI (3DPRC-2 tokenization standard is supported)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published