Crate near_workspaces

source
Expand description

§NEAR Workspaces

A library for automating workflows and writing tests for NEAR smart contracts. This software is not final, and will likely change.

Re-exports§

Modules§

  • All errors that can occur within workspaces, including but not limited to the following: IO, RPC, Execution, Sandbox, DataConversion errors.
  • All builtin network types and traits.
  • All operation types that are generated/used when making transactions or view calls.
  • All traits that are essential to the ease of use of workspaces.
  • Result and execution types from results of RPC calls to the network.
  • Types used in the workspaces crate.

Structs§

  • Account is directly associated to an account in the network provided by the Worker that creates it.
  • Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
  • NEAR Account Identifier.
  • Struct containing information on block coming from the network
  • Contract is directly associated to a contract in the network provided by the Worker that creates it.
  • The Worker type allows us to interact with any NEAR related networks, such as mainnet and testnet.

Traits§

  • DevNetwork is a Network that can call into dev_create and dev_deploy to create developer accounts.
  • Network trait specifies the functionality of a network type such as mainnet, testnet or any other networks that are not specified in this library.

Functions§