Skip to content

Web3 XRPL PoC completed during Paris Blockchain Week hackathon.

Notifications You must be signed in to change notification settings

Florian-A/pbw-cara7

 
 

Repository files navigation

PBW Cara7

French

Dans le cadre de la Paris Blockchain Week, nous avons conçu une preuve de concept (PoC) pour un service de titrisation exploitant la blockchain XRP.

Problématique :

Les sociétés de financement des constructeurs automobiles cèdent les contrats de financement à des fonds de pension. Ces derniers nécessitent des données financières détaillées, impliquant de nombreuses heures d'analyse par des experts et un volume limité de données disponibles.

Ce projet vise à optimiser la titrisation des contrats de leasing automobile, en assurant une transparence accrue concernant la santé financière des leasing et l'état des véhicules.

Une meilleure information dans ce domaine favorisera une maturité accrue des leasing et contribuera à une démocratisation plus importante des voitures électriques.

Fonctionnement technique :

Création du NFT et smartcontract sur EVM

Lorsque la voiture est vendue, un jeton non fongible (NFT) est créé sur la blockchain XRP. Ce NFT contient l'adresse d'un contrat intelligent situé sur l'EVM (Ethereum Virtual Machine), lequel conserve une collection de hachages de fichiers historiques représentant l'état passé de la voiture ainsi que sa santé financière.

Mise à jour des informations techniques et financière

Périodiquement, les données techniques et financières sont transmises à une agrégation de données, puis elles sont enregistrées dans un fichier JSON. Ensuite, un hachage de ce fichier est généré et stocké dans un contrat intelligent sur l'EVM (Ethereum Virtual Machine) d'XRP. Ce contrat intelligent permet de récupérer tous les hachages qui y ont été ajoutés et d'ajouter de nouveaux hachages, sans possibilité de modifier les hachages déjà existants.

Analyse financière et trunching en plusieurs profiles de risques

Après une certaine durée de vie du véhicule, un processus de trunching est déclenché en fonction de l'évaluation du risque technique du véhicule ainsi que des capacités de remboursement actuelles et futures de l'acheteur, afin de classifier le niveau de risque. Dans notre cas, nous classons les véhicules représentés par des NFT dans trois portefeuilles distincts, chacun représentant des niveaux de risque différents.

Les NFT sont destinés à être associés à ces différents portefeuilles afin d'être acquis tant par des fonds d'investissement désireux de prendre en charge le risque jusqu'à la fin de la maturité du leasing que par des particuliers qui peuvent investir dans cet actif via un échange décentralisé (DEX).

Configuration :

Éditez le fichier suivant \evm-interaction\.env :

EVM_XRP_MNEMONIC="your mnemonic"

Éditez le fichier suivant \scripts\.env :

XRP_WALLET_SEED="your xrp seed"

Éditez le fichier suivant \confs\secrets.yaml

Lancement du projet :

Pour lancer le projet, exécutez la commande suivante :

make install
make run

Captures d'écran :

English

As part of the Paris Blockchain Week, we have designed a proof of concept (PoC) for a securitization service leveraging the XRP blockchain.

Issue:

Automobile manufacturer financing companies transfer financing contracts to pension funds. The latter require detailed financial data, involving many hours of analysis by experts and a limited volume of available data.

This project aims to optimize the securitization of automobile leasing contracts, ensuring increased transparency regarding the financial health of the leases and the condition of the vehicles.

Better information in this area will promote increased maturity of leases and contribute to greater democratization of electric cars.

Technical Operation:

Creation of NFT and smart contract on EVM

When the car is sold, a non-fungible token (NFT) is created on the XRP blockchain. This NFT contains the address of a smart contract located on the EVM, which maintains a collection of hashes of historical files representing the past state of the car as well as its financial health.

Update of technical and financial information

Periodically, technical and financial data are transmitted to a data aggregation, then they are recorded in a JSON file. Next, a hash of this file is generated and stored in a smart contract on the XRP EVM (Ethereum Virtual Machine). This smart contract allows retrieving all the hashes that have been added to it and adding new hashes, without the possibility of modifying the existing hashes.

Financial analysis and tranching into multiple risk profiles

After a certain lifespan of the vehicle, a tranching process is triggered based on the assessment of the vehicle's technical risk as well as the current and future repayment capabilities of the buyer, in order to classify the risk level. In our case, we classify the vehicles represented by NFTs into three distinct portfolios, each representing different risk levels.

The NFTs are intended to be associated with these different portfolios in order to be acquired by both investment funds willing to take on the risk until the maturity of the lease and by individuals who can invest in this asset via a decentralized exchange (DEX).

Configuration :

Edit the following file \evm-interaction\.env:

EVM_XRP_MNEMONIC="your mnemonic"

Edit the following file \scripts\.env:

XRP_WALLET_SEED="your xrp seed"

Edit the following file \confs\secrets.yaml

Project Launch:

To launch the project, run the following command:

make install
make run

Screenshots:

Languages

  • Python 87.9%
  • JavaScript 9.7%
  • Solidity 1.8%
  • Makefile 0.6%