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

@vladpryad/quick

v1.0.3

Published

CLI tool for quick asset issuing on Stellar network.

Downloads

3

Readme

quick-asset

Tool for quick asset issuing and offers volume creating on Stellar network. This CLI provides some quick mocking functions for Stellar test network.

You need to create TWO files:

stellarfile.yaml

Consists of declaration of the network you are using. Minimum content - one line (if it's test or public network)

network: test  
horizon: https://horizon-testnet.stellar.org  
passphrase: Public Global Stellar Network ; September 2015  

assetfile.yaml

Declares assets, that needs to be created (alphanum12/alphanum4 - does not matter) and pairs, that needs to be populated with offers. IMPORTANT! Cross section - all assets will be crossed: [A,B,C] => A/B, B/A, A/C, C/A, B/C, C/B. Single section allows you to specify what pairs you want: [A/B, A/C] => A/B, A/C.

assets:  
  - code: SECOND  
    issuer: KBKJBHJKBHJVDBKJLCB  
    distributor: HJBKJHBJ  
  - code: THIRD  
    issuer: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3 
    distributor: SCC577JZZ5KJDRSXRV7P7SDZFUVDWGQVKXUIB27ORVXP  
  - code: XLM  
    issuer:   
pairs:
  cross:
    - code: SECOND
      issuer: SDUYL5KXJ26EV6JTZXNKDI33GWAZRV426O7POENXL2525ZL2EZRVXNAK
      distributor: SAS3BKJYYFB7PELOZTONMUJ3TDVCKL3COTVWABSAEHE7FK2LH2YKO56L
    - code: THIRD
      issuer: SCOKXK375V5OI5KNZOOLGDAZFJPPBDYKADATS5BQSWXU5I3BPHKPUQOK
      distributor: SD7P6QAOXQO2DJJXEHIS3QDIYJXJMMNCRIC4NM55H2Q5AOXSDUWKCMQR
    - code: XLM
      issuer: 
      distributor: SDPHPIUOJJRTT6FXPGDQGLULUQPGUYWH6UU5DJLUCUYSWQ7PVRCZETFW
  single:
    - selling: 
        code: FOURTH
        issuer: SBN7V3HOXZPNJ5W5IY3GKWIG2H5TX32Y2DPYIWBIRXTECRY6S7UZSWPH 
        distributor: SD4XWYYEX3X6TDEU3GDBIMKOERL3P2KZIFQ5RWWBVBI5VBSQA4OHBIJK
      buying: 
        code: FIRST
        issuer: SD4NGJLJL3QSF5TXQ2HJGOITYT7U4YUPQ45CSTUA3BPZUIPHBOSOJG4Z
        distributor: SBAAVOMTY4NWRTZLMQ4AQQRXADANUSXS3ZRTIC4IKW3NNJH3CSL4EBSK

All invalid (e.g. empty) private keys (yes, all of them must be secret keys) will be replaced with random keys.

Usage

Create these files and launch npx @vladpryad/quick --[flag] [flag] can be:
--issue : issue assets and create distributors
--populate : create sell/buy offers for needed assets (asset pairs) --all : first create assets and then populate network with their offers

Output

CLI will generate file stellarcreds.env with all the credentials.

Important

If you want to create and populate same assets, you NEED to specify them both in assets and pairs sections. The main reason - populate method can create missing accounts, but it can't distribute an asset. So if you want to create assets A, B and C and create offers between them, you need:

  1. create standart stellarfile.yaml
  2. create assetfile.yaml for assets:
 assets:  
  - code: A  
    issuer:  
    distributor: 
  - code: B  
    issuer:  
    distributor:   
  - code: C  
    issuer: 
  1. run npx @vladpryad/quick --issue
  2. copy keys from stellarcreds.env to pairs section in assetfile.yaml
 pairs:
  cross:
    - code: A
      issuer: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3
      distributor: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3
    - code: B
      issuer: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3
      distributor: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3
    - code: C
      issuer: 
      distributor: SC6R773OZEEHP4T5QUV3RDGNYYFW5H3HZ5PS6QOWWFPSENSVL3
  1. run npx @vladpryad/quick --populate
    6*) native XLM asset always goes with empty "issuer" field, but it needs "distributor" in pairs section either.

Sometimes Stellar network randomly/due to timeout rejects some transactions, so if you expose "tx_bad_seq" error and 'op_[buy/sell]no_trust', just run the script few more times.