Skip to content

Commit

Permalink
refactor mrvVersioningCC to fit with thesis
Browse files Browse the repository at this point in the history
  • Loading branch information
KSilkThread committed May 10, 2024
1 parent f170d35 commit 0c960f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
* in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html
*/

rootProject.name = 'Flowcontract'
rootProject.name = 'MRVVersioningContract'
include('app')

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package flowcontract;
package mrvversioningcontract;

import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
Expand All @@ -19,13 +19,13 @@

import com.google.gson.JsonObject;

import flowcontract.models.InspectorOrganisations;
import mrvversioningcontract.models.InspectorOrganisations;


@Contract(
name = "FlowContract",
name = "MRVVersioningContract",
info = @Info(
title = "FlowContract",
title = "MRVVersioningContract",
description = "This contract saves, checks and manages the flows",
version = "0.0.1-Alpha",
license = @License(
Expand Down Expand Up @@ -56,7 +56,7 @@ public String init(final Context context){

//insert
@Transaction(intent = Transaction.TYPE.SUBMIT)
public String insert(final Context context, final String organisation, final String flow){
public String pushApplicationHash(final Context context, final String organisation, final String flow){

ChaincodeStub stub = context.getStub();
String mspid = context.getClientIdentity().getMSPID();
Expand Down Expand Up @@ -89,7 +89,7 @@ public String insert(final Context context, final String organisation, final Str
}
//check
@Transaction(intent = Transaction.TYPE.EVALUATE)
public boolean check(final Context context, final String flow){
public boolean checkApplicationHash(final Context context, final String flow){
ChaincodeStub stub = context.getStub();
String mspid = context.getClientIdentity().getMSPID();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package flowcontract.models;
package mrvversioningcontract.models;

public enum InspectorOrganisations {
org0("org0-example-com");
Expand Down

0 comments on commit 0c960f3

Please sign in to comment.