Skip to content

Commit

Permalink
feat(bungee): new implementation for bungee plugin
Browse files Browse the repository at this point in the history
* plugin follows strategy design pattern defined in folder strategy/
* current version has strategy for fabric and besu networks
* includes a few tests to demonstrate basic functionality

Signed-off-by: eduv09 <[email protected]>
  • Loading branch information
eduv09 authored and eduv09 committed Mar 15, 2024
1 parent fb12f2c commit 8396797
Show file tree
Hide file tree
Showing 26 changed files with 6,967 additions and 834 deletions.
10 changes: 8 additions & 2 deletions packages/cactus-plugin-bungee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@
"@hyperledger/cactus-plugin-object-store-ipfs": "2.0.0-alpha.2",
"@hyperledger/cactus-test-tooling": "2.0.0-alpha.2",
"axios": "1.6.0",
"body-parser": "1.20.2",
"fs-extra": "10.1.0",
"key-encoder": "2.0.3",
"typescript-optional": "2.0.1",
"uuid": "9.0.1"
"uuid": "9.0.1",
"web3": "1.6.1",
"web3-core": "1.6.1"
},
"devDependencies": {
"@types/body-parser": "1.19.4",
Expand All @@ -75,7 +80,8 @@
"@types/tape": "4.13.4",
"@types/uuid": "9.0.6",
"express": "4.18.2",
"fabric-network": "2.2.20"
"fabric-network": "2.2.20",
"socket.io": "4.5.4"
},
"engines": {
"node": ">=18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
import type { RequestArgs } from './base';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
import { NetworkDetails } from '../../../strategy/obtain-ledger-strategy';

/**
*
Expand All @@ -34,7 +35,12 @@ export interface CreateViewRequest {
* @type {string}
* @memberof CreateViewRequest
*/
'x'?: string;
'stateIds'?: string[];
'tI'?: string;
'tF'?: string;
'viewID'?: string;
'strategyId': string;
'networkDetails': NetworkDetails;
}
/**
*
Expand All @@ -47,7 +53,7 @@ export interface CreateViewResponse {
* @type {string}
* @memberof CreateViewResponse
*/
'y'?: string;
'view'?: string;
}

/**
Expand Down
Loading

0 comments on commit 8396797

Please sign in to comment.