Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@confluxfans/solidity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
conflux-contracts
Common useful contracts in Conflux DAPP developments. Code
- Conflux internal contracts
- Support Solidity 8.0+, depend on @openzeppelin/contracts 4.0+
Overview
Install
npm install @confluxfans/contractsHow to Use
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@confluxfans/contracts/InternalContracts/AdminControl.sol";
contract YourContract {
AdminControl adminControl = AdminControl(0x0888000000000000000000000000000000000000);
constructor() public {
}
}Contribute
There are many ways you can participate and help build high quality software. Check out the contribution guide!
Compile & Lint
$ npm run lint
$ npm run lint:sol:fix # run this command if lint failed to fix code style issue
$ npm run compile # or npx hardhat compileHow to release version
- Update
versionfield in project root'spackage.jsonand then runnpm run versionto sync sub folder's (contracts)package.json - cd
contractsfolder - Run
npm publish --access publicto publish package.
License
Conflux-contracts is released under the MIT License.