View IERC721
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.23; | |
import "../../introspection/IERC165.sol"; | |
/** | |
* @title ERC721 Non-Fungible Token Standard basic interface | |
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md | |
*/ | |
contract IERC721 is IERC165 { | |
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); |
View CowOwnership
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.23; | |
import "./CowBreeding.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; | |
/** | |
* @title ERC721 compatible Cow Standard Basic Implementation | |
* @dev Implements Cow transfer with inherited OpenZeppelin ERC721 | |
*/ | |
contract CowOwnership is CowBreeding, ERC721 { |
View ERC721 Burnable
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.23; | |
import "./ERC721.sol"; | |
/** | |
* @title ERC721 Burnable Token | |
* @dev ERC721 Token that can be irreversibly burned (destroyed). | |
*/ | |
contract ERC721Burnable is ERC721 { | |
/** |
View CowBreeding
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Cow Breeding Front-end</title> | |
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js@1.0.0-beta.36/dist/web3.min.js" integrity="sha256-nWBTbvxhJgjslRyuAKJHK+XcZPlCnmIAAMixz6EefVk=" crossorigin="anonymous"></script> | |
<script language="javascript" type="text/javascript" src="cowbreeding_abi.js"></script> | |
</head> | |
<body> |
View CowBreeding Solidity
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.23; | |
import "./ownable.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; | |
/** | |
* @title CowBreeding | |
* @dev Cow Basic Implementation to breed them and provides basic functions. | |
*/ | |
contract CowBreeding is Ownable { |
View ERC721XTokenNFT
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
mapping(uint256 => uint256) tokenType; | |
uint256 constant NFT = 1; | |
uint256 constant FT = 2; | |
/** | |
* @dev Returns whether the specified token exists | |
* @param _tokenId uint256 ID of the token to query the existence of | |
* @return whether the token exists | |
*/ |
View CardGame Implementation
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.25; | |
import "erc721x/contracts/Core/ERC721X/ERC721XToken.sol"; | |
import "./Ownable.sol"; | |
contract CardGame is ERC721XToken, Ownable { | |
mapping(uint => uint) internal tokenIdToIndividualSupply; | |
mapping(uint => uint) internal nftTokenIdToMouldId; | |
uint nftTokenIdIndex = 1000000; |
View Loom_dapp_chain
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
yarn run v1.12.3 | |
$ truffle deploy --network loom_dapp_chain | |
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/MyCoin.sol... | |
Compiling ./contracts/MyRinkebyCoin.sol... | |
Compiling ./contracts/MyRinkebyToken.sol... | |
Compiling ./contracts/MyToken.sol... | |
Compiling ./contracts/SimpleStore.sol... | |
Compiling openzeppelin-solidity/contracts/AddressUtils.sol... | |
Compiling openzeppelin-solidity/contracts/introspection/ERC165.sol... |
View ERC721 Metadata
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.23; | |
import "./ERC721.sol"; | |
import "./IERC721Metadata.sol"; | |
import "../../introspection/ERC165.sol"; | |
contract ERC721Metadata is ERC165, ERC721, IERC721Metadata { | |
// Token name | |
string private _name; |
View React User Status
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
render() { | |
const { handleSignOut } = this.props; | |
const { person } = this.state; | |
const { username } = this.state; | |
return ( | |
!isSignInPending() && person ? | |
<div className="container"> | |
<div className="row"> | |
<div className="col-md-offset-3 col-md-6"> |
OlderNewer