diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..2f7efbe --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-minimal \ No newline at end of file diff --git a/package.json b/package.json index b7d4402..33844b6 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,11 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", + "predeploy": "npm run build", + "deploy": "gh-pages -d build", "truffle:compile": "truffle compile && node -e \"console.log(JSON.stringify(require('./build/contracts/NFT.json').abi, null, 2))\" > ./src/static/abis/NFT.json" }, + "homepage": "http://nodesmith.github.io/erc721-benchmark/", "eslintConfig": { "extends": "react-app" }, @@ -26,5 +29,8 @@ "not dead", "not ie <= 11", "not op_mini all" - ] + ], + "devDependencies": { + "gh-pages": "^2.0.1" + } } diff --git a/src/Benchmark.js b/src/Benchmark.js index 3047af9..f035d78 100644 --- a/src/Benchmark.js +++ b/src/Benchmark.js @@ -11,7 +11,8 @@ export default class Benchmark extends Component { super(props); this.state = { contract: "0x6EbeAf8e8E946F0716E6533A6f2cefc83f60e8Ab", - owner: "0x4eb5c09f266a6681f3a7729cd4587cbb1ae3d41e" + owner: "0x4eb5c09f266a6681f3a7729cd4587cbb1ae3d41e", + useNodesmith: true }; } async handleSubmit(event) { @@ -34,8 +35,14 @@ export default class Benchmark extends Component { }); } + toggleNodesmith = () => { + this.setState({ + useNodesmith: !this.state.useNodesmith + }) + } + render() { - const { balance, name, fetching, contract, owner } = this.state || {}; + const { balance, name, fetching, contract, owner, useNodesmith } = this.state || {}; return (