Matthew DeLorenzo Hedera Hackathon 2024 submission: HTS1400
This repository creates a smart contract controlled Hedera Token Service (HTS) token compatible with the Ethereum security token standard ERC1400. ERC1400 is an umbrella standard encompassing ERC1410, ERC1594, ERC1643, and ERC1644. Its purpose is to enable the tokenization of real world assets (RWAs) on the Hedera network with the same specifications as common security token standards on the Ethereum network.
This repository has four main sections:
- contracts
- scripts
- test
- config
Hedera Local Node (https://github.com/hashgraph/hedera-local-node) was used for the development of this project. Please visit their repository for instructions on downloading and operating Hedera Local Node.
The next steps for setting up this repository are:
Inside a terminal in the cloned local node repository:
docker compose up -d
hedera generate-accounts 7 --balance=10000000
- creates 7 accounts for unit testing
Create a file called .env
in the root of this repository and copy/paste the sample env file
Copy/paste the account id's and ECDSA generated private keys
npm install
to install dependencies
npx hardhat compile
to compile the smart contracts and create typechain bindings
From here, you can run the unit test
npx hardhat test test/HTS1400Test.ts
,
or deploy the HTS1400 token and call its functions using scripts
npx hardhat run scripts/deploy/deployContract.ts
When you are done with the local node:
docker compose down