From 416b865c48d23c325605149d353da8596840ff55 Mon Sep 17 00:00:00 2001 From: hard-nett Date: Wed, 12 Jun 2024 23:32:54 +0000 Subject: [PATCH 1/4] add bitsong --- .../cw-orch-networks/src/networks/bitsong.rs | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 packages/cw-orch-networks/src/networks/bitsong.rs 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..c81e04e97 --- /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: 118u32, +}; + +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: "", + gas_denom: "ubtsg", + gas_price: 0.025, + grpc_urls: &["http://grpc-: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 From 1b1d260c3996c241f39d88cfdcc459b3be07510e Mon Sep 17 00:00:00 2001 From: hard-nett Date: Sat, 22 Jun 2024 13:46:42 +0000 Subject: [PATCH 2/4] bitsong endpoint, docs --- docs/src/chains/bitsong.md | 17 +++++++++++++++++ .../cw-orch-networks/src/networks/bitsong.rs | 4 ++-- packages/cw-orch-networks/src/networks/mod.rs | 3 +++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 docs/src/chains/bitsong.md 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 index c81e04e97..572592d33 100644 --- a/packages/cw-orch-networks/src/networks/bitsong.rs +++ b/packages/cw-orch-networks/src/networks/bitsong.rs @@ -20,10 +20,10 @@ pub const BITSONG_1: ChainInfo = ChainInfo { pub const BOBNET: ChainInfo = ChainInfo { kind: ChainKind::Testnet, - chain_id: "", + chain_id: "bobnet", gas_denom: "ubtsg", gas_price: 0.025, - grpc_urls: &["http://grpc-:443"], + grpc_urls: &["http://grpc-testnet.explorebitsong.com::443"], network_info: BITSONG_NETWORK, lcd_url: None, fcd_url: None, 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, From d5f31ec6173f5fe337ab1ebdba479342930539ac Mon Sep 17 00:00:00 2001 From: hard-nett Date: Mon, 24 Jun 2024 11:11:01 +0000 Subject: [PATCH 3/4] typo fix --- packages/cw-orch-networks/src/networks/bitsong.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cw-orch-networks/src/networks/bitsong.rs b/packages/cw-orch-networks/src/networks/bitsong.rs index 572592d33..73c1cca17 100644 --- a/packages/cw-orch-networks/src/networks/bitsong.rs +++ b/packages/cw-orch-networks/src/networks/bitsong.rs @@ -23,7 +23,7 @@ pub const BOBNET: ChainInfo = ChainInfo { chain_id: "bobnet", gas_denom: "ubtsg", gas_price: 0.025, - grpc_urls: &["http://grpc-testnet.explorebitsong.com::443"], + grpc_urls: &["http://grpc-testnet.explorebitsong.com:443"], network_info: BITSONG_NETWORK, lcd_url: None, fcd_url: None, From ab5ad228dbbba38dc2afa121e7a331347bd1dd56 Mon Sep 17 00:00:00 2001 From: hard-nett Date: Mon, 24 Jun 2024 13:14:10 +0000 Subject: [PATCH 4/4] update coin_type --- packages/cw-orch-networks/src/networks/bitsong.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cw-orch-networks/src/networks/bitsong.rs b/packages/cw-orch-networks/src/networks/bitsong.rs index 73c1cca17..707881af1 100644 --- a/packages/cw-orch-networks/src/networks/bitsong.rs +++ b/packages/cw-orch-networks/src/networks/bitsong.rs @@ -4,7 +4,7 @@ use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo}; pub const BITSONG_NETWORK: NetworkInfo = NetworkInfo { chain_name: "bitsong", pub_address_prefix: "bitsong", - coin_type: 118u32, + coin_type: 639u32, }; pub const BITSONG_1: ChainInfo = ChainInfo {