Skip to content

Instantly share code, notes, and snippets.

View gvandriel's full-sized avatar
👨‍💻
Becoming a Blockchain Dev!

gvandriel

👨‍💻
Becoming a Blockchain Dev!
View GitHub Profile
@gvandriel
gvandriel / ulyssescontract.sol
Created October 18, 2019 14: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.4.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / ulyssescontract.sol
Created October 17, 2019 22:26
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.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / ulyssescontract.sol
Created October 17, 2019 22:25
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.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / Ulyssescontract2.sol
Created October 15, 2019 15:25
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.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / Ulyssescontract2.sol
Created October 15, 2019 15: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.4.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / Ulyssescontract2.sol
Created October 15, 2019 15: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.4.22+commit.4cb486ee.js&optimize=false&gist=
pragma solidity ^0.4.22;
contract Ulysses {
struct Contract {
string description;
uint stakedAmount;
uint weightDif;
string massUnit;
address contractOwner;
uint secretWordIndex;
@gvandriel
gvandriel / ballot.sol
Last active August 6, 2019 14:45
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 Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate; dfdsfsdf
}sfsdf
struct Proposal {
@gvandriel
gvandriel / ballot.sol
Created August 6, 2019 14:37
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 Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {