@laborx/solidity-shared-lib
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Shared smart contracts Build Status Coverage Status

Part of LaborX project. Contains a list of basic smart contracts and interfaces that should be at hands for every developer.

  • ERC20Interface - describes an interface for ERC20 token standard;
  • Owned - provides a smart contract that is owned by its creator and allows to transfer an ownership in different ways (immediately or with pending timeout).

Installation

Organized as npm package this smart contracts could be easily added to a project by

npm install -s solidity-shared-lib

Usage

Right before you decided to use them add this library to package dependencies and import any contract according to this pattern, for example:

import "solidity-shared-lib/contracts/Owned.sol";

Details

Owned

This smart contract besides pinning a contract owner also allows to withdraw any tokens or ether that were mistakenly transferred to a contract (only for contract owner).

Readme

Keywords

none

Package Sidebar

Install

npm i @laborx/solidity-shared-lib

Weekly Downloads

0

Version

0.4.0

License

AGPL-3.0

Unpacked Size

126 kB

Total Files

35

Last publish

Collaborators

  • be1box
  • ozalexo
  • mike.chronobank
  • aliaksei.hiatsevich
  • alesanro