Git Product home page Git Product logo

conflux-contracts's Introduction

NPM Package

conflux-contracts

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)

Overview

Install

npm install @confluxfans/contracts

How 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 compile

How to release version

  1. Update version field in project root's package.json and then run npm run version to sync sub folder's (contracts) package.json
  2. cd contracts folder
  3. Run npm publish --access public to publish package.

FAQs

I copy the code from contracts into my project, but it doesn't compile?

Please make sure you have installed the correct version of @openzeppelin/contracts. The contracts package is designed to work with @openzeppelin/contracts 4.0+.

License

Conflux-contracts is released under the MIT License.

conflux-contracts's People

Contributors

boqiu avatar darwintree avatar pana avatar wangdayong228 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

conflux-contracts's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.