Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Smart_Contract_architecture_on_Ethereum.pdf
Search
Mesi Rendón
October 15, 2018
85
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Smart_Contract_architecture_on_Ethereum.pdf
Mesi Rendón
October 15, 2018
More Decks by Mesi Rendón
See All by Mesi Rendón
Introducción a la programación de contratos inteligentes con Solidity para Ethereum
mesirendon
2
310
La promesa de un futuro descentralizado Blockchain y sus aplicaciones
mesirendon
1
190
Ubuntu virtualization setup
mesirendon
0
79
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Faster Mobile Websites
deanohume
310
32k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
380
The agentic SEO stack - context over prompts
schlessera
0
950
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Navigating Team Friction
lara
192
16k
Code Review Best Practice
trishagee
74
20k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
540
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Transcript
Arquitectura de Contratos Inteligentes en Ethereum Angel Rendón @mesirendon
Objetivos • Retomar desde lo construido • Dejar el ejemplo
trivial • Herramientas de desarrollo • Buenas prácticas de desarrollo • Documentación y experiencias • Conclusiones y Preguntas
Conocimientos previos • ViveLab Bogotá → https://goo.gl/ZC7vGQ • BSL Chile.
@magonicolas → https://youtu.be/dGiYcaVA8pE
Herramientas de desarrollo • Máquina ◦ Unix-like (Ubuntu LTS) ▪
sudo apt-get install git-core curl vim build-essential • Node (https://goo.gl/NyaeHT) ◦ nvm ▪ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash ▪ command -v nvm ▪ nvm install node ▪ command -v npm ◦ Yarn (https://yarnpkg.com/en/) • Truffle (https://yarnpkg.com/en/) ◦ npm i -g truffle ganache-cli
Herramientas de desarrollo • Navegador ◦ Firefox ◦ Chrome •
Metamask (https://metamask.io/) • OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-solidity) ◦ yarn add openzeppelin-solidity
Herramientas adicionales de desarrollo • VueJS (https://vuejs.org/) ◦ npm i
-g @vue/cli • Swagger (https://swagger.io/) ◦ npm i -g swagger • Docker (https://www.docker.com/) ◦ Docker ◦ Docker compose • IDE ◦ Vim ◦ JetBrains’ WebStorm (https://www.jetbrains.com/webstorm/) ◦ VisualStudio Code (https://code.visualstudio.com/) ◦ Sublime ◦ Atom
Proyecto • BSL • Crear conferencias ◦ SimpleConference ◦ WorkshopConference
• Contratos abstractos • Dependencias • TDD
Proyecto
Repositorio del proyecto https://github.com/mesirendon/bsl
Proyecto con Truffle • Directorio vacío del proyecto (cuidado) •
Estructura . ├── contracts │ └── Migrations.sol ├── migrations │ └── 1_initial_migration.js ├── README.md ├── test ├── truffle-config.js └── truffle.js
TDD & BDD • Mocha, Chai, Chai as Promised ◦
yarn add -D chai chai-as-promised
BSL and its test
01-bsl.js
Conference and its test • BSL • Conference.sol • SimpleConference.sol
None
None
None
TDD results
None
Infraestructura pública
Infraestructura privada
Infraestructura privada
Conclusiones y Preguntas
Gracias