@talismn/token-rates 0.0.0-pr997-20230922020138 → 0.0.0-pr997-20230922054741

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,13 +1,19 @@
1
1
  # @talismn/token-rates
2
2
 
3
- ## 0.0.0-pr997-20230922020138
3
+ ## 0.0.0-pr997-20230922054741
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
 
7
13
  - Updated dependencies [03939d5f]
8
14
  - Updated dependencies [5aadf998]
9
15
  - Updated dependencies [4cace80d]
10
- - @talismn/chaindata-provider@0.0.0-pr997-20230922020138
16
+ - @talismn/chaindata-provider@0.0.0-pr997-20230922054741
11
17
 
12
18
  ## 0.2.0
13
19
 
@@ -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-pr997-20230922020138",
3
+ "version": "0.0.0-pr997-20230922054741",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -26,7 +26,7 @@
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-pr997-20230922020138",
29
+ "@talismn/chaindata-provider": "0.0.0-pr997-20230922054741",
30
30
  "axios": "^0.27.2",
31
31
  "dexie": "^3.2.4"
32
32
  },