@leather.io/constants 0.19.1 → 0.20.2
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 +6 -6
- package/CHANGELOG.md +32 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/constants@0.
|
|
2
|
+
> @leather.io/constants@0.20.2 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[
|
|
12
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m5.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.05 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m5.91 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 16ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 1992ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.47 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -157,6 +157,38 @@
|
|
|
157
157
|
* dependencies
|
|
158
158
|
* @leather.io/models bumped to 0.31.0
|
|
159
159
|
|
|
160
|
+
### Dependencies
|
|
161
|
+
|
|
162
|
+
* The following workspace dependencies were updated
|
|
163
|
+
* dependencies
|
|
164
|
+
* @leather.io/models bumped to 0.32.1
|
|
165
|
+
* devDependencies
|
|
166
|
+
* @leather.io/tsconfig-config bumped to 0.8.0
|
|
167
|
+
|
|
168
|
+
## [0.20.1](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.20.0...@leather.io/constants-v0.20.1) (2025-05-22)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
* linking to browser instead of safari ([34e9ff2](https://github.com/leather-io/mono/commit/34e9ff22b0a0522d5b1dc2729a5eb34b868d58bc))
|
|
174
|
+
* update browser suggested tab ([7226bb0](https://github.com/leather-io/mono/commit/7226bb071c6bd3e7a4aa9858920e4d4b2955157a))
|
|
175
|
+
|
|
176
|
+
## [0.20.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.19.1...@leather.io/constants-v0.20.0) (2025-05-16)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
* expo sdk 53 ([476c547](https://github.com/leather-io/mono/commit/476c5476b73b03d8e008d9ed04594aa53d7bd97e))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Dependencies
|
|
185
|
+
|
|
186
|
+
* The following workspace dependencies were updated
|
|
187
|
+
* dependencies
|
|
188
|
+
* @leather.io/models bumped to 0.32.0
|
|
189
|
+
* devDependencies
|
|
190
|
+
* @leather.io/tsconfig-config bumped to 0.7.0
|
|
191
|
+
|
|
160
192
|
## [0.19.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.18.1...@leather.io/constants-v0.19.0) (2025-03-27)
|
|
161
193
|
|
|
162
194
|
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const LEATHER_SUPPORT_URL = "https://leather.io/contact";
|
|
|
31
31
|
declare const LEATHER_GUIDES_URL = "https://leather.io/guides";
|
|
32
32
|
declare const LEATHER_GUIDES_CONNECT_DAPPS = "https://leather.io/guides/connect-dapps";
|
|
33
33
|
declare const LEATHER_LEARN_URL = "https://leather.io/learn";
|
|
34
|
+
declare const LEATHER_EARN_URL = "https://earn.leather.io";
|
|
34
35
|
declare const LEATHER_EXTENSION_CHROME_STORE_URL = "https://chromewebstore.google.com/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj?hl=en";
|
|
35
36
|
declare const LEATHER_API_URL_STAGING = "https://staging.api.leather.io";
|
|
36
37
|
declare const LEATHER_API_URL_PRODUCTION = "https://api.leather.io";
|
|
@@ -44,5 +45,12 @@ declare enum AccountDisplayPreferenceType {
|
|
|
44
45
|
declare const accountDisplayPreferencesKeyedByType: Record<AccountDisplayPreference, AccountDisplayPreferenceInfo>;
|
|
45
46
|
declare const btcCryptoAsset: BtcCryptoAssetInfo;
|
|
46
47
|
declare const stxCryptoAsset: StxCryptoAssetInfo;
|
|
48
|
+
declare const ALEX_LINK = "https://alexgo.io/";
|
|
49
|
+
declare const ZEST_LINK = "https://www.zestprotocol.com/";
|
|
50
|
+
declare const ARKADIKO_LINK = "https://app.arkadiko.finance/";
|
|
51
|
+
declare const GRANITE_LINK = "https://www.granite.world/";
|
|
52
|
+
declare const HERMETICA_LINK = "https://www.hermetica.fi/";
|
|
53
|
+
declare const BITFLOW_LINK = "https://app.bitflow.finance/";
|
|
54
|
+
declare const VELAR_LINK = "https://www.velar.co/";
|
|
47
55
|
|
|
48
|
-
export { AccountDisplayPreferenceType, BTC_DECIMALS, BTC_P2WPKH_DUST_AMOUNT, DEFAULT_FEE_RATE, DEFAULT_LIST_LIMIT, 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_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, ZERO_INDEX, accountDisplayPreferencesKeyedByType, bitcoinUnitsKeyedByName, btcCryptoAsset, currencyDecimalsMap, currencyNameMap, gaiaUrl, stxCryptoAsset };
|
|
56
|
+
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_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, btcCryptoAsset, currencyDecimalsMap, currencyNameMap, gaiaUrl, stxCryptoAsset };
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ var LEATHER_SUPPORT_URL = "https://leather.io/contact";
|
|
|
41
41
|
var LEATHER_GUIDES_URL = "https://leather.io/guides";
|
|
42
42
|
var LEATHER_GUIDES_CONNECT_DAPPS = `${LEATHER_GUIDES_URL}/connect-dapps`;
|
|
43
43
|
var LEATHER_LEARN_URL = "https://leather.io/learn";
|
|
44
|
+
var LEATHER_EARN_URL = "https://earn.leather.io";
|
|
44
45
|
var LEATHER_EXTENSION_CHROME_STORE_URL = "https://chromewebstore.google.com/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj?hl=en";
|
|
45
46
|
var LEATHER_API_URL_STAGING = "https://staging.api.leather.io";
|
|
46
47
|
var LEATHER_API_URL_PRODUCTION = "https://api.leather.io";
|
|
@@ -101,12 +102,24 @@ var stxCryptoAsset = {
|
|
|
101
102
|
decimals: 6,
|
|
102
103
|
hasMemo: false
|
|
103
104
|
};
|
|
105
|
+
var ALEX_LINK = "https://alexgo.io/";
|
|
106
|
+
var ZEST_LINK = "https://www.zestprotocol.com/";
|
|
107
|
+
var ARKADIKO_LINK = "https://app.arkadiko.finance/";
|
|
108
|
+
var GRANITE_LINK = "https://www.granite.world/";
|
|
109
|
+
var HERMETICA_LINK = "https://www.hermetica.fi/";
|
|
110
|
+
var BITFLOW_LINK = "https://app.bitflow.finance/";
|
|
111
|
+
var VELAR_LINK = "https://www.velar.co/";
|
|
104
112
|
export {
|
|
113
|
+
ALEX_LINK,
|
|
114
|
+
ARKADIKO_LINK,
|
|
105
115
|
AccountDisplayPreferenceType,
|
|
116
|
+
BITFLOW_LINK,
|
|
106
117
|
BTC_DECIMALS,
|
|
107
118
|
BTC_P2WPKH_DUST_AMOUNT,
|
|
108
119
|
DEFAULT_FEE_RATE,
|
|
109
120
|
DEFAULT_LIST_LIMIT,
|
|
121
|
+
GRANITE_LINK,
|
|
122
|
+
HERMETICA_LINK,
|
|
110
123
|
HIGH_FEE_AMOUNT_STX,
|
|
111
124
|
HIGH_FEE_WARNING_LEARN_MORE_URL_BTC,
|
|
112
125
|
HIGH_FEE_WARNING_LEARN_MORE_URL_STX,
|
|
@@ -114,6 +127,7 @@ export {
|
|
|
114
127
|
KEBAB_REGEX,
|
|
115
128
|
LEATHER_API_URL_PRODUCTION,
|
|
116
129
|
LEATHER_API_URL_STAGING,
|
|
130
|
+
LEATHER_EARN_URL,
|
|
117
131
|
LEATHER_EXTENSION_CHROME_STORE_URL,
|
|
118
132
|
LEATHER_GUIDES_CONNECT_DAPPS,
|
|
119
133
|
LEATHER_GUIDES_URL,
|
|
@@ -124,7 +138,9 @@ export {
|
|
|
124
138
|
SATS_IN_BTC,
|
|
125
139
|
STX_DECIMALS,
|
|
126
140
|
TOKEN_NAME_LENGTH,
|
|
141
|
+
VELAR_LINK,
|
|
127
142
|
ZERO_INDEX,
|
|
143
|
+
ZEST_LINK,
|
|
128
144
|
accountDisplayPreferencesKeyedByType,
|
|
129
145
|
bitcoinUnitsKeyedByName,
|
|
130
146
|
btcCryptoAsset,
|
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 BtcCryptoAssetInfo,\n Currency,\n StxCryptoAssetInfo,\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} 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_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 btcCryptoAsset: BtcCryptoAssetInfo = {\n chain: 'bitcoin',\n protocol: 'nativeBtc',\n symbol: 'BTC',\n category: 'fungible',\n decimals: 8,\n hasMemo: false,\n};\n\nexport const stxCryptoAsset: StxCryptoAssetInfo = {\n chain: 'stacks',\n protocol: 'nativeStx',\n symbol: 'STX',\n category: 'fungible',\n decimals: 6,\n hasMemo: false,\n};\n"],"mappings":";AAUO,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;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,qCACX;AAEK,IAAM,0BAA0B;AAChC,IAAM,6BAA6B;AAEnC,IAAM,0BAAgE;AAAA,EAC3E,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AACF;AAEO,IAAK,+BAAL,kBAAKA,kCAAL;AACL,EAAAA,8BAAA,kBAAe;AACf,EAAAA,8BAAA,aAAU;AACV,EAAAA,8BAAA,SAAM;AACN,EAAAA,8BAAA,YAAS;AAJC,SAAAA;AAAA,GAAA;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,iBAAqC;AAAA,EAChD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;AAEO,IAAM,iBAAqC;AAAA,EAChD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;","names":["AccountDisplayPreferenceType"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n AccountDisplayPreference,\n AccountDisplayPreferenceInfo,\n BitcoinUnit,\n BitcoinUnitInfo,\n BtcCryptoAssetInfo,\n Currency,\n StxCryptoAssetInfo,\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} 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_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 btcCryptoAsset: BtcCryptoAssetInfo = {\n chain: 'bitcoin',\n protocol: 'nativeBtc',\n symbol: 'BTC',\n category: 'fungible',\n decimals: 8,\n hasMemo: false,\n};\n\nexport const stxCryptoAsset: StxCryptoAssetInfo = {\n chain: 'stacks',\n protocol: 'nativeStx',\n symbol: 'STX',\n category: 'fungible',\n decimals: 6,\n hasMemo: false,\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":";AAUO,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;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,mBAAmB;AAEzB,IAAM,qCACX;AAEK,IAAM,0BAA0B;AAChC,IAAM,6BAA6B;AAEnC,IAAM,0BAAgE;AAAA,EAC3E,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AACF;AAEO,IAAK,+BAAL,kBAAKA,kCAAL;AACL,EAAAA,8BAAA,kBAAe;AACf,EAAAA,8BAAA,aAAU;AACV,EAAAA,8BAAA,SAAM;AACN,EAAAA,8BAAA,YAAS;AAJC,SAAAA;AAAA,GAAA;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,iBAAqC;AAAA,EAChD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;AAEO,IAAM,iBAAqC;AAAA,EAChD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;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.20.2",
|
|
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.32.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"concurrently": "8.2.2",
|
|
23
23
|
"prettier": "3.5.1",
|
|
24
24
|
"tsup": "8.4.0",
|
|
25
|
-
"typescript": "5.
|
|
25
|
+
"typescript": "5.8.3",
|
|
26
26
|
"@leather.io/prettier-config": "0.6.1",
|
|
27
|
-
"@leather.io/tsconfig-config": "0.
|
|
27
|
+
"@leather.io/tsconfig-config": "0.8.0"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"constants",
|
package/src/index.ts
CHANGED
|
@@ -71,6 +71,8 @@ export const LEATHER_GUIDES_CONNECT_DAPPS = `${LEATHER_GUIDES_URL}/connect-dapps
|
|
|
71
71
|
|
|
72
72
|
export const LEATHER_LEARN_URL = 'https://leather.io/learn';
|
|
73
73
|
|
|
74
|
+
export const LEATHER_EARN_URL = 'https://earn.leather.io';
|
|
75
|
+
|
|
74
76
|
export const LEATHER_EXTENSION_CHROME_STORE_URL =
|
|
75
77
|
'https://chromewebstore.google.com/detail/leather/ldinpeekobnhjjdofggfgjlcehhmanlj?hl=en';
|
|
76
78
|
|
|
@@ -140,3 +142,11 @@ export const stxCryptoAsset: StxCryptoAssetInfo = {
|
|
|
140
142
|
decimals: 6,
|
|
141
143
|
hasMemo: false,
|
|
142
144
|
};
|
|
145
|
+
|
|
146
|
+
export const ALEX_LINK = 'https://alexgo.io/';
|
|
147
|
+
export const ZEST_LINK = 'https://www.zestprotocol.com/';
|
|
148
|
+
export const ARKADIKO_LINK = 'https://app.arkadiko.finance/';
|
|
149
|
+
export const GRANITE_LINK = 'https://www.granite.world/';
|
|
150
|
+
export const HERMETICA_LINK = 'https://www.hermetica.fi/';
|
|
151
|
+
export const BITFLOW_LINK = 'https://app.bitflow.finance/';
|
|
152
|
+
export const VELAR_LINK = 'https://www.velar.co/';
|