@@ -33,8 +33,8 @@ entry_defs![
33
33
34
34
#[ derive( Serialize , Deserialize , SerializedBytes , Debug , Clone ) ]
35
35
pub struct TrustAtomInput {
36
- pub prefix : Option < String > ,
37
- pub target : AnyLinkableHash ,
36
+ pub prefix : Option < String > ,
37
+ pub target : AnyLinkableHash ,
38
38
pub source : EntryHash , //// for testing purposes ////
39
39
pub content : Option < String > ,
40
40
pub value : Option < String > ,
@@ -45,8 +45,8 @@ pub target: AnyLinkableHash,
45
45
46
46
#[ derive( Serialize , Deserialize , SerializedBytes , Debug , Clone ) ]
47
47
pub struct QueryInput {
48
- pub source : Option < AnyLinkableHash > ,
49
- pub target : Option < AnyLinkableHash > ,
48
+ pub source : Option < AnyLinkableHash > ,
49
+ pub target : Option < AnyLinkableHash > ,
50
50
pub prefix : Option < String > ,
51
51
pub content_full : Option < String > ,
52
52
pub content_starts_with : Option < String > ,
@@ -55,7 +55,7 @@ pub target: Option<AnyLinkableHash>,
55
55
56
56
#[ derive( Serialize , Deserialize , SerializedBytes , Debug , Clone ) ]
57
57
pub struct QueryMineInput {
58
- pub target : Option < AnyLinkableHash > ,
58
+ pub target : Option < AnyLinkableHash > ,
59
59
pub prefix : Option < String > ,
60
60
pub content_full : Option < String > ,
61
61
pub content_starts_with : Option < String > ,
@@ -72,7 +72,6 @@ pub fn create_rollup_atoms(_: ()) -> ExternResult<Vec<TrustAtom>> {
72
72
#[ hdk_extern]
73
73
pub fn create_trust_atom ( input : TrustAtomInput ) -> ExternResult < TrustAtom > {
74
74
trust_atom:: create_trust_atom (
75
- input. source ,
76
75
input. target ,
77
76
input. prefix ,
78
77
input. content ,
@@ -110,6 +109,18 @@ pub fn query_mine(input: QueryMineInput) -> ExternResult<Vec<TrustAtom>> {
110
109
}
111
110
// TEST HELPERS
112
111
112
+ // #[hdk_extern]
113
+ // pub fn test_helper_create_trust_atom(input: TrustAtomInput) -> ExternResult<TrustAtom> {
114
+ // trust_atom::create_trust_atom(
115
+ // input.source,
116
+ // input.target,
117
+ // input.prefix,
118
+ // input.content,
119
+ // input.value,
120
+ // input.extra,
121
+ // )
122
+ // }
123
+
113
124
#[ hdk_extern]
114
125
pub fn create_string_target ( input : String ) -> ExternResult < EntryHash > {
115
126
test_helpers:: create_string_target ( input)
0 commit comments