2.0.0-rc.3 • Published 12 months ago

@hyperledger/cactus-plugin-ledger-connector-tcs-huawei-socketio v2.0.0-rc.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

@hyperledger/cactus-plugin-ledger-connector-tcs-huawei-socketio

This plugin provides Cactus a way to interact with tcs-huawei networks.tcs-huawei (Trusted Cross-chain Service-Huawei) is a blockchain integration service on Huawei Cloud. Using this we can perform:

  • startMonitor: Start monitoring blocks on the ledgers
  • stopMonitor: Stop the block monitoring

Summary

Getting started

Required software components

  • OS: Linux (recommended Ubuntu20.04,18.04 or CentOS7)
  • Docker (recommend: v17.06.2-ce or greater)
  • node.js v16 (recommend: v16 or greater)

Prerequisites

  • Please ensure that the destination ledger (default: tcs-huawei) is already launched.

Boot methods

Common setup

  1. Always run configure command first, from the project root directory:

    pushd ../..
    npm run configure
    popd
  2. Copy default configuration

  • Remember to replace default CA and to adjust the default.yaml configuration on production deployments!
    mkdir -p /etc/cactus/connector-tcs-huawei-socketio/
    rm -r /etc/cactus/connector-tcs-huawei-socketio/*
    cp -rf ./sample-config/* /etc/cactus/connector-tcs-huawei-socketio/

Docker

# Build
docker build . -t cactus-plugin-ledger-connector-tcs-huawei-socketio

Manual

  • Ensure ledger ports are exposed to the host first.
npm run start

Usage samples

Contributing

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

Please review CONTIRBUTING.md to get started.

License

This distribution is published under the Apache License Version 2.0 found in the LICENSE file.

Acknowledgments