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]
|
||||
aquavm-air = { path = "../../../air" }
|
||||
air-interpreter-interface = { path = "../../../crates/air-lib/interpreter-interface" }
|
||||
near-sdk = "4.1.1"
|
||||
air-interpreter-interface = { path = "../../../crates/air-lib/interpreter-interface", default-features = false }
|
||||
near-sdk = "5.1.0"
|
||||
serde = { version = "1.0.190", features = [ "derive", "rc" ] }
|
||||
serde_json = "1.0.108"
|
||||
hashbrown = { version = "0.14.2", default-features = false }
|
||||
@ -38,4 +38,3 @@ check_signatures = ["aquavm-air/check_signatures"]
|
||||
|
||||
[patch.crates-io]
|
||||
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]
|
||||
channel = "1.69"
|
||||
channel = "1.77"
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
|
@ -18,16 +18,13 @@ use air::execute_air;
|
||||
use air::RunParameters;
|
||||
use air_interpreter_interface::InterpreterOutcome;
|
||||
|
||||
use near_sdk::near_bindgen;
|
||||
use near_sdk::borsh as borsh;
|
||||
use borsh::BorshDeserialize;
|
||||
use borsh::BorshSerialize;
|
||||
use near_sdk::near;
|
||||
|
||||
#[near_bindgen]
|
||||
#[derive(BorshDeserialize, BorshSerialize, Default)]
|
||||
#[near(contract_state)]
|
||||
#[derive(Default)]
|
||||
pub struct Aqua {}
|
||||
|
||||
#[near_bindgen]
|
||||
#[near]
|
||||
impl Aqua {
|
||||
#[result_serializer(borsh)]
|
||||
pub fn execute_script(
|
||||
@ -58,6 +55,6 @@ impl Aqua {
|
||||
let params: 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