Stacalc is a super simple on-chain calculator application on Stack blockchain.
This application will run with the pre-deployed smart contract. If you want to deploy your own smart contract, you can deploy the smart contract located at /smart_contract/contracts/calculator.clar
. Make sure to change the Front-End configuration at /src/lib/config.js
.
You can try the live demo of Stacalc in https://stacalc.vercel.app/
- Connect & disconnect wallet
- Addition
- Subtraction
- Multiplication
- Division
Here is the technical specification that is being used in this application.
Name | Description |
---|---|
Blockchain | Stacks |
Smart Contract Language | Clarity |
Front-End | ReactJS |
Local DevTool | Clarinet |
Smart Contract Deployer | Stack Explorer Sandbox |
If you want to run this project on your local machine, please follow this guide.
Before you run this project, you need to have these installed:
Git
NodeJS
- Hiro wallet
Clone the project
git clone https://github.com/dkhd/stacalc
Go to the project directory
cd stacalc
Install dependencies
npm install
Start the server
npm run start
If you want to read the step-by-step tutorial, please refer to the Tutorial page.
MIT License
Copyright (c) 2022 Diky Hadna
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.