Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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
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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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.