From cd58bce6ac63e01495c985971a52cf40bed0b641 Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Tue, 17 Dec 2024 18:24:03 +0100 Subject: [PATCH] feat(sbtc): update contracts with mainnet addresses --- config/wallet-config.json | 16 ++++++++++++- config/wallet-config.schema.json | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/config/wallet-config.json b/config/wallet-config.json index 13de87c9121..382ad4de5b0 100644 --- a/config/wallet-config.json +++ b/config/wallet-config.json @@ -93,6 +93,18 @@ "recoverUninscribedTaprootUtxosFeatureEnabled": true, "runesEnabled": true, "swapsEnabled": true, + "sbtc": { + "enabled": false, + "contracts": { + "mainnet": { + "address": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token" + }, + "testnet": { + "address": "SNGWPN3XDAQE673MXYXF81016M50NHF5X5PWWM70.sbtc-token::sbtc-token" + } + }, + "showPromoLinkOnNetworks": ["testnet", "sbtcTestnet"] + }, "tokensEnabledByDefault": [ "DOGGOTOTHEMOON", "RSICGENESISRUNE", @@ -108,6 +120,8 @@ "SM26NBC8SFHNW4P1Y4DFH27974P56WN86C92HPEHH.token-lqstx::lqstx", "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token::velar", "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token::ststx", - "SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-token::diko" + "SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-token::diko", + "SNGWPN3XDAQE673MXYXF81016M50NHF5X5PWWM70.sbtc-token::sbtc-token", + "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token" ] } diff --git a/config/wallet-config.schema.json b/config/wallet-config.schema.json index 4746578f4ff..5bfdfdffd55 100644 --- a/config/wallet-config.schema.json +++ b/config/wallet-config.schema.json @@ -149,6 +149,46 @@ "swapsEnabled": { "type": "boolean", "description": "Determines whether or not the swaps feature is enabled" + }, + "sbtc": { + "type": "object", + "description": "Configuration for SBTC", + "properties": { + "enabled": { + "type": "boolean", + "description": "Determines whether or not SBTC is enabled" + }, + "showPromoLinkOnNetworks": { + "type": "array", + "description": "Networks on which the promo link should be shown", + "items": { + "type": "string" + } + }, + "contracts": { + "type": "object", + "properties": { + "mainnet": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Mainnet contract address" + } + } + }, + "testnet": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Testnet contract address" + } + } + } + } + } + } } }, "$defs": {