Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@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 10,358 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 15 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.