-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from austintgriffith/master
git pull test
- Loading branch information
Showing
70 changed files
with
2,945 additions
and
568 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sol linguist-language=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Austin Griffith | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
Links | ||
LinksNFT | ||
ERC20Vendable | ||
VendingMachine | ||
Burner | ||
BurnerVendor | ||
Badges |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; | ||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol"; | ||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721MetadataMintable.sol"; | ||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol"; | ||
/** | ||
* @title Full ERC721 Token | ||
* This implementation includes all the required and some optional functionality of the ERC721 standard | ||
* Moreover, it includes approve all functionality using operator terminology | ||
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md | ||
*/ | ||
contract Badges is ERC721, ERC721Enumerable, ERC721Metadata, ERC721MetadataMintable { | ||
constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) { | ||
// solhint-disable-previous-line no-empty-blocks | ||
} | ||
|
||
//EXAMPLE RESPONSE FROM TOKEN URI: https://opensea-creatures-api.herokuapp.com/api/creature/3 | ||
|
||
function mintNextTokenWithTokenURI(address to, string memory tokenURI) public onlyMinter returns (bool) { | ||
uint256 tokenId = _getNextTokenId(); | ||
_mint(to, tokenId); | ||
_setTokenURI(tokenId, tokenURI); | ||
return true; | ||
} | ||
|
||
function _getNextTokenId() private view returns (uint256) { | ||
return totalSupply().add(1); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
Example of passing in a string to the constructor: | ||
module.exports = ["hello world"] | ||
*/ | ||
|
||
module.exports = ["BurnerBadge","BRNB"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0xacb90712288F3eBD6DB86ffFd0484e69eFeF3Bfe |
Oops, something went wrong.