Skip to content

Commit

Permalink
feat(go-ethereum-socketio): remove deprecated connector
Browse files Browse the repository at this point in the history
- Remove `cactus-plugin-ledger-connector-go-ethereum-socketio` connector and
  any reference to it.
- Remove `SocketIOApiClient` from `cactus-api-client` since it is the
  last connector that was linked to it.
- Remove `legacy-socketio` option from `cactus-verifier-client`.

Part of hyperledger-cacti#3155

Signed-off-by: Michal Bajer <[email protected]>
  • Loading branch information
outSH committed Aug 6, 2024
1 parent fdce6b3 commit 56dd9f8
Show file tree
Hide file tree
Showing 57 changed files with 12 additions and 5,212 deletions.
2 changes: 0 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@
"**/node_modules/**",
"**/build/**",
"**/src/main/typescript/generated/**",
"packages/cactus-plugin-verifier-cc/**",
"packages/cactus-cmd-socketio-server/**",
"packages/cactus-plugin-ledger-connector-go-ethereum-socketio/**",
"packages/cactus-plugin-ledger-connector-*-socketio/**"
]
}
7 changes: 0 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ packages/cactus-cmd-socketio-server/src/main/typescript/verifier/Verifier.ts
packages/cactus-cmd-socketio-server/src/main/typescript/verifier/VerifierFactory.ts
packages/cactus-cmd-socketio-server/src/test/typescript/unit/Verifier.test.ts

packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/main/typescript/common/core/app.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/main/typescript/common/core/bin/www.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/main/typescript/connector/template/ServerMonitorPlugin_template.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/main/typescript/connector/template/ServerPlugin_template.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNonceHex.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_sendRawTransaction.ts
packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_transferNumericAsset.ts
packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/src/main/typescript/common/core/app.ts
packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/src/main/typescript/connector/ServerMonitorPlugin.ts

Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1870,40 +1870,6 @@ jobs:
- run: npm run configure
- run: yarn jest ./packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/run-transaction-with-ws-ids.test.ts

cplc-go-ethereum-socketio:
continue-on-error: false
env:
DEV_BUILD_DISABLED: false
FULL_BUILD_DISABLED: true
JEST_TEST_PATTERN: packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts
JEST_TEST_RUNNER_DISABLED: true
JEST_TEST_COVERAGE_PATH: ./code-coverage-ts/cplc-go-ethereum-socketio
JEST_TEST_CODE_COVERAGE_ENABLED: true
TAPE_TEST_RUNNER_DISABLED: true
needs: build-dev
runs-on: ubuntu-22.04
steps:
- name: Use Node.js ${{ env.NODEJS_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODEJS_VERSION }}
- 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
if: ${{ env.RUN_CODE_COVERAGE == 'true' }}
- name: Upload coverage reports as artifacts
uses: actions/[email protected]
with:
name: coverage-reports-29
path: ./code-coverage-ts/**/
cplc-iroha2:
continue-on-error: false
needs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ function start_ethereum_testnet() {
popd
}

function copy_ethereum_validator_config() {
echo ">> copy_ethereum_validator_config()"
cp -fr ${ROOT_DIR}/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/sample-config/* \
"${CONFIG_VOLUME_PATH}/connector-go-ethereum-socketio/"
generate_certificate "GoEthereumCactusValidator" "${CONFIG_VOLUME_PATH}/connector-go-ethereum-socketio/CA/"
echo ">> copy_ethereum_validator_config() done."
}

function start_indy_testnet() {
echo ">> start_indy_testnet()"
pushd "${ROOT_DIR}/tools/docker/indy-all-in-one"
Expand Down Expand Up @@ -164,7 +156,6 @@ function start_ledgers() {
# Start Ethereum
mkdir -p "${CONFIG_VOLUME_PATH}/connector-go-ethereum-socketio"
start_ethereum_testnet
copy_ethereum_validator_config

# Start Indy
start_indy_testnet
Expand Down
5 changes: 0 additions & 5 deletions packages/cactus-api-client/src/main/typescript/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
export { ApiClient } from "./api-client";
export { DefaultConsortiumProvider } from "./default-consortium-provider";
export {
SocketIOApiClient,
SocketLedgerEvent,
SocketIOApiClientOptions,
} from "./socketio-api-client";
Loading

0 comments on commit 56dd9f8

Please sign in to comment.