mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2.git
synced 2026-09-21 16:52:01 -07:00
Merge pull request #9 from Permissionless-Software-Foundation/ct-unstable
Testing Semantic Release
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This is a web-based single page app (SPA) written in React. It is forked from [bch-wallet-web3-spa](https://github.com/Permissionless-Software-Foundation/bch-wallet-web3-spa) and replaces [bch-dex-taker-ui](https://github.com/Permissionless-Software-Foundation/bch-dex-taker-ui).
|
||||
|
||||
The purpose of this app is to provide a web-based interface for users to browse NFT and fungible tokens for sale on the SLP DEX protocol. This provides a simple 1-click purchase functionality. A different UI is used for selling tokens, as there are more requirements for sellers imposed by the SWaP protocol.
|
||||
The purpose of this app is to provide a web-based interface for users to browse NFT and fungible tokens for sale on the SLP DEX protocol. This provides a simple 1-click purchase functionality. A different UI ([bch-dex-ui-v3](https://github.com/Permissionless-Software-Foundation/bch-dex-ui-v3)) is used for selling tokens, as there are more requirements for sellers imposed by the SWaP protocol.
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
|
||||
@@ -104,7 +104,7 @@ const SweepWif = (props) => {
|
||||
|
||||
const handleCancelCounterOffers = async () => {
|
||||
try {
|
||||
console.log(`Executing handleCancelCounterOffers()`)
|
||||
console.log('Executing handleCancelCounterOffers()')
|
||||
|
||||
// Set modal initial state
|
||||
// setShowModal(true)
|
||||
@@ -119,8 +119,6 @@ const SweepWif = (props) => {
|
||||
|
||||
// Sweep the private key holding the Counter Offer UTXOs.
|
||||
setWifToSweep(wif)
|
||||
|
||||
|
||||
|
||||
await handleSweep()
|
||||
} catch (err) {
|
||||
@@ -211,23 +209,23 @@ const SweepWif = (props) => {
|
||||
<hr />
|
||||
|
||||
<Row>
|
||||
<Col>
|
||||
<p>
|
||||
When a Buy order is created, the coins (UTXO) to pay for it are
|
||||
moved to a secondary address. Clicking the button below will
|
||||
sweep those funds back into this main wallet. This will also
|
||||
cancel/invalidate all open Counter Offers that you've created.
|
||||
</p>
|
||||
</Col>
|
||||
</Row>
|
||||
<Col>
|
||||
<p>
|
||||
When a Buy order is created, the coins (UTXO) to pay for it are
|
||||
moved to a secondary address. Clicking the button below will
|
||||
sweep those funds back into this main wallet. This will also
|
||||
cancel/invalidate all open Counter Offers that you've created.
|
||||
</p>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Row style={{ textAlign: 'center' }}>
|
||||
<Col>
|
||||
<Button onClick={handleCancelCounterOffers}>
|
||||
Sweep DEX Trading Wallet
|
||||
</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{ textAlign: 'center' }}>
|
||||
<Col>
|
||||
<Button onClick={handleCancelCounterOffers}>
|
||||
Sweep DEX Trading Wallet
|
||||
</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Container>
|
||||
{showModal && getModal()}
|
||||
</>
|
||||
|
||||
@@ -83,6 +83,7 @@ class NostrBrowser {
|
||||
|
||||
// Connect to a relay.
|
||||
const relay = await Relay.connect(relayWs, {
|
||||
/* global WebSocket */
|
||||
webSocket: WebSocket
|
||||
})
|
||||
// console.log(`connected to ${relay.url}`)
|
||||
|
||||
Reference in New Issue
Block a user