0.7.2 • Published 15 days ago

@devphase/cli v0.7.2

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

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)

0.7.2

15 days ago

0.7.0-beta.0

2 months ago

0.7.1

2 months ago

0.7.0

2 months ago

0.6.14

2 months ago

0.6.12

2 months ago

0.6.13

2 months ago

0.6.11

3 months ago

0.6.9

4 months ago

0.6.10

4 months ago

0.6.8

4 months ago

0.6.7

6 months ago

0.6.6

6 months ago

0.3.0

11 months ago

0.6.3

7 months ago

0.6.0-beta.0

9 months ago

0.6.2

7 months ago

0.6.5

7 months ago

0.6.4

7 months ago

0.6.0-beta.1

9 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.6.1

7 months ago

0.6.0

8 months ago

0.5.1

9 months ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.2.2

11 months ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.12

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago