@leather.io/constants 0.27.4 → 0.28.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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +55 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/constants@0.
|
|
2
|
+
> @leather.io/constants@0.28.0 build /home/runner/work/mono/mono/packages/constants
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/mono/mono/packages/constants/tsup.config.ts
|
|
9
9
|
[34mCLI[39m Target: es2022
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.js [22m[32m4.
|
|
12
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m6.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.49 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m6.52 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 32ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 3410ms
|
|
16
16
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.81 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -215,6 +215,61 @@
|
|
|
215
215
|
* devDependencies
|
|
216
216
|
* @leather.io/prettier-config bumped to 0.9.0
|
|
217
217
|
|
|
218
|
+
## [0.28.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.27.5...@leather.io/constants-v0.28.0) (2025-11-19)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Features
|
|
222
|
+
|
|
223
|
+
* add descriptors to get addresses rpc ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
224
|
+
* add portfolio table ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
225
|
+
* portfolio activity ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
226
|
+
* portfolio ui hover, borders, token count ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
227
|
+
* **web:** add empty state ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
228
|
+
* **web:** add hover events ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
229
|
+
* **web:** add portfolio modal ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
230
|
+
* **web:** add stacked bar chart ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
231
|
+
* **web:** add stacks to portfolio list ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
232
|
+
* **web:** add tooltip ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
233
|
+
* **web:** adjust hover events ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
234
|
+
* **web:** bitcoin balance for portfolio ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
235
|
+
* **web:** breakdown by allocation ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
236
|
+
* **web:** scaffold portfolio page ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
237
|
+
* **web:** sip10 avatar icons web ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
238
|
+
* **web:** sip10 balances and assets ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
239
|
+
* **web:** stacks portfolio balance ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
* **mobile:** ensure translations updated ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
245
|
+
* **mobile:** name is now defined for all models used ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
246
|
+
* responsive portfolio ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
247
|
+
* **web:** a few style fixes ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
248
|
+
* **web:** add loading spinner to asset list ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
249
|
+
* **web:** add loading state to bar ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
250
|
+
* **web:** ensure stacks renders in list ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
251
|
+
* **web:** improve hover events and styles ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
252
|
+
* **web:** invisible hover overlay ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
253
|
+
* **web:** layout as per designs ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
254
|
+
* **web:** remove unused ui ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
255
|
+
* **web:** remove unused var ([0e664a7](https://github.com/leather-io/mono/commit/0e664a7066a31776ac7e5ec60fa5a0ad893b96ff))
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
### Dependencies
|
|
259
|
+
|
|
260
|
+
* The following workspace dependencies were updated
|
|
261
|
+
* dependencies
|
|
262
|
+
* @leather.io/models bumped to 0.49.0
|
|
263
|
+
|
|
264
|
+
## [0.27.5](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.27.4...@leather.io/constants-v0.27.5) (2025-11-17)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### Dependencies
|
|
268
|
+
|
|
269
|
+
* The following workspace dependencies were updated
|
|
270
|
+
* dependencies
|
|
271
|
+
* @leather.io/models bumped to 0.48.0
|
|
272
|
+
|
|
218
273
|
## [0.27.4](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.27.3...@leather.io/constants-v0.27.4) (2025-11-14)
|
|
219
274
|
|
|
220
275
|
|
package/dist/index.js
CHANGED
|
@@ -95,6 +95,7 @@ var btcAsset = {
|
|
|
95
95
|
protocol: "nativeBtc",
|
|
96
96
|
symbol: "BTC",
|
|
97
97
|
category: "fungible",
|
|
98
|
+
name: "Bitcoin",
|
|
98
99
|
decimals: 8,
|
|
99
100
|
hasMemo: false
|
|
100
101
|
};
|
|
@@ -103,6 +104,7 @@ var stxAsset = {
|
|
|
103
104
|
protocol: "nativeStx",
|
|
104
105
|
symbol: "STX",
|
|
105
106
|
category: "fungible",
|
|
107
|
+
name: "Stacks",
|
|
106
108
|
decimals: 6,
|
|
107
109
|
hasMemo: false
|
|
108
110
|
};
|
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;\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,EACL,KAAK;AACP;AAEO,IAAM,kBAAkB;AAAA,EAC7B,KAAK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C,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"]}
|
|
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 name: 'Bitcoin',\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 name: 'Stacks',\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,aAA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A;AAOL,IAAM,uCAGT;AAAA,EACF,CAAC,kCAAyC,GAAG;AAAA,IAC3C,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,MAAM;AAAA,EACR;AAAA,EACA,CAAC,uBAAoC,GAAG;AAAA,IACtC,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,MAAM;AAAA,EACR;AAAA,EACA,CAAC,eAAgC,GAAG;AAAA,IAClC,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,MAAM;AAAA,EACR;AAAA,EACA,CAAC,qBAAmC,GAAG;AAAA,IACrC,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,MAAM;AAAA,EACR;AACF;AAEO,IAAM,WAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AACX;AAEO,IAAM,WAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,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.
|
|
5
|
+
"version": "0.28.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/leather-io/mono/tree/dev/packages/constants",
|
|
8
8
|
"repository": {
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
},
|
|
17
17
|
"bugs": "https://github.com/leather-io/mono/issues",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@leather.io/models": "0.
|
|
19
|
+
"@leather.io/models": "0.49.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"concurrently": "8.2.2",
|
|
23
23
|
"prettier": "3.5.1",
|
|
24
24
|
"tsup": "8.4.0",
|
|
25
25
|
"typescript": "5.8.3",
|
|
26
|
-
"@leather.io/
|
|
27
|
-
"@leather.io/
|
|
26
|
+
"@leather.io/tsconfig-config": "0.11.0",
|
|
27
|
+
"@leather.io/prettier-config": "0.9.0"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"constants",
|
package/src/index.ts
CHANGED
|
@@ -136,6 +136,7 @@ export const btcAsset: BtcAsset = {
|
|
|
136
136
|
protocol: 'nativeBtc',
|
|
137
137
|
symbol: 'BTC',
|
|
138
138
|
category: 'fungible',
|
|
139
|
+
name: 'Bitcoin',
|
|
139
140
|
decimals: 8,
|
|
140
141
|
hasMemo: false,
|
|
141
142
|
};
|
|
@@ -145,6 +146,7 @@ export const stxAsset: StxAsset = {
|
|
|
145
146
|
protocol: 'nativeStx',
|
|
146
147
|
symbol: 'STX',
|
|
147
148
|
category: 'fungible',
|
|
149
|
+
name: 'Stacks',
|
|
148
150
|
decimals: 6,
|
|
149
151
|
hasMemo: false,
|
|
150
152
|
};
|