Git Product home page Git Product logo

nerdearla17---solidity's Introduction

Smart Contracts workshop at Nerdear.la

Contratos ejemplo para nerdear.la 2017

Requerimientos

nodo parity

Correr Partity en modo DEV

Correr parity desde el Docker Compose file incluido:

docker-compose up -d

Si instalamos Parity localmente, ejecutarlo con los siguientes parametros

parity --chain dev

Crear un usuario etherllonario

Una vez que estamos corriendo Parity, entrar en su interface grafica local, aceptar la licencia y crear una cuenta inicial que tendrá saldo 0.

Vamos a Accounts, creamos una cuenta nueva, seleccionamos 'Recovery Passphase', y en el paso siguiente dejamos el recovery passphase vacio, ponemos un nombre y un password para la cuenta, y listo: tenemos una cuenta con 1,606,938,044,258,990,275,541,962,092,341,162,602,522,202.994 Ether

Finalmente en la parte de accounts borrar la cuenta inicial con 0 Ether

Contratos basicos:

hello_word.sol : Autodescriptivo

mortal_hello.sol : Creamos un contrato base que nos permite borrar (kill) el contrato del blockchain, y el hello_world hereda del mismo. Tambien introducimos Event para ver los cambios en la variable de string

users.sol : Introducimos varios tipos de datos: struct, mapping, arrays.

nerdearla.sol : Ejemplo de creacion de un token con symbol NERD. Es un ERC20 reducido

nerdearla.v2 : El token ahora puede cambiar de dueño y podemos emitir mas NERDS (minting)

Links interesantes sobre Solidity, Ethereum y Criptomonedas en general

solidity

truffle framework

testrpc

openzeppelin

rootstock

maecenas

coindesk

brave new coin

nerdearla17---solidity's People

Contributors

reiven avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.