RWA segment continue growing and I am really interested in combination of the off chain assets
together with on chain features. This repository shows an example of tokenization of real AAPL shares.
These tokens represent an off chain asset(AAPL share) on chain, and at the same time these tokens are directly backed(collateralised) by the real AAPL shares.
With the help of Chainlink Functions I am able to securely send and retrieve information from off chain resourses regarding actual share price and the amount of shares of user account.
Hope you'll find this repository helpful.
- Solidity (Writing Smart Contracts)
- Javascript (Testing/Scripting)
- Hardhat (Development Framework)
- Ethers.js (Blockchain Interaction)
- Mocha (Testing Framework)
- Chainlink (Off chain interraction)
- Makefile (Scripts automation execution)
- Install NodeJS
https://github.com/Antony-Holovchenko/TokenizedStock.git
$ npm install
In .env file I am storing public variables that shouldn't be encrypted. Please check the .env.example file, where I described the variables I am storing there./ ❗️Never store sensitive data in non encrypted format in a .env file, especially private keys. Because you can accidentally forget to add .env to .gitignore and push this file to the remote repository. Or someone can see your private data when you'll sharing a screen on a meeting and so on.
In the .env.enc file I am storing private variables that shouldn't be seen publicly. In this file data is stored in encrypted format, so nobody who'll open this file on your machine won't understand the content. But I don't recommend to send this file to remote repository, instead it is a good idea, to keep this file in .gitignore./ Please check the .env.enc.example file, where I described the variables I am storing there. Also, here is a guide, how to install env-enc and how to use it: env-enc-guide