-
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.
Remove breaking and untested dependencies and introduce backward comp…
…atiability for Chaincode Event publishing (#125) * Remove breaking and untested dependencies and package options Signed-off-by: “Nithin <[email protected]> * Publish Chaincode Events with backward compatiability and without breaking current downstream contract Signed-off-by: “Nithin <[email protected]> --------- Signed-off-by: “Nithin <[email protected]> Co-authored-by: “Nithin <[email protected]>
- Loading branch information
1 parent
0761876
commit 4837f4b
Showing
5 changed files
with
43 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
package hlf.java.rest.client.sdk; | ||
|
||
import java.io.Serializable; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.io.Serializable; | ||
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