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

@devphase/cli

v0.7.2

Published

Development tool for Phala Phat contracts.

Downloads

48

Readme

devPHAse

Development tool for Phala Phat contracts.

Tests for both latest devPHAse and Phala Blockchain release:
CircleCI

Features

Tool is heavily inspired by Hardhat (EVM devs should be familiar with it).
I tried to provide as much similar features as possible.

  • Up to date Phala binaries
    By default on each start devPHAse will pull latest Phala binaries (the latest release from official Phala's repo).

  • E2E testing
    Using internally Phala stack (prepared on start) you can test e2e your contracts with minimal cost.

  • Scripting
    Using all devPHAse API you can prepare scripts for common actions like: contract deployment, management, monitoring etc.

  • Type generation
    devPHAse generates type bindings for all structures used in contract, so autosuggestions should be provided by your IDE.

Requirements

Requirements list for contract (building) commands

  • Cargo
    cargo 1.69.0 (6e9a83356 2023-04-12) *
  • Cargo Contract
    cargo-contract-contract 3.0.1-unknown-x86_64-unknown-linux-gnu *
  • Target wasm32-unknown-unknown
  • Component rust-src

* - previous versions may also work, but it was not tested

Install

Depending on how you manage your projects you can:

  1. Add devPHAse to your project dependencies (yarn@^1 / npm)
    Sadly yarn@^3 is not supported (check #4)
yarn add -D @devphase/cli
yarn add -D typescript ts-node # required peer dependencies

yarn devphase [command]
  1. Install it globally and use npx to call it.
    Note: this may be default in Phala's example repos
npm install -g @devphase/cli
npm install -g typescript ts-node # required peer dependencies

npx @devphase/cli [command]

Usage

Detailed usage described here
USAGE
Must read :)

Sandbox & Examples

In directory workspaces/xsandbox there is a template of devphase project.
You can try building and testing contracts.
workspaces/xsandbox

Check also workspaces/xexamples for more examples.
workspaces/xexamples

Commands

I strongly recommned using scripts instead of CLI commands.
CLI commands index

Configuration

Here is default configuration.
All values are optional (merged recuresivly)