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.5.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
import "../utils/Strings.sol"; | |
import "../utils/introspection/ERC165.sol"; | |
/** | |
* @dev External interface of AccessControl declared to support ERC165 detection. |
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
// SPDX-License-Identifier: EtherNaal | |
pragma solidity >=0.6.0 <0.9.0; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
contract EtherNaal is ERC721URIStorage{ | |
mapping(uint256 => uint256) private salePrice; |
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
// this line is added to create a gist. Empty file is not allowed. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import '@openzeppelin/contracts/utils/math/SafeMath.sol'; | |
contract CoinFlip { | |
using SafeMath for uint256; | |
uint256 public consecutiveWins; | |
uint256 lastHash; |
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
//SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721Receiver.sol"; | |
contract QLIPMarketplace is ERC721URIStorage, IERC721Receiver{ | |
using Counters for Counters.Counter; |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
//["0xfFe1426e77CE0F7c0945fCC1f4196CD8dC3f090A", "0xdFE56933c0e112589A2BD414161B39aa3A1EC4BE", "0x5d519e11E98Cd230D3e8d18C12E740D449fd05cD", "0x4b8a65c8ef37430edFaaD1B61Dba2D680f56FFd7", "0xA873Bb96597D71d3BA6764ab26387DB598F65372","0xfFe1426e77CE0F7c0945fCC1f4196CD8dC3f090A", "0xdFE56933c0e112589A2BD414161B39aa3A1EC4BE", "0x5d519e11E98Cd230D3e8d18C12E740D449fd05cD", "0x4b8a65c8ef37430edFaaD1B61Dba2D680f56FFd7", "0xA873Bb96597D71d3BA6764ab26387DB598F65372","0xfFe1426e77CE0F7c0945fCC1f4196CD8dC3f090A", "0xdFE56933c0e112589A2BD414161B39aa3A1EC4BE", "0x5d519e11E98Cd230D3e8d18C12E740D449fd05cD", "0x4b8a65c8ef37430edFaaD1B61Dba2D680f56FFd7", "0xA873Bb96597D71d3BA6764ab26387DB598F65372","0xfFe1426e77CE0F7c0945fCC1f4196CD8dC3f090A", "0xdFE56933c0e112589A2BD414161B39aa3A1EC4BE", "0x5d519e11E98Cd230D3e8d18C12E740D449f |
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
//SPDX-Identifier: Unlciensed | |
pragma solidity ^0.8.0; | |
contract SpockPlatform { | |
mapping(address -> uint[]); | |
address[] payable users; | |
struct Stock { | |
uint id; |
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
//SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.0; | |
contract SpockPlatform { | |
//Stores the current score of each stock | |
mapping(uint => uint) stockScores; | |
//Store the current price of each stock: score*(current price of spock) | |
mapping(uint => uint) stockPrices; |
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
//SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.0; | |
contract SpockPlatform { | |
//Stores the current score of each stock | |
mapping(uint => uint) stockScores; | |
address owner; | |
OlderNewer