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

@starspaceio/fixed-price-market

v1.0.3

Published

smart contract cli and sdk

Downloads

2

Readme

fixed-price-market

This package contains the command line client (cli) and software development kit (sdk) for interacting with the starspace fixed price market smart contracts and related graphql apis.

Development tips

yarn run watch is your friend.

Assuming watch is running w/o errors, you can interact with the cli by running: yarn exec --silent -- fixed-price-market eg:

yarn exec --silent -- fixed-price-market help list-token
Usage: fixed-price-market list-token [options] <creator-address> <collection-name> <token-name> <price>

Options:
  -c, --config <string>  aptos config (default: ".aptos/config.yaml")
  -m, --module <string>  module address
  -s, --seller <string>  aptos profile (default: "default")
  -h, --help             display help for command

Listing allowed collections

Use this command to see what collection allowed events we've ingested.

NOTE: this doesn't query the smart contract, but could be extended to do so in the future & probably will to aid in debugging production operations.

Usage:

yarn exec --silent -- fixed-price-market list-allowed-collections --help
Usage: fixed-price-market list-allowed-collections [options]

Options:
  -g, --graphql-endpoint <string>  module address (default: "http://127.0.0.1:9080/v1/graphql")
  -h, --help                       display help for command

Output:

yarn exec --silent -- fixed-price-market list-allowed-collections
{
  collection_allowed_events: [
    {
      id: 1,
      creator: '0xf6a8a0ee635650380698faf248066b006d11c2c2543d3b2cb75f93db4bbf21ba',
      collection: 'Degen Simians',
      collection_data_id_hash: 'a429bf9f77f0b1691c8e374edb33311eaa6d83758a063658f73255b3034634e9',
      __typename: 'collection_allowed_events'
    },
    {
      id: 2,
      creator: '0xefee40464ff3d55eaae1ad483550b466659ce0a593ae695541c0c1e91f2bf984',
      collection: 'Degen Simians',
      collection_data_id_hash: '8a943dd1851d3a7d754de7964508317999b3fe381e1456788f14d42c3853a8b8',
      __typename: 'collection_allowed_events'
    }
  ]
}