Skip to content

Instantly share code, notes, and snippets.

View viannaandreBR's full-sized avatar
🏠
Working from Office

Andre viannaandreBR

🏠
Working from Office
View GitHub Profile
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created March 26, 2019 06:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created March 26, 2019 06:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created March 26, 2019 07:06
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created March 28, 2019 03:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created April 14, 2019 16:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created April 14, 2019 18:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.0-nightly.2019.3.6+commit.ee4beafd.js&optimize=true&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
@viannaandreBR
viannaandreBR / GuardaLoteria.sol
Created April 14, 2019 20:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=true&gist=
pragma solidity >=0.4.22 <0.6.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public {
numeroSorteado = enviado;
}
function get() public view returns (uint) {
pragma solidity ^0.4.0;
contract GuardaLoteria {
address dono;
uint numeroSorteado;
uint contadorDeSorteios = 0;
uint[] numerosSorteados;
constructor(uint numeroInicial) public payable comCustoMinimo(1000) {
@viannaandreBR
viannaandreBR / Array.sol
Created April 14, 2019 22:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract ArraySol {
address dono;
uint numeroSorteado;
uint contadorDeSorteios = 0;
uint [ ] numerosSorteados;
constructor (uint numeroInicial) public payable comCustoMinimo (1000) {
@viannaandreBR
viannaandreBR / Array.sol
Created April 14, 2019 22:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract ArraySol {
address dono;
uint numeroSorteado;
uint contadorDeSorteios = 0;
uint [ ] numerosSorteados;
constructor (uint numeroInicial) public payable comCustoMinimo (1000) {