Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cactus-core-api): add Ethereum ledger type #3638

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ components:
- BESU_2X
- BURROW_0X
- CORDA_4X
- ETHEREUM
- FABRIC_2
- SAWTOOTH_1X
type: string
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/cactus-core-api/src/main/json/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"BESU_2X",
"BURROW_0X",
"CORDA_4X",
"ETHEREUM",
"FABRIC_2",
"SAWTOOTH_1X"
]
Expand Down
1 change: 1 addition & 0 deletions packages/cactus-core-api/src/main/json/openapi.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"BESU_2X",
"BURROW_0X",
"CORDA_4X",
"ETHEREUM",
"FABRIC_2",
"SAWTOOTH_1X"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.squareup.moshi.JsonClass
/**
* 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.
*
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,fABRIC2,sAWTOOTH1X
* Values: bESU1X,bESU2X,bURROW0X,cORDA4X,eTHEREUM,fABRIC2,sAWTOOTH1X
*/

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

@Json(name = "ETHEREUM")
eTHEREUM("ETHEREUM"),

@Json(name = "FABRIC_2")
fABRIC2("FABRIC_2"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ export const LedgerType = {
Besu2X: 'BESU_2X',
Burrow0X: 'BURROW_0X',
Corda4X: 'CORDA_4X',
Ethereum: 'ETHEREUM',
Fabric2: 'FABRIC_2',
Sawtooth1X: 'SAWTOOTH_1X'
} as const;
Expand Down
Loading