npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

grams-contracts

v0.0.1

Published

Collection of smart contracts for Grams network

Downloads

3

Readme

grams-contracts

License npm version

The grams-contracts package provides a collection of smart contracts that can be used to enhance the functionality and features of decentralized applications (dApps) built on the Grams network. These contracts cover a wide range of use cases, including token standards, governance mechanisms, and decentralized finance (DeFi) protocols.

Features

  • Token Standards: Implement widely adopted token standards such as ERC-20 and ERC-721 to create and manage fungible and non-fungible tokens.
  • Governance: Utilize governance contracts to enable community-driven decision-making processes and voting mechanisms within dApps.
  • DeFi Protocols: Access a variety of decentralized finance protocols, including lending, staking, yield farming, and more.
  • Escrow Services: Implement secure and reliable escrow services for trustless transactions and settlements.
  • Oracle Integration: Connect to external data sources and feed real-world information into smart contracts using oracles.
  • Multi-Signature Wallets: Deploy multi-signature wallets to enhance the security and control of funds held by multiple parties.
  • Upgradability: Utilize upgradable contract patterns to facilitate future upgrades and enhancements.

Installation

You can install the grams-contracts package using your preferred package manager.

npm

npm install grams-contracts

Yarn

yarn add grams-contracts

Usage

To use grams-contracts in your project, follow these steps:

  1. Import the grams-contracts package:

    const GramsContracts = require('grams-contracts');
  2. Access the desired contract from the available collection:

    const ERC20Token = GramsContracts.ERC20Token;
    const GovernanceContract = GramsContracts.GovernanceContract;
    // ...
  3. Deploy and interact with the contract in your application:

    // Deploy an ERC20 token contract
    const token = new ERC20Token('MyToken', 'MTK', 18);
    token.deploy();
    
    // Interact with the deployed contract
    const balance = token.getBalance('0x1234567890abcdef');
    const transferResult = token.transfer('0x9876543210', 100);
    // ...

For more detailed information and examples, refer to the grams-contracts Documentation.

Documentation

Comprehensive documentation for grams-contracts is available at https://grams-foundation.github.io/grams-contracts-docs. The documentation provides detailed explanations of each contract's functionality, along with code examples and usage guidelines.

Contributing

Contributions to grams-contracts are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.

Before contributing, please review the existing codebase, adhere to the project's code style and guidelines, and ensure your changes pass the existing tests.

License

The grams-contracts package is open source and distributed under the Apache License 2.0. Your contributions to the project are appreciated and will be licensed accordingly.