# @huma-shan/advanced-logic

> Main package for the Advanced Request Network logic layer.

Latest version **0.39.0** (published 2023-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @huma-shan/advanced-logic
pnpm add @huma-shan/advanced-logic
yarn add @huma-shan/advanced-logic
bun add @huma-shan/advanced-logic
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.39.0 |
| Published | 2023-02-12 |
| First published | 2022-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 6 |
| Unpacked size | 291.7 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | huma-shan |
| Keywords | requestnetwork, advanced-logic |

## Links

- npm: https://www.npmjs.com/package/@huma-shan/advanced-logic
- Repository: https://github.com/RequestNetwork/requestNetwork
- Homepage: https://github.com/RequestNetwork/requestNetwork/tree/master/packages/advanced-logic#readme
- Issues: https://github.com/RequestNetwork/requestNetwork/issues
- npm.io page: https://npm.io/package/@huma-shan/advanced-logic

## Dependencies (6)

- [tslib](https://npm.io/package/tslib.md) 2.5.0
- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [@types/node](https://npm.io/package/@types/node.md) 16.11.7
- [@huma-shan/types](https://npm.io/package/@huma-shan/types.md) 0.40.0
- [@huma-shan/utils](https://npm.io/package/@huma-shan/utils.md) 0.40.0
- [@huma-shan/currency](https://npm.io/package/@huma-shan/currency.md) 0.13.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.39.0 (latest) — 2023-02-12
- 0.38.0 — 2023-02-09
- 0.37.0 — 2023-02-07
- 0.36.8 — 2023-02-07
- 0.36.7 — 2023-02-07
- 0.36.6 — 2023-02-06
- 0.36.5 — 2023-02-03
- 0.36.4 — 2022-12-14
- 0.36.3 — 2022-12-08
- 0.36.2 — 2022-11-18
- 0.36.1 — 2022-11-18
- 0.36.0 — 2022-11-18

## README

# @huma-shan/advanced-logic

`@huma-shan/advanced-logic` is a typescript library part of the [Request Network protocol](https://github.com/RequestNetwork/requestNetwork).
It is the default implementation of the Advanced Logic layer. This layer hosts the extensions to the protocol, see Implemented Extensions for the list.

## Installation

```bash
npm install @huma-shan/advanced-logic
```

## Specifications

Specifications of Advanced Logic can be found [here](/packages/advanced-logic/specs/advanced-logic-specs-0.1.0.md)

## Implemented Extensions

### Content Data

This extension allows linking content data to the request. The content data can be used to give extra information about the request. You can find examples of content data format [here](/packages/data-format).

Specifications of Content Data can be found [here](/packages/advanced-logic/specs/content-data-0.1.0.md)

### Declarative payments

This extension allows the payments and the refunds to be made in any currency.
The payments and refunds are documented by the payer and the payee of the request.

This extension do not ensure payment detection, only a consensus is made between the payer and the payee.

Specifications of Declarative payments can be found [here](/packages/advanced-logic/specs/payment-network-any-declarative-0.1.0.md)

### Address based bitcoin payments

This extension allows the payments and the refunds to be made on the Bitcoin blockchain.

Note: this extension can be used with the bitcoin mainnet and testnet.

Specifications of Address based bitcoin payments can be found [here](/packages/advanced-logic/specs/payment-network-btc-address-based-0.1.0.md)

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
[Read the contributing guide](/CONTRIBUTING.md)

## License

[MIT](/LICENSE)

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