Skip to content

Commit

Permalink
fix: relocated stacks fee types
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf authored and kyranjamie committed Jun 10, 2024
1 parent af77063 commit d8be118
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"@hirosystems/token-metadata-api-client": "1.2.0",
"@leather-wallet/bitcoin": "0.7.1",
"@leather-wallet/models": "0.8.0",
"@leather-wallet/query": "0.8.0",
"@leather-wallet/query": "0.8.2",
"@leather-wallet/tokens": "0.5.2",
"@leather-wallet/utils": "0.8.1",
"@ledgerhq/hw-transport-webusb": "6.27.19",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/app/query/stacks/fees/fees.hooks.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { useMemo } from 'react';

import { StacksTransaction } from '@stacks/transactions';

import {
FeeCalculationTypes,
type Fees,
type Money,
StacksFeeEstimate,
StacksTxFeeEstimation,
} from '@leather-wallet/models';
import type { StacksTxFeeEstimation } from '@leather-wallet/query';
import { createMoney } from '@leather-wallet/utils';
import { StacksTransaction } from '@stacks/transactions';

import {
useConfigFeeEstimationsMaxEnabled,
Expand Down
2 changes: 1 addition & 1 deletion src/app/query/stacks/fees/fees.query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StacksTxFeeEstimation } from '@leather-wallet/models';
import type { StacksTxFeeEstimation } from '@leather-wallet/query';
import { useQuery } from '@tanstack/react-query';
import axios from 'axios';
import PQueue from 'p-queue';
Expand Down
12 changes: 3 additions & 9 deletions src/app/query/stacks/fees/fees.utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import {
ApiFeeEstimation,
FeeCalculationTypes,
Fees,
Money,
StacksFeeEstimate,
StacksTxFeeEstimation,
} from '@leather-wallet/models';
import { FeeCalculationTypes, Fees, Money, StacksFeeEstimate } from '@leather-wallet/models';
import type { FeeEstimation, StacksTxFeeEstimation } from '@leather-wallet/query';
import { createMoney } from '@leather-wallet/utils';
import { bytesToHex } from '@stacks/common';
import { StacksTransaction, serializePayload } from '@stacks/transactions';
Expand All @@ -27,7 +21,7 @@ export const defaultFeesMinValuesAsMoney = [
createMoney(defaultFeesMinValues[2], 'STX'),
];

export const defaultApiFeeEstimations: ApiFeeEstimation[] = [
export const defaultApiFeeEstimations: FeeEstimation[] = [
{ fee: defaultFeesMinValues[0], fee_rate: 0 },
{ fee: defaultFeesMinValues[1], fee_rate: 0 },
{ fee: defaultFeesMinValues[2], fee_rate: 0 },
Expand Down

0 comments on commit d8be118

Please sign in to comment.