A Polygon Solidity smart contract for room reservations.
- OpenZeppelin
- Polygon testnet
- UI
- Create room
- Reserve room
- Pay for room
- room and booking data on smart contract
To run the application
cd client
$ npm run build
$ npm run start
In other terminal
cd server
npm install
node index.js
UI:
- Add users button to authorize accounts
- Address
- Return a key
- Change statuts:
- Address & key
- Delete resercation:
- Address & key
- Add Room:
- Address & key
- Add wallets
- Public keys
- Private Kyes
- Show balance
Smart Contract:
- Create keys
- Save keys associated with addresses
- On addRoom:
- Verify key account
- On Change status:
- Verify key account
- Delete reservation:
- Verify key account
Server:
- routes:
- createWallet
- verifyTransaction
- showBalance
- addUser
- getKey/{public_address}?secret=
- user table:
- hold wallets
- public
- private [encrypted]
- hold wallets
- auth keys:
- public address
- secret key [encrypted]