near_workspaces/
lib.rs

1//! # NEAR Workspaces
2//!
3//! A library for automating workflows and writing tests for NEAR smart contracts.
4//! This software is not final, and will likely change.
5
6// We want to enable all clippy lints, but some of them generate false positives.
7#![allow(clippy::missing_const_for_fn, clippy::redundant_pub_crate)]
8
9#[cfg(feature = "unstable")]
10mod cargo;
11#[cfg(feature = "unstable")]
12pub use cargo::compile_project;
13#[cfg(feature = "unstable")]
14pub use cargo_near_build;
15
16mod worker;
17
18pub mod error;
19pub mod network;
20pub mod operations;
21pub mod prelude;
22pub mod result;
23pub mod rpc;
24pub mod types;
25
26/// The near_abi_client implementation is currently in flux and we offer a re-export
27/// of it and example code. No public near_abi APIs are baked into workspace-rs yet.
28pub use near_abi_client;
29
30pub use network::variants::{DevNetwork, Network};
31pub use result::Result;
32pub use types::account::{Account, AccountDetailsPatch, Contract, ContractState};
33pub use types::block::Block;
34pub use types::chunk::Chunk;
35pub use types::{AccessKey, AccountId, BlockHeight, CryptoHash, InMemorySigner};
36pub use worker::{
37    betanet, mainnet, mainnet_archival, sandbox, sandbox_with_version, testnet, testnet_archival,
38    with_betanet, with_mainnet, with_mainnet_archival, with_sandbox, with_testnet,
39    with_testnet_archival, Worker,
40};
41
42#[cfg(feature = "unstable")]
43pub use worker::{custom, with_custom};