-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce a standard CC event and the SDK Signed-off-by: S m, Aruna <[email protected]> * Generate SDK build alongside the jar for containers The SDK contains the connector's common models that the chaincode developers can utilize. If the connector's flag is set to parse the events, the events will be parsed for common structure and utilized for Kafka publishing. The SDK can be later reused for other purposes. Signed-off-by: S m, Aruna <[email protected]> * Update mvn dependency for json-schema Dependency updates for package version Signed-off-by: S m, Aruna <[email protected]> --------- Signed-off-by: S m, Aruna <[email protected]>
- Loading branch information
Showing
9 changed files
with
201 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/hlf/java/rest/client/sdk/StandardCCEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package hlf.java.rest.client.sdk; | ||
|
||
import java.io.Serializable; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
import org.hyperledger.fabric.contract.annotation.DataType; | ||
import org.hyperledger.fabric.contract.annotation.Property; | ||
|
||
/** | ||
* StandardCCEvent can be used by smart contract developers to send a commonly wrapped event that | ||
* the hlf-connector decodes. The decoded event can be used to publish to Kafka. | ||
*/ | ||
@Data | ||
@DataType | ||
public class StandardCCEvent implements Serializable { | ||
@Property() | ||
@JsonProperty("key") | ||
private String key; | ||
|
||
@Property | ||
@JsonProperty("event") | ||
private String event; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters