forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cactus-example-discounted-asset-trade): use openapi sawtooth con…
…nector - Refactor discounted asset trade sample to use openapi sawtooth connector instead of sawtooth-socketio. - Remove sawtooth-socketio connector since it's not used any more. Depends on: hyperledger-cacti#2825 Signed-off-by: Michal Bajer <[email protected]>
- Loading branch information
Showing
30 changed files
with
186 additions
and
1,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1359,32 +1359,6 @@ jobs: | |
with: | ||
node-version: v16.14.2 | ||
- uses: actions/[email protected] | ||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
path: ./.yarn/ | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
cactus-plugin-ledger-connector-sawtooth-socketio: | ||
continue-on-error: false | ||
env: | ||
DEV_BUILD_DISABLED: false | ||
FULL_BUILD_DISABLED: true | ||
JEST_TEST_PATTERN: packages/cactus-plugin-ledger-connector-sawtooth-socketio/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts | ||
JEST_TEST_RUNNER_DISABLED: true | ||
TAPE_TEST_RUNNER_DISABLED: true | ||
needs: build-dev | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Use Node.js v16.14.2 | ||
uses: actions/[email protected] | ||
with: | ||
node-version: v16.14.2 | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,6 @@ In this example, we use the Sawtooth intkey transaction processor as an applicat | |
|
||
## Prerequisites | ||
|
||
- Available ports: | ||
- `5034`: the port of `cactus-cmd-socketio-server` | ||
- `5140`: the port of `cactus-plugin-ledger-connector-sawtooth-socketio` | ||
- You can modify port exported to the host in `./docker-compose.yml` | ||
- Available directory (This directory must be empty): | ||
- `./etc/cactus`: the directory for storing the config files of `cactus-cmd-socketio-server`, will be mounted by the containers. | ||
|
||
|
@@ -59,11 +55,6 @@ In this example, we use the Sawtooth intkey transaction processor as an applicat | |
``` | ||
cmd-socketio-base-dummy | OK - Exit | ||
cmd-socketio-base-dummy exited with code 0 | ||
cactus-example-electricity-trade-sawtooth-validator | | ||
cactus-example-electricity-trade-sawtooth-validator | > @hyperledger/[email protected] start /root/cactus | ||
cactus-example-electricity-trade-sawtooth-validator | > cd ./dist && node common/core/bin/www.js | ||
cactus-example-electricity-trade-sawtooth-validator | | ||
cactus-example-electricity-trade-sawtooth-validator | listening on *:5140 | ||
cactus-example-electricity-trade-blp | [2022-02-14T15:47:47.312] [INFO] www - Using BLP with id = h40Q9eMD | ||
cactus-example-electricity-trade-blp | start Dynamic loading. | ||
cactus-example-electricity-trade-blp | path: /api/v1/bl/cactus-example-electricity-trade/, routerJs: /root/cactus/dist/cactus-example-electricity-trade.js | ||
|
@@ -77,8 +68,6 @@ For development purposes, it might be useful to run the sample application outsi | |
|
||
1. Configure cactus and start the ledgers as described above. | ||
1. Run `./script-dockerless-config-patch.sh` from `cactus-example-electricity-trade/` directory. This will patch the configs and copy it to global location. | ||
1. Start sawtooth validators (in separate cmd window, ethereum connector started as part of BLP). | ||
1. `cd packages/cactus-plugin-ledger-connector-sawtooth-socketio/ && npm run start` | ||
1. Start electricity-trade: `npm run start-dockerless` | ||
|
||
## How to use this application | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.