Skip to content

Commit 703cf2d

Browse files
cryptoquickoacdutraArmando CD
authored
Add bitmask endpoint to both get_env and set_env. (#261)
* feat: bump rgb version * feat: conseq transfers * feat: allow build psbt with multiple inputs * Bump version to 0.6.0-rc.3. * Bump version to 0.6.0-rc.4. * fix: transfers tests * feat: add carbonado header information * feat: add support to re-issue * Refactor metadtata option type mapping. * Add linting for tests in CI. Fix web_storage test. * feat: add support to re-issue * Fix additional clippy lints for integration tests. * feat: add support to re-issue * Reverse argument order. Fix lints. * Fix mismatched types errors. * Undo vscode setting. * refactor: allow force write file * refactor: bump to strict-types 1.4.x * chore: comment expensive tests * Turn some unwraps into ? to better propagate errors instead of panics. * chor: bump strict-types to 1.4.1 * Refactor constants formatting. * Refactor RGB imports. * Bump version to 0.6.0-rc.5. * Fix crate alphabetization. * Update src/rgb/constants.rs Co-authored-by: Armando CD <crisdut@users.noreply.github.com> * Add bitmask endpoint to both get_env and set_env. --------- Co-authored-by: Armando Dutra <crisdut@outlook.com> Co-authored-by: Armando CD <crisdut@users.noreply.github.com>
1 parent 71314a8 commit 703cf2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/constants.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ pub static CARBONADO_ENDPOINT: Lazy<RwLock<String>> =
136136
pub async fn get_env(key: &str) -> String {
137137
match key {
138138
"LNDHUB_ENDPOINT" => LNDHUB_ENDPOINT.read().await.to_string(),
139+
"BITMASK_ENDPOINT" => BITMASK_ENDPOINT.read().await.to_string(),
139140
"CARBONADO_ENDPOINT" => CARBONADO_ENDPOINT.read().await.to_string(),
140141
"BITCOIN_EXPLORER_API_MAINNET" => BITCOIN_EXPLORER_API_MAINNET.read().await.to_string(),
141142
"BITCOIN_EXPLORER_API_TESTNET" => BITCOIN_EXPLORER_API_TESTNET.read().await.to_string(),
@@ -155,6 +156,7 @@ pub async fn get_env(key: &str) -> String {
155156
pub async fn set_env(key: &str, value: &str) {
156157
match key {
157158
"LNDHUB_ENDPOINT" => *LNDHUB_ENDPOINT.write().await = value.to_owned(),
159+
"BITMASK_ENDPOINT" => *BITMASK_ENDPOINT.write().await = value.to_owned(),
158160
"CARBONADO_ENDPOINT" => *CARBONADO_ENDPOINT.write().await = value.to_owned(),
159161
"BITCOIN_EXPLORER_API_MAINNET" => {
160162
*BITCOIN_EXPLORER_API_MAINNET.write().await = value.to_owned()

0 commit comments

Comments
 (0)