This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"config": { | |
"chainId": 15 | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"gasLimit": "210000", | |
"difficulty": "20000", | |
"alloc": { | |
"dirección del monedero": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract HelloWorld { | |
string saludo = "Hola mundo"; | |
function getSaludo() constant returns(string) { | |
return saludo; | |
} | |
function setSaludo(string nuevoSaludo) returns(string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-wp-preserve="%3Cscript%20type%3D%22text%2Fjavascript%22%20src%3D%22.%2Fbignumber.js%2Fbignumber.min.js%22%3E%3C%2Fscript%3E" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" /> | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-wp-preserve="%3Cscript%20type%3D%22text%2Fjavascript%22%20src%3D%22.%2Fweb3%2Fdist%2Fweb3-light.js%22%3E%3C%2Fscript%3E" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Versión | |
pragma solidity ^0.4.0; | |
// Definición de contrato | |
contract HolaMundo { | |
// Definición de variable | |
string saludo = "Hola mundo"; | |
// Definición para obtener el saludo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Versión | |
pragma solidity ^0.4.0; | |
// Definición de contrato | |
contract HolaMundoProtect { | |
// Definición de variable | |
string saludo = "Hola mundo"; | |
string msn = ""; | |
// address: cuenta o wallet que ha creado el contrato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Versión | |
pragma solidity ^0.4.0; | |
// Definición de contrato | |
contract HolaMundoProtectProfesional { | |
string saludo = "Hola mundo"; | |
address propietario; | |
function HolaMundoProtectProfesional() { | |
propietario = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract ContratoPagar { | |
function ContratoPagar() { | |
} | |
// Añadiendo la palabra reservada payable ya puede recibir dinero | |
function recibirDinero() payable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
// ------- INICIO: Los contratos estan en el mismo documento | |
// Contrato que llamara a otro contrato | |
contract ContratoA { | |
// Variable que va ser del tipo contract | |
ContratoB llamarContrato = new ContratoB(); | |
// consultar un número de contrato | |
function getNumeroContratoA() constant returns(uint) { | |
// Devuelve el número del contrato al que vamos a llamar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Hola VUE</title> | |
</head> | |
<body> | |
<!-- Definimos el tag que usaremos para la instancia de VUE (contexto donde puede acceder VUE) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src='https://cdn.jsdelivr.net/npm/vue'></script> |
OlderNewer