Skip to content

Commit 0248a6b

Browse files
committed
Merge branch 'master' of https://github.com/0xcert/ethereum-erc721 into expand-scope
# Conflicts: # README.md
2 parents 045fbbc + 45aa83a commit 0248a6b

25 files changed

+32128
-9718
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
name: Node.js CI
55

6-
on: push
6+
on: [push, pull_request]
77

88
jobs:
99
build:
@@ -20,3 +20,8 @@ jobs:
2020
- run: |
2121
npm ci
2222
npm run solhint && npm test
23+
npm run coverage
24+
- name: Codecov
25+
uses: codecov/codecov-action@v2
26+
with:
27+
flags: unittests

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,23 @@
22
.vscode
33
node_modules
44
dist
5-
build
5+
build
6+
# Config files,
7+
.idea/
8+
.vscode
9+
# Node.js
10+
node_modules
11+
package.json
12+
package-lock.json
13+
#Hardhat files
14+
bin
15+
cache
16+
artifacts
17+
data/
18+
#Solidity
19+
soljson*
20+
.tmp*
21+
metadata/
22+
#coverage
23+
coverage.json
24+
coverage

BUG_BOUNTY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ How to win:
7979

8080
- Be descriptive and detailed when describing your issue
8181
- Fix it — recommend a way to solve the problem
82-
- Include a [Specron test](https://specron.github.io/framework/) case that we can reproduce
82+
- Include a [Hardhat test](https://hardhat.org/) case that we can reproduce
8383

8484
Rules for bounty sponsor:
8585

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
![Build Status](https://travis-ci.org/0xcert/ethereum-erc721.svg?branch=master) [![NPM Version](https://badge.fury.io/js/@0xcert%2Fethereum-erc721.svg)](https://www.npmjs.com/package/@0xcert/ethereum-erc721) [![Dependencies Status](https://david-dm.org/0xcert/ethereum-erc721.svg)](https://david-dm.org/0xcert/ethereum-erc721) [![Bug Bounty](https://img.shields.io/badge/bounty-open-2930e8.svg)](https://github.com/0xcert/ethereum-erc721/blob/master/BUG_BOUNTY.md)
1+
![Build Status](https://travis-ci.org/0xcert/ethereum-erc721.svg?branch=master) [![codecov](https://codecov.io/gh/0xcert/ethereum-erc721/branch/master/graph/badge.svg?token=F0tgRHyWSM)](https://codecov.io/gh/0xcert/ethereum-erc721) [![NPM Version](https://badge.fury.io/js/@0xcert%2Fethereum-erc721.svg)](https://www.npmjs.com/package/@0xcert/ethereum-erc721) [![Dependencies Status](https://david-dm.org/0xcert/ethereum-erc721.svg)](https://david-dm.org/0xcert/ethereum-erc721) [![Bug Bounty](https://img.shields.io/badge/bounty-open-2930e8.svg)](https://github.com/0xcert/ethereum-erc721/blob/master/BUG_BOUNTY.md)
22

33
# ERC-721 Token — Reference Implementation
44

5-
This is the complete reference implementation of the [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) non-fungible token standard for the Ethereum and Wanchain blockchains. It is also compatible with other EVM compatible chains like Binance Smart Chain (BSC), Avalanche (AVAX) etc. This is an open-source project, complete with [Specron](https://specron.github.io/framework/) testing.
5+
This is the complete reference implementation of the [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) non-fungible token standard for the Ethereum and Wanchain blockchains. It is also compatible with other EVM compatible chains like Binance Smart Chain (BSC), Avalanche (AVAX) etc. This is an open-source project, complete with [Hardhat](https://hardhat.org/) testing.
66

77
The purpose of this implementation is to provide a good starting point for anyone who wants to use and develop non-fungible tokens on the Ethereum and Wanchain blockchains. Instead of re-implementing the ERC-721 yourself you can use this code which has gone through multiple audits and we hope it will be extensively used by the community in the future.
8+
Note that this implementation is more restrictive then the ERC-721 standard since it does not support `payable` function calls out of the box. You are however free to add this yourself.
89

910
If you are looking for a more feature-rich and advanced ERC721 implementation, then check out the [0xcert Framework](https://github.com/0xcert/framework).
1011

hardhat.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require('@nomiclabs/hardhat-waffle');
2+
require('hardhat-abi-exporter');
3+
require('solidity-coverage');
4+
5+
/**
6+
* @type import('hardhat/config').HardhatUserConfig
7+
*/
8+
module.exports = {
9+
solidity: '0.8.6',
10+
networks: {
11+
hardhat: {
12+
initialBaseFeePerGas: 0 // hardhat london fork error fix for coverage
13+
}
14+
},
15+
paths: {
16+
sources: './src/*',
17+
artifacts: './build',
18+
tests: './src/tests/*'
19+
},
20+
abiExporter: {
21+
path: './data/abi',
22+
clear: true,
23+
flat: true,
24+
}
25+
};

0 commit comments

Comments
 (0)