Skip to content

Commit f9d7a1c

Browse files
authored
Update AIR interpreter to 0.8.2 (#42)
1 parent 8ddccd3 commit f9d7a1c

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"author": "Fluence Labs",
1616
"license": "Apache-2.0",
1717
"dependencies": {
18-
"@fluencelabs/aquamarine-interpreter": "0.7.9",
18+
"@fluencelabs/aquamarine-interpreter": "0.8.2",
1919
"async": "3.2.0",
2020
"base64-js": "1.3.1",
2121
"bs58": "4.0.1",

src/__test__/unit/ast.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ describe('== AST parsing suite', () => {
3131
},
3232
},
3333
],
34-
output: { Scalar: 'output' },
34+
output: {
35+
Variable: { Scalar: 'output' },
36+
},
3537
},
3638
});
3739
});

src/internal/aqua/interpreter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ type ImportObject = {
3535
'./aquamarine_client_bg.js': {
3636
// fn call_service_impl(service_id: String, fn_name: String, args: String, security_tetraplets: String) -> String;
3737
// prettier-ignore
38-
__wbg_callserviceimpl_d9f9208b7e581e24: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any, ) => void;
39-
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (arg0: any) => void;
38+
__wbg_callserviceimpl_84d8278762e4c639: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any, ) => void;
39+
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (arg0: any) => void;
4040
__wbindgen_throw: (arg: any) => void;
4141
};
4242
host: LogImport;
@@ -159,7 +159,7 @@ function newImportObject(particleHandler: ParticleHandler, cfg: HostImportsConfi
159159
// If so, an error with a new name will be occurred after wasm initialization.
160160
'./aquamarine_client_bg.js': {
161161
// prettier-ignore
162-
__wbg_callserviceimpl_d9f9208b7e581e24: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any) => {
162+
__wbg_callserviceimpl_84d8278762e4c639: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any) => {
163163
let wasm = cfg.exports;
164164
try {
165165
let serviceId = getStringFromWasm0(wasm, arg1, arg2);
@@ -183,7 +183,7 @@ function newImportObject(particleHandler: ParticleHandler, cfg: HostImportsConfi
183183
free(wasm, arg7, arg8);
184184
}
185185
},
186-
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (arg0: any) => {
186+
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (arg0: any) => {
187187
let peerIdStr = peerId.toB58String();
188188
let wasm = cfg.exports;
189189
return_current_peer_id(wasm, peerIdStr, arg0);
@@ -200,8 +200,8 @@ function newLogImport(cfg: HostImportsConfig): ImportObject {
200200
return {
201201
host: log_import(cfg),
202202
'./aquamarine_client_bg.js': {
203-
__wbg_callserviceimpl_d9f9208b7e581e24: (_) => {},
204-
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (_) => {},
203+
__wbg_callserviceimpl_84d8278762e4c639: (_) => {},
204+
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (_) => {},
205205
__wbindgen_throw: (_) => {},
206206
},
207207
};

src/internal/builtins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ export const getInterfaces = async (client: FluenceClient, ttl?: number): Promis
109109
(seq
110110
(seq
111111
(call relay ("srv" "list") [] services)
112-
(call relay ("op" "identity") [] interfaces[])
112+
(call relay ("op" "identity") [] $interfaces)
113113
)
114114
(fold services s
115115
(seq
116-
(call relay ("srv" "get_interface") [s.$.id!] interfaces[])
116+
(call relay ("srv" "get_interface") [s.$.id!] $interfaces)
117117
(next s)
118118
)
119119
)
120120
)
121-
(call myPeerId ("_callback" "${callbackFn}") [interfaces])
121+
(call myPeerId ("_callback" "${callbackFn}") [$interfaces])
122122
)
123123
`,
124124
)

0 commit comments

Comments
 (0)