1.0.0 • Published 2 years ago
@trebodex/trebodex-core v1.0.0
Trebodex Core
This repository contains the core smart contracts. It is a fork from Uniswap V3 Protocol.
Local deployment
In order to deploy this code to a local testnet, you should install the npm package
@trebodex/trebodex-core
and import the factory bytecode located at
@trebodex/trebodex-core/artifacts/contracts/TrebodexFactory.sol/TrebodexFactory.json
.
For example:
import {
abi as FACTORY_ABI,
bytecode as FACTORY_BYTECODE,
} from '@trebodex/trebodex-core/artifacts/contracts/TrebodexFactory.sol/TrebodexFactory.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 code will correctly interoperate with your local deployment.
## Licensing
The primary license for Trebodex Core is GNU GENERAL PUBLIC LICENSE (`GPL-2.0`), 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.
1.0.0
2 years ago