niftyswap
Version:
AMM exchange for ERC-1155 tokens, inspired by Uniswap
89 lines (88 loc) • 3.46 kB
JSON
{
"name": "niftyswap",
"version": "2.2.1",
"description": "AMM exchange for ERC-1155 tokens, inspired by Uniswap",
"repository": "https://github.com/0xsequence/niftyswap",
"license": "Apache-2.0",
"scripts": {
"build": "yarn clean && yarn compile && yarn gen:typings",
"clean": "rimraf artifacts && rimraf typings/contracts && rimraf cache",
"compile": "hardhat --max-memory 4096 compile",
"gen:typings": "rimraf typings/contracts && typechain --target ethers-v5 --outDir typings/contracts './artifacts/!(build-info)/**/*[^dbg].json'",
"test": "yarn build && yarn concurrently -k --success first 'yarn start:ganache' 'yarn test:ganache'",
"test:hardhat": "hardhat test tests/*.spec.ts",
"test:ganache": "hardhat --network ganache test tests/*.spec.ts",
"test:gas-report": "REPORT_GAS=true yarn test",
"test:benchmark": "hardhat --network ganache test tests/*.bench.ts",
"lint": "yarn lint:ts && yarn lint:sol",
"lint:fix": "yarn lint:ts:fix && yarn lint:sol:fix",
"lint:sol": "solhint './contracts/**/*.sol'",
"lint:sol:fix": "solhint './contracts/**/*.sol' --fix",
"lint:ts": "eslint -c .eslintrc.js './**/*.ts'",
"lint:ts:fix": "eslint -c .eslintrc.js --fix './**/*.ts'",
"format": "prettier --write ./**/*.ts",
"start:ganache": "ganache-cli --chainId ${npm_package_config_ganacheChainID} --networkId ${npm_package_config_ganacheChainID} --port ${npm_package_config_ganachePort} --gasLimit ${npm_package_config_ganacheGasLimit} --gasPrice ${npm_package_config_ganacheGasPrice} --defaultBalanceEther ${npm_package_config_etherBalance} --deterministic --mnemonic \"${npm_package_config_mnemonic}\" ${npm_package_config_extra}",
"start:ganache:verbose": "yarn run start:ganache --verbose",
"stop:ganache": "ps aux | grep ganache-cli | grep -v grep | awk '{print $2}' | xargs kill -9"
},
"dependencies": {
"erc20-meta-token": "^2.2.0",
"multi-token-standard": "^2.2.0"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@typechain/ethers-v5": "^6.0.2",
"@types/chai-as-promised": "^7.1.0",
"@types/chai-string": "^1.4.1",
"@types/mocha": "^8.2.1",
"@types/node": "^14.14.34",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-bignumber": "^3.0.0",
"chai-string": "^1.5.0",
"concurrently": "^6.0.0",
"dotenv": "^8.2.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.3.1",
"ethers": "^5.0.32",
"ganache-cli": "6.12.2",
"hardhat": "2.1.1",
"hardhat-gas-reporter": "1.0.4",
"rimraf": "^3.0.2",
"solhint": "^3.3.4",
"ts-node": "^9.1.1",
"typechain": "^4.0.3",
"typescript": "4.2.3"
},
"files": [
"README.md",
"LICENSE",
"artifacts",
"contracts",
"typings"
],
"keywords": [
"Ethereum",
"Niftyswap",
"Uniswap",
"ERC-1155",
"ERC-20",
"Token",
"NFT"
],
"config": {
"mnemonic": "test test test test test test test test test test test junk",
"ganacheChainID": 127001,
"ganachePort": 8545,
"ganacheGasLimit": "0xfffffffffff",
"ganacheGasPrice": "20000000000",
"etherBalance": "100000",
"extra": ""
}
}