diff --git a/docs/src/chains/bitsong.md b/docs/src/chains/bitsong.md new file mode 100644 index 000000000..b6bb9a1a7 --- /dev/null +++ b/docs/src/chains/bitsong.md @@ -0,0 +1,17 @@ +# Bitsong + +BitSong is a multifunctional blockchain-based ecosystem built to empower the music industry. It unites artists, fans, distributors in an environment where music, merchandise, and fan loyalty are assets of value. BitSong’s decentralized ecosystem of services provides the global music community with a trustless marketplace for music streaming, Fan Tokens, and NFTs, powered by the BTSG token. + +[Bitsongs Website](https://bitsong.io/) + +```rust,ignore +{{#include ../../../packages/cw-orch-networks/src/networks/bitsong.rs:bitsong}} +``` + +## Usage + +See how to setup your main function in the [main function](../contracts/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::BITSONG_1`. +## References + +- [Bitsong Documentation](https://docs.bitsong.io/) +- [Bitsong Discord](https://discord.gg/M2fJKfMHAw) diff --git a/packages/cw-orch-networks/src/networks/bitsong.rs b/packages/cw-orch-networks/src/networks/bitsong.rs new file mode 100644 index 000000000..707881af1 --- /dev/null +++ b/packages/cw-orch-networks/src/networks/bitsong.rs @@ -0,0 +1,42 @@ +use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo}; + +// ANCHOR: bitsong +pub const BITSONG_NETWORK: NetworkInfo = NetworkInfo { + chain_name: "bitsong", + pub_address_prefix: "bitsong", + coin_type: 639u32, +}; + +pub const BITSONG_1: ChainInfo = ChainInfo { + kind: ChainKind::Mainnet, + chain_id: "bitsong-1", + gas_denom: "ubtsg", + gas_price: 0.025, + grpc_urls: &["http://grpc-bitsong-ia.cosmosia.notional.ventures:443"], + network_info: BITSONG_NETWORK, + lcd_url: None, + fcd_url: None, +}; + +pub const BOBNET: ChainInfo = ChainInfo { + kind: ChainKind::Testnet, + chain_id: "bobnet", + gas_denom: "ubtsg", + gas_price: 0.025, + grpc_urls: &["http://grpc-testnet.explorebitsong.com:443"], + network_info: BITSONG_NETWORK, + lcd_url: None, + fcd_url: None, +}; + +pub const LOCAL_BITSONG: ChainInfo = ChainInfo { + kind: ChainKind::Local, + chain_id: "localbitsong", + gas_denom: "ubtsg", + gas_price: 0.0026, + grpc_urls: &["tcp://localhost:9094"], + network_info: BITSONG_NETWORK, + lcd_url: None, + fcd_url: None, +}; +// ANCHOR_END: bitsong diff --git a/packages/cw-orch-networks/src/networks/mod.rs b/packages/cw-orch-networks/src/networks/mod.rs index 85f7abe74..d9d3c53a1 100644 --- a/packages/cw-orch-networks/src/networks/mod.rs +++ b/packages/cw-orch-networks/src/networks/mod.rs @@ -3,6 +3,7 @@ //! Contains information and helpers for different blockchain networks //! See [parse_network] to easily retrieve this static network information pub mod archway; +pub mod bitsong; pub mod doravota; pub mod injective; pub mod juno; @@ -17,6 +18,7 @@ pub mod terra; pub mod xion; pub use archway::{ARCHWAY_1, CONSTANTINE_3}; +pub use bitsong::{BITSONG_1, BOBNET}; pub use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo}; pub use doravota::{VOTA_ASH, VOTA_TESTNET}; pub use injective::{INJECTIVE_1, INJECTIVE_888}; @@ -49,6 +51,7 @@ pub fn parse_network(net_id: &str) -> Result { } pub const SUPPORTED_NETWORKS: &[ChainInfo] = &[ + BOBNET, UNI_6, JUNO_1, LOCAL_JUNO,