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

@devest/dv-asset

v1.1.1

Published

## 🌟 Overview **DvAsset** is a Solidity smart contract developed for managing digital assets on EVM (Ethereum Virtual Machine) compatible blockchains. By integrating functionalities from the **DeVest** and **VestingToken** contracts within the DeVest lib

Downloads

16

Readme

πŸ“œ DvAsset Smart Contract

🌟 Overview

DvAsset is a Solidity smart contract developed for managing digital assets on EVM (Ethereum Virtual Machine) compatible blockchains. By integrating functionalities from the DeVest and VestingToken contracts within the DeVest library, DvAsset offers secure and efficient management of unique digital assets such as collectibles, tickets, and more.

✨ Features

  • Purchase Digital Assets 🎟️: Securely acquire digital assets representing ownership over tangible goods.
  • Transfer Ownership πŸ”: Seamlessly transfer digital assets across Ethereum addresses.
  • Offer for Sale πŸ’°: List owned digital assets for sale at specified prices.
  • Cancel Offers ❌: Easily cancel any existing offers for digital assets.
  • ERC721 Compliance 🧩: Supports ERC721 and ERC721Metadata interfaces for maximum compatibility.

πŸ›  Dependencies

This contract relies on several key external dependencies:

  • OpenZeppelin πŸ›‘οΈ: For security and utility through reusable smart contracts.
  • DeVest Library πŸ“š: For managing vesting schedules and token vesting.
  • Hardhat 🎩: For development environment setup, including deployment, testing, and interaction with the Ethereum blockchain.

πŸš€ Getting Started

To begin using the DvAsset smart contracts in your projects, you have two primary options: cloning the repository or installing it directly as an npm package. Choose the method that best suits your project's needs.

Prerequisites

  • An Ethereum wallet loaded with Ether for contract deployment and transactions.
  • Node.js and npm installed on your development machine.

Cloning the Repository

For full access to the source code, examples, and tests, cloning the entire repository might be the best approach. This method is particularly useful if you plan to contribute to the project or need to adjust the contracts for your specific use case.

To clone the repository, execute the following command in your terminal:

πŸ“¦ Install Dependencies

After cloning the DvAsset repository, navigate to the project directory and install necessary npm packages:

npm install

πŸ›  Compile Contracts

Use Hardhat to compile the DvAsset smart contract:

npx hardhat compile

πŸ”§ Deploy Contracts

Deploy your contracts to a local Ethereum network or a testnet using Hardhat:

npx hardhat run scripts/deploy.js --network localhost

πŸ“ Testing

Run the provided test suite to ensure your smart contract functions as expected:

npx hardhat test

πŸ“¦ Installing as an npm Package

Alternatively, you can install DvAsset as an npm package in your project. This method is convenient for integrating DvAsset into your application without manually managing the contract files.

To install the package, use the following npm command:

npm install @devest/dv-asset

This command adds @devest/dv-asset to your project's dependencies, making the DvAsset contracts available for import and use.

Using DvAsset in Your Project

After installation, you can import the DvAsset contract artifacts into your JavaScript or TypeScript files as follows:

import "@devest/dv-asset/DvAsset.sol";

πŸ–₯ Usage

  • Purchasing Tickets: Use the purchase function for asset acquisition.
  • Transferring Tickets: Transfer ownership with the transfer function.
  • Offering Tickets for Sale: Use the offer function to list assets in the marketplace.
  • Cancelling Sales Offers: Use the cancel function to retract assets from sale.

Refer to the smart contract code for detailed function descriptions and further usage examples.

🀝 Contributing

We welcome contributions to the DvAsset project! Please feel free to fork the repository, make your changes, and submit a pull request.

πŸ“„ License

DvAsset is made available under the MIT License. For more details, see the LICENSE file in the project repository.