1
0
mirror of https://github.com/fluencelabs/aquavm synced 2025-06-19 18:01:21 +00:00

Rename Aqua to AIR, move AVM from FCE ()

This commit is contained in:
Mike Voronov
2021-05-10 14:25:34 +03:00
committed by GitHub
parent 0ddc44bf52
commit 2ac0304d3e
123 changed files with 11960 additions and 5487 deletions
.circleci
.github/workflows
.gitignoreCHANGELOG.mdCargo.lockCargo.tomlConfig.tomlREADME.md
air-interpreter
air
avm
crates
air-interpreter-wasm
air-parser
interpreter-interface
test-module
test-utils
npm

@ -25,36 +25,33 @@
unreachable_patterns
)]
pub use aquamarine_vm::ne_vec::NEVec;
pub use aquamarine_vm::AquamarineVM;
pub use aquamarine_vm::AquamarineVMConfig;
pub use aquamarine_vm::AquamarineVMError;
pub use aquamarine_vm::CallServiceClosure;
pub use aquamarine_vm::IType;
pub use aquamarine_vm::IValue;
pub use aquamarine_vm::InterpreterOutcome;
pub use aquamarine_vm::ParticleParameters;
pub use avm_server::ne_vec::NEVec;
pub use avm_server::AVMConfig;
pub use avm_server::AVMError;
pub use avm_server::CallServiceClosure;
pub use avm_server::IType;
pub use avm_server::IValue;
pub use avm_server::InterpreterOutcome;
pub use avm_server::ParticleParameters;
pub use avm_server::AVM;
use std::collections::HashMap;
use std::path::PathBuf;
type JValue = serde_json::Value;
pub fn create_aqua_vm(
call_service: CallServiceClosure,
current_peer_id: impl Into<String>,
) -> AquamarineVM {
pub fn create_avm(call_service: CallServiceClosure, current_peer_id: impl Into<String>) -> AVM {
let tmp_dir = std::env::temp_dir();
let config = AquamarineVMConfig {
aquamarine_wasm_path: PathBuf::from("../target/wasm32-wasi/debug/aquamarine.wasm"),
let config = AVMConfig {
air_wasm_path: PathBuf::from("../target/wasm32-wasi/debug/air_interpreter_server.wasm"),
call_service,
current_peer_id: current_peer_id.into(),
particle_data_store: tmp_dir,
logging_mask: i32::max_value(),
};
AquamarineVM::new(config).expect("vm should be created")
AVM::new(config).expect("vm should be created")
}
pub fn unit_call_service() -> CallServiceClosure {