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

@tokensoft/sdk

v1.1.1

Published

![Logo](./docs/img/logo.png)

Downloads

119

Readme

@tokensoft/sdk

Logo

Installation

$ yarn add @tokensoft/sdk

Roles

Investor:

  • Retail - Create and manage your account
  • Institutional - Create an account for your entity or fund
  • Broker Dealer or RIA - Create accounts on behalf of your clients

Administrator:

  • Broker Dealer ATS - Create accounts at the Tokensoft Transfer Agent and associate wallets with accounts.
  • Exchange - Create accounts at Tokensoft or the Tokensoft Transfer agent and associate wallets with accounts.

Assets

Every administrator will need unique credential per asset. Each set of credentials will enable an administrator to whitelist wallets to be authorized to hold the tokens.

Administrator Authentication

Generate an API key from the dashboard/api-settings page of the TokenSoft admin platform and export it on the command line:

$ export KEY_ID='TSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
$ export SECRET_KEY='TSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Authorize a User

In order for an investor or user to hold a security token, they must be authorized to do so by the administrator. The sample code below demonstrates this process.

import { TokensoftSDK } from '@tokensoft/sdk'

const issuerEndpoint = 'https://app.arcalabs.com'

const client = new TokensoftSDK(issuerEndpoint, process.env.KEY_ID, process.env.SECRET_KEY)

const transactionHash = await client.authorizeUser('[email protected]', '0x00192fb10df ... 3cd1bf599e8', {
  firstName: "john",
    lastName: "doe",
    address: {
      streetAddress: "123 abc street",
      city: "San Francisco",
      state: "CA",
      zip: "94000",
      country: "US"
    }
  }
)

Changelog

0.0.5 -> 1.0.0 (Breaking Change)

  • Changed return value of sendRequest to an object including both .data and .errors. Calls to currentUser, authorizeUser, and AdminParticipantUsers wrap this but remain unchanged in their return value.

1.0.0 -> 1.1.0

  • Added recordPayment function which can be used to call the externalRecordPayment endpoint

1.1.0 -> 1.1.1

  • Refactored recordPayment to return an error if there is one