# @greymass/eosio

> Library for working with EOSIO blockchains

Latest version **0.7.0** (published 2023-05-17) · BSD-3-Clause-No-Military-License license · 0 weekly downloads

## Install

```sh
npm install @greymass/eosio
pnpm add @greymass/eosio
yarn add @greymass/eosio
bun add @greymass/eosio
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2023-05-17 |
| First published | 2020-07-08 |
| Weekly downloads | 0 |
| License | BSD-3-Clause-No-Military-License |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | dafuga01, jesta, jnordberg |

## Links

- npm: https://www.npmjs.com/package/@greymass/eosio
- Homepage: https://github.com/greymass/eosio-core
- npm.io page: https://npm.io/package/@greymass/eosio

## Dependencies (5)

- [bn.js](https://npm.io/package/bn.js.md) ^4.11.9
- [tslib](https://npm.io/package/tslib.md) ^2.0.3
- [brorand](https://npm.io/package/brorand.md) ^1.1.0
- [hash.js](https://npm.io/package/hash.js.md) ^1.0.0
- [elliptic](https://npm.io/package/elliptic.md) ^6.5.4

## Recent versions

- 0.7.0 (latest) — 2023-05-17
- 0.6.5-rc1 (next) — 2022-12-08
- 0.6.11 — 2023-04-21
- 0.6.10 — 2023-04-07
- 0.6.9 — 2023-02-21
- 0.6.8 — 2022-12-20
- 0.6.7 — 2022-12-20
- 0.6.6 — 2022-12-14
- 0.6.5 — 2022-12-10
- 0.6.4 — 2022-09-05
- 0.6.3 — 2022-08-17
- 0.6.2 — 2022-08-09
- 0.6.1 — 2022-07-15
- 0.6.1-rc1 — 2022-07-13
- 0.6.0 — 2022-04-19
- … 46 more at https://npm.io/package/@greymass/eosio/versions

## README

# eosio-core (@greymass/eosio)

JavaScript library for working with EOSIO blockchains

Avaiable on npm: https://www.npmjs.com/package/@greymass/eosio

## Install

```
npm install @greymass/eosio
```

## API Documentation

https://greymass.github.io/eosio-core/

## Documentation

Documentation beyond the automatically generated API documentation above is currently incomplete. Until full documentation is complete, the tests themselves provide good reference material on how to do nearly everything.

https://github.com/greymass/eosio-core/tree/master/test

More:

-   Using APIs: https://github.com/greymass/eosio-core/blob/master/test/api.ts
-   Serialization: https://github.com/greymass/eosio-core/blob/master/test/serializer.ts
-   Crypto Operations: https://github.com/greymass/eosio-core/blob/master/test/crypto.ts
-   Primative EOSIO Types: https://github.com/greymass/eosio-core/blob/master/test/chain.ts

## Reporting Issues

If you think you've found an issue with this codebase, please submit a pull request with a failing unit test to better help us reproduce and understand the issue you are experiencing.

To do this, fork this repository and create your own branch. In this new branch, use the test scaffolding at the path below to write code that either fails to execute, throws an error, or doesn't return the anticipated response.

```
./test/bug-report.ts
```

This specific test can be run within the root project folder either using `make`:

```bash
grep="bug-report" make test
```

Or running `mocha` directly from the installed `./node_modules` folder:

```bash
TS_NODE_PROJECT='./test/tsconfig.json' ./node_modules/.bin/mocha -u tdd -r ts-node/register -r tsconfig-paths/register --extension ts test/*.ts --grep="bug-report"
```

Once your test is failing and successfully shows the issue occurring, please submit a pull request to this repository. Feel free to include any additional details in the body of the pull request that might help us understand the situation.

> NOTE: If you are performing API requests from within unit tests, you will need to prepend `MOCK_RECORD=true` to the above commands in order instruct the test running to execute and cache the API request. Any subsequent API requests will utilize this cache to prevent the test from continously accessing API endpoints. Prefixing your command with `MOCK_RECORD=overwrite` is also possible which forces the test to ignore the cache and fetch new data.

## Running Tests

### Run the unit test suite:

```
make test
```

### Run the unit test suite with coverage:

```
make coverage
```

The report for the current version can also be found at: https://greymass.github.io/eosio-core/coverage/

### Run the test suite in a browser:

```
make browser-test
```

The browser test suite for the current version of the library is available at: https://greymass.github.io/eosio-core/tests.html

## Debugging

Instructions and notes on debugging typescript in your IDE. Explains how to match the Mocha test configuration found in the Makefile.

[Notes on setting up IDE Debuggers](docs/IDE_Debug.md)

---
_Source: https://npm.io/package/@greymass/eosio · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
