open-index/open-npm huggingface dataset:
npm package: @stellarcarbon/sc-sdk
Description: TypeScript SDK for the Stellarcarbon API
Latest version: 0.23.0

# Stellarcarbon API Typescript SDK

The Stellarcarbon Typescript SDK can be used to easily use the Stellarcarbon API in your typescript project.

Check out the Stellarcarbon API specification docs here: https://api.stellarcarbon.io/docs

By default the Stellarcarbon API and its SDK will connect with the Stellar mainnet.

## Installation

`npm install @stellarcarbon/sc-sdk`

## Example usage

A function that fetches the transactions list made with a given wallet pubkey.

```ts
import { getSinkTxList, SinkTxListResponse } from "@stellarcarbon/sc-sdk";

const fetchTxListForFunder = async (
  pubKey: string
): Promise<SinkTxListResponse | undefined> => {
  const { data } = await getSinkTxList({
    query: {
      for_funder: pubKey,
    },
  });
  return data;
};
```

CARBON quote

Get a quote of the current CARBON price in USD.

```ts
import { getCarbonQuote, CarbonQuoteResponse } from "@stellarcarbon/sc-sdk";

const fetchQuote = async (): Promise<CarbonQuoteResponse | undefined> => {
  const { data } = await getCarbonQuote();
  return data;
};
```

## Testnet

We also have an API that is connected to the Stellar testnet: https://testnet-api.stellarcarbon.io. This is our development environment so it may be unstable. Connecting to the testnet API is currently not supported in this SDK. However, you could just swap the base URL and hope the schema has not changed too much:

```ts
import { client } from "@stellarcarbon/sc-sdk";

client.setConfig({
  baseUrl: "https://testnet-api.stellarcarbon.io",
});

fetchQuote(); // Fetches the quote on testnet
```

API schema & docs for the testnet API are available at https://testnet-api.stellarcarbon.io/docs
npm package: @stellarguard/multisig-utils
Description: Utilities for working with Stellar mulitsig.
Latest version: 2.0.1

# @stellarguard/multisig-utils

Utilities for working with Stellar mulitsig.

## Installation

```bash
npm install @stellarguard/multisig-utils --save
# or
yarn add @stellarguard/multisig-utils
```

## Usage

```js
import {
  needsMoreSignatures,
  getMultisigServerEndpoint,
  submitToMultisigServer
} from '@stellarguard/multisig-utils';

const moreSignatures = await needsMoreSignatures(transaction, server);

if (moreSignatures) {
  const multisigEndpoint = await getMultisigServerEndpoint(
    moreSignatures[0].account
  );

  const result = await submitToMultisigServer(transaction, multisigEndpoint);

  if (result.stellarGuard) {
    console.log(`Authorize your transaction at ${result.url}`);
  }
}
```

## Examples

