Skip to content

Releases: near/near-workspaces-rs

0.3.0

11 May 04:17
c77e7d6
Compare
Choose a tag to compare

This release includes upping the sandbox version to include the new weighted gas protocol change from near/nearcore#6285

Added

  • Added betanet support #116

Changed

  • Updated default sandbox version to 97c0410de519ecaca369aaee26f0ca5eb9e7de06 commit of nearcore to include 1.26 protocol changes #134

0.2.1

13 Apr 18:55
Compare
Choose a tag to compare

A minor release to fix doc builds on docs.rs

Added

  • Added more docs to top level or exposed types/functions: #115

Fixed

  • Fix docs.rs builds failing on sandbox install: #115

0.2.0

06 Apr 01:03
f2dcf76
Compare
Choose a tag to compare

Context

This new release contains a lot of new additions. Find the relevant ones following this section. Going forward, sim-tests will be deprecated once the examples, documentation, and content around workspaces-rs have been updated. workspaces will be the standard testing framework, providing much simpler and unified testing developer experience.

Added

  • Time-traveling - the ability to go forwards in block height within tests. This allows to test time specific data changing within contracts: #73
  • Credentials created from account/contract creation are now allowed to be stored and specified by users. #98
  • [Unstable] Allow users to compile contract projects within tests without having to manually go through this step. #77
  • Batch transactions or transactions with multiple actions are now possible. #72
  • Sandbox node (nearcore binary) logs are now suppressed and can be re-enabled if desired. #85
  • Results now expose logs, receipts, and transaction outcome values. #70
  • Convenience methods Worker::view_code, Worker::view_latest_block, Worker::view_account, Account::view_account, Contract::view_account, Contract::view_code now available. #82
  • Improve error handling. If a transaction fails, this error will now be apart of the Result return initially. #83
  • Added tracing logging to internal code and examples. #55 and #75
  • Convenient CallExecutionDetails::{is_success, is_failure} for testing outcomes of transactions. #58
  • Added mainnet_archival and testnet_archival, where ref-finance example now uses mainnet_archival. #57 and #94

Fixes

  • key type for patch_state now a slice and no longer require StoreKey. #109
  • Reorganized imports internally for better maintainability. #102
  • No longer running into non-deterministic query failures if RPC isn't available, but this is a breaking API. All workspaces::{sandbox, testnet, mainnet} now require .await? at the end. #99
  • TLA trait no longer apart of all networks -- only dev-networks (sandbox, testnet). #101
  • Retry times have now been shorten and should take a maximum of 1 second. #92
  • doc builds on docs.rs has now been fixed. #90
  • patch_state now takes in slices. #80 and #79
  • Make access_key call do optimistic queries which led to better retry times. #60
  • Functions no longer take in owned but referenced AccountIds now. #52

Removed

  • Empty JSON array is no longer a valid default argument supplied to transactions. Recommended to supply empty {} in the case of JSON if all function arguments in the contract are optional types. #84

0.1.1

24 Jan 18:39
Compare
Choose a tag to compare

This release includes a bugfix for installing the sandbox binaries which could potentially error out multiple tests if ran for the first time

0.1.0

21 Dec 18:30
679053a
Compare
Choose a tag to compare

The initial release of workspaces-rs! This API is in the early stages but allows setting up workflows to run commands or test against a Sandbox node, testnet, or mainnet.