Skip to content

Commit

Permalink
Merge pull request #13 from keyko-io/feature/move-enum
Browse files Browse the repository at this point in the history
Move enum to the single classes to avoid overload
  • Loading branch information
Enrique Ruiz authored Mar 24, 2020
2 parents 2a92ade + 7d352b1 commit 662367d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.keyko.monitoring</groupId>
<artifactId>schemas</artifactId>
<packaging>jar</packaging>
<version>0.3.0</version>
<version>0.3.1</version>
<name>Web3 Monitoring Schemas</name>
<url>https://github.com/keyko-io/web3-monitoring-schemas</url>

Expand Down Expand Up @@ -99,12 +99,11 @@
<include>**/*.avsc</include>
</includes>
<imports>
<import>${project.basedir}/src/main/resources/avro/ContractEventStatus.avsc</import>
<import>${project.basedir}/src/main/resources/avro/NumberParameter.avsc</import>
<import>${project.basedir}/src/main/resources/avro/StringParameter.avsc</import>
<import>${project.basedir}/src/main/resources/avro/EventsRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/ViewRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/BlockRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/EventsRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/LogRecordRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/TransactionRecord.avsc</import>
</imports>
Expand Down
19 changes: 0 additions & 19 deletions src/main/resources/avro/ContractEventStatus.avsc

This file was deleted.

8 changes: 7 additions & 1 deletion src/main/resources/avro/EventRecord.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@
},
{
"name": "status",
"type": "ContractEventStatus"
"type": {
"name": "ContractEventStatus",
"type": "enum",
"symbols": [
"UNCONFIRMED", "CONFIRMED", "INVALIDATED"
]
}
},
{
"name": "eventSpecificationSignature",
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/avro/LogRecord.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@
},
{
"name": "status",
"type": "ContractEventStatus"
"type": {
"name": "LogStatus",
"type": "enum",
"symbols": [
"UNCONFIRMED", "CONFIRMED", "INVALIDATED"
]
}
},
{
"name": "retries",
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/avro/LogRecordTopicsFlattened.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@
},
{
"name": "status",
"type": "ContractEventStatus"
"type": {
"name": "LogFlattenedStatus",
"type": "enum",
"symbols": [
"UNCONFIRMED", "CONFIRMED", "INVALIDATED"
]
}
},
{
"name": "retries",
Expand Down

0 comments on commit 662367d

Please sign in to comment.