mirror of
https://github.com/fluencelabs/aquavm
synced 2025-05-19 02:31:27 +00:00
fix(interpreter-interface): Remove the cid
field (#414)
The `InterpreterOutcome::cid` field is not really needed, but makes integration more difficult.
This commit is contained in:
parent
9c26838a05
commit
89f7cd09f7
@ -1,3 +1,9 @@
|
|||||||
|
## Version 0.34.0 (2022-12-26)
|
||||||
|
|
||||||
|
[PR 414](https://github.com/fluencelabs/aquavm/pull/414):
|
||||||
|
Remove the `InterpreterOutcome::cid` as it is not really neaded,
|
||||||
|
but makes integration more difficult.
|
||||||
|
|
||||||
## Version 0.33.0 (2022-12-21)
|
## Version 0.33.0 (2022-12-21)
|
||||||
|
|
||||||
[PR 401](https://github.com/fluencelabs/aquavm/pull/401):
|
[PR 401](https://github.com/fluencelabs/aquavm/pull/401):
|
||||||
|
11
Cargo.lock
generated
11
Cargo.lock
generated
@ -13,7 +13,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "air"
|
name = "air"
|
||||||
version = "0.33.0"
|
version = "0.34.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"air-execution-info-collector",
|
"air-execution-info-collector",
|
||||||
"air-interpreter-cid",
|
"air-interpreter-cid",
|
||||||
@ -85,7 +85,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "air-interpreter"
|
name = "air-interpreter"
|
||||||
version = "0.33.0"
|
version = "0.34.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"air",
|
"air",
|
||||||
"air-interpreter-interface",
|
"air-interpreter-interface",
|
||||||
@ -126,9 +126,8 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "air-interpreter-interface"
|
name = "air-interpreter-interface"
|
||||||
version = "0.12.0"
|
version = "0.12.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"air-interpreter-cid",
|
|
||||||
"fluence-it-types",
|
"fluence-it-types",
|
||||||
"marine-rs-sdk",
|
"marine-rs-sdk",
|
||||||
"serde",
|
"serde",
|
||||||
@ -338,7 +337,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "avm-interface"
|
name = "avm-interface"
|
||||||
version = "0.28.0"
|
version = "0.28.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"air-interpreter-interface",
|
"air-interpreter-interface",
|
||||||
"air-utils",
|
"air-utils",
|
||||||
@ -354,7 +353,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "avm-server"
|
name = "avm-server"
|
||||||
version = "0.28.0"
|
version = "0.28.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"air-interpreter-interface",
|
"air-interpreter-interface",
|
||||||
"air-utils",
|
"air-utils",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "air-interpreter"
|
name = "air-interpreter"
|
||||||
version = "0.33.0"
|
version = "0.34.0"
|
||||||
description = "Crate-wrapper for air"
|
description = "Crate-wrapper for air"
|
||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "air"
|
name = "air"
|
||||||
version = "0.33.0"
|
version = "0.34.0"
|
||||||
description = "Interpreter of AIR scripts intended to coordinate request flow in the Fluence network"
|
description = "Interpreter of AIR scripts intended to coordinate request flow in the Fluence network"
|
||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.28.1] - 2022-12-26
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Bump version of `avm-interpreter-interface` to 0.12.1:
|
||||||
|
it has removed a new `cid` field in the `InterpreterOutcome`.
|
||||||
|
|
||||||
## [0.28.0] - 2022-12-21
|
## [0.28.0] - 2022-12-21
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "avm-interface"
|
name = "avm-interface"
|
||||||
description = "Fluence AIR VM interfacing"
|
description = "Fluence AIR VM interfacing"
|
||||||
version = "0.28.0"
|
version = "0.28.1"
|
||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@ -15,7 +15,7 @@ name = "avm_interface"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
air-interpreter-interface = { version = "0.12.0", path = "../../crates/air-lib/interpreter-interface", default-features = false }
|
air-interpreter-interface = { version = "0.12.1", path = "../../crates/air-lib/interpreter-interface", default-features = false }
|
||||||
air-utils = { version = "0.1.0", path = "../../crates/air-lib/utils" }
|
air-utils = { version = "0.1.0", path = "../../crates/air-lib/utils" }
|
||||||
avm-data-store = { version = "0.4.1", path = "../../crates/data-store" }
|
avm-data-store = { version = "0.4.1", path = "../../crates/data-store" }
|
||||||
polyplets = { version = "0.3.2", path = "../../crates/air-lib/polyplets" }
|
polyplets = { version = "0.3.2", path = "../../crates/air-lib/polyplets" }
|
||||||
|
@ -41,7 +41,6 @@ impl RawAVMOutcome {
|
|||||||
data,
|
data,
|
||||||
call_requests,
|
call_requests,
|
||||||
next_peer_pks,
|
next_peer_pks,
|
||||||
cid: _,
|
|
||||||
} = outcome;
|
} = outcome;
|
||||||
|
|
||||||
let call_requests = crate::from_raw_call_requests(call_requests)?;
|
let call_requests = crate::from_raw_call_requests(call_requests)?;
|
||||||
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.28.1] - 2022-12-26
|
||||||
|
|
||||||
|
+ Update `avm-interface` version after `air-interpreter-interface` version bump.
|
||||||
|
|
||||||
## [0.28.0] - 2022-12-21
|
## [0.28.0] - 2022-12-21
|
||||||
|
|
||||||
+ Update `avm-interface` version after `air-interpreter-interface` version bump.
|
+ Update `avm-interface` version after `air-interpreter-interface` version bump.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "avm-server"
|
name = "avm-server"
|
||||||
description = "Fluence AIR VM"
|
description = "Fluence AIR VM"
|
||||||
version = "0.28.0"
|
version = "0.28.1"
|
||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@ -15,7 +15,7 @@ name = "avm_server"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
air-interpreter-interface = { version = "0.12.0", path = "../../crates/air-lib/interpreter-interface" }
|
air-interpreter-interface = { version = "0.12.1", path = "../../crates/air-lib/interpreter-interface" }
|
||||||
air-utils = { version = "0.1.0", path = "../../crates/air-lib/utils" }
|
air-utils = { version = "0.1.0", path = "../../crates/air-lib/utils" }
|
||||||
avm-data-store = { version = "0.4.1", path = "../../crates/data-store" }
|
avm-data-store = { version = "0.4.1", path = "../../crates/data-store" }
|
||||||
marine-runtime = "0.24.0"
|
marine-runtime = "0.24.0"
|
||||||
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.12.1] - 2022-12-26
|
||||||
|
|
||||||
|
+ Remove the new `cid` field of the `InterpreterOutcome` as it is not really needed.
|
||||||
|
|
||||||
## [0.12.0] - 2022-12-21
|
## [0.12.0] - 2022-12-21
|
||||||
|
|
||||||
+ New `cid` field of the `InterpreterOutcome` contains CID of the data.
|
+ New `cid` field of the `InterpreterOutcome` contains CID of the data.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "air-interpreter-interface"
|
name = "air-interpreter-interface"
|
||||||
description = "Interface of the AIR interpreter"
|
description = "Interface of the AIR interpreter"
|
||||||
version = "0.12.0"
|
version = "0.12.1"
|
||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@ -15,7 +15,6 @@ name = "air_interpreter_interface"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
air-interpreter-cid = { version = "0.1.0", path = "../interpreter-cid" }
|
|
||||||
marine-rs-sdk = { version = "0.7.1", optional = true }
|
marine-rs-sdk = { version = "0.7.1", optional = true }
|
||||||
fluence-it-types = { version = "0.3.2", optional = true }
|
fluence-it-types = { version = "0.3.2", optional = true }
|
||||||
|
|
||||||
|
@ -43,9 +43,6 @@ pub struct InterpreterOutcome {
|
|||||||
|
|
||||||
/// Collected parameters of all met call instructions that could be executed on a current peer.
|
/// Collected parameters of all met call instructions that could be executed on a current peer.
|
||||||
pub call_requests: Vec<u8>,
|
pub call_requests: Vec<u8>,
|
||||||
|
|
||||||
/// IPLD CID of the data field.
|
|
||||||
pub cid: String,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InterpreterOutcome {
|
impl InterpreterOutcome {
|
||||||
@ -56,15 +53,12 @@ impl InterpreterOutcome {
|
|||||||
next_peer_pks: Vec<String>,
|
next_peer_pks: Vec<String>,
|
||||||
call_requests: Vec<u8>,
|
call_requests: Vec<u8>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let cid = air_interpreter_cid::json_data_cid(&data).into();
|
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
ret_code,
|
ret_code,
|
||||||
error_message,
|
error_message,
|
||||||
data,
|
data,
|
||||||
next_peer_pks,
|
next_peer_pks,
|
||||||
call_requests,
|
call_requests,
|
||||||
cid,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user