@ledgerhq/live-countervalues-react 0.2.44 → 0.2.45-nightly.1
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 +1 -1
- package/CHANGELOG.md +18 -0
- package/lib/CountervaluesMarketcapProvider.d.ts +23 -0
- package/lib/CountervaluesMarketcapProvider.d.ts.map +1 -0
- package/lib/CountervaluesMarketcapProvider.js +89 -0
- package/lib/CountervaluesMarketcapProvider.js.map +1 -0
- package/lib/index.d.ts +60 -18
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +120 -201
- package/lib/index.js.map +1 -1
- package/lib-es/CountervaluesMarketcapProvider.d.ts +23 -0
- package/lib-es/CountervaluesMarketcapProvider.d.ts.map +1 -0
- package/lib-es/CountervaluesMarketcapProvider.js +58 -0
- package/lib-es/CountervaluesMarketcapProvider.js.map +1 -0
- package/lib-es/index.d.ts +60 -18
- package/lib-es/index.d.ts.map +1 -1
- package/lib-es/index.js +113 -190
- package/lib-es/index.js.map +1 -1
- package/package.json +5 -5
- package/src/CountervaluesMarketcapProvider.tsx +94 -0
- package/src/index.tsx +176 -273
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/live-countervalues-react@0.2.
|
|
2
|
+
> @ledgerhq/live-countervalues-react@0.2.45-nightly.0 build /home/runner/work/ledger-live/ledger-live/libs/live-countervalues-react
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ledgerhq/live-countervalues-react
|
|
2
2
|
|
|
3
|
+
## 0.2.45-nightly.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#11161](https://github.com/LedgerHQ/ledger-live/pull/11161) [`f5f652e`](https://github.com/LedgerHQ/ledger-live/commit/f5f652e308477ff38176e5782eaf0e1bb96956ba) Thanks [@marcotoniut-ledger](https://github.com/marcotoniut-ledger)! - Countervalues' state moved to app-specific reducers for both desktop and mobile.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @ledgerhq/coin-framework@5.9.0-nightly.1
|
|
11
|
+
- @ledgerhq/live-countervalues@0.6.0-nightly.1
|
|
12
|
+
|
|
13
|
+
## 0.2.45-nightly.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`9c63d6b`](https://github.com/LedgerHQ/ledger-live/commit/9c63d6b8d5fb629a19514ec36396c35eeefb96aa), [`8b0b4ef`](https://github.com/LedgerHQ/ledger-live/commit/8b0b4efaf2c0968cfb60c0cecebca9c575b00748)]:
|
|
18
|
+
- @ledgerhq/live-countervalues@0.6.0-nightly.0
|
|
19
|
+
- @ledgerhq/coin-framework@5.9.0-nightly.0
|
|
20
|
+
|
|
3
21
|
## 0.2.44
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Bridge enabling platform-specific persistence of market-cap ids.
|
|
4
|
+
* NOTE: memoize the object to avoid re-renders.
|
|
5
|
+
*/
|
|
6
|
+
export interface CountervaluesMarketcapBridge {
|
|
7
|
+
setError(message: string): void;
|
|
8
|
+
setIds(ids: string[]): void;
|
|
9
|
+
setLoading(loading: boolean): void;
|
|
10
|
+
useIds(): string[];
|
|
11
|
+
useLastUpdated(): number | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Provides market-cap ids via the supplied bridge.
|
|
15
|
+
*/
|
|
16
|
+
export declare function CountervaluesMarketcapProvider({ children, bridge, }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
/** @param bridge Contains the functions that interact with the apps' state. Reference needs to be stable */
|
|
19
|
+
bridge: CountervaluesMarketcapBridge;
|
|
20
|
+
}): ReactElement;
|
|
21
|
+
/** Returns market-cap ids. */
|
|
22
|
+
export declare function useMarketcapIds(): string[];
|
|
23
|
+
//# sourceMappingURL=CountervaluesMarketcapProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountervaluesMarketcapProvider.d.ts","sourceRoot":"","sources":["../src/CountervaluesMarketcapProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAoD,MAAM,OAAO,CAAC;AAK9F;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,MAAM,IAAI,MAAM,EAAE,CAAC;IACnB,cAAc,IAAI,MAAM,GAAG,SAAS,CAAC;CACtC;AAqDD;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4GAA4G;IAC5G,MAAM,EAAE,4BAA4B,CAAC;CACtC,GAAG,YAAY,CAOf;AAED,8BAA8B;AAC9B,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAG1C"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.useMarketcapIds = exports.CountervaluesMarketcapProvider = void 0;
|
|
30
|
+
const index_1 = __importDefault(require("@ledgerhq/live-countervalues/api/index"));
|
|
31
|
+
const logs_1 = require("@ledgerhq/logs");
|
|
32
|
+
const react_1 = __importStar(require("react"));
|
|
33
|
+
const MARKETCAP_REFRESH = 30 * 60000;
|
|
34
|
+
const MARKETCAP_REFRESH_ON_ERROR = 60000;
|
|
35
|
+
const CountervaluesMarketcapBridgeContext = (0, react_1.createContext)(null);
|
|
36
|
+
function useCountervaluesMarketcapBridgeContext() {
|
|
37
|
+
const bridge = (0, react_1.useContext)(CountervaluesMarketcapBridgeContext);
|
|
38
|
+
if (!bridge) {
|
|
39
|
+
throw new Error("'useCountervaluesMarketcapBridgeContext' must be used within a 'CountervaluesMarketcapProvider'");
|
|
40
|
+
}
|
|
41
|
+
return bridge;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Call side effects outside of the primary render tree, avoiding costly child re-renders
|
|
45
|
+
* TODO this could be re-written as a side effect only, to avoid dependency on render state.
|
|
46
|
+
*/
|
|
47
|
+
function Effect({ bridge }) {
|
|
48
|
+
const lastUpdated = bridge.useLastUpdated();
|
|
49
|
+
const [, forceUpdate] = (0, react_1.useReducer)((x) => x + 1, 0);
|
|
50
|
+
(0, react_1.useEffect)(() => {
|
|
51
|
+
let timeout = null;
|
|
52
|
+
const now = Date.now();
|
|
53
|
+
if (!lastUpdated || now - lastUpdated > MARKETCAP_REFRESH) {
|
|
54
|
+
bridge.setLoading(true);
|
|
55
|
+
index_1.default.fetchIdsSortedByMarketcap().then(fetchedIds => {
|
|
56
|
+
bridge.setIds(fetchedIds);
|
|
57
|
+
timeout = setTimeout(() => forceUpdate(), MARKETCAP_REFRESH);
|
|
58
|
+
}, error => {
|
|
59
|
+
(0, logs_1.log)("countervalues", "error fetching marketcap ids " + error);
|
|
60
|
+
bridge.setError(error.message);
|
|
61
|
+
timeout = setTimeout(() => forceUpdate(), MARKETCAP_REFRESH_ON_ERROR);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
timeout = setTimeout(() => forceUpdate(), MARKETCAP_REFRESH - (now - lastUpdated));
|
|
66
|
+
}
|
|
67
|
+
return () => {
|
|
68
|
+
if (timeout)
|
|
69
|
+
clearTimeout(timeout);
|
|
70
|
+
};
|
|
71
|
+
}, [lastUpdated, bridge]);
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Provides market-cap ids via the supplied bridge.
|
|
76
|
+
*/
|
|
77
|
+
function CountervaluesMarketcapProvider({ children, bridge, }) {
|
|
78
|
+
return (react_1.default.createElement(CountervaluesMarketcapBridgeContext.Provider, { value: bridge },
|
|
79
|
+
react_1.default.createElement(Effect, { bridge: bridge }),
|
|
80
|
+
children));
|
|
81
|
+
}
|
|
82
|
+
exports.CountervaluesMarketcapProvider = CountervaluesMarketcapProvider;
|
|
83
|
+
/** Returns market-cap ids. */
|
|
84
|
+
function useMarketcapIds() {
|
|
85
|
+
const bridge = useCountervaluesMarketcapBridgeContext();
|
|
86
|
+
return bridge.useIds();
|
|
87
|
+
}
|
|
88
|
+
exports.useMarketcapIds = useMarketcapIds;
|
|
89
|
+
//# sourceMappingURL=CountervaluesMarketcapProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountervaluesMarketcapProvider.js","sourceRoot":"","sources":["../src/CountervaluesMarketcapProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAyD;AACzD,yCAAqC;AACrC,+CAA8F;AAE9F,MAAM,iBAAiB,GAAG,EAAE,GAAG,KAAK,CAAC;AACrC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAczC,MAAM,mCAAmC,GAAG,IAAA,qBAAa,EACvD,IAAI,CACL,CAAC;AAEF,SAAS,sCAAsC;IAC7C,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,mCAAmC,CAAC,CAAC;IAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,SAAS,MAAM,CAAC,EAAE,MAAM,EAA4C;IAClE,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;IAC5C,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,IAAA,kBAAU,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAE5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,OAAO,GAAyC,IAAI,CAAC;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAEvB,IAAI,CAAC,WAAW,IAAI,GAAG,GAAG,WAAW,GAAG,iB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OAAO,MAAM,CAAC,MAAM,EAAE,CAAC;AACzB,CAAC;AAHD,0CAGC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import { BigNumber } from "bignumber.js";
|
|
2
|
-
import React, { ReactElement } from "react";
|
|
3
1
|
import type { CounterValuesState, CounterValuesStateRaw, CountervaluesSettings, TrackingPair } from "@ledgerhq/live-countervalues/types";
|
|
4
|
-
import type { Account, AccountLike } from "@ledgerhq/types-live";
|
|
5
2
|
import type { Currency, Unit } from "@ledgerhq/types-cryptoassets";
|
|
3
|
+
import type { Account, AccountLike } from "@ledgerhq/types-live";
|
|
4
|
+
import { BigNumber } from "bignumber.js";
|
|
5
|
+
import React, { ReactElement } from "react";
|
|
6
|
+
export { CountervaluesMarketcapProvider, useMarketcapIds } from "./CountervaluesMarketcapProvider";
|
|
7
|
+
export interface PollingState {
|
|
8
|
+
isPolling: boolean;
|
|
9
|
+
triggerRef: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Bridge enabling platform-specific persistence of countervalues state.
|
|
13
|
+
* @note: make sure that the object is memoized to avoid re-renders.
|
|
14
|
+
*/
|
|
15
|
+
export interface CountervaluesBridge {
|
|
16
|
+
setPollingIsPolling(polling: boolean): void;
|
|
17
|
+
setPollingTriggerLoad(triggerLoad: boolean): void;
|
|
18
|
+
setState(state: CounterValuesState): void;
|
|
19
|
+
setStateError(error: Error): void;
|
|
20
|
+
setStatePending(pending: boolean): void;
|
|
21
|
+
usePollingIsPolling(): boolean;
|
|
22
|
+
usePollingTriggerLoad(): boolean;
|
|
23
|
+
useStateError(): Error | null;
|
|
24
|
+
useStatePending(): boolean;
|
|
25
|
+
useState(): CounterValuesState;
|
|
26
|
+
useUserSettings(): CountervaluesSettings;
|
|
27
|
+
wipe(): void;
|
|
28
|
+
}
|
|
6
29
|
export type Polling = {
|
|
7
30
|
wipe: () => void;
|
|
8
31
|
poll: () => void;
|
|
@@ -12,28 +35,35 @@ export type Polling = {
|
|
|
12
35
|
error: Error | null | undefined;
|
|
13
36
|
};
|
|
14
37
|
export type Props = {
|
|
38
|
+
/** Bridge enabling platform-specific persistence of countervalues state. */
|
|
39
|
+
bridge: CountervaluesBridge;
|
|
15
40
|
children: React.ReactNode;
|
|
16
|
-
|
|
41
|
+
/** the time to wait before the first poll when app starts (allow things to render to not do all at boot time) */
|
|
17
42
|
pollInitDelay?: number;
|
|
43
|
+
/** the minimum time to wait before two automatic polls (then one that happen whatever network/appstate events) */
|
|
18
44
|
autopollInterval?: number;
|
|
45
|
+
/** debounce time before actually fetching */
|
|
19
46
|
debounceDelay?: number;
|
|
20
47
|
savedState?: CounterValuesStateRaw;
|
|
21
48
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare function Countervalues({ children, userSettings, pollInitDelay, debounceDelay, savedState, }: Props): ReactElement;
|
|
32
|
-
export declare function useCountervaluesPolling(): Polling;
|
|
33
|
-
export declare function useCountervaluesUserSettingsContext(): CountervaluesSettings;
|
|
49
|
+
/**
|
|
50
|
+
* Base Countervalues Context to use without polling logic.
|
|
51
|
+
*/
|
|
52
|
+
export declare const CountervaluesContext: React.Context<CountervaluesBridge | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Root countervalues provider (polling + calculation).
|
|
55
|
+
*/
|
|
56
|
+
export declare function CountervaluesProvider({ children, bridge, ...rest }: Props): ReactElement;
|
|
57
|
+
/** Returns the full countervalues state. */
|
|
34
58
|
export declare function useCountervaluesState(): CounterValuesState;
|
|
35
|
-
|
|
36
|
-
export declare function
|
|
59
|
+
/** Allows consumer to access the countervalues polling control object */
|
|
60
|
+
export declare function useCountervaluesPolling(): Polling;
|
|
61
|
+
/** Allows consumer to access the user settings that was used to fetch the countervalues */
|
|
62
|
+
export declare function useCountervaluesUserSettings(): CountervaluesSettings;
|
|
63
|
+
/**
|
|
64
|
+
* Provides a way to calculate a countervalue from a value
|
|
65
|
+
* Seems like a major bottleneck, see if it actually needs the full state or we can select only the needed data
|
|
66
|
+
*/
|
|
37
67
|
export declare function useCalculate(query: {
|
|
38
68
|
value: number;
|
|
39
69
|
from: Currency;
|
|
@@ -42,9 +72,11 @@ export declare function useCalculate(query: {
|
|
|
42
72
|
date?: Date | null | undefined;
|
|
43
73
|
reverse?: boolean;
|
|
44
74
|
}): number | null | undefined;
|
|
75
|
+
/** Provides a way to calculate a countervalue from a value using a callback */
|
|
45
76
|
export declare function useCalculateCountervalueCallback({ to, }: {
|
|
46
77
|
to: Currency;
|
|
47
78
|
}): (from: Currency, value: BigNumber) => BigNumber | null | undefined;
|
|
79
|
+
/** Helper for send-flow: returns fiat amount and reverse calculation. */
|
|
48
80
|
export declare function useSendAmount({ account, fiatCurrency, cryptoAmount, }: {
|
|
49
81
|
account: AccountLike;
|
|
50
82
|
fiatCurrency: Currency;
|
|
@@ -54,4 +86,14 @@ export declare function useSendAmount({ account, fiatCurrency, cryptoAmount, }:
|
|
|
54
86
|
fiatUnit: Unit;
|
|
55
87
|
calculateCryptoAmount: (fiatAmount: BigNumber) => BigNumber;
|
|
56
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Infer the tracking pairs for the top coins that the portfolio needs to display itself
|
|
91
|
+
* if startDate is undefined, the feature is disabled
|
|
92
|
+
*/
|
|
93
|
+
export declare function useTrackingPairsForTopCoins(marketcapIds: string[], countervalue: Currency, size: number, startDate: Date | undefined): {
|
|
94
|
+
from: import("@ledgerhq/types-cryptoassets").CryptoCurrency;
|
|
95
|
+
to: Currency;
|
|
96
|
+
startDate: Date;
|
|
97
|
+
}[];
|
|
98
|
+
export declare function useTrackingPairForAccounts(accounts: Account[], countervalue: Currency): TrackingPair[];
|
|
57
99
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceR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