# kingswap_core

> ``` $ yarn install && yarn compile ```

Latest version **1.1.0** (published 2020-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install kingswap_core
pnpm add kingswap_core
yarn add kingswap_core
bun add kingswap_core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-11-16 |
| First published | 2020-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 622 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | kingmario1 |

## Links

- npm: https://www.npmjs.com/package/kingswap_core
- npm.io page: https://npm.io/package/kingswap_core

## Dependencies (1)

- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) ^3.1.0

## Recent versions

- 1.1.0 (latest) — 2020-11-16

## README

# KingSwap_V2

## Install & build
```
$ yarn install && yarn compile
```

## Run tests
```
$ yarn test
```

## Play with it
In a terminal:
```
$ ./KingSwap_V2/scripts/start-ksw.sh --no-deploy
```

In another terminal:
```
$ npx truffle console --network ksw
truffle(ksw)> const [deployer, alice, bob, carl, carol, , anybody] = accounts
truffle(ksw)> const weth = await WETH9.new()
truffle(ksw)> const king = await KingToken.new()
truffle(ksw)> const factory = await KingSwapFactory.new(alice)
truffle(ksw)> const router = await KingSwapRouter.new(factory.address, weth.address)
truffle(ksw)> const kingWethPair = await KingSwapPair.at((await factory.createPair(king.address, weth.address)).logs[0].args.pair)
truffle(ksw)> const stokenKingWeth = await KingSwapSlippageToken.at((await kingWethPair.stoken()))
```

---
_Source: https://npm.io/package/kingswap_core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
