Catalog npm
Back to packageRELEASE DETAILS

0.0.4

npm

@0xgraph/cli

The 0xgraph CLI to deploy subgraphs, index & transform blockchain data, and access your data in real-time.

Published4 Jul 2023
Direct dependencies39
Transitive dependenciesNot calculated

README

Current package documentation

0xgraph CLI

The 0xgraph CLI to deploy subgraphs, index & transform blockchain data, and access your data in real-time.

Usage

  • 0xgraph init — Creates a new subgraph project from an example or an existing contract.
  • 0xgraph create — Registers a subgraph name.
  • 0xgraph remove — Unregisters a subgraph name.
  • 0xgraph codegen — Generates AssemblyScript types for smart contract ABIs and the subgraph schema.
  • 0xgraph build — Compiles a subgraph to WebAssembly.
  • 0xgraph deploy — Deploys a subgraph to 0xgraph.

deploy command requires several flags to be provided to complete successfully. See below:

Flag/ExampleRequiredDescription
--node http://65.109.19.223:8020YesURL of the valid Graph Node instance.
--ipfs http://65.109.19.223:5001YesURL of the IPFS API.
--version-pub-url http://95.217.114.57:8050/versionNoURL of the api-extensions-service endpoint for publishing deploy version. Skip publishing if not provided.
  • 0xgraph auth — Stores a Graph 0xgraph access token in the system's keychain.
  • 0xgraph local — Runs tests against a test environment (using Ganache by default).
  • 0xgraph test — Downloads and runs the Matchstick rust binary in order to test a subgraph.
  • 0xgraph add - Adds a new datasource to the yaml file and writes the necessary changes to other files - schema.graphql, abi and mapping.

Installation

We recommend install the CLI using package manager npm or yarn or pnpm when developing subgraphs locally:

# NPM
npm install -g @0xgraph/cli

# Yarn
yarn global add @0xgraph/cli

# pnpm
pnpm add -g @0xgraph/cli

Linux

On linux, libsecret is used for managing access tokens, so it may be necessary to install it before running the cli.

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret
  • NixOS: nix-shell -p libsecret (or edit configuration.nix)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 39

Native requirements
39 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
9.3.5runtime
yaml
Environment
{
  "local_name": "yaml",
  "alias": false,
  "peer_metadata": null
}
1.10.2runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
3.0.0runtime
debug
Environment
{
  "local_name": "debug",
  "alias": false,
  "peer_metadata": null
}
4.3.4runtime
which
Environment
{
  "local_name": "which",
  "alias": false,
  "peer_metadata": null
}
2.0.2runtime
jayson
Environment
{
  "local_name": "jayson",
  "alias": false,
  "peer_metadata": null
}
4.0.0runtime
semver
Environment
{
  "local_name": "semver",
  "alias": false,
  "peer_metadata": null
}
7.4.0runtime
gluegun
Environment
{
  "local_name": "gluegun",
  "alias": false,
  "peer_metadata": null
}
5.1.2runtime
graphql
Environment
{
  "local_name": "graphql",
  "alias": false,
  "peer_metadata": null
}
15.5.0runtime
js-yaml
Environment
{
  "local_name": "js-yaml",
  "alias": false,
  "peer_metadata": null
}
3.14.1runtime
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
2.88.2runtime
chokidar
Environment
{
  "local_name": "chokidar",
  "alias": false,
  "peer_metadata": null
}
3.5.3runtime
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
9.1.0runtime
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
1.19.1runtime
dockerode
Environment
{
  "local_name": "dockerode",
  "alias": false,
  "peer_metadata": null
}
2.5.8runtime
immutable
Environment
{
  "local_name": "immutable",
  "alias": false,
  "peer_metadata": null
}
4.2.1runtime
@oclif/core
Environment
{
  "local_name": "@oclif/core",
  "alias": false,
  "peer_metadata": null
}
2.8.4runtime
tmp-promise
Environment
{
  "local_name": "tmp-promise",
  "alias": false,
  "peer_metadata": null
}
3.0.3runtime
sync-request
Environment
{
  "local_name": "sync-request",
  "alias": false,
  "peer_metadata": null
}
6.1.0runtime
web3-eth-abi
Environment
{
  "local_name": "web3-eth-abi",
  "alias": false,
  "peer_metadata": null
}
1.7.0runtime
assemblyscript
Environment
{
  "local_name": "assemblyscript",
  "alias": false,
  "peer_metadata": null
}
0.19.23runtime
docker-compose
Environment
{
  "local_name": "docker-compose",
  "alias": false,
  "peer_metadata": null
}
0.23.19runtime
ipfs-http-client
Environment
{
  "local_name": "ipfs-http-client",
  "alias": false,
  "peer_metadata": null
}
55.0.0runtime
@whatwg-node/fetch
Environment
{
  "local_name": "@whatwg-node/fetch",
  "alias": false,
  "peer_metadata": null
}
^0.8.4runtime
binary-install-raw
Environment
{
  "local_name": "binary-install-raw",
  "alias": false,
  "peer_metadata": null
}
0.0.13runtime
@float-capital/float-subgraph-uncrashable
Environment
{
  "local_name": "@float-capital/float-subgraph-uncrashable",
  "alias": false,
  "peer_metadata": null
}
^0.0.0-alpha.4runtime
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
29.5.0development
tern
Environment
{
  "local_name": "tern",
  "alias": false,
  "peer_metadata": null
}
0.24.3development
oclif
Environment
{
  "local_name": "oclif",
  "alias": false,
  "peer_metadata": null
}
3.8.1development
copyfiles
Environment
{
  "local_name": "copyfiles",
  "alias": false,
  "peer_metadata": null
}
^2.4.1development
strip-ansi
Environment
{
  "local_name": "strip-ansi",
  "alias": false,
  "peer_metadata": null
}
6.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^29.0.0development
@types/debug
Environment
{
  "local_name": "@types/debug",
  "alias": false,
  "peer_metadata": null
}
^4.1.7development
@types/which
Environment
{
  "local_name": "@types/which",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
@types/semver
Environment
{
  "local_name": "@types/semver",
  "alias": false,
  "peer_metadata": null
}
^7.3.13development
spawn-command
Environment
{
  "local_name": "spawn-command",
  "alias": false,
  "peer_metadata": null
}
0.0.2-1development
@types/js-yaml
Environment
{
  "local_name": "@types/js-yaml",
  "alias": false,
  "peer_metadata": null
}
^3.12.7development
@types/fs-extra
Environment
{
  "local_name": "@types/fs-extra",
  "alias": false,
  "peer_metadata": null
}
^9.0.13development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5bc14b250a0bde38529570299b995c2d7a57e85c",
  "tarball": "https://registry.npmjs.org/@0xgraph/cli/-/cli-0.0.4.tgz",
  "fileCount": 201,
  "integrity": "sha512-SHfxTsfMLgOBlhjlnbSZkMGT5huL/IwCFVtU7sv79h+ss+Jza3/lx2bYarbqtkbP0lXQI/d3P0M5yns8Th7J0Q==",
  "signatures": [
    {
      "sig": "MEUCIQCofYTjykiGtI/wW6AT+x+fU/jw3BS7Zr72iqjQvneUyQIgET+EFmPDQQT0FWk/gCdaHFbaycIafDHW8aQBTt0JUy0=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 658011
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:55 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0ba0f9b5f88b45a5eecff181920c7fec0569f58b7a882820a2efa35cecec525d

Other collected versions

0.2.12 Jul0.2.013 May0.1.131 Oct0.0.1010 Oct0.0.910 Aug0.0.89 AugView all collected versions →