Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@bitgo/statics
Advanced tools
@bitgo/statics
const { coins } = require('@bitgo/statics');
const btc = coins.get('btc');
console.log(btc.decimalPlaces);
import { coins } from '@bitgo/statics';
const btc = coins.get('btc');
console.log(btc.decimalPlaces);
const { coins } = require('@bitgo/statics');
const omg = coins.get('omg');
console.log(omg.contractAddress);
import { coins, Erc20Coin } from '@bitgo/statics';
const omg = coins.get('omg');
if (omg instanceof Erc20Coin) {
console.log(omg.contractAddress);
}
const { coins } = require('@bitgo/statics');
coins.forEach((coin) => {
console.log(coin.fullName);
});
import { coins } from '@bitgo/statics';
coins.forEach((coin) => {
console.log(coin.fullName);
});
src/base.ts
: Interfaces and enums used by coin implementation classes.src/coins.ts
: Coin definitions.src/networks.ts
: Network interfaces and implementation classes.src/utxo.ts
: Unspent Transaction Output (UTXO) based coin classes and factory function.src/account.ts
: Account-based coin classes and factory methods. Includes ERC20 factory functions.src/errors.ts
: Custom Error classes.To install the project locally, run the following steps:
$ # clone the project locally
$ git clone git@github.com:BitGo/statics.git
$ # npm install dependencies (optionally use node >8.6.0)
$ # (optionally) nvm install 8.6.0 -- required to run the linter which is executed pre-commit
$ # (optionally) nvm use 8.6.0
$ npm install
To build the project (from TypeScript to Javascript):
$ npm run build
This builds the Javascript and adds it to dist/src/
. You will receive compilation errors if you have invalid syntax.
To run tests:
$ npm run test
FAQs
dependency-free static configuration for the bitgo platform
The npm package @bitgo/statics receives a total of 5,437 weekly downloads. As such, @bitgo/statics popularity was classified as popular.
We found that @bitgo/statics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.