@talismn/token-rates 0.0.0-pr974-20230915020916 → 0.0.0-pr974-20231123032136

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,12 +1,21 @@
1
1
  # @talismn/token-rates
2
2
 
3
- ## 0.0.0-pr974-20230915020916
3
+ ## 0.0.0-pr974-20231123032136
4
+
5
+ ### Minor Changes
6
+
7
+ - 123647e3: - Additional currencies support for token rate
8
+ - New Dollar sign icon
9
+ - 123647e3: Add extra currency options
4
10
 
5
11
  ### Patch Changes
6
12
 
13
+ - c4d59671: bump typescript version
7
14
  - Updated dependencies [03939d5f]
15
+ - Updated dependencies [c4d59671]
16
+ - Updated dependencies [5aadf998]
8
17
  - Updated dependencies [4cace80d]
9
- - @talismn/chaindata-provider@0.0.0-pr974-20230915020916
18
+ - @talismn/chaindata-provider@0.0.0-pr974-20231123032136
10
19
 
11
20
  ## 0.2.0
12
21
 
@@ -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.0.0-pr974-20230915020916",
3
+ "version": "0.0.0-pr974-20231123032136",
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.0.0-pr974-20230915020916",
29
+ "@talismn/chaindata-provider": "0.0.0-pr974-20231123032136",
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.0-pr974-20231123032136",
35
35
  "@talismn/tsconfig": "0.0.2",
36
36
  "@types/jest": "^27.5.1",
37
- "eslint": "^8.4.0",
37
+ "eslint": "^8.52.0",
38
38
  "jest": "^28.1.0",
39
39
  "ts-jest": "^28.0.2",
40
- "typescript": "^4.6.4"
40
+ "typescript": "^5.2.2"
41
41
  },
42
42
  "eslintConfig": {
43
43
  "root": true,