Smart Contracts
Function(s) within a System that arbitrarily move digital assets according to pre-specified rules or parameters.1
Essentially it is a set of: if, else, or else conditionals
Application State Data
Account State Data
Contracts
An Immutable Program
Containing a specific set of code functions and app data that reside on the chain
This can include logical, conditional, comparison, arithmetic or bit operations
ETH Token
Ether is the network cost unit, the currency of the Ethereum blockchain.
In essence, it is the fuel for running programs on the chain. Think of it as the “Gas”.
Wei is the name for the smallest unit of Ether
1 ether = 1,000,000,000,000,000,000 wei
1 ETH = 1e18 wei
ERC20
A Common Token Contract2 deployed on the Ethereum platform for crowdfunding ICOs.
Being a contract, the use of those Tokens incurs the computational costs of using Ethereum.
In order to use those Tokens, you still have to pay the transaction fee(s) in Ether.
Deployment
A Smart Contract is Deployed to The Blockchain by Sending a Transaction Containing the Contract’s Code for its Data to an Unused Address.
Deployable Contract Highlights:
[STF] Order of Operations:
Standard OP Functions:
CALL _> produces a Message Object and Executes its conditions (i.e. send ether from a to b)
CREATE _> produces a new Smart Contract
Sender Pays:
The Sender always pays _> Contracts cannot pay for their own Deployment and Execution
Contracts can be Senders _> Contracts can pay to deploy and execute their own Contracts
When a Contract creates its own Contract all the same rules apply;
Use-Cases
Custom Tokens
Create a new Cryptocurrency
Crowd Sales
Create a Decentralized Fundraising Campaign
Decentralized Autonomous Organizations (DAOs)
Long term smart contract
Contains the assets and/or the encoded bylaws of an organization
OP Codes
Operation Code for the Machine Language Executable Instructions
Environmental Information
CALLVALUE
CODESIZE
BALANCE
Block Information
TIMESTAMP
COINBASE
BLANCE
System
CALL
CALLCODE
SELFDESTRUCT