Giter Club home page Giter Club logo

hello-world-flow-blockchain's Introduction

Hello-World-Flow-Blockchain

A Hello World contract using Cadence

FLOW

Flow is a fast, secure, and developer-friendly blockchain built to support the next generation of games, apps, and the digital assets that power them.

For flow documentation and tutorials, check out https://docs.onflow.org/

Cadence

Cadence is a resource-oriented programming language that introduces new features to smart contract programming that help developers ensure that their code is safe, secure, clear, and approachable.

Some of these features are:

Type safety and a strong static type system Resource-oriented programming, a new paradigm that pairs linear types with object capabilities to create a secure and declarative model for digital ownership by ensuring that resources (and their associated assets) can only exist in one location at a time, cannot be copied, and cannot be accidentally lost or deleted Built-in pre-conditions and post-conditions for functions and transactions The utilization of capability-based security, which enforces access control by requiring that access to objects is restricted to only the owner and those who have a valid reference to the object

Deploying the Smart Contract :

-> Download the project, extract it.
-> Install Flow CLI
-> Move to project folder using cd command
-> $ flow init (use ‘--reset’ flag only if you want to reset the configuration)
-> $ flow emulator
-> $ flow keys generate (and save the private and public at some place)
-> $ flow accounts get 0xf8d6e0586b0a20c7
-> Create an new account in Flow Testnet Faucet : https://testnet-faucet-v2.onflow.org/
-> Save the public address of the Testnet Faucet : ################
-> $ flow accounts create
-> $ flow accounts add-contract

hello-world-flow-blockchain's People

Contributors

bhawana15 avatar

Watchers

 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.