Skip to content

near-workspaces-v0.8.0

Compare
Choose a tag to compare
@frol frol released this 05 Oct 08:11
· 41 commits to main since this release
2b1ce92
  • [breaking] renamed crate to near-workspaces to avoid confusion with Cargo workspaces; imports should now use near_workspaces instead of just workspaces (#318)
  • Upgraded to Rust Stable Toolchain. Deprecates requirement of only using rustc-1.69 and lower.

Added

  • Import a couple functions over from near_crypto for PublicKey
    • Impl Ord, PartialOrd, Hash, BorshSerialize, BorshDeserialize, Display, and FromStr for PublicKey
      • NOTE: Borsh bytes format is the same as near-sdk, where it is in the form of [bytes_len, key_type, key_data..]
    • Added PublicKey::{empty, len, key_data}
    • Impl Display for SecretKey.
    • more docs were added to both SecretKey and PublicKey.
    • Impl Display, FromStr, TryFrom<u8> for KeyType.
  • Added TryFrom<near_sdk::PublicKey> for workspaces::PublicKey
    • Added KeyType::len and PublicKey::try_from_bytes
  • Added experimental apis from near-sdk-rs, available under the experimental flag.
    • Methods added are: EXPERIMENTAL_changes_in_block, EXPERIMENTAL_changes, EXPERIMENTAL_genesis_config, EXPERIMENTAL_protocol_config, EXPERIMENTAL_receipt, EXPERIMENTAL_tx_status, EXPERIMENTAL_validators_ordered
  • Added Worker::patch to patch account, keys, code, and state in a generic builder
    • Added Worker::patch and PatchTransaction that provide builders for patching accounts, keys, code, and state.
    • Added AccountDetails and AccountDetailsPatch which hold the state of the patch.
  • Allow to select a specific version of near-sandbox (#311)
  • Enable support for RPCs that require API keys and support for custom networks (#306)
  • expose more Block and Chunk fields (#243)
  • support manually supplied validator key (#274)

Changed

Fixed

  • improve error msg on calling json on void function (#286)
  • fix typos (#280)
  • Run neard on localhost instead of 0.0.0.0 to prevent firewall popups on MacOS (#277)
  • storing credentials (#258)
  • Make call consistent with worker::view (#245)

Other

  • drop async-process in favor of tokio (#316)
  • switch to near-gas crate for Gas where possible (#305)
  • Improved fast_forward docs (#299)
  • Added test for delete_account (#289)
  • Added a test for transfer_near (#290)
  • using url return type (#297)
  • dependencies and removed unused deps (#292)
  • upgrade to stable toolchain (#293)
  • Updated near deps to 0.17 (#283)
  • Use cargo-near to build project (#275)
  • Added network builder for mainnet, testnet, betanet (#221)
  • bump borsh version and other deps (#271)
  • bump sandbox to 0.6.2 (#270)
  • Import some functions over from near_crypto for PublicKey (#265)
  • Added destination account-id for import_contract call (#260)
  • Fix port collision (#257)
  • Removed the lifetime in transact_async (#249)
  • configure sandbox (#251)