-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f02b147
Showing
8 changed files
with
840 additions
and
0 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,11 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk |
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,63 @@ | ||
[package] | ||
authors = ['Dan Forbes <[email protected]>'] | ||
description = 'An update to https://github.com/shawntabrizi/substratekitties.' | ||
edition = '2018' | ||
homepage = 'https://github.com/danforbes/substrate-node-template/tree/nft' | ||
license = 'Unlicense' | ||
name = 'pallet-nft' | ||
repository = 'https://github.com/danforbes/substrate-node-template/tree/nft' | ||
version = '2.0.0-rc5' | ||
|
||
[dependencies.codec] | ||
default-features = false | ||
features = ['derive'] | ||
package = 'parity-scale-codec' | ||
version = '1.3.0' | ||
|
||
[dependencies.frame-support] | ||
default-features = false | ||
git = 'https://github.com/paritytech/substrate.git' | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
|
||
[dependencies.frame-system] | ||
default-features = false | ||
git = 'https://github.com/paritytech/substrate.git' | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
[dev-dependencies.sp-core] | ||
default-features = false | ||
git = 'https://github.com/paritytech/substrate.git' | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
|
||
[dev-dependencies.sp-io] | ||
default-features = false | ||
git = 'https://github.com/paritytech/substrate.git' | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
|
||
[dependencies.sp-runtime] | ||
default-features = false | ||
git = 'https://github.com/paritytech/substrate.git' | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
|
||
[dependencies.sp-std] | ||
git = 'https://github.com/paritytech/substrate.git' | ||
default-features = false | ||
tag = 'v2.0.0-rc5' | ||
version = '2.0.0-rc5' | ||
|
||
[package.metadata.docs.rs] | ||
targets = ['x86_64-unknown-linux-gnu'] | ||
|
||
[features] | ||
default = ['std'] | ||
std = [ | ||
'codec/std', | ||
'frame-support/std', | ||
'frame-system/std', | ||
'sp-runtime/std', | ||
'sp-std/std', | ||
] |
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,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
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 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. | ||
|
||
For more information, please refer to <http://unlicense.org> |
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,31 @@ | ||
# Non-Fungible Token FRAME Pallet | ||
|
||
This is a [FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) pallet that defines and implements a | ||
[non-fungible token (NFT)](https://en.wikipedia.org/wiki/Non-fungible_token) interface. | ||
|
||
## Tests | ||
|
||
Refer to the [mock runtime](src/mock.rs) and [provided tests](src/tests.rs) to see the NFT implementation in action. | ||
|
||
## Acknowledgements | ||
|
||
This project was inspired by works such as the following: | ||
|
||
- [The ERC-721 specification](https://eips.ethereum.org/EIPS/eip-721) | ||
- [OpenZeppelin's ERC-721 implementation](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC721) | ||
- [the original Substratekitties project](https://www.shawntabrizi.com/substrate-collectables-workshop/#/), by | ||
[@shawntabrizi](https://github.com/shawntabrizi/) | ||
- [Substratekitties from SubstrateCourse](https://github.com/SubstrateCourse/substrate-kitties), by [@xlc](https://github.com/xlc/) | ||
|
||
Thanks to the following people who helped me overcome my relatively limited understanding of Rust. | ||
|
||
- [@JoshOrndoff](https://github.com/JoshOrndorff/) | ||
- [@riusricardo](https://github.com/riusricardo/) | ||
- [@rphmeier](https://github.com/rphmeier/) | ||
- [@thiolliere](https://github.com/thiolliere/) | ||
- [@gnunicorn](https://github.com/gnunicorn/) | ||
|
||
## Upstream | ||
|
||
This project was forked from | ||
[the Substrate DevHub Pallet Template](https://github.com/substrate-developer-hub/substrate-pallet-template). |
Oops, something went wrong.