@hyperledger/cactus-plugin-htlc-eth-besu
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Allows Cacti to interact with HTLC contract manager.

Summary

Getting Started

The smart contracts and rationalle ane explained in detail in this Medium article .

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:

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 to get started.

Nohoist configuration

Foundry uses forge-stdand ds-testmodules 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 file.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0-main.3392main
2.0.0-lfx-connector.2082lfx-connector
2.0.0-dev.1972dev
2.0.0-build-deps-upgrade-to-lerna-lite-v3-1-0-config-fix.1262build-deps-upgrade-to-lerna-lite-v3-1-0-config-fix
2.0.0-2945-supply-chain-app-build-failed.24122945-supply-chain-app-build-failed
2.0.02latest
1.0.1-jwt-supply-chain.9df3fe79.162jwt-supply-chain
0.9.1-web-socket-identity-provider.845e2a3e.232web-socket-identity-provider
0.9.1-docs-1312.bcfd3c31.62docs-1312
0.9.1-ci-942.cbb849c6.352ci-942
0.9.1-add-bluebird-dependency.a8944f63.332add-bluebird-dependency
0.8.1-vaultTransitKeychain.5ad9cac4.172vaultTransitKeychain
0.8.1-pr-brioux-1333.92b26c3a.362pr-brioux-1333
0.7.1-fix-1226.7df02452.102fix-1226
0.5.1-feat-1122.01a4d64d.1302feat-1122
0.10.1-fix-quorum-no-keychain-endpoints.bf5e0403.12fix-quorum-no-keychain-endpoints
0.10.1-fix-quorum-api-server.0677a0e6.42fix-quorum-api-server

Version History

VersionDownloads (Last 7 Days)Published
2.0.02
2.0.0-rc.72
2.0.0-rc.22
2.0.0-rc.12
2.0.0-main.3392
2.0.0-2945-supply-chain-app-build-failed.2412
2.0.0-main.2142
2.0.0-lfx-connector.2082
2.0.0-dev.1972
2.0.0-dev.1962
2.0.0-dev.1952
2.0.0-lfx-connector.1642
2.0.0-lfx-connector.1632
2.0.0-main.1592
2.0.0-build-deps-upgrade-to-lerna-lite-v3-1-0-config-fix.1262
2.0.0-main.912
2.0.0-dev.942
2.0.0-dev.932
2.0.0-alpha.22
2.0.0-alpha.12
1.1.32
1.1.02
1.1.13
1.1.22
1.0.1-jwt-supply-chain.9df3fe79.162
1.0.03
1.0.0-jwt-supply-chain.62c7e930.02
1.0.0-main.334593a7.462
1.0.0-rc.32
1.0.0-rc.22
1.0.0-rc.12
0.8.1-pr-brioux-1333.92b26c3a.362
0.10.1-fix-quorum-api-server.0677a0e6.42
0.10.1-fix-quorum-no-keychain-endpoints.bf5e0403.12
0.10.02
0.9.1-ci-942.cbb849c6.352
0.9.1-fix-quorum-no-keychain-endpoints.e1eba3a4.332
0.9.1-add-bluebird-dependency.a8944f63.332
0.9.1-web-socket-identity-provider.845e2a3e.232
0.9.1-docs-1312.bcfd3c31.62
0.9.1-docs-1312.94850924.62
0.9.02
0.8.1-vaultTransitKeychain.5ad9cac4.172
0.8.02
0.7.1-fix-1226.7df02452.102
0.7.1-main.57afe153.92
0.7.02
0.6.02
0.5.1-feat-1122.01a4d64d.1302
0.5.1-main.6d1de274.1292

Package Sidebar

Install

npm i @hyperledger/cactus-plugin-htlc-eth-besu

Weekly Downloads

102

Version

2.0.0

License

Apache-2.0

Unpacked Size

29.2 MB

Total Files

46

Last publish

Collaborators

  • hyperledger-lf
  • hyperledger-ghci
  • openwalletfoundation