@talismn/token-rates 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @talismn/token-rates
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 123647e: - Additional currencies support for token rate
8
+ - New Dollar sign icon
9
+ - 123647e: Add extra currency options
10
+
11
+ ### Patch Changes
12
+
13
+ - c4d5967: bump typescript version
14
+ - 620b7eb: Dependency updates
15
+ - Updated dependencies [03939d5]
16
+ - Updated dependencies [ade2908]
17
+ - Updated dependencies [c4d5967]
18
+ - Updated dependencies [620b7eb]
19
+ - Updated dependencies [5aadf99]
20
+ - Updated dependencies [4cace80]
21
+ - @talismn/chaindata-provider@0.8.0
22
+
3
23
  ## 0.2.0
4
24
 
5
25
  ### Minor Changes
@@ -26,6 +26,8 @@ export type TokenRates = {
26
26
  krw: number | null;
27
27
  /** chinese yuan rate */
28
28
  cny: number | null;
29
+ /** russian yuan rate */
30
+ rub: number | null;
29
31
  /** btc rate */
30
32
  btc: number | null;
31
33
  /** eth rate */
@@ -41,6 +41,7 @@ const NewTokenRates = () => ({
41
41
  jpy: null,
42
42
  krw: null,
43
43
  cny: null,
44
+ rub: null,
44
45
  btc: null,
45
46
  eth: null,
46
47
  dot: null
@@ -51,20 +52,13 @@ const coingeckoApiUrl = "https://api.coingecko.com/api/v3";
51
52
 
52
53
  // every currency in this list will be fetched from coingecko
53
54
  // comment out unused currencies to save some bandwidth!
54
- const coingeckoCurrencies = ["usd",
55
- // 'aud',
55
+ const coingeckoCurrencies = ["usd", "aud",
56
56
  // 'nzd',
57
57
  // 'cud',
58
58
  // 'hkd',
59
- "eur"
60
- // 'gbp',
61
- // 'jpy',
59
+ "eur", "gbp", "jpy",
62
60
  // 'krw',
63
- // 'cny',
64
- // 'btc',
65
- // 'eth',
66
- // 'dot',
67
- ];
61
+ "cny", "rub", "btc", "eth", "dot"];
68
62
 
69
63
  // export function tokenRates(tokens: WithCoingeckoId[]): TokenRatesList {}
70
64
  async function fetchTokenRates(tokens) {
@@ -41,6 +41,7 @@ const NewTokenRates = () => ({
41
41
  jpy: null,
42
42
  krw: null,
43
43
  cny: null,
44
+ rub: null,
44
45
  btc: null,
45
46
  eth: null,
46
47
  dot: null
@@ -51,20 +52,13 @@ const coingeckoApiUrl = "https://api.coingecko.com/api/v3";
51
52
 
52
53
  // every currency in this list will be fetched from coingecko
53
54
  // comment out unused currencies to save some bandwidth!
54
- const coingeckoCurrencies = ["usd",
55
- // 'aud',
55
+ const coingeckoCurrencies = ["usd", "aud",
56
56
  // 'nzd',
57
57
  // 'cud',
58
58
  // 'hkd',
59
- "eur"
60
- // 'gbp',
61
- // 'jpy',
59
+ "eur", "gbp", "jpy",
62
60
  // 'krw',
63
- // 'cny',
64
- // 'btc',
65
- // 'eth',
66
- // 'dot',
67
- ];
61
+ "cny", "rub", "btc", "eth", "dot"];
68
62
 
69
63
  // export function tokenRates(tokens: WithCoingeckoId[]): TokenRatesList {}
70
64
  async function fetchTokenRates(tokens) {
@@ -33,6 +33,7 @@ const NewTokenRates = () => ({
33
33
  jpy: null,
34
34
  krw: null,
35
35
  cny: null,
36
+ rub: null,
36
37
  btc: null,
37
38
  eth: null,
38
39
  dot: null
@@ -43,20 +44,13 @@ const coingeckoApiUrl = "https://api.coingecko.com/api/v3";
43
44
 
44
45
  // every currency in this list will be fetched from coingecko
45
46
  // comment out unused currencies to save some bandwidth!
46
- const coingeckoCurrencies = ["usd",
47
- // 'aud',
47
+ const coingeckoCurrencies = ["usd", "aud",
48
48
  // 'nzd',
49
49
  // 'cud',
50
50
  // 'hkd',
51
- "eur"
52
- // 'gbp',
53
- // 'jpy',
51
+ "eur", "gbp", "jpy",
54
52
  // 'krw',
55
- // 'cny',
56
- // 'btc',
57
- // 'eth',
58
- // 'dot',
59
- ];
53
+ "cny", "rub", "btc", "eth", "dot"];
60
54
 
61
55
  // export function tokenRates(tokens: WithCoingeckoId[]): TokenRatesList {}
62
56
  async function fetchTokenRates(tokens) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/token-rates",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -26,18 +26,18 @@
26
26
  "clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
27
27
  },
28
28
  "dependencies": {
29
- "@talismn/chaindata-provider": "0.7.0",
29
+ "@talismn/chaindata-provider": "0.8.0",
30
30
  "axios": "^0.27.2",
31
31
  "dexie": "^3.2.4"
32
32
  },
33
33
  "devDependencies": {
34
- "@talismn/eslint-config": "0.0.2",
34
+ "@talismn/eslint-config": "0.0.3",
35
35
  "@talismn/tsconfig": "0.0.2",
36
36
  "@types/jest": "^27.5.1",
37
- "eslint": "^8.4.0",
38
- "jest": "^28.1.0",
39
- "ts-jest": "^28.0.2",
40
- "typescript": "^4.6.4"
37
+ "eslint": "^8.52.0",
38
+ "jest": "^29.7.0",
39
+ "ts-jest": "^29.1.1",
40
+ "typescript": "^5.2.2"
41
41
  },
42
42
  "eslintConfig": {
43
43
  "root": true,