@leather.io/constants 0.9.0 → 0.9.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 +13 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/constants@0.9.
|
|
2
|
+
> @leather.io/constants@0.9.2 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 @@ CLI tsup v8.1.0
|
|
|
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 1.
|
|
12
|
-
ESM dist/index.js.map 1.
|
|
13
|
-
ESM ⚡️ Build success in
|
|
11
|
+
ESM dist/index.js 1.16 KB
|
|
12
|
+
ESM dist/index.js.map 1.59 KB
|
|
13
|
+
ESM ⚡️ Build success in 13ms
|
|
14
14
|
DTS Build start
|
|
15
|
-
DTS ⚡️ Build success in
|
|
16
|
-
DTS dist/index.d.ts 1.
|
|
15
|
+
DTS ⚡️ Build success in 1467ms
|
|
16
|
+
DTS dist/index.d.ts 1.21 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,19 @@
|
|
|
19
19
|
* devDependencies
|
|
20
20
|
* @leather.io/tsconfig-config bumped to 0.5.1
|
|
21
21
|
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
* The following workspace dependencies were updated
|
|
25
|
+
* devDependencies
|
|
26
|
+
* @leather.io/eslint-config bumped to 0.7.0
|
|
27
|
+
|
|
28
|
+
## [0.9.2](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.9.1...@leather.io/constants-v0.9.2) (2024-09-04)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* update support links, ref leather-io/extension[#5813](https://github.com/leather-io/mono/issues/5813) ([d182c0a](https://github.com/leather-io/mono/commit/d182c0a0794fb18becc43699685a1e59bc3aff90))
|
|
34
|
+
|
|
22
35
|
## [0.9.0](https://github.com/leather-io/mono/compare/@leather.io/constants-v0.8.3...@leather.io/constants-v0.9.0) (2024-08-15)
|
|
23
36
|
|
|
24
37
|
|
package/dist/index.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ declare const BTC_P2WPKH_DUST_AMOUNT = 294;
|
|
|
18
18
|
declare const KEBAB_REGEX: RegExp;
|
|
19
19
|
declare const DEFAULT_LIST_LIMIT = 50;
|
|
20
20
|
declare const TOKEN_NAME_LENGTH = 4;
|
|
21
|
+
declare const LEATHER_SUPPORT_URL = "https://leather.io/contact";
|
|
21
22
|
|
|
22
|
-
export { 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, ORD_IO_URL, PERSISTENCE_CACHE_TIME, STX_DECIMALS, TOKEN_NAME_LENGTH, ZERO_INDEX, currencyDecimalsMap, gaiaUrl };
|
|
23
|
+
export { 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_SUPPORT_URL, ORD_IO_URL, PERSISTENCE_CACHE_TIME, STX_DECIMALS, TOKEN_NAME_LENGTH, ZERO_INDEX, currencyDecimalsMap, gaiaUrl };
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var BTC_P2WPKH_DUST_AMOUNT = 294;
|
|
|
19
19
|
var KEBAB_REGEX = /[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g;
|
|
20
20
|
var DEFAULT_LIST_LIMIT = 50;
|
|
21
21
|
var TOKEN_NAME_LENGTH = 4;
|
|
22
|
+
var LEATHER_SUPPORT_URL = "https://leather.io/contact";
|
|
22
23
|
export {
|
|
23
24
|
BTC_DECIMALS,
|
|
24
25
|
BTC_P2WPKH_DUST_AMOUNT,
|
|
@@ -29,6 +30,7 @@ export {
|
|
|
29
30
|
HIGH_FEE_WARNING_LEARN_MORE_URL_STX,
|
|
30
31
|
HIRO_EXPLORER_URL,
|
|
31
32
|
KEBAB_REGEX,
|
|
33
|
+
LEATHER_SUPPORT_URL,
|
|
32
34
|
ORD_IO_URL,
|
|
33
35
|
PERSISTENCE_CACHE_TIME,
|
|
34
36
|
STX_DECIMALS,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export 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;\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 = {\n BTC: BTC_DECIMALS,\n STX: STX_DECIMALS,\n USD: 2,\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"],"mappings":";AAAO,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;AAIrB,IAAM,sBAAsB;AAAA,EACjC,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAGO,IAAM,yBAAyB;AAE/B,IAAM,cAAc;AAEpB,IAAM,qBAAqB;AAE3B,IAAM,oBAAoB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export 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;\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 = {\n BTC: BTC_DECIMALS,\n STX: STX_DECIMALS,\n USD: 2,\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"],"mappings":";AAAO,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;AAIrB,IAAM,sBAAsB;AAAA,EACjC,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAGO,IAAM,yBAAyB;AAE/B,IAAM,cAAc;AAEpB,IAAM,qBAAqB;AAE3B,IAAM,oBAAoB;AAE1B,IAAM,sBAAsB;","names":[]}
|
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.9.
|
|
5
|
+
"version": "0.9.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/leather-io/mono/tree/dev/packages/constants",
|
|
8
8
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"prettier": "3.3.3",
|
|
22
22
|
"tsup": "8.1.0",
|
|
23
23
|
"typescript": "5.5.4",
|
|
24
|
-
"@leather.io/
|
|
24
|
+
"@leather.io/eslint-config": "0.7.0",
|
|
25
25
|
"@leather.io/tsconfig-config": "0.6.0",
|
|
26
|
-
"@leather.io/
|
|
26
|
+
"@leather.io/prettier-config": "0.6.0"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"constants",
|