This document discusses Ethereum development tools and concepts. It begins by outlining upcoming events focused on Ethereum accounts, the Truffle framework, and decentralized apps. It then describes development environments using Remix, MetaMask, Solidity, and Ganache. It explains Ethereum accounts, including externally owned accounts and contract accounts. It covers using Truffle for compiling, deploying, testing, and interacting with smart contracts. Finally, it provides an overview of building a pet shop decentralized app.
6. Ethereum account
• State
• Accounts
• Contracts Accounts (controlled by code)
• Address
• Balance
• Ether
• Externally Owned Accounts (EOAs: User accounts is controlled by private
keys)
• Address
• Balance
• Ether
Contract account
<code>
<code>
<code>
External owned
account
7. Ethereum account
• Has an address
• Private key protected by password
• Has an address but NO private key
• Hold/Run code
• Associated with accounts(s)
• Lists incoming transactions
Contract account
<code>
<code>
<code>
External owned
account
8. Ethereum account
• Account state
• nonce: If the account is an externally
owned account, this number
represents the number of transactions
sent from the account’s address.
• balance: The number of Wei owned
by this address. There are 1e+18 Wei
per Ether. storageRoot: A 256-bit
hash of the root node of a Merkle
Patricia tree that encodes the storage
contents of the .
• codeHash: The hash of the EVM
(Ethereum Virtual Machine) code of
this account .
9. Contracts Accounts- Pros and cons
• Pros
• Contract account can list incoming transactions
• Contract account can be setup as Multisig Accounts
• A Multisig Account can be structured such that it has a daily limit
which you specify, and only if the daily limit is exceeded will multiple
signatures be required
• Cons
• Contract accounts incur a cost whenever you use them.
• Contract accounts can’t initiate new transactions on their own.
16. Truffle Framework
• Built-in smart contract compilation, linking, deployment and binary
management.
• Automated contract testing for rapid development.
• Scriptable, extensible deployment & migrations framework.
• Network management for deploying to any number of public & private
networks.
• Package management with EthPM & NPM
• Interactive console for direct contract communication.
• Configurable build pipeline with support for tight integration.
• External script runner that executes scripts within a Truffle environment.
17. Truffle Framework
1. Creating a project
2. Exploring the project
3. Testing
4. Compiling
5. Migrating with Ganache
6. Interacting with the contract
18. Truffle- Directory structure
•contracts/: Directory for Solidity contracts
•migrations/: Directory for scriptable deployment
files
•test/: Directory for test files for testing your
application and contracts
•truffle.js: Truffle configuration file
24. CONTENT THE HUNGRY
LAB
24
Learning, Sharing, Connecting
Step-by-Step Guidance
No BS. Honest Support
Respect & Inclusivity
Entrepreneurship is hard.
You don’t have to do it alone.
Our Community
GUS@thehungrylab.com
Hinweis der Redaktion
brand manager – lindsey brassington struggled with weight, health swimmer