Code Monkey home page Code Monkey logo

tezosgettingstarted's Introduction

Betting Game

Objective:

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.

Status :

  • Completed the smart contract along with tests

  • Smart Contract deployed to carthagenet testnet at KT1G7sCguSaLjYFwFxKJEPFLNK3fWMpuvtrJ

  • 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)

Prerequisites :

  • Python 3.x +
  • Node v12.x +

Setup & Run Steps :

  1. npm install it will install all your dependencies

Its time to compile & Deploy

  1. 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.

  1. npm run deploy will deploy your contract with the params respect to your config.json

Configuring Deployment Parameters :

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

Boilerplate Source

Bundle React by Tezsure

License

Licensed under the MIT. See the LICENSE file for details.

tezosgettingstarted's People

Contributors

dibyo007dev avatar yoyodefi avatar nikhil3000 avatar jvtezsure avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.