The objective of this project was to get familiar with tezos ecosystem. The game created in this project has leak points such as lack of random number which can enable the second user to always cheat and win the bet but that wasn't the goal.
-
Completed the smart contract along with tests
-
Smart Contract deployed to
carthagenet testnet
atKT1G7sCguSaLjYFwFxKJEPFLNK3fWMpuvtrJ
-
Contract can be found on smartPy online ide here.
-
FrontEnd not yet created (but i have used conseilJS in the past, so it shouldn't be difficult)
- Python 3.x +
- Node v12.x +
npm install
it will install all your dependencies
npm run sync
this is a syncing command. Whenever the compile_config is changed in config.json this command must be executed from the terminal. This command helps the bundle to reconfigure the compilation parameters according to the changes you have made.
4 npm run compile
will build the contracts locally inside the folder ./contract_build.
npm run deploy
will deploy your contract with the params respect to your config.json
Inside the deploy_config section
- First is the Tezos node you want to use , It can be local or any remote node
- Next You can change the contract_code and contract_storage with the ones you want to deploy
- Set the parameters like amount, gas_limit, derivation_path etc
A Tezos node allows you deploy contract, make transaction etc.
Other Tezos Nodes :
Conseil node is used to access conseil services and you need a API Key for that
Use https://nautilus.cloud to access API KEY for Conseil node. Use https://faucet.tzalpha.net/ to obtain keys for any testing. You can use http://smartpy.io/dev/faucetImporter.html to activate the keys obtained from faucet.
Contract Specifications:
-
contract_code : It should refer to the Michelson Contract code you want to deploy.
-
contract_storage : refers to the Michelson representation of the initial storage used for deployment
Licensed under the MIT. See the LICENSE file for details.