# @hyperledger/cactus-plugin-htlc-eth-besu

> Allows Cactus nodes to interact with HTLC ETH contracts

Latest version **2.0.0** (published 2024-10-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @hyperledger/cactus-plugin-htlc-eth-besu
pnpm add @hyperledger/cactus-plugin-htlc-eth-besu
yarn add @hyperledger/cactus-plugin-htlc-eth-besu
bun add @hyperledger/cactus-plugin-htlc-eth-besu
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; large bundle.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-10-18 |
| First published | 2021-07-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 15 |
| Unpacked size | 27.9 MB |
| Known vulnerabilities | 0 (+39 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 411 |
| Author | Hyperledger Cactus Contributors |
| Maintainers | hyperledger-ghci, hyperledger-lf |
| Keywords | Hyperledger, Cactus, Integration, Blockchain, Distributed Ledger Technology |

## Links

- npm: https://www.npmjs.com/package/@hyperledger/cactus-plugin-htlc-eth-besu
- Repository: https://github.com/hyperledger/cacti
- Homepage: https://github.com/hyperledger/cacti#readme
- Issues: https://github.com/hyperledger-cacti/cacti/issues
- npm.io page: https://npm.io/package/@hyperledger/cactus-plugin-htlc-eth-besu

## Dependencies (15)

- [joi](https://npm.io/package/joi.md) 17.13.3
- [axios](https://npm.io/package/axios.md) 1.7.7
- [bn.js](https://npm.io/package/bn.js.md) 5.2.1
- [dotenv](https://npm.io/package/dotenv.md) 16.0.3
- [ethers](https://npm.io/package/ethers.md) 6.3.0
- [express](https://npm.io/package/express.md) 4.21.0
- [openapi-types](https://npm.io/package/openapi-types.md) 12.1.3
- [web3js-quorum](https://npm.io/package/web3js-quorum.md) 22.4.0
- [typescript-optional](https://npm.io/package/typescript-optional.md) 2.0.1
- [@hyperledger/cactus-core](https://npm.io/package/@hyperledger/cactus-core.md) 2.0.0
- [@hyperledger/cactus-common](https://npm.io/package/@hyperledger/cactus-common.md) 2.0.0
- [@hyperledger/cactus-core-api](https://npm.io/package/@hyperledger/cactus-core-api.md) 2.0.0
- [@hyperledger/cactus-test-tooling](https://npm.io/package/@hyperledger/cactus-test-tooling.md) 2.0.0
- [@hyperledger/cactus-plugin-keychain-memory](https://npm.io/package/@hyperledger/cactus-plugin-keychain-memory.md) 2.0.0
- [@hyperledger/cactus-plugin-ledger-connector-besu](https://npm.io/package/@hyperledger/cactus-plugin-ledger-connector-besu.md) 2.0.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

- 2.0.0 (latest) — 2024-10-18
- 2.0.0-main.339 (main) — 2024-06-13
- 2.0.0-2945-supply-chain-app-build-failed.241 (2945-supply-chain-app-build-failed) — 2024-03-08
- 2.0.0-lfx-connector.208 (lfx-connector) — 2024-02-07
- 2.0.0-dev.197 (dev) — 2024-01-25
- 2.0.0-build-deps-upgrade-to-lerna-lite-v3-1-0-config-fix.126 (build-deps-upgrade-to-lerna-lite-v3-1-0-config-fix) — 2023-12-08
- 1.0.1-jwt-supply-chain.9df3fe79.16 (jwt-supply-chain) — 2022-04-05
- 0.8.1-pr-brioux-1333.92b26c3a.36 (pr-brioux-1333) — 2021-10-06
- 0.10.1-fix-quorum-api-server.0677a0e6.4 (fix-quorum-api-server) — 2021-09-29
- 0.10.1-fix-quorum-no-keychain-endpoints.bf5e0403.1 (fix-quorum-no-keychain-endpoints) — 2021-09-28
- 0.9.1-ci-942.cbb849c6.35 (ci-942) — 2021-09-27
- 0.9.1-add-bluebird-dependency.a8944f63.33 (add-bluebird-dependency) — 2021-09-23
- 0.9.1-web-socket-identity-provider.845e2a3e.23 (web-socket-identity-provider) — 2021-09-16
- 0.9.1-docs-1312.bcfd3c31.6 (docs-1312) — 2021-09-09
- 0.8.1-vaultTransitKeychain.5ad9cac4.17 (vaultTransitKeychain) — 2021-08-30
- … 35 more at https://npm.io/package/@hyperledger/cactus-plugin-htlc-eth-besu/versions

## README

# @hyperledger/cactus-plugin-htlc-eth-besu

Allows `Cacti` to interact with HTLC contract manager. 


## Summary

  - [Getting Started](#getting-started)
  - [Installing](#installing)
  - [Runing the tests](#running-the-tests)
  - [Contributing](#contributing)
  - [License](#license)


## Getting Started
The smart contracts and rationalle ane explained in detail in <a href=https://medium.com/@rafaelbelchior/dlt-interoperability-and-more-%EF%B8%8F-24-privacy-preserving-cross-chain-atomic-swaps-bonus-lets-ff99a90714de> this Medium article </a>.

These instructions will get you a copy of the project up and running on
your local machine for development and testing purposes.

### Installing

Install Foundry: https://book.getfoundry.sh/getting-started/installation

Steps to compile the project: `forge build`.



## Running the tests

The tests can be found in @hyperledger/cactus-test-htlc-eth-besu. To run this, in the root project execute:

```sh
npm run test:plugin-htlc-besu
```

To run the solidity tests (within the root directory of this package):
`forge test --match-contract PrivateHashTimeLockTest`

To run a specific function:
`forge test --match-contract PrivateHashTimeLockTest --match-test testDeployment`

Run ALL the solidity tests: `forge test -vvvv`


## Contributing

We welcome contributions to Hyperledger Cactus in many forms, and there’s always plenty to do!

Please review [CONTRIBUTING.md](../../CONTRIBUTING.md) to get started.

## Nohoist configuration
Foundry uses ``forge-std``and ``ds-test``modules for testing purposes. Given that Foundry cannot access files outside of the project, we use nohoist to force lerna to download the packages within the Forge project directory:

``
    "nohoist": [
      "**/iroha-helpers",
      "**/forge-std",
      "**/forge-std/**"
    ]
  },
``

If in the future Forge supports importing Solidity files from outside the project, the imports/re-mappings can be updated and the nohoist configuration removed.

## License

This distribution is published under the Apache License Version 2.0 found in the [LICENSE](../../LICENSE) file.

---
_Source: https://npm.io/package/@hyperledger/cactus-plugin-htlc-eth-besu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
