A Hello World contract using Cadence
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 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
-> 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