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

@gear-js/cli

v0.0.8

Published

<p align="center"> <a href="https://gear-tech.io"> <img src="https://github.com/gear-tech/gear/blob/master/images/logo-grey.png" width="400" alt="GEAR"> </a> </p> <p align=center> <a href="https://github.com/gear-tech/gear-js/blob/master/LICEN

Downloads

12

Readme

Description

A CLI tool that allows sending transactions to the Gear node based on yaml file.

Installation

npm install -g @gear-js/cli

Usage

First of all you need to create a .yaml file with all actions you want to perform.

To run workflow use this command

gear-js workflow path/to/workflow.yaml

You can also specify some arguments to be used instead of the unknown parts of the payloads ($cli token_name)

gear-js workflow path/to/workflow.yaml -a token_name=MY_NFT url=https://gear-tech.io

To specify the endpoint of the node to connect to, use the CLI argument --ws.

gear-js workflow path/to/wotkflow.yaml --ws wss://rpc-node.gear-tech.io

Structure of the workflow file

  1. Accounts There are a few ways to specify an account:
  • Using mnemonic phrase
  • Using seed
  • Using well-known account such as Alice and Bob
accounts:
  alice: bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice
  bob: //Bob
  my_account: '0x...seed'
  1. Fund accounts If you need to fund some of specified accounts you need to provide account name that already has balance to fund other accounts.
prefunded_account:
  alice

fund_accounts:
  my_account: 1000000000
  1. Programs Specify in this section all the programs you want to upload or interact with.
programs:
  - id: 0
    address: '0xa5291ad71150456ecf304d12c8e4bc0d01fbcc203b9fa92532bf50c0377f87c4'
    path_to_meta: ./programs/nft.meta.txt

  - name: Non-Fungible Token 1
    id: 1
    path_to_wasm: ./programs/nft.opt.wasm
    path_to_meta: ./programs/nft.meta.txt
    payload: 
      name: GNFT
      symbol: GNFT
      base_uri: https://gear-tech.io
      royalties: null
  1. Transactions Specify all the transaction you want to perform. It's possible to specify unknown parts of the payloads (such as program, code, acc).
  • $program 0 will be replaced by the programId of the uploaded program under id 0
  • $code 1 will be replaced by the code id of the uploaded code under id 1
  • $account alice will be replaced by the Alice public key
  • $cli token_name will be replaced by the argument that you provide in the cli interface
transactions:
  - type: upload_program
    program: 1
    account: alice

  - type: send_message
    program: 0
    account: bob
    payload:
      Mint:
        transaction_id: 0
        token_metadata: 
          TokenMetadata:
            name: $cli token_name
            description: $program 1
            media: https://
            reference: https://
    value: 0