Skip to content

Demo project for 2018/08/08 RubiABQ presentation. Demonstrates how to create basic smart contracts using truffle framework, deploy, and interact with those contracts from a ruby app using the ethereum.rb gem.

Notifications You must be signed in to change notification settings

swraife/ruby_ethereum_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference Materials

Contract templates and design

Open Zeppelin

API Access to Ethereum and IPFS

Infura

Ethereum Development Framework

Truffle

Getting Started With Truffle

Full Stack Hello World Voting Ethereum Dapp Tutorial — Part 1

Ruby Ethereum Gems

ethereum.rb

eth

Etherscan - The Ethereum Block Explorer

Etherscan

EthGasStation - Gas Price Statistics

EthGasStation

Bring Ethereum to your browser

Metamask

Term Definitions

DApp: Short for 'decentralized application'. Basically a frontend interface with smart contracts for the backend.

Smart Contract: For our (and most) purposes, a chunk of code written in Solidity deployed to the blockchain, which has functions that do things such as: store data to the blockchain, retrieve information from the blockchain, or transfer ether from one account to another.

Ethereum Network: There is the main ethereum network ('homestead') which is for real ether, real transactions. There are several test networks ('rinkeby', 'ropsten'), which work exactly the same, but the ether has no value. Miners donate their CPU power to these networks. And of course, a local network for development - we're using 'ganache'

Account: A sequence of 20 bytes calculated from the public key. Looks like: 0x09438E46Ea66647EA65E4b104C125c82076FDcE5

Wallet: A tool for managing and providing access to your ethereum accounts. There are hardware and software options. A wallet a has one seed phrase (12 words) for many accounts. I use Metamask

Gas Limit: The maximum quantity of gas you are willing to pay for a transaction. Think: How many gallons? . Note: This is in part to prevent huge, or neverending transactions. E.g. when gas runs out, the transaction aborts. Unused gas is returned to you (mostly). The amount of gas a transaction takes is based on the computational complexity of that transaction.

Gas Price: The price you are paying for each quantity of gas for a transaction. Think: How many dollars per gallon am I going to pay? Note: You set this price! Then, it's up to the miners to accept your transaction into their block. EthGasStation can tell you stats about the average current price. Generally, the higher your gas price, the faster your transaction will be mined.

About

Demo project for 2018/08/08 RubiABQ presentation. Demonstrates how to create basic smart contracts using truffle framework, deploy, and interact with those contracts from a ruby app using the ethereum.rb gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published