abstract_core/
registry.rs

1//! # Registry
2//!
3//! `abstract_core` contains all contract names supported by Abstract.
4//!
5//! ## Description
6//! These fixed names can be used to provide name-addressable searches for complex logic.
7
8pub const MANAGER: &str = "abstract:manager";
9pub const VERSION_CONTROL: &str = "abstract:version-control";
10pub const ACCOUNT_FACTORY: &str = "abstract:account-factory";
11pub const MODULE_FACTORY: &str = "abstract:module-factory";
12pub const PROXY: &str = "abstract:proxy";
13pub const ANS_HOST: &str = "abstract:ans-host";
14pub const IBC_CLIENT: &str = "abstract:ibc-client";
15pub const IBC_HOST: &str = "abstract:ibc-host";
16
17/// IBC protocols
18pub const ICS20: &str = "ics-20";
19
20// chain-id prefixes based on `https://cosmos.directory/`
21pub const JUNO: &[&str] = &["juno", "uni"];
22pub const OSMOSIS: &[&str] = &["osmosis", "osmo", "osmo-test"];
23pub const TERRA: &[&str] = &["phoenix", "pisco"];
24pub const KUJIRA: &[&str] = &["kaiyo", "harpoon"];
25pub const NEUTRON: &[&str] = &["pion", "neutron"];
26pub const ARCHWAY: &[&str] = &["constantine", "archway"];
27pub const LOCAL_CHAIN: &[&str] = &["cosmos-testnet"];
28/// Useful when deploying version control
29#[allow(unused)]
30pub static NATIVE_CONTRACTS: &[&str] = &[
31    ANS_HOST,
32    MODULE_FACTORY,
33    ACCOUNT_FACTORY,
34    VERSION_CONTROL,
35    "cw20",
36];
37pub static ACCOUNT_CONTRACTS: &[&str] = &[MANAGER, PROXY];
38pub const ABSTRACT_EVENT_TYPE: &str = "wasm-abstract";