Skip to content

Commit

Permalink
Update AIR interpreter to 0.8.2 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
folex authored Apr 21, 2021
1 parent 8ddccd3 commit f9d7a1c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Fluence Labs",
"license": "Apache-2.0",
"dependencies": {
"@fluencelabs/aquamarine-interpreter": "0.7.9",
"@fluencelabs/aquamarine-interpreter": "0.8.2",
"async": "3.2.0",
"base64-js": "1.3.1",
"bs58": "4.0.1",
Expand Down
4 changes: 3 additions & 1 deletion src/__test__/unit/ast.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ describe('== AST parsing suite', () => {
},
},
],
output: { Scalar: 'output' },
output: {
Variable: { Scalar: 'output' },
},
},
});
});
Expand Down
12 changes: 6 additions & 6 deletions src/internal/aqua/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type ImportObject = {
'./aquamarine_client_bg.js': {
// fn call_service_impl(service_id: String, fn_name: String, args: String, security_tetraplets: String) -> String;
// prettier-ignore
__wbg_callserviceimpl_d9f9208b7e581e24: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any, ) => void;
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (arg0: any) => void;
__wbg_callserviceimpl_84d8278762e4c639: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any, ) => void;
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (arg0: any) => void;
__wbindgen_throw: (arg: any) => void;
};
host: LogImport;
Expand Down Expand Up @@ -159,7 +159,7 @@ function newImportObject(particleHandler: ParticleHandler, cfg: HostImportsConfi
// If so, an error with a new name will be occurred after wasm initialization.
'./aquamarine_client_bg.js': {
// prettier-ignore
__wbg_callserviceimpl_d9f9208b7e581e24: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any) => {
__wbg_callserviceimpl_84d8278762e4c639: (arg0: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, arg7: any, arg8: any) => {
let wasm = cfg.exports;
try {
let serviceId = getStringFromWasm0(wasm, arg1, arg2);
Expand All @@ -183,7 +183,7 @@ function newImportObject(particleHandler: ParticleHandler, cfg: HostImportsConfi
free(wasm, arg7, arg8);
}
},
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (arg0: any) => {
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (arg0: any) => {
let peerIdStr = peerId.toB58String();
let wasm = cfg.exports;
return_current_peer_id(wasm, peerIdStr, arg0);
Expand All @@ -200,8 +200,8 @@ function newLogImport(cfg: HostImportsConfig): ImportObject {
return {
host: log_import(cfg),
'./aquamarine_client_bg.js': {
__wbg_callserviceimpl_d9f9208b7e581e24: (_) => {},
__wbg_getcurrentpeeridimpl_c6a63062490312cd: (_) => {},
__wbg_callserviceimpl_84d8278762e4c639: (_) => {},
__wbg_getcurrentpeeridimpl_4aca996e28cb8f44: (_) => {},
__wbindgen_throw: (_) => {},
},
};
Expand Down
6 changes: 3 additions & 3 deletions src/internal/builtins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ export const getInterfaces = async (client: FluenceClient, ttl?: number): Promis
(seq
(seq
(call relay ("srv" "list") [] services)
(call relay ("op" "identity") [] interfaces[])
(call relay ("op" "identity") [] $interfaces)
)
(fold services s
(seq
(call relay ("srv" "get_interface") [s.$.id!] interfaces[])
(call relay ("srv" "get_interface") [s.$.id!] $interfaces)
(next s)
)
)
)
(call myPeerId ("_callback" "${callbackFn}") [interfaces])
(call myPeerId ("_callback" "${callbackFn}") [$interfaces])
)
`,
)
Expand Down

0 comments on commit f9d7a1c

Please sign in to comment.