Common useful contracts in Conflux DAPP developments. Code
- Conflux internal contracts
- Support Solidity 8.0+, depend on @openzeppelin/contracts 4.0+(not compatible with version5)
npm install @confluxfans/contracts
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@confluxfans/contracts/InternalContracts/AdminControl.sol";
contract YourContract {
AdminControl adminControl = AdminControl(0x0888000000000000000000000000000000000000);
constructor() public {
}
}
There are many ways you can participate and help build high quality software. Check out the contribution guide!
$ 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 compile
- Update
version
field in project root'spackage.json
and then runnpm run version
to sync sub folder's (contracts
)package.json
- cd
contracts
folder - Run
npm publish --access public
to publish package.
Please make sure you have installed the correct version of @openzeppelin/contracts
. The contracts
package is designed to work with @openzeppelin/contracts
4.0+.
Conflux-contracts is released under the MIT License.