This file contains hidden or 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.5.12; | |
contract ColorToken{ | |
uint8 constant REDBONDS = 0; | |
uint8 constant GREENBONDS = 1; | |
uint8 constant BLUEBONDS = 2; | |
uint8 constant REDRESOLVES = 3; | |
uint8 constant GREENRESOLVES = 4; | |
uint8 constant BLUERESOLVES = 5; | |
uint8 constant VOTES_FOR_CR = 6; | |
uint8 constant VOTING_FOR_MR = 7; |
This file contains hidden or 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
contract Pyramid{ | |
// scaleFactor is used to convert Ether into bonds and vice-versa: they're of different | |
// orders of magnitude, hence the need to bridge between the two. | |
uint256 constant scaleFactor = 0x10000000000000000; | |
int constant crr_n = 1; | |
int constant crr_d = 2; | |
// 1 Configuration. The slope of the Pyramid. |
This file contains hidden or 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.5.13; | |
/* | |
Hopefully color token can help people see the potentials of resolve tokens. | |
*/ | |
contract ColorToken{ | |
uint8 constant REDBONDS = 0; | |
uint8 constant GREENBONDS = 1; | |
uint8 constant BLUEBONDS = 2; |
This file contains hidden or 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.6.6; | |
pragma experimental ABIEncoderV2; | |
contract Oracle{ | |
address payable ORACLE = address(0); | |
address address0 = address(0); | |
struct Poll{ | |
uint8 dataType; // string, uint, bool, address |
This file contains hidden or 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.6.6; | |
pragma experimental ABIEncoderV2; | |
contract Oracle{ | |
address payable ORACLE = address(0); | |
address address0 = address(0); | |
struct Poll{ | |
uint8 dataType; // string, uint, bool, address |
This file contains hidden or 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.6.6; | |
pragma experimental ABIEncoderV2; | |
contract Oracle{ | |
address payable ORACLE = address(0); | |
address address0 = address(0); | |
struct Poll{ | |
uint8 dataType; // string, uint, bool, address |
This file contains hidden or 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.6.8; | |
pragma experimental ABIEncoderV2; | |
contract Oracle{ | |
address payable ORACLE = address(0); | |
address address0 = address(0); | |
//oracle configs | |
/* | |
uint constant 0 = 0; |
This file contains hidden or 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.6.8; | |
pragma experimental ABIEncoderV2; | |
contract Oracle{ | |
address payable ORACLE = address(0); | |
address address0 = address(0); | |
struct Poll{ | |
uint8 dataType; // string, uint, bool, address |
This file contains hidden or 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.6.6; | |
/* | |
// ""--.._ | |
|| (_) _ "-._ | |
|| _ (_) '-. | |
|| (_) __..-' | |
\\__..--"" | |
*/ |
This file contains hidden or 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.6.6; | |
/* | |
// ""--.._ | |
|| (_) _ "-._ | |
|| _ (_) '-. | |
|| (_) __..-' | |
\\__..--"" | |
*/ |