Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@alebusse/statics
Advanced tools
dependency-free static configuration for the bitgo platform
@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 @alebusse/statics receives a total of 0 weekly downloads. As such, @alebusse/statics popularity was classified as not popular.
We found that @alebusse/statics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.