Skip to content

Commit 981d793

Browse files
committed
trying a single export
1 parent e8a553f commit 981d793

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

docs/snippets/CurrentPricesTable.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { weiToTokens, formatPrice, getLitActionPriceComponent, getNodePriceMeasurement } from './PriceProvider';
1+
import { weiToTokens, formatPrice, getNodePriceMeasurement } from './PriceProvider';
2+
3+
import { getLitActionPriceComponent } from './utils';
24

35
export const CurrentPricesTable = ({ priceData }) => {
46
// Product IDs

docs/snippets/PriceProvider.jsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,7 @@ const PRODUCT_IDS = [
2121
ProductId.SignSessionKey,
2222
];
2323

24-
// LitActionPriceComponent enum values
25-
export const getLitActionPriceComponent = () => ({
26-
baseAmount: 0,
27-
runtimeLength: 1,
28-
memoryUsage: 2,
29-
codeLength: 3,
30-
responseLength: 4,
31-
signatures: 5,
32-
broadcasts: 6,
33-
contractCalls: 7,
34-
callDepth: 8,
35-
decrypts: 9,
36-
fetches: 10,
37-
});
24+
3825

3926
// NodePriceMeasurement enum values
4027
export const getNodePriceMeasurement = () => ({

docs/snippets/utils.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// LitActionPriceComponent enum values
2+
export const getLitActionPriceComponent = () => ({
3+
baseAmount: 0,
4+
runtimeLength: 1,
5+
memoryUsage: 2,
6+
codeLength: 3,
7+
responseLength: 4,
8+
signatures: 5,
9+
broadcasts: 6,
10+
contractCalls: 7,
11+
callDepth: 8,
12+
decrypts: 9,
13+
fetches: 10,
14+
});

0 commit comments

Comments
 (0)