Skip to content

Commit 929a6e8

Browse files
LordKubayaRafaelAPB
authored andcommittedMar 16, 2025
fix(satp-hermes): proto lint
Signed-off-by: Carlos Amaro <[email protected]>
1 parent 9c4dab7 commit 929a6e8

File tree

90 files changed

+2540
-2635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2540
-2635
lines changed
 

‎examples/cactus-example-cbdc-bridging-backend/src/knex/knex.config.ts

+4-16
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import { v4 as uuidv4 } from "uuid";
33
export const knexClientConnection = {
44
client: "sqlite3",
55
connection: {
6-
filename:
7-
"./src/knex/.dev.client-" +
8-
uuidv4() +
9-
".sqlite3",
6+
filename: "./src/knex/.dev.client-" + uuidv4() + ".sqlite3",
107
},
118
migrations: {
129
directory: "./src/knex/migrations",
@@ -17,10 +14,7 @@ export const knexClientConnection = {
1714
export const knexServerConnection = {
1815
client: "sqlite3",
1916
connection: {
20-
filename:
21-
"./src/knex/.dev.server-" +
22-
uuidv4() +
23-
".sqlite3",
17+
filename: "./src/knex/.dev.server-" + uuidv4() + ".sqlite3",
2418
},
2519
migrations: {
2620
directory: "./src/knex/migrations",
@@ -31,10 +25,7 @@ export const knexServerConnection = {
3125
export const knexSourceRemoteConnection = {
3226
client: "sqlite3",
3327
connection: {
34-
filename:
35-
"./src/knex/.dev.source-remote-" +
36-
uuidv4() +
37-
".sqlite3",
28+
filename: "./src/knex/.dev.source-remote-" + uuidv4() + ".sqlite3",
3829
},
3930
migrations: {
4031
directory: "./src/knex/migrations",
@@ -45,10 +36,7 @@ export const knexSourceRemoteConnection = {
4536
export const knexTargetRemoteConnection = {
4637
client: "sqlite3",
4738
connection: {
48-
filename:
49-
"./src/knex/.dev.target-remote-" +
50-
uuidv4() +
51-
".sqlite3",
39+
filename: "./src/knex/.dev.target-remote-" + uuidv4() + ".sqlite3",
5240
},
5341
migrations: {
5442
directory: "./src/knex/migrations",

‎examples/cactus-example-cbdc-bridging-backend/src/main/typescript/cbdc-bridging-app.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export class CbdcBridgingApp {
9292
const besuPlugin = await this.infrastructure.createBesuLedgerConnector();
9393
const gatways = await this.infrastructure.createSATPGateways();
9494

95-
9695
this.log.info(`SATP Gateways started.`);
9796
// Reserve the ports where the API Servers will run
9897
const httpApiA = await Servers.startOnPort(
@@ -135,11 +134,16 @@ export class CbdcBridgingApp {
135134
serverPluginRegistry.add(gatways[1]);
136135
await gatways[1].onPluginInit();
137136

138-
const crpcOptionsServer1 = {host: 'localhost', port: 6000};
139-
const apiServer1 = await this.startNode(httpApiA, clientPluginRegistry, crpcOptionsServer1, 5101);
140-
const crpcOptionsServer2 = {host: 'localhost', port: 6001};
137+
const crpcOptionsServer1 = { host: "localhost", port: 6000 };
138+
await this.startNode(
139+
httpApiA,
140+
clientPluginRegistry,
141+
crpcOptionsServer1,
142+
5101,
143+
);
144+
const crpcOptionsServer2 = { host: "localhost", port: 6001 };
141145

142-
const apiServer2 = await this.startNode(httpApiB, serverPluginRegistry,crpcOptionsServer2, 5100);
146+
this.startNode(httpApiB, serverPluginRegistry, crpcOptionsServer2, 5100);
143147

144148
const fabricApiClient = new FabricApi(
145149
new Configuration({ basePath: nodeApiHostA }),
@@ -164,8 +168,6 @@ export class CbdcBridgingApp {
164168

165169
this.log.info(`Chaincode and smart Contracts deployed.`);
166170

167-
168-
169171
return {
170172
fabricApiClient,
171173
besuApiClient,
@@ -192,8 +194,6 @@ export class CbdcBridgingApp {
192194

193195
const addressInfoApi = httpServerApi.address() as AddressInfo;
194196

195-
196-
197197
const configService = new ConfigService();
198198
const apiServerOptions = await configService.newExampleConfig();
199199
apiServerOptions.authorizationProtocol = AuthorizationProtocol.NONE;
@@ -209,7 +209,7 @@ export class CbdcBridgingApp {
209209
const config =
210210
await configService.newExampleConfigConvict(apiServerOptions);
211211
const prop = config.getProperties();
212-
prop.grpcPort = grpcPort
212+
prop.grpcPort = grpcPort;
213213
prop.apiPort = addressInfoApi.port;
214214
prop.crpcPort = crpcOptions.port;
215215
this.log.info(prop);

0 commit comments

Comments
 (0)
Please sign in to comment.