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

@dataswapcore/contracts

v0.9.7

Published

Dataswap core contracts

Downloads

54

Readme

🏠 Homepage

Dataswap

Dataswap is a blockchain-based Layer 2 project built on IPFS and Filecoin, functioning as a decentralized open data exchange platform. Its goal is to aggregate open datasets from various regions and industries globally, enabling the permanent storage of valuable human data. Additionally, Dataswap offers comprehensive and reliable services for data retrieval, downloading, and analysis. Through these efforts, it aims to facilitate data sharing and collaborative progress for humanity.

Features

Aggregating open big data from various global regions and industries, encompassing economic, financial, medical, and health data types. This creates efficient and valuable gateways to datasets.

Implement a decentralized matching mechanism to attract more open dataset suppliers, storage providers, retrieval providers, compute providers, and users, fostering global data sharing and innovation.

  • Dataswap storage

    • about Discussion on Trustless Notary and Trustless Notary Design Space + Guidelines, Dataswap storage has undertaken a more in-depth implementation in this regard.

      • Enabling proof and verification of stored Valid Data Consistency.
      • Monitoring client's valid data storage and verification with finer granularity.
      • Simplifying notary work through code.
      • Decoupling data cap and notary signatures to prevent malicious behavior.
    • Utilizing a data authentication mechanism (including data submit, verification, and auditing) to ensure the genuine value of platform data.

    • Utilizing the decentralized automated matching mechanism of DataSwap storage for the permanent storage (using Filecoin) and distribution of datasets, establishing a transparent and publicly accessible distributed data index.

  • Dataswap retrieve

    • Provide open retrieval and download services. This includes various access methods such as web interfaces, API integration, and file downloads.
      • Customers pay funds into smart contracts to easily search for and access the required datasets.
      • Retrieval service providers receive incentives by offering retrieval services.
  • Dataswap compute

    • Providing decentralized data analysis and matching services, empowering data-driven decision-making and intelligent solutions.

Documentation

For more details about Dataswap, check out the Dataswap Spec.

Setup

Please make sure to install the following before working with codebase:

npm

Node.js (16+)

Hardhat

Foundry

Deploy and Upgrade

export PRIVATE_KEY=“your private key” ;
export [network name]_RPC_URL="deploy network rpc url";
export DEPLOYER_ADDRESS="deployer address”;

# Deploy 
npx hardhat deploy --network [network name]

# Upgrade
npx hardhat upgrade --address [contract address] --name [contract name] --network [network name]

Usage

Installation

via yarn

$ yarn add @dataswapcore/contracts --save

via npm

$ npm install @dataswapcore/contracts --save

import

The solidity smart contracts themselves can be imported via the src directory of @dataswapcore/contracts:

import '@dataswapcore/contracts/src/v0.8/module/dataset/Datasets.sol';

Development

Clone the repository

git clone https://github.com/dataswap/core.git
cd core/

dependencies

forge install
yarn install

Build

forge build

or 

yarn hardhat compile

Test

forge test

and

yarn hardhat test

Gas Snapshots

forge snapshot

Cast

To be added

Author

👤 dataswap

🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2023 dataswap. This project is MIT and APACHE licensed.