Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samyoul/blockchain-north-east-solidity-for-beginners
https://github.com/samyoul/blockchain-north-east-solidity-for-beginners
contracts ethereum solidity tutorial
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samyoul/blockchain-north-east-solidity-for-beginners
- Owner: Samyoul
- Created: 2018-01-21T15:52:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T00:50:18.000Z (almost 6 years ago)
- Last Synced: 2023-10-20T22:58:04.653Z (over 1 year ago)
- Topics: contracts, ethereum, solidity, tutorial
- Language: HTML
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain-North-East-Solidity-For-Beginners
https://docs.google.com/presentation/d/1tZCOUgVF_1sgipIbyFr8JYp6vIibzg3VZ4SM9p_1tqA/edit?usp=sharing
## Things We’ll Cover
- Things you need to know
- Dependencies
- Link to code repository
- Benefits of Ethereum Smart Contracts
- Setup Development Environment
- Building The Smart Contract
- Building the Interface
- Summary## Things You Need To Know
- Basic programming
- Variables
- Classes
- Functions and methods
- HTML
- CSS
- JavaScript
- IDEs## Dependencies and Tools
- Remix online Solidity IDE - https://remix.ethereum.org
- Ganache - http://truffleframework.com/ganache/
- Web3.js
- Twitter Bootstrap## Link to Code Repository
https://github.com/Samyoul/Blockchain-North-East-Solidity-For-Beginners
## Applications of Ethereum Smart Contracts
**Applications**
- Finance
- Education
- Recruitment
- Medicine
- Gambling## Setting Up the Development Environment
- Launch Remix
- Launch Ganache## Building The Smart Contract
- Define the pragma
- Create the contract “BlockchainNorthEast”
- Set variables
- organisers (mapping(address => bool))
- attendees (mapping(address => bool))
- attendeeCount (uint128)
- Getters
- getAttendeeCount view
- isAttendee view
- isOrganiser view
- Setters
-addAttendee - (as long as they are not in the list)
-removedAttendee - (as long as they are in the list)
-Modifiers
-onlyByAttendee(address _address)
-Demonstrate Remix test functionality## Building the Interface
- Copy in some boilerplate HTML, includes TWBS for prettification
- Add web3.js (https://github.com/ethereum/web3.js/tree/1.0/dist)
- (https://raw.githubusercontent.com/ethereum/web3.js/1.0/dist/web3.min.js)
- Add provider / connect to a node
- Define ethereum account we will write with
- Define contract we will be working with
- Define contract location (Contract’s ethereum address)
- Interacting with the Ethereum contract methods.
- Getting data from the contract
- Setting data in the contract
- Displaying data from the contract## Summary
- Uses and benefits of Ethereum Smart Contracts
- Basic Development Tools, Remix and Ganache
- Building a contract
- Pragma
- Variables
- Getters
- Setters
- Modifiers
- Building a UI
- Web3.js
- Connecting to a node
- Define Ethereum address, contract ABI, contract address
- Interacting with the contract object with methods