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 look below:
Added
- Error handling with opaque
workspaces::error::Error
type: #149 - Require
#[must_use]
on the Execution value returned bytransact()
: #150- Added
ExecutionFinalResult
,ExecutionResult
,ExecutionSuccess
andExecutionFailure
types - Added
into_result()
to easily handle#[must_use] ExecutionFinalResult
- Added
unwrap()
to not care about Err variant inExecutionResult
s
- Added
Changed
- Renamed CallExecution* types: #150
- Renamed
CallExecution`` to
Execution` - Renamed
CallExecutionDetails
toExecutionFinalResult
- Renamed
args_json
andargs_borsh
no longer returnResult
s and are deferred till later whentransact()
ed: #149- API changes from removing
worker
parameter from function calls: #181Account::from_file
function signature change, requiring a&worker
to be passed in.workspaces::prelude::*
import no longer necessary, where we no longer able to importworkspaces::prelude::DevAccountDeployer
directly.
Removed
- Removed impls from exection result: #150
- Removed
impl<T> From<CallExecution<T>> for Result<T>
- Removed
impl From<FinalExecutionOutcomeView> for CallExecutionDetails
- Removed
- No longer require
worker
to be passed in for each transaction: #181