Skip to content
Various base modules related to Stellar
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
src
.eslintrc.json
.gitignore
.npmignore
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
LICENSE.md
README.md
_config.yml
babel.config.js
package.json

README.md

base / ReadmeContributingChangelog

Readme

Licence Dependencies Vulnerabilities Downloads Bundle

This package contains various modules related to Stellar on which higher-level cosmic-plus libraries depends.

Note: This is an internal library and may be modified in compatibility-breaking ways.

Install & Import

  • Npm npm install @cosmic-plus/base
  • Yarn yarn add @cosmic-plus/base

Then: const { $module, ... } = require("@cosmic-plus/base")

To pick a module: const $module = require("@cosmic-plus/base/es5/$module")

Modules

Configuration

  • wallets: A list of wallets that accept arbitrary Stellar transactions as input.

Utils

  • friendbot: A function that fund a wallet on testnet: frienbot(publicKey).

Dispatchers

Dispatchers implements different way to load modules depending on whether the environment is Node.js or browser.

  • axios Get Axios from StellarSdk when using browser environment to save loading time.
  • buffer Get Buffer from StellarSdk when using browser environment to save loading time.
  • stellar-sdk Get StellarSdk from global environment when using browser environment.

Additional Resources

Links

Organization: Cosmic.plus | @GitHub | @NPM

Follow: Reddit | Twitter | Medium | Codepen

Talk: Telegram | Keybase

You can’t perform that action at this time.