Skip to content

Commit

Permalink
feat: updated dlc-tools version, conditional bitcoin contracts entry …
Browse files Browse the repository at this point in the history
…point rendering
  • Loading branch information
Polybius93 committed Nov 1, 2023
1 parent 7a0a2e8 commit 194d102
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
"dependencies": {
"@bitcoinerlab/secp256k1": "1.0.2",
"@coinbase/cbpay-js": "1.0.2",
"@dlc-link/dlc-tools": "1.0.4",
"@fungible-systems/zone-file": "2.0.0",
"@hirosystems/token-metadata-api-client": "1.1.0",
"@ledgerhq/hw-transport-webusb": "6.27.19",
Expand Down Expand Up @@ -184,7 +185,6 @@
"compare-versions": "4.1.3",
"css-loader": "6.8.1",
"dayjs": "1.11.8",
"dlc-tools": "file:../new-dlc-stack/wasm-wallet/pkg",
"dompurify": "3.0.6",
"dotenv": "16.3.1",
"ecdsa-sig-formatter": "1.0.11",
Expand Down
2 changes: 1 addition & 1 deletion src/app/common/hooks/use-bitcoin-contracts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useNavigate } from 'react-router-dom';

import { RpcErrorCode } from '@btckit/types';
import { JsDLCInterface } from '@dlc-link/dlc-tools';
import { bytesToHex } from '@stacks/common';
import { JsDLCInterface } from 'dlc-tools';

import {
deriveAddressIndexKeychainFromAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ export function BitcoinContractEntryPoint({ btcAddress }: BitcoinContractEntryPo
}

return (
<BitcoinContractEntryPointLayout
isLoading={isLoading}
balance={bitcoinContractSum}
caption={bitcoinContractSum.symbol}
icon={<Box as={BitcoinContractIcon} />}
usdBalance={i18nFormatCurrency(calculateFiatValue(bitcoinContractSum))}
cursor={'pointer'}
onClick={onClick}
/>
!bitcoinContractSum.amount.isZero() && (
<BitcoinContractEntryPointLayout
isLoading={isLoading}
balance={bitcoinContractSum}
caption={bitcoinContractSum.symbol}
icon={<Box as={BitcoinContractIcon} />}
usdBalance={i18nFormatCurrency(calculateFiatValue(bitcoinContractSum))}
onClick={onClick}
/>
)
);
}
11 changes: 0 additions & 11 deletions src/app/query/bitcoin/contract/check-dlc-link-attestor-health.ts

This file was deleted.

8 changes: 5 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,11 @@
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==

"@dlc-link/[email protected]":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@dlc-link/dlc-tools/-/dlc-tools-1.0.4.tgz#0b312a130d1cee4fa3e53e0815968b2fd0bfa91b"
integrity sha512-hjwZH2xRmnfIz9zJ7C4EV4cDs8Fu7SOmUcr8aBuzVvwOo23DDu0qYuuCOClICiWHUNUhhWMK+gdQgU8LVdhbuQ==

"@dnd-kit/accessibility@^3.0.0":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@dnd-kit/accessibility/-/accessibility-3.0.1.tgz#3ccbefdfca595b0a23a5dc57d3de96bc6935641c"
Expand Down Expand Up @@ -10902,9 +10907,6 @@ dir-glob@^3.0.1:
dependencies:
path-type "^4.0.0"

"dlc-tools@file:../new-dlc-stack/wasm-wallet/pkg":
version "1.0.3"

dlv@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79"
Expand Down

0 comments on commit 194d102

Please sign in to comment.