@leather.io/constants 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @leather.io/constants@0.26.0 build /home/runner/work/mono/mono/packages/constants
2
+ > @leather.io/constants@0.27.0 build /home/runner/work/mono/mono/packages/constants
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,9 +8,9 @@
8
8
  CLI Using tsup config: /home/runner/work/mono/mono/packages/constants/tsup.config.ts
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
- ESM dist/index.js 4.38 KB
12
- ESM dist/index.js.map 6.39 KB
13
- ESM ⚡️ Build success in 16ms
11
+ ESM dist/index.js 4.46 KB
12
+ ESM dist/index.js.map 6.46 KB
13
+ ESM ⚡️ Build success in 23ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 2290ms
16
- DTS dist/index.d.ts 3.73 KB
15
+ DTS ⚡️ Build success in 2447ms
16
+ DTS dist/index.d.ts 3.81 KB
package/CHANGELOG.md CHANGED
@@ -207,6 +207,20 @@
207
207
  * dependencies
208
208
  * @leather.io/models bumped to 0.43.0
209
209
 
210
+ ## [0.27.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.26.0...@leather.io/constants-v0.27.0) (2025-10-10)
211
+
212
+
213
+ ### Features
214
+
215
+ * **mobile:** add swap validation ([572909b](https://github.com/leather-io/mono/commit/572909bfd0aa3adc2ce69f93a1968e23c3d27160))
216
+
217
+
218
+ ### Dependencies
219
+
220
+ * The following workspace dependencies were updated
221
+ * dependencies
222
+ * @leather.io/models bumped to 0.44.0
223
+
210
224
  ## [0.26.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.25.5...@leather.io/constants-v0.26.0) (2025-10-08)
211
225
 
212
226
 
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ declare const PERSISTENCE_CACHE_TIME: number;
12
12
  declare const BTC_DECIMALS = 8;
13
13
  declare const STX_DECIMALS = 6;
14
14
  declare const SATS_IN_BTC = 100000000;
15
+ declare const BITCOIN_MINIMUM_SPEND_IN_SATS = 546;
15
16
  declare const currencyDecimalsMap: Record<Currency, number>;
16
17
  declare const currencyNameMap: {
17
18
  readonly USD: "United States Dollar";
@@ -57,4 +58,4 @@ declare const HERMETICA_LINK = "https://www.hermetica.fi/";
57
58
  declare const BITFLOW_LINK = "https://app.bitflow.finance/";
58
59
  declare const VELAR_LINK = "https://www.velar.co/";
59
60
 
60
- export { ALEX_LINK, ARKADIKO_LINK, AccountDisplayPreferenceType, BITFLOW_LINK, BTC_DECIMALS, BTC_P2WPKH_DUST_AMOUNT, DEFAULT_FEE_RATE, DEFAULT_LIST_LIMIT, GRANITE_LINK, HERMETICA_LINK, HIGH_FEE_AMOUNT_STX, HIGH_FEE_WARNING_LEARN_MORE_URL_BTC, HIGH_FEE_WARNING_LEARN_MORE_URL_STX, HIRO_EXPLORER_URL, KEBAB_REGEX, LEATHER_API_URL_PRODUCTION, LEATHER_API_URL_STAGING, LEATHER_EARN_SBTC_URL, LEATHER_EARN_STACKING_URL, LEATHER_EARN_URL, LEATHER_EXTENSION_CHROME_STORE_URL, LEATHER_GUIDES_CONNECT_DAPPS, LEATHER_GUIDES_URL, LEATHER_LEARN_URL, LEATHER_SUPPORT_URL, ORD_IO_URL, PERSISTENCE_CACHE_TIME, SATS_IN_BTC, STX_DECIMALS, TOKEN_NAME_LENGTH, VELAR_LINK, ZERO_INDEX, ZEST_LINK, accountDisplayPreferencesKeyedByType, bitcoinUnitsKeyedByName, btcAsset, cryptoAssetColors, currencyDecimalsMap, currencyNameMap, gaiaUrl, stxAsset };
61
+ export { ALEX_LINK, ARKADIKO_LINK, AccountDisplayPreferenceType, BITCOIN_MINIMUM_SPEND_IN_SATS, BITFLOW_LINK, BTC_DECIMALS, BTC_P2WPKH_DUST_AMOUNT, DEFAULT_FEE_RATE, DEFAULT_LIST_LIMIT, GRANITE_LINK, HERMETICA_LINK, HIGH_FEE_AMOUNT_STX, HIGH_FEE_WARNING_LEARN_MORE_URL_BTC, HIGH_FEE_WARNING_LEARN_MORE_URL_STX, HIRO_EXPLORER_URL, KEBAB_REGEX, LEATHER_API_URL_PRODUCTION, LEATHER_API_URL_STAGING, LEATHER_EARN_SBTC_URL, LEATHER_EARN_STACKING_URL, LEATHER_EARN_URL, LEATHER_EXTENSION_CHROME_STORE_URL, LEATHER_GUIDES_CONNECT_DAPPS, LEATHER_GUIDES_URL, LEATHER_LEARN_URL, LEATHER_SUPPORT_URL, ORD_IO_URL, PERSISTENCE_CACHE_TIME, SATS_IN_BTC, STX_DECIMALS, TOKEN_NAME_LENGTH, VELAR_LINK, ZERO_INDEX, ZEST_LINK, accountDisplayPreferencesKeyedByType, bitcoinUnitsKeyedByName, btcAsset, cryptoAssetColors, currencyDecimalsMap, currencyNameMap, gaiaUrl, stxAsset };
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ var PERSISTENCE_CACHE_TIME = 1e3 * 60 * 60 * 12;
11
11
  var BTC_DECIMALS = 8;
12
12
  var STX_DECIMALS = 6;
13
13
  var SATS_IN_BTC = 1e8;
14
+ var BITCOIN_MINIMUM_SPEND_IN_SATS = 546;
14
15
  var currencyDecimalsMap = {
15
16
  BTC: BTC_DECIMALS,
16
17
  STX: STX_DECIMALS,
@@ -124,6 +125,7 @@ export {
124
125
  ALEX_LINK,
125
126
  ARKADIKO_LINK,
126
127
  AccountDisplayPreferenceType,
128
+ BITCOIN_MINIMUM_SPEND_IN_SATS,
127
129
  BITFLOW_LINK,
128
130
  BTC_DECIMALS,
129
131
  BTC_P2WPKH_DUST_AMOUNT,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n AccountDisplayPreference,\n AccountDisplayPreferenceInfo,\n BitcoinUnit,\n BitcoinUnitInfo,\n BtcAsset,\n CryptoCurrency,\n Currency,\n StxAsset,\n} from '@leather.io/models';\n\nexport const gaiaUrl = 'https://hub.blockstack.org';\n\nexport const ZERO_INDEX = 0;\n\nexport const HIRO_EXPLORER_URL = 'https://explorer.hiro.so';\nexport const ORD_IO_URL = 'https://ord.io';\n\nexport const HIGH_FEE_AMOUNT_STX = 5;\nexport const HIGH_FEE_WARNING_LEARN_MORE_URL_BTC = 'https://bitcoinfees.earn.com/';\nexport const HIGH_FEE_WARNING_LEARN_MORE_URL_STX =\n 'https://leather.gitbook.io/guides/transactions/fees';\n\nexport const DEFAULT_FEE_RATE = 400;\n\nexport const PERSISTENCE_CACHE_TIME = 1000 * 60 * 60 * 12; // 12 hours\n\nexport const BTC_DECIMALS = 8;\nexport const STX_DECIMALS = 6;\nexport const SATS_IN_BTC = 100_000_000;\n\n// Units of `Money` should be declared in their smallest unit. Similar to\n// Rosetta, we model currencies with their respective resolution\nexport const currencyDecimalsMap: Record<Currency, number> = {\n BTC: BTC_DECIMALS,\n STX: STX_DECIMALS,\n USD: 2,\n EUR: 2,\n GBP: 2,\n AUD: 2,\n CAD: 2,\n CNY: 2,\n JPY: 0,\n KRW: 0,\n} as const;\n\nexport const currencyNameMap = {\n USD: 'United States Dollar',\n EUR: 'Euro',\n GBP: 'British Pound',\n AUD: 'Australian Dollar',\n CAD: 'Canadian Dollar',\n CNY: 'Chinese Yuan',\n JPY: 'Japanese Yen',\n KRW: 'South Korean Won',\n BTC: 'Bitcoin',\n} as const;\n\n// https://bitcoin.stackexchange.com/a/41082/139277\nexport const BTC_P2WPKH_DUST_AMOUNT = 294;\n\nexport const KEBAB_REGEX = /[A-Z\\u00C0-\\u00D6\\u00D8-\\u00DE]/g;\n\nexport const DEFAULT_LIST_LIMIT = 50;\n\nexport const TOKEN_NAME_LENGTH = 4;\n\nexport const LEATHER_SUPPORT_URL = 'https://leather.io/contact';\n\nexport const LEATHER_GUIDES_URL = 'https://leather.io/guides';\n\nexport const LEATHER_GUIDES_CONNECT_DAPPS = `${LEATHER_GUIDES_URL}/connect-dapps`;\n\nexport const LEATHER_LEARN_URL = 'https://leather.io/learn';\n\nexport const LEATHER_EARN_URL = 'https://earn.leather.io';\n\nexport const LEATHER_EARN_STACKING_URL = 'https://app.leather.io/stacking';\nexport const LEATHER_EARN_SBTC_URL = 'https://app.leather.io/sbtc';\n\nexport const LEATHER_EXTENSION_CHROME_STORE_URL =\n 'https://chromewebstore.google.com/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj?hl=en';\n\nexport const LEATHER_API_URL_STAGING = 'https://staging.api.leather.io';\nexport const LEATHER_API_URL_PRODUCTION = 'https://api.leather.io';\n\nexport const bitcoinUnitsKeyedByName: Record<BitcoinUnit, BitcoinUnitInfo> = {\n bitcoin: {\n name: 'bitcoin',\n symbol: 'BTC',\n decimal: '1',\n },\n satoshi: {\n name: 'satoshi',\n symbol: 'sat',\n decimal: '0.00000001',\n },\n};\n\nexport enum AccountDisplayPreferenceType {\n NativeSegwit = 'native-segwit',\n Taproot = 'taproot',\n Bns = 'bns',\n Stacks = 'stacks',\n}\n\nexport const accountDisplayPreferencesKeyedByType: Record<\n AccountDisplayPreference,\n AccountDisplayPreferenceInfo\n> = {\n [AccountDisplayPreferenceType.NativeSegwit]: {\n type: 'native-segwit',\n blockchain: 'bitcoin',\n name: 'Native Segwit address',\n },\n [AccountDisplayPreferenceType.Taproot]: {\n type: 'taproot',\n blockchain: 'bitcoin',\n name: 'Taproot address',\n },\n [AccountDisplayPreferenceType.Bns]: {\n type: 'bns',\n blockchain: 'stacks',\n name: 'BNS name',\n },\n [AccountDisplayPreferenceType.Stacks]: {\n type: 'stacks',\n blockchain: 'stacks',\n name: 'Stacks address',\n },\n};\n\nexport const btcAsset: BtcAsset = {\n chain: 'bitcoin',\n protocol: 'nativeBtc',\n symbol: 'BTC',\n category: 'fungible',\n decimals: 8,\n hasMemo: false,\n};\n\nexport const stxAsset: StxAsset = {\n chain: 'stacks',\n protocol: 'nativeStx',\n symbol: 'STX',\n category: 'fungible',\n decimals: 6,\n hasMemo: false,\n};\n\nexport const cryptoAssetColors: Record<CryptoCurrency, string> = {\n BTC: '#F59300',\n STX: '#FC6432',\n sBTC: '#DC7045',\n VELAR: '#966D3D',\n aeUSDC: '#4A73BE',\n USDh: '#E39B53',\n};\n\nexport const ALEX_LINK = 'https://alexgo.io/';\nexport const ZEST_LINK = 'https://www.zestprotocol.com/';\nexport const ARKADIKO_LINK = 'https://app.arkadiko.finance/';\nexport const GRANITE_LINK = 'https://www.granite.world/';\nexport const HERMETICA_LINK = 'https://www.hermetica.fi/';\nexport const BITFLOW_LINK = 'https://app.bitflow.finance/';\nexport const VELAR_LINK = 'https://www.velar.co/';\n"],"mappings":";AAWO,IAAM,UAAU;AAEhB,IAAM,aAAa;AAEnB,IAAM,oBAAoB;AAC1B,IAAM,aAAa;AAEnB,IAAM,sBAAsB;AAC5B,IAAM,sCAAsC;AAC5C,IAAM,sCACX;AAEK,IAAM,mBAAmB;AAEzB,IAAM,yBAAyB,MAAO,KAAK,KAAK;AAEhD,IAAM,eAAe;AACrB,IAAM,eAAe;AACrB,IAAM,cAAc;AAIpB,IAAM,sBAAgD;AAAA,EAC3D,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAEO,IAAM,kBAAkB;AAAA,EAC7B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAGO,IAAM,yBAAyB;AAE/B,IAAM,cAAc;AAEpB,IAAM,qBAAqB;AAE3B,IAAM,oBAAoB;AAE1B,IAAM,sBAAsB;AAE5B,IAAM,qBAAqB;AAE3B,IAAM,+BAA+B,GAAG,kBAAkB;AAE1D,IAAM,oBAAoB;AAE1B,IAAM,mBAAm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,MAAM;AACR;AAEO,IAAM,YAAY;AAClB,IAAM,YAAY;AAClB,IAAM,gBAAgB;AACtB,IAAM,eAAe;AACrB,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,aAAa;","names":["AccountDisplayPreferenceType"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n AccountDisplayPreference,\n AccountDisplayPreferenceInfo,\n BitcoinUnit,\n BitcoinUnitInfo,\n BtcAsset,\n CryptoCurrency,\n Currency,\n StxAsset,\n} from '@leather.io/models';\n\nexport const gaiaUrl = 'https://hub.blockstack.org';\n\nexport const ZERO_INDEX = 0;\n\nexport const HIRO_EXPLORER_URL = 'https://explorer.hiro.so';\nexport const ORD_IO_URL = 'https://ord.io';\n\nexport const HIGH_FEE_AMOUNT_STX = 5;\nexport const HIGH_FEE_WARNING_LEARN_MORE_URL_BTC = 'https://bitcoinfees.earn.com/';\nexport const HIGH_FEE_WARNING_LEARN_MORE_URL_STX =\n 'https://leather.gitbook.io/guides/transactions/fees';\n\nexport const DEFAULT_FEE_RATE = 400;\n\nexport const PERSISTENCE_CACHE_TIME = 1000 * 60 * 60 * 12; // 12 hours\n\nexport const BTC_DECIMALS = 8;\nexport const STX_DECIMALS = 6;\nexport const SATS_IN_BTC = 100_000_000;\nexport const BITCOIN_MINIMUM_SPEND_IN_SATS = 546;\n\n// Units of `Money` should be declared in their smallest unit. Similar to\n// Rosetta, we model currencies with their respective resolution\nexport const currencyDecimalsMap: Record<Currency, number> = {\n BTC: BTC_DECIMALS,\n STX: STX_DECIMALS,\n USD: 2,\n EUR: 2,\n GBP: 2,\n AUD: 2,\n CAD: 2,\n CNY: 2,\n JPY: 0,\n KRW: 0,\n} as const;\n\nexport const currencyNameMap = {\n USD: 'United States Dollar',\n EUR: 'Euro',\n GBP: 'British Pound',\n AUD: 'Australian Dollar',\n CAD: 'Canadian Dollar',\n CNY: 'Chinese Yuan',\n JPY: 'Japanese Yen',\n KRW: 'South Korean Won',\n BTC: 'Bitcoin',\n} as const;\n\n// https://bitcoin.stackexchange.com/a/41082/139277\nexport const BTC_P2WPKH_DUST_AMOUNT = 294;\n\nexport const KEBAB_REGEX = /[A-Z\\u00C0-\\u00D6\\u00D8-\\u00DE]/g;\n\nexport const DEFAULT_LIST_LIMIT = 50;\n\nexport const TOKEN_NAME_LENGTH = 4;\n\nexport const LEATHER_SUPPORT_URL = 'https://leather.io/contact';\n\nexport const LEATHER_GUIDES_URL = 'https://leather.io/guides';\n\nexport const LEATHER_GUIDES_CONNECT_DAPPS = `${LEATHER_GUIDES_URL}/connect-dapps`;\n\nexport const LEATHER_LEARN_URL = 'https://leather.io/learn';\n\nexport const LEATHER_EARN_URL = 'https://earn.leather.io';\n\nexport const LEATHER_EARN_STACKING_URL = 'https://app.leather.io/stacking';\nexport const LEATHER_EARN_SBTC_URL = 'https://app.leather.io/sbtc';\n\nexport const LEATHER_EXTENSION_CHROME_STORE_URL =\n 'https://chromewebstore.google.com/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj?hl=en';\n\nexport const LEATHER_API_URL_STAGING = 'https://staging.api.leather.io';\nexport const LEATHER_API_URL_PRODUCTION = 'https://api.leather.io';\n\nexport const bitcoinUnitsKeyedByName: Record<BitcoinUnit, BitcoinUnitInfo> = {\n bitcoin: {\n name: 'bitcoin',\n symbol: 'BTC',\n decimal: '1',\n },\n satoshi: {\n name: 'satoshi',\n symbol: 'sat',\n decimal: '0.00000001',\n },\n};\n\nexport enum AccountDisplayPreferenceType {\n NativeSegwit = 'native-segwit',\n Taproot = 'taproot',\n Bns = 'bns',\n Stacks = 'stacks',\n}\n\nexport const accountDisplayPreferencesKeyedByType: Record<\n AccountDisplayPreference,\n AccountDisplayPreferenceInfo\n> = {\n [AccountDisplayPreferenceType.NativeSegwit]: {\n type: 'native-segwit',\n blockchain: 'bitcoin',\n name: 'Native Segwit address',\n },\n [AccountDisplayPreferenceType.Taproot]: {\n type: 'taproot',\n blockchain: 'bitcoin',\n name: 'Taproot address',\n },\n [AccountDisplayPreferenceType.Bns]: {\n type: 'bns',\n blockchain: 'stacks',\n name: 'BNS name',\n },\n [AccountDisplayPreferenceType.Stacks]: {\n type: 'stacks',\n blockchain: 'stacks',\n name: 'Stacks address',\n },\n};\n\nexport const btcAsset: BtcAsset = {\n chain: 'bitcoin',\n protocol: 'nativeBtc',\n symbol: 'BTC',\n category: 'fungible',\n decimals: 8,\n hasMemo: false,\n};\n\nexport const stxAsset: StxAsset = {\n chain: 'stacks',\n protocol: 'nativeStx',\n symbol: 'STX',\n category: 'fungible',\n decimals: 6,\n hasMemo: false,\n};\n\nexport const cryptoAssetColors: Record<CryptoCurrency, string> = {\n BTC: '#F59300',\n STX: '#FC6432',\n sBTC: '#DC7045',\n VELAR: '#966D3D',\n aeUSDC: '#4A73BE',\n USDh: '#E39B53',\n};\n\nexport const ALEX_LINK = 'https://alexgo.io/';\nexport const ZEST_LINK = 'https://www.zestprotocol.com/';\nexport const ARKADIKO_LINK = 'https://app.arkadiko.finance/';\nexport const GRANITE_LINK = 'https://www.granite.world/';\nexport const HERMETICA_LINK = 'https://www.hermetica.fi/';\nexport const BITFLOW_LINK = 'https://app.bitflow.finance/';\nexport const VELAR_LINK = 'https://www.velar.co/';\n"],"mappings":";AAWO,IAAM,UAAU;AAEhB,IAAM,aAAa;AAEnB,IAAM,oBAAoB;AAC1B,IAAM,aAAa;AAEnB,IAAM,sBAAsB;AAC5B,IAAM,sCAAsC;AAC5C,IAAM,sCACX;AAEK,IAAM,mBAAmB;AAEzB,IAAM,yBAAyB,MAAO,KAAK,KAAK;AAEhD,IAAM,eAAe;AACrB,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,gCAAgC;AAItC,IAAM,sBAAgD;AAAA,EAC3D,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA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ACZ,MAAM;AAAA,EACR;AACF;AAEO,IAAM,WAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;AAEO,IAAM,WAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;AAEO,IAAM,oBAAoD;AAAA,EAC/D,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AACR;AAEO,IAAM,YAAY;AAClB,IAAM,YAAY;AAClB,IAAM,gBAAgB;AACtB,IAAM,eAAe;AACrB,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,aAAa;","names":["AccountDisplayPreferenceType"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@leather.io/constants",
3
3
  "author": "Leather.io contact@leather.io",
4
4
  "description": "Shared bitcoin utilities",
5
- "version": "0.26.0",
5
+ "version": "0.27.0",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/leather-io/mono/tree/dev/packages/constants",
8
8
  "repository": {
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "bugs": "https://github.com/leather-io/mono/issues",
18
18
  "dependencies": {
19
- "@leather.io/models": "0.43.0"
19
+ "@leather.io/models": "0.44.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "concurrently": "8.2.2",
package/src/index.ts CHANGED
@@ -28,6 +28,7 @@ export const PERSISTENCE_CACHE_TIME = 1000 * 60 * 60 * 12; // 12 hours
28
28
  export const BTC_DECIMALS = 8;
29
29
  export const STX_DECIMALS = 6;
30
30
  export const SATS_IN_BTC = 100_000_000;
31
+ export const BITCOIN_MINIMUM_SPEND_IN_SATS = 546;
31
32
 
32
33
  // Units of `Money` should be declared in their smallest unit. Similar to
33
34
  // Rosetta, we model currencies with their respective resolution