forc_wallet/
lib.rs

1use std::path::PathBuf;
2use url::Url;
3
4pub mod account;
5pub mod balance;
6pub mod export;
7pub mod format;
8pub mod import;
9pub mod list;
10pub mod new;
11pub mod sign;
12pub mod utils;
13
14pub const DEFAULT_CACHE_ACCOUNTS: usize = 1;
15
16/// The default network used in the case that none is specified.
17pub mod network {
18    pub const DEFAULT: &str = MAINNET;
19    pub const TESTNET: &str = "https://testnet.fuel.network/";
20    pub const TESTNET_FAUCET: &str = "https://faucet-testnet.fuel.network/";
21    pub const MAINNET: &str = "https://mainnet.fuel.network/";
22}
23
24/// Contains definitions of URLs to the block explorer for each network.
25pub mod explorer {
26    pub const DEFAULT: &str = MAINNET;
27    pub const TESTNET: &str = "https://app-testnet.fuel.network";
28    pub const MAINNET: &str = "https://app.fuel.network";
29}
30
31pub struct CliContext {
32    pub wallet_path: PathBuf,
33    pub node_url: Url,
34}