mirror of
https://github.com/fluencelabs/aquavm
synced 2025-04-24 14:52:15 +00:00
fix(dep): update air-near-contract deps (#839)
It fixes several vulnerabilities in deps
This commit is contained in:
parent
d1f0e2fc32
commit
79d1c11a0e
1786
tools/wasm/air-near-contract/Cargo.lock
generated
1786
tools/wasm/air-near-contract/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -14,8 +14,8 @@ crate-type = ["cdylib"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
aquavm-air = { path = "../../../air" }
|
aquavm-air = { path = "../../../air" }
|
||||||
air-interpreter-interface = { path = "../../../crates/air-lib/interpreter-interface" }
|
air-interpreter-interface = { path = "../../../crates/air-lib/interpreter-interface", default-features = false }
|
||||||
near-sdk = "4.1.1"
|
near-sdk = "5.1.0"
|
||||||
serde = { version = "1.0.190", features = [ "derive", "rc" ] }
|
serde = { version = "1.0.190", features = [ "derive", "rc" ] }
|
||||||
serde_json = "1.0.108"
|
serde_json = "1.0.108"
|
||||||
hashbrown = { version = "0.14.2", default-features = false }
|
hashbrown = { version = "0.14.2", default-features = false }
|
||||||
@ -38,4 +38,3 @@ check_signatures = ["aquavm-air/check_signatures"]
|
|||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
fluence-keypair = { git = "https://github.com/fluencelabs/trust-graph.git", branch = "lean-keypair" }
|
fluence-keypair = { git = "https://github.com/fluencelabs/trust-graph.git", branch = "lean-keypair" }
|
||||||
libp2p-identity = { git = "https://github.com/fluencelabs/rust-libp2p.git", branch = "rand-feature" }
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.69"
|
channel = "1.77"
|
||||||
targets = [ "wasm32-unknown-unknown" ]
|
targets = [ "wasm32-unknown-unknown" ]
|
||||||
|
@ -18,16 +18,13 @@ use air::execute_air;
|
|||||||
use air::RunParameters;
|
use air::RunParameters;
|
||||||
use air_interpreter_interface::InterpreterOutcome;
|
use air_interpreter_interface::InterpreterOutcome;
|
||||||
|
|
||||||
use near_sdk::near_bindgen;
|
use near_sdk::near;
|
||||||
use near_sdk::borsh as borsh;
|
|
||||||
use borsh::BorshDeserialize;
|
|
||||||
use borsh::BorshSerialize;
|
|
||||||
|
|
||||||
#[near_bindgen]
|
#[near(contract_state)]
|
||||||
#[derive(BorshDeserialize, BorshSerialize, Default)]
|
#[derive(Default)]
|
||||||
pub struct Aqua {}
|
pub struct Aqua {}
|
||||||
|
|
||||||
#[near_bindgen]
|
#[near]
|
||||||
impl Aqua {
|
impl Aqua {
|
||||||
#[result_serializer(borsh)]
|
#[result_serializer(borsh)]
|
||||||
pub fn execute_script(
|
pub fn execute_script(
|
||||||
@ -58,6 +55,6 @@ impl Aqua {
|
|||||||
let params: RunParameters =
|
let params: RunParameters =
|
||||||
serde_json::from_slice(¶ms).expect("cannot parse RunParameters");
|
serde_json::from_slice(¶ms).expect("cannot parse RunParameters");
|
||||||
|
|
||||||
execute_air(air, prev_data, cur_data, params, call_results)
|
execute_air(air, prev_data, cur_data, params, call_results.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user