mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-13 03:25:20 +00:00
4e66a56208
Bumps [undici](https://github.com/nodejs/undici) from 5.22.1 to 5.28.4. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v5.22.1...v5.28.4) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
contracts | ||
scripts | ||
test | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierignore | ||
.solhint.json | ||
.solhintignore | ||
hardhat.config.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Kava EVM contracts
Contracts for the Kava EVM used by the Kava blockchain. Includes an ERC20 contract for wrapping native cosmos sdk.Coins.
Setup
npm install
Test
npm test
Development
# Watch contract + tests
npm run dev
# Watch tests only
npm run test-watch
Deploying contracts to test networks
A deploy script is included in this hardhat project to deploy a contract directly to a network. To deploy the contracts to different networks:
npx hardhat run --network <network-name> scripts/deploy.ts
Configuration for various <network-name>
s above are setup in the hardhat config.
Production compiling & Ethermint JSON
Ethermint uses its own json format that includes the ABI and bytecode in a single file. The bytecode should have no 0x
prefix and should be under the property name bin
. This structure is built from the compiled code with npm ethermint-json
.
The following compiles the contract, builds the ethermint json and copies the file to the evmutil:
npm build