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

@arianee/contracts

v1.1.5

Published

[![NPM Package](https://img.shields.io/npm/v/@arianee/contracts?color=4db9b4)](https://www.npmjs.com/package/@arianee/contracts)

Downloads

1,434

Readme

Arianee Contracts

NPM Package

This repository contains the smart contracts, deployment scripts, and tests of the Arianee protocol.

We are leveraging the power of Hardhat, an advanced development environment designed specifically for EVMs, to enable efficient and robust DX.

What is Arianee ?

Arianee is a pioneering, blockchain-based protocol designed to forge lasting relationships between brands and their customers. The Arianee protocol empowers brands to issue digital certificates of authenticity or ownership for their products, represented as non-fungible tokens (NFTs) on the Ethereum blockchain. This isn't limited just to physical products, but can also be extended to intangible assets such as loyalty cards, digital goods, experiences and more, creating a versatile ecosystem of verified assets.

Key features of Arianee include:

  • Creation and Minting of NFTs: Brands can create digital representations or "passports" of their assets - tangible or intangible - as NFTs.
  • Transfer of NFTs: These digital assets can be easily transferred from one owner to another, facilitating a secure and transparent secondary market.
  • Proof of Ownership: The protocol enables owners to prove their ownership of an asset both online and in real life, enhancing trust and reducing fraud.
  • Direct-to-Asset Messaging: Brands can send messages directly to the NFT holders, enabling a direct communication channel with the customer.
  • Update and Recall of NFTs: Brands can update the content of minted NFTs, and recover them to their issuer if necessary (i.e in case of theft or loss).

Read more about the Arianee protocol at docs.arianee.org.

Installation

npm install @arianee/contracts

Usage

You can use the types and factories generated with TypeChain for ethers6.

Example:

import { CreditManager, CreditManager__factory } from "@arianee/contracts";

const creditManagerContract = CreditManager__factory.connect(
  "0x123456",
  contractRunner
);

Development

To get started with this repository, first install the necessary dependencies:

npm install

Tests

To run the tests, run the following command:

npm run test

Deployment

To deploy the contracts, run the following command:

npm run deploy

Others useful commands

  • npm run deploy-protocol -- --ver <protocolVersion> --aria <ariaTokenAddress> --forwarder <trustedForwarderAddress> --network <targetNetwork>: Deploy a new version of the Arianee protocol.
  • npm run configure-protocol -- --ver <protocolVersion> --aria <ariaTokenAddress> --forwarder <trustedForwarderAddress> --network <targetNetwork>: Configure the CreditManager and RulesManager.contracts of a deployed Arianee protocol. Please also take a look at ConfigureProtocolTaskParams in ./plugins/configure-protocol.ts before running this command.
  • npm run deploy-registry -- --ver <registryVersion> --arianee <arianeeAddress> --forwarder <trustedForwarderAddress>: Deploy an OwnershipRegistry contract.
  • npm run register-token -- --regver <registryVersion> --address <tokenAddress> --subens <subdomain>.arianee.eth --network <targetNetwork>: Register a token on the OwnershipRegistry.
  • npm run register-issuer -- --regver <registryVersion> --address <issuerAddress> --subens <subdomain>.arianee.eth --network <targetNetwork>: Register an issuer on the OwnershipRegistry.
  • npm run deploy-test-smart-asset -- --protover <protocolVersion> --forwarder <trustedForwarderAddress> --network <targetNetwork>: Deploy a TestSmartAsset contract with pre-defined parameters
  • npm run test-flow -- --protover <protocolVersion> --regver <registryVersion> --smartasset <smartAssetAddress> --network <targetNetwork> --subens <subdomain>.arianee.eth --ensnetwork <targetEnsNetwork>: Execute a pre-defined test flow.
  • npm run deploy-ctf -- --ver <contractVersion> --forwarder <trustedForwarderAddress>: Deploy a MockGaslessCaptureTheFlag contract.
  • npm run gen:interfaces: Run a custom Hardhat plugin to generate Solidity interfaces for all contracts defined in plugins/gen-interfaces.ts.
  • npm run gen:doc: Run @primitivefinance/hardhat-dodoc to generate documentation for all contracts.
  • npx hardhat help: Displays help and usage instructions for Hardhat.
  • npx hardhat node: Starts a local Ethereum node on your machine.

Contributing

We welcome contributions from the community. To contribute, please fork the repository and submit a pull request with your changes.

Make sure to include tests for any new functionality and ensure that all tests are passing before submitting the pull request.