-
Notifications
You must be signed in to change notification settings - Fork 33
Feat/decentralized exchange #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jonty007
wants to merge
23
commits into
staging
Choose a base branch
from
feat/eslint-fixes
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f73f60f
eslint fixes
jonty007 a1cc762
test:rerun dev ex improvements and fixes
jonty007 71c1321
lint fixes
jonty007 4f836f3
updated package and package lock
jonty007 2193948
fix lib bundling
jonty007 477b7ad
merge commit
jonty007 3b32db6
explorer, eslint and ft2
jonty007 06f4933
improve tooltip
jonty007 c95f6e3
merge commit
jonty007 b0ccf45
charts UI UX fix
jonty007 6bc9769
build file updates
jonty007 a2ca065
merge commit
jonty007 f1c09b8
merge commit
jonty007 1407148
Order book UI fixes, components enhancements
jonty007 f5eff8b
update deploy commands to support http2 node made UI/UX fix for excha…
jonty007 448c04c
build fixes
jonty007 5222d27
env, doc and docker compose update
jonty007 06be546
merge of single event source
jonty007 6c366f4
remove http2 configuration and withdraw to self
jonty007 d76b86e
wallet withdraw dynamic
jonty007 2b26be0
Merge branch 'staging' of https://github.com/bitcoin-computer/monorep…
jonty007 9ed55c4
UI/UX fixes for the exchange
jonty007 e559251
add built files
jonty007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,4 @@ | ||
| export declare function DecodedransactionComponent(): import("react/jsx-runtime").JSX.Element; | ||
| export declare const Decodedransaction: { | ||
| Component: typeof DecodedransactionComponent; | ||
| }; | ||
This file contains hidden or 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,40 @@ | ||
| import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
| import { useContext, useEffect, useState } from 'react'; | ||
| import { useLocation, useParams } from 'react-router-dom'; | ||
| import { Transaction as BCTransaction } from '@bitcoin-computer/lib'; | ||
| import { ComputerContext } from './ComputerContext'; | ||
| import { inputsComponent, outputsComponent, transitionComponent } from './Transaction'; | ||
| export function DecodedransactionComponent() { | ||
| const location = useLocation(); | ||
| const params = useParams(); | ||
| const computer = useContext(ComputerContext); | ||
| const [txnData, setTxnData] = useState(null); | ||
| const [rpcTxnData, setRPCTxnData] = useState(null); | ||
| const [transition, setTransition] = useState(null); | ||
| useEffect(() => { | ||
| const fetch = async () => { | ||
| const txnDeserialized = BCTransaction.deserialize(params.txn); | ||
| setTxnData(txnDeserialized); | ||
| const { result } = await computer.rpc('decoderawtransaction', `${txnDeserialized.toHex()} false`); | ||
| setRPCTxnData(result); | ||
| }; | ||
| fetch(); | ||
| }, [computer, location, params.txn]); | ||
| useEffect(() => { | ||
| const fetch = async () => { | ||
| try { | ||
| if (txnData) { | ||
| setTransition(await computer.decode(txnData)); | ||
| } | ||
| } | ||
| catch (err) { | ||
| if (err instanceof Error) { | ||
| setTransition(''); | ||
| } | ||
| } | ||
| }; | ||
| fetch(); | ||
| }, [computer, txnData]); | ||
| return (_jsx(_Fragment, { children: _jsxs("div", { className: "pt-8", children: [_jsx("h1", { className: "mb-2 text-5xl font-extrabold dark:text-white", children: "Decoded Transaction" }), transition && transitionComponent({ transition }), rpcTxnData?.vin && inputsComponent({ rpcTxnData, checkForSpentInput: true }), rpcTxnData?.vout && outputsComponent({ rpcTxnData, txn: undefined })] }) })); | ||
| } | ||
| export const Decodedransaction = { Component: DecodedransactionComponent }; |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rename in all relevant files:
DecodedransactionComponent->DecodeTransactionComponentDecodedransaction->DecodeTransaction