GithubHelp home page GithubHelp logo

pinkdiamond1 / utility-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from synthetixio/utility-contracts

0.0 1.0 0.0 60 KB

A collection of useful smart contract components. (internal)

License: MIT License

Python 75.70% Solidity 24.30%

utility-contracts's Introduction

utility-contracts

Build Status

A collection of useful smart contract components.

Contents

Smart contracts can be found in the contracts/ directory and include the following:

  • LimitedSetup: Allows contract functions to operate only during a setup period.
  • Owned: A contract with a privileged owner.
  • Pausable: Provides the ability to pause contract functions.
  • SafeDecimalMath: Safe manipulation of unsigned fixed point decimal numbers.
  • SelfDestructible: A contract that can be self destructed by its owner after a delay.

Running Tests

The testing scripts require Python 3.6+, web3.py 4.0.0+, py-solc 2.1.0+, and eth-utils 1.0.0+. To install these dependencies, ensure that python is up to date and run:

pip3 install -r requirements.txt

In addition solc 0.4.24+ must be installed. The test suite uses ganache 6.1.0+ for execution speed, state snapshots, and time fast-forwarding. It can be installed from the node package manager with:

npm install ganache-cli

Run the test suite as follows:

python3 run_tests.py

utility-contracts's People

Contributors

zyzek avatar

Watchers

 avatar

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.