@@ -38,22 +38,22 @@ pub struct SecurityTetraplet {
38
38
/// Name of a function that returned corresponding value.
39
39
pub function_name : String ,
40
40
41
- /// Value was produced by applying this `lambda ` to the output from `call_service`.
42
- pub lambda : String ,
41
+ /// Value was produced by applying this `lens ` to the output from `call_service`.
42
+ pub lens : String ,
43
43
}
44
44
45
45
impl SecurityTetraplet {
46
46
pub fn new (
47
47
peer_pk : impl Into < String > ,
48
48
service_id : impl Into < String > ,
49
49
function_name : impl Into < String > ,
50
- lambda : impl Into < String > ,
50
+ lens : impl Into < String > ,
51
51
) -> Self {
52
52
Self {
53
53
peer_pk : peer_pk. into ( ) ,
54
54
service_id : service_id. into ( ) ,
55
55
function_name : function_name. into ( ) ,
56
- lambda : lambda . into ( ) ,
56
+ lens : lens . into ( ) ,
57
57
}
58
58
}
59
59
@@ -65,13 +65,13 @@ impl SecurityTetraplet {
65
65
peer_pk : init_peer_id. into ( ) ,
66
66
service_id : String :: new ( ) ,
67
67
function_name : String :: new ( ) ,
68
- // lambda can't be applied to the string literals
69
- lambda : String :: new ( ) ,
68
+ // lens can't be applied to the string literals
69
+ lens : String :: new ( ) ,
70
70
}
71
71
}
72
72
73
- pub fn add_lambda ( & mut self , lambda : & str ) {
74
- self . lambda . push_str ( lambda )
73
+ pub fn add_lens ( & mut self , lens : & str ) {
74
+ self . lens . push_str ( lens )
75
75
}
76
76
}
77
77
@@ -138,8 +138,8 @@ impl fmt::Display for SecurityTetraplet {
138
138
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
139
139
write ! (
140
140
f,
141
- "peer_pk: {}, service_id: {}, function_name: {}, lambda : {}" ,
142
- self . peer_pk, self . service_id, self . function_name, self . lambda
141
+ "peer_pk: {}, service_id: {}, function_name: {}, lens : {}" ,
142
+ self . peer_pk, self . service_id, self . function_name, self . lens
143
143
)
144
144
}
145
145
}
@@ -162,7 +162,7 @@ pub fn get_call_parameters() -> CallParameters {
162
162
}
163
163
164
164
#[ cfg( all( feature = "marine-abi" , target_arch = "wasm32" ) ) ]
165
- #[ link( wasm_import_module = "__marine_host_api_v2 " ) ]
165
+ #[ link( wasm_import_module = "__marine_host_api_v3 " ) ]
166
166
#[ allow( improper_ctypes) ]
167
167
extern "C" {
168
168
// returns serialized current call parameters
0 commit comments