Skip to content

Commit a1be603

Browse files
RafaelAPBpetermetz
authored andcommitted
feat(cactus-core-api): add Ethereum ledger type
Peter's change: Added the missing `ETHEREUM` constant to the leger type that the static consortium plugin has built in to it. This was necessary because adding it only to the core-api broke the build. The two types (since they are duplicates of each other) must be updated in tandem otherwise the code won't compile (which is a good thing because it is an example if when the compiler saves us from mistakes like this that would otherwise stay hidden until much later and only come out as runtime errors) Authored-by: Bruno Mateus Co-authored-by: Peter Somogyvari <[email protected]> Signed-off-by: Rafael Belchior <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
1 parent c6a6c3f commit a1be603

File tree

10 files changed

+17
-2
lines changed

10 files changed

+17
-2
lines changed

packages/cacti-plugin-consortium-static/src/main/json/openapi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"BESU_2X",
132132
"BURROW_0X",
133133
"CORDA_4X",
134+
"ETHEREUM",
134135
"FABRIC_2",
135136
"SAWTOOTH_1X"
136137
]

packages/cacti-plugin-consortium-static/src/main/json/openapi.tpl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"BESU_2X",
132132
"BURROW_0X",
133133
"CORDA_4X",
134+
"ETHEREUM",
134135
"FABRIC_2",
135136
"SAWTOOTH_1X"
136137
]

packages/cacti-plugin-consortium-static/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/LedgerType.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import com.squareup.moshi.JsonClass
2222
/**
2323
* Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation.
2424
*
25-
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,fABRIC2,sAWTOOTH1X
25+
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,eTHEREUM,fABRIC2,sAWTOOTH1X
2626
*/
2727

2828
@JsonClass(generateAdapter = false)
@@ -40,6 +40,9 @@ enum class LedgerType(val value: kotlin.String) {
4040
@Json(name = "CORDA_4X")
4141
cORDA4X("CORDA_4X"),
4242

43+
@Json(name = "ETHEREUM")
44+
eTHEREUM("ETHEREUM"),
45+
4346
@Json(name = "FABRIC_2")
4447
fABRIC2("FABRIC_2"),
4548

packages/cacti-plugin-consortium-static/src/main/typescript/generated/openapi/typescript-axios/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export const LedgerType = {
312312
Besu2X: 'BESU_2X',
313313
Burrow0X: 'BURROW_0X',
314314
Corda4X: 'CORDA_4X',
315+
Ethereum: 'ETHEREUM',
315316
Fabric2: 'FABRIC_2',
316317
Sawtooth1X: 'SAWTOOTH_1X'
317318
} as const;

packages/cactus-core-api/src/main/go/generated/openapi/go-client/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ components:
305305
- BESU_2X
306306
- BURROW_0X
307307
- CORDA_4X
308+
- ETHEREUM
308309
- FABRIC_2
309310
- SAWTOOTH_1X
310311
type: string

packages/cactus-core-api/src/main/go/generated/openapi/go-client/model_ledger_type.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cactus-core-api/src/main/json/openapi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"BESU_2X",
187187
"BURROW_0X",
188188
"CORDA_4X",
189+
"ETHEREUM",
189190
"FABRIC_2",
190191
"SAWTOOTH_1X"
191192
]

packages/cactus-core-api/src/main/json/openapi.tpl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"BESU_2X",
187187
"BURROW_0X",
188188
"CORDA_4X",
189+
"ETHEREUM",
189190
"FABRIC_2",
190191
"SAWTOOTH_1X"
191192
]

packages/cactus-core-api/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/LedgerType.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import com.squareup.moshi.JsonClass
2222
/**
2323
* Enumerates the different ledger vendors and their major versions encoded within the name of the LedgerType. For example \"BESU_1X\" involves all of the [1.0.0;2.0.0) where 1.0.0 is included and anything up until, but not 2.0.0. See: https://stackoverflow.com/a/4396303/698470 for further explanation.
2424
*
25-
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,fABRIC2,sAWTOOTH1X
25+
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,eTHEREUM,fABRIC2,sAWTOOTH1X
2626
*/
2727

2828
@JsonClass(generateAdapter = false)
@@ -40,6 +40,9 @@ enum class LedgerType(val value: kotlin.String) {
4040
@Json(name = "CORDA_4X")
4141
cORDA4X("CORDA_4X"),
4242

43+
@Json(name = "ETHEREUM")
44+
eTHEREUM("ETHEREUM"),
45+
4346
@Json(name = "FABRIC_2")
4447
fABRIC2("FABRIC_2"),
4548

packages/cactus-core-api/src/main/typescript/generated/openapi/typescript-axios/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ export const LedgerType = {
524524
Besu2X: 'BESU_2X',
525525
Burrow0X: 'BURROW_0X',
526526
Corda4X: 'CORDA_4X',
527+
Ethereum: 'ETHEREUM',
527528
Fabric2: 'FABRIC_2',
528529
Sawtooth1X: 'SAWTOOTH_1X'
529530
} as const;

0 commit comments

Comments
 (0)