See [example.ts](https://github.com/stellarguard/multisig-utils/blob/master/src/example.ts) for examples.

Try a [live demo](https://stellarguard.github.io/multisig-utils/demo).

## Limitations

1. needsMoreSignatures currently only works with public key signers.
2. needsMoreSignatures does not correctly identify that an account needs more signatures if the transaction changes something (like adds more signers, creates new accounts and then uses them, changes thresholds) that would then require more signers for a later operation in the transaction.
npm package: @stellarguard/sdk
Description: Browser and NodeJS SDK for interacting with StellarGuard.me API.
Author: StellarGuard.me
Latest version: 1.4.1

# stellarguard-js-sdk

JavaScript SDK for StellarGuard.me

## Installation

`npm install @stellarguard/sdk --save` or `yarn add @stellarguard/sdk`

## Usage

```js
var StellarGuardSdk = require('@stellarguard/sdk');
StellarGuardSdk.useTestNetwork(); // or StellarGuardSdk.usePublicNetwork();

if(StellarGuardSdk.hasStellarGuard(account)) {
  StellarGuardSdk.submitTransaction(transaction)
    .then(function(result) {
      console.log(result.url); // https://test.stellarguard.me/transactions/<id>
    });
}
```

## Examples

* [Submitting a Transaction](examples/submitTransaction.js)
* [Getting Basic Account Information](examples/getAccount.js)
* [Getting Multisig Setup XDR as Pre-Activation Step](examples/getMultisigSetup.js)
* [Activating an Account after Multisig is Setup](examples/activateAccount.js)
npm package: @stellarguard/secret-memo
Description: Create secret memos for Stellar transactions.
Latest version: 3.0.1

# @stellarguard/secret-memo

Create secret memos for Stellar transactions in NodeJS.

Uses AES-256 with a random initialization vector to encrypt and decrypt memos.

Use this if you want to place data in Stellar memos that you don't want other to be able to read. Also, because of the random initilization vector used when encrypting the memo, the result will be different even when run with the same data. This makes it perfect to use when you want to protect your users from data leakage that could allow someone to link two accounts together, such as when reusing the same id for exchange deposits.

Combine that with a federation server that is used to generate the memo and you all of a sudden have a convenient, safe, and private deposit experience.

Note: Because of the randomness added when encrypting, Secret memos can only be 23 characters long.

# Installation

## npm

`npm install --save @stellarguard/anoymous-memo`

## yarn

`yarn add @stellarguard/anonymous-memo`

Requires `stellar-sdk` as an peer dependency.

# Usage

```js
import { SecretMemo } from '@stellarguard/secret-memo';
// or const { SecretMemo } = require('@stellarguard/secret-memo');

const secretKey = 'its a secret to everybody'; // keep it secret, keep it safe
const secretMemo = new SecretMemo(secretKey);

// create the secret and add to a transaction
const transaction = new TransactionBuilder(sourceAccount)
  .addMemo(secretMemo.toMemo('drink more ovaltine'))
  .addOperation(operation)
  .build();

// read the secret from the transaction
const mySecret = secretMemo.fromMemo(transaction.memo); // drink more ovaltine
```

See a [working example](./examples/examples.js) for more details.
npm package: @stellarguard/txrep
Description: Convert from to and from txrep (SEP0011) and XDR
Latest version: 2.0.0

# @stellarguard/txrep

[![Latest Version](https://img.shields.io/npm/v/@stellarguard/txrep.svg)](https://img.shields.io/npm/v/@stellarguard/txrep.svg)
[![NodeJS Support](https://img.shields.io/node/v/@stellarguard/txrep.svg)](https://img.shields.io/node/v/@stellarguard/txrep.svg)

A TypeScript/JavaScript implementation of [SEP-0011](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0011.md), a human-readable Stellar transaction representations.

## Installation

```bash
npm install @stellarguard/txrep --save
# or
yarn add @stellarguard/txrep
```

## Examples

[See a live demo](https://stellarguard.github.io/txrep/demo)

### Converting a Transaction to Txrep

```js
import { toTxrep } from '@stellarguard/txrep';
import { Transaction, Networks } from 'stellar-sdk';

const xdr = 'AAAAACsWS5BDhC5BjpKQtznHFJ3CkU6+XtWopW+t+Q9KoH7QAAAAZAClKY0AAAABAAAAAQAAAABbicmAAAAAAF1q/QAAAAABAAAAFkVuam95IHRoaXMgdHJhbnNhY3Rpb24AAAAAAAEAAAAAAAAAAQAAAABAXzbt2M8i77+AcrmFtqTAFVHDTdOME3rI1A1ALNH3tAAAAAFVU0QAAAAAADJSVDIhkp9uz61Ra68rs3ScZIIgjT8ajX8Kkdc1be0LAAAAABfXk6AAAAAAAAAAAUqgftAAAABA3vtPH60cJ5MntVrxhP3N33P096jLQOflNKcdc6BRJLo2nbem0xtHyv0RhZIkaoV15sJJq5TsN2je22KSIhzlDA=='
const tx = new Transaction(xdr, Networks.TESTNET);
const txrep = toTxrep(tx);
```

### Converting Txrep to Transaction

### Creating and signing a transaction URI

```js
import { toTransaction } from '@stellarguard/txrep';
import { Networks } from 'stellar-sdk';

const txrep = `
tx.sourceAccount: GAVRMS4QIOCC4QMOSKILOOOHCSO4FEKOXZPNLKFFN6W7SD2KUB7NBPLN
tx.fee: 100
tx.seqNum: 46489056724385793
tx.timeBounds._present: true
tx.timeBounds.minTime: 1535756672 (Fri Aug 31 16:04:32 PDT 2018)
tx.timeBounds.maxTime: 1567292672 (Sat Aug 31 16:04:32 PDT 2019)
tx.memo.type: MEMO_TEXT
tx.memo.text: "Enjoy this transaction"
tx.operations.len: 1
tx.operations[0].sourceAccount._present: false
tx.operations[0].body.type: PAYMENT
tx.operations[0].body.paymentOp.destination: GBAF6NXN3DHSF357QBZLTBNWUTABKUODJXJYYE32ZDKA2QBM2H33IK6O
tx.operations[0].body.paymentOp.asset: USD:GAZFEVBSEGJJ63WPVVIWXLZLWN2JYZECECGT6GUNP4FJDVZVNXWQWMYI
tx.operations[0].body.paymentOp.amount: 400004000 (40.0004e7)
tx.ext.v: 0
signatures.len: 1
signatures[0].hint: 4aa07ed0 (GAVRMS4QIOCC4QMOSKILOOOHCSO4FEKOXZPNLKFFN6W7SD2KUB7NBPLN signer for account GAVRMS4QIOCC4QMOSKILOOOHCSO4FEKOXZPNLKFFN6W7SD2KUB7NBPLN)
signatures[0].signature: defb4f1fad1c279327b55af184fdcddf73f4f7a8cb40e7e534a71d73a05124ba369db7a6d31b47cafd118592246a8575e6c249ab94ec3768dedb6292221ce50c
`;

const tx = toTransaction(txrep, Networks.TESTNET);
```

## Contributing

Want to contribute? Consider adding additional test cases to [tests.yaml](./tests.yaml).

You can install the reference implementation at https://github.com/xdrpp/stc and then convert XDRs using: `stc example.xdr`
npm package: @stellaris/hooks
Description: A personal library of React hooks. May open source later.
Latest version: 0.4.7

# @stellaris/hooks

A personal library of React hooks. May open source later.

## Installation

```shell
  npm i @stellaris/hooks    // with npm
  pnpm add @stellaris/hooks // with pnpm
  yarn add @stellaris/hooks // with yarn
```

## Using

TODO...

## Tdo
npm package: @stellaris/lynx-editor
Description: a notion-like markdown editor
Latest version: 0.1.10

# Vite + React + Typescript + Eslint + Prettier

A starter for build React hooks library with Typescript with the fast Vite and all static code testing with Eslint and formatting with Prettier.

[Vite](https://github.com/vitejs/vite) + [React](https://reactjs.org/) + [Typescript](https://www.typescriptlang.org/) + [Eslint](https://eslint.org/) + [Prettier](https://prettier.io/)

## Installation

```shell
  degit anilpixel/vite-react-ts-eslint-prettier
  pnpm install
```

## Start

After the successful installation of the packages: `pnpm dev`

## Build

`pnpm build`