near-workspaces (Rust) 0.5.0
This release contains a lot breaking changes, and finally removes the requirement of having to provide worker to each function call when submitting a transaction or view request. For a full list of the breaking changes…
- The latest release in the 0.5 line.
- Newest near-workspaces (Rust): near-workspaces (Rust) 0.24.0
This release contains a lot breaking changes, and finally removes the requirement of having to provide worker to each function call when submitting a transaction or view request. For a full list of the breaking changes look below:
Added
- Error handling with opaque
workspaces::error::Errortype: https://github.com/near/workspaces-rs/pull/149 - Require
#[must_use]on the Execution value returned bytransact(): https://github.com/near/workspaces-rs/pull/150- Added
ExecutionFinalResult,ExecutionResult,ExecutionSuccessandExecutionFailuretypes - Added
into_result()to easily handle#[must_use] ExecutionFinalResult - Added
unwrap()to not care about Err variant inExecutionResults
- Added
Changed
- Renamed CallExecution* types: https://github.com/near/workspaces-rs/pull/150
- Renamed
CallExecution`` toExecution` - Renamed
CallExecutionDetailstoExecutionFinalResult
- Renamed
args_jsonandargs_borshno longer returnResults and are deferred till later whentransact()ed: https://github.com/near/workspaces-rs/pull/149- API changes from removing
workerparameter from function calls: https://github.com/near/workspaces-rs/pull/181Account::from_filefunction signature change, requiring a&workerto be passed in.workspaces::prelude::*import no longer necessary, where we no longer able to importworkspaces::prelude::DevAccountDeployerdirectly.
Removed
- Removed impls from exection result: https://github.com/near/workspaces-rs/pull/150
- Removed
impl<T> From<CallExecution<T>> for Result<T> - Removed
impl From<FinalExecutionOutcomeView> for CallExecutionDetails
- Removed
- No longer require
workerto be passed in for each transaction: https://github.com/near/workspaces-rs/pull/181
Fixed
- Gas estimation issue resolved with latest sandbox node (Aug 29, 2022): https://github.com/near/workspaces-rs/pull/188
- Fixed parallel tests, where calling into the same contract would require waiting on a previous call: https://github.com/near/workspaces-rs/pull/173