1.0.2 • Published 4 years ago

@nyanswap/core v1.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

Nyanswap

Actions Status

Local Development

The following assumes the use of node@>=10.

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test

Deploy

1. (Optional, if want to deploy locally) Launch a local Ethereum blockchain by using ganache

npx ganache-cli --deterministic

2. Deploy by penZeppelin CLI tool

npx oz deploy

3. Follow OpenZeppelin prompt

Interact with deployed smart contract

1. Sending Transactions

Modifies the blockchain state, need to send a transaction to the contract to execute it

npx oz send-tx

2. Querying State

A query of blockchain state, so we don’t need to send a transaction: a static call will suffice

npx oz call