# @aztea/v3-core

> 🦄 Core smart contracts of forbitswap V1

Latest version **1.0.0** (published 2023-03-28) · BUSL-1.1 license · 0 weekly downloads

## Install

```sh
npm install @aztea/v3-core
pnpm add @aztea/v3-core
yarn add @aztea/v3-core
bun add @aztea/v3-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.0.0 |
| Published | 2023-03-28 |
| First published | 2023-03-28 |
| Weekly downloads | 0 |
| License | BUSL-1.1 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 415.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | shayha |
| Keywords | forbitswap, core, v2 |

## Links

- npm: https://www.npmjs.com/package/@aztea/v3-core
- Repository: https://github.com/forbitswap/forbitswap-v2-core
- Homepage: https://forbitswap.com/
- npm.io page: https://npm.io/package/@aztea/v3-core

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-03-28

## README

## Local deployment

In order to deploy this code to a local testnet, you should install the npm package
`@forbitswap/v3-core`
and import the factory bytecode located at
`@forbitswap/v3-core/artifacts/contracts/ForbitswapV3Factory.sol/ForbitswapV3Factory.json`.
For example:

```typescript
import {
  abi as FACTORY_ABI,
  bytecode as FACTORY_BYTECODE,
} from '@forbitswap/v3-core/artifacts/contracts/ForbitswapV3Factory.sol/ForbitswapV3Factory.json'

// deploy the bytecode
```

This will ensure that you are testing against the same bytecode that is deployed to
mainnet and public testnets, and all forbitswap code will correctly interoperate with
your local deployment.

## Using solidity interfaces

The forbitswap v3 interfaces are available for import into solidity smart contracts
via the npm artifact `@forbitswap/v3-core`, e.g.:

```solidity
import '@forbitswap/v3-core/contracts/interfaces/IForbitswapV3Pool.sol';

contract MyContract {
  IForbitswapV3Pool pool;

  function doSomethingWithPool() {
    // pool.swap(...);
  }
}

```

## Licensing

The primary license for forbitswap V3 Core is the Business Source License 1.1 (`BUSL-1.1`), see [`LICENSE`](./LICENSE).

### Exceptions

- All files in `contracts/interfaces/` are licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/interfaces/LICENSE`](./contracts/interfaces/LICENSE)
- Several files in `contracts/libraries/` are licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/libraries/LICENSE_GPL`](contracts/libraries/LICENSE_GPL)
- `contracts/libraries/FullMath.sol` is licensed under `MIT` (as indicated in its SPDX header), see [`contracts/libraries/LICENSE_MIT`](contracts/libraries/LICENSE_MIT)
- All files in `contracts/test` remain unlicensed.

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