-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from apotdevin/mempool-min
chore: add mempool minimum
- Loading branch information
Showing
15 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ Object { | |
"fast": 3, | ||
"halfHour": 2, | ||
"hour": 1, | ||
"minimum": 5, | ||
}, | ||
}, | ||
"errors": undefined, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ export const bitcoinTypes = gql` | |
fast: Int | ||
halfHour: Int | ||
hour: Int | ||
minimum: Int | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/graphql/queries/__generated__/getBitcoinFees.generated.tsx
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ export const GET_BITCOIN_FEES = gql` | |
fast | ||
halfHour | ||
hour | ||
minimum | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Card, CardWithTitle, SubTitle } from 'src/components/generic/Styled'; | ||
import { Table } from 'src/components/table'; | ||
import { useBitcoinFees } from 'src/hooks/UseBitcoinFees'; | ||
|
||
export const MempoolReport = () => { | ||
const { fast, halfHour, hour, minimum, dontShow } = useBitcoinFees(); | ||
|
||
if (dontShow) { | ||
return null; | ||
} | ||
|
||
const columns = [ | ||
{ Header: 'Fastest', accessor: 'fast' }, | ||
{ Header: 'Half Hour', accessor: 'halfHour' }, | ||
{ Header: 'Hour', accessor: 'hour' }, | ||
{ Header: 'Minimum', accessor: 'minimum' }, | ||
]; | ||
|
||
const data = [ | ||
{ | ||
fast: `${fast} sat/vB`, | ||
halfHour: `${halfHour} sat/vB`, | ||
hour: `${hour} sat/vB`, | ||
minimum: `${minimum} sat/vB`, | ||
}, | ||
]; | ||
|
||
return ( | ||
<CardWithTitle> | ||
<SubTitle>Mempool Fees</SubTitle> | ||
<Card> | ||
<Table alignCenter={true} tableColumns={columns} tableData={data} /> | ||
</Card> | ||
</CardWithTitle> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters