0g-chain/contracts/package.json
Robert Pirtle 6da31bd662
feat: add contract for ERC20KavaWrappedNativeCoin (#1594)
* setup empty hardhat project for evm contract dev

* setup eslint

* setup prettier

* setup solhint

* ignore contracts dir in docker

* add ERC20KavaWrappedNativeCoin contract

* add unit tests for ERC20KavaWrappedNativeCoin

* use solidity 0.8.18

* configure solc with optimization and evm target

* compile ERC20KavaWrappedNativeCoin for evmutil

* setup script for deploying directly to a network

* fix burn test for ERC20KavaWrappedNativeCoin

Co-authored-by: drklee3 <derrick@dlee.dev>

---------

Co-authored-by: drklee3 <derrick@dlee.dev>
2023-05-19 16:39:50 -07:00

40 lines
1.5 KiB
JSON

{
"name": "kava-contracts",
"version": "0.0.1",
"author": "Kava Labs",
"private": true,
"description": "Solidity contracts for Kava Blockchain",
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "npm run clean && npm run compile && npm run ethermint-json",
"clean": "hardhat clean",
"compile": "hardhat compile",
"coverage": "hardhat coverage",
"ethermint-json": "jq '{ abi: .abi | tostring, bin: .bytecode | ltrimstr(\"0x\")}' artifacts/contracts/ERC20KavaWrappedNativeCoin.sol/ERC20KavaWrappedNativeCoin.json > ../x/evmutil/types/ethermint_json/ERC20KavaWrappedNativeCoin.json",
"gen-ts-types": "hardhat typechain",
"lint": "eslint '**/*.{js,ts}'",
"lint-fix": "eslint '**/*.{js,ts}' --fix",
"prettier": "prettier '**/*.{json,sol,md}' --check",
"prettier-fix": "prettier '**/*.{json,sol,md}' --write",
"solhint": "solhint 'contracts/**/*.sol' --max-warnings 0",
"solhint-fix": "solhint 'contracts/**/*.sol' --fix",
"test": "hardhat test"
},
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
"@openzeppelin/contracts": "4.8.3",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"eslint": "^8.40.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"hardhat": "^2.14.0",
"prettier": "2.8.8",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1",
"typescript": "^5.0.4"
}
}