@sonarwatch/portfolio-core 0.14.107 → 0.14.109

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.109](https://github.com/sonarwatch/portfolio/compare/core-0.14.108...core-0.14.109) (2025-02-06)
6
+
7
+
8
+
9
+ ## [0.14.108](https://github.com/sonarwatch/portfolio/compare/core-0.14.107...core-0.14.108) (2025-02-05)
10
+
11
+
12
+
5
13
  ## [0.14.107](https://github.com/sonarwatch/portfolio/compare/core-0.14.106...core-0.14.107) (2025-02-05)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-core",
3
- "version": "0.14.107",
3
+ "version": "0.14.109",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "dependencies": {
@@ -0,0 +1,17 @@
1
+ import { NetworkIdType } from '../Network';
2
+ export declare const fiatCurrencies: Currency[];
3
+ export type Currency = {
4
+ type: 'fiat' | 'token';
5
+ name: string;
6
+ coinGeckoId?: string;
7
+ symbol: string;
8
+ symbolAfter?: boolean;
9
+ address?: string;
10
+ networkId?: NetworkIdType;
11
+ };
12
+ export type PricedCurrency = Currency & {
13
+ rateToUsd?: number;
14
+ rateToBtc?: number;
15
+ priceUsd?: number;
16
+ priceBtc?: number;
17
+ };
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fiatCurrencies = void 0;
4
+ exports.fiatCurrencies = [
5
+ {
6
+ name: 'USD',
7
+ coinGeckoId: 'usd',
8
+ symbol: '$',
9
+ type: 'fiat',
10
+ },
11
+ {
12
+ name: 'EUR',
13
+ coinGeckoId: 'eur',
14
+ symbol: '€',
15
+ type: 'fiat',
16
+ symbolAfter: true,
17
+ },
18
+ {
19
+ name: 'GBP',
20
+ coinGeckoId: 'gbp',
21
+ symbol: '£',
22
+ type: 'fiat',
23
+ },
24
+ {
25
+ name: 'JPY',
26
+ coinGeckoId: 'japanese-yen',
27
+ symbol: '¥',
28
+ type: 'fiat',
29
+ },
30
+ {
31
+ name: 'AED',
32
+ coinGeckoId: 'united-arab-emirates-dirham',
33
+ symbol: 'AED',
34
+ type: 'fiat',
35
+ symbolAfter: true,
36
+ },
37
+ {
38
+ name: 'AUD',
39
+ coinGeckoId: 'australien-dollar',
40
+ symbol: 'A$',
41
+ type: 'fiat',
42
+ },
43
+ {
44
+ name: 'CAD',
45
+ coinGeckoId: 'canadian-dollar',
46
+ symbol: 'CA$',
47
+ type: 'fiat',
48
+ },
49
+ {
50
+ name: 'SGD',
51
+ coinGeckoId: 'singapore-dollar',
52
+ symbol: 'S$',
53
+ type: 'fiat',
54
+ },
55
+ {
56
+ name: 'INR',
57
+ coinGeckoId: 'Indian Rupee',
58
+ symbol: '₹',
59
+ type: 'fiat',
60
+ },
61
+ ];
62
+ //# sourceMappingURL=fiats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiats.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/fiats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAe;IACxC;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,IAAI;KAClB;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,cAAc;QAC3B,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,6BAA6B;QAC1C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,IAAI;KAClB;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,mBAAmB;QAChC,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,iBAAiB;QAC9B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,kBAAkB;QAC/B,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,cAAc;QAC3B,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;KACb;CACF,CAAC"}
@@ -2,3 +2,4 @@ export * from './addresses';
2
2
  export * from './networks';
3
3
  export * from './api';
4
4
  export * from './utils';
5
+ export * from './fiats';
@@ -18,4 +18,5 @@ __exportStar(require("./addresses"), exports);
18
18
  __exportStar(require("./networks"), exports);
19
19
  __exportStar(require("./api"), exports);
20
20
  __exportStar(require("./utils"), exports);
21
+ __exportStar(require("./fiats"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB"}