Skip to content

Commit

Permalink
feat: modify dlc-btc-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Oct 8, 2024
1 parent b01b4d2 commit 703324b
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"concurrently": "^8.2.2",
"d3": "^7.9.0",
"decimal.js": "^10.4.3",
"dlc-btc-lib": "file:../dlc-btc-lib",
"dlc-btc-lib": "^2.2.10",
"dotenv": "^16.3.1",
"ethers": "5.7.2",
"formik": "^2.4.5",
Expand Down
139 changes: 73 additions & 66 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1963,12 +1963,12 @@
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.19.1.tgz#d9ac45ad4ff839e468b8f63766e665537aaede58"
integrity sha512-75yK7Nnit/Gp7gdrJAz0ipp31CCgncRp+evWt6QawQEtQKYEDfGo10QywgrrBBixeRxwnMy1DP6g2oCWRf1bjw==

"@ledgerhq/hw-app-btc@^10.2.4":
version "10.4.3"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-btc/-/hw-app-btc-10.4.3.tgz#9b7bbefe61e8580a4b2fcf84f4f05fa64d9f1fd3"
integrity sha512-UAbq7AE2ApdIIpgkmVPxtI2r9YigE2VD+q8W4rZxvQbfnRAwBtKRxSn+1IVta6NgY1WzbqO1zKPDXvsY9ys47g==
"@ledgerhq/hw-app-btc@10.4.1":
version "10.4.1"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-btc/-/hw-app-btc-10.4.1.tgz#c78d97ec2515ae897bf3256a046934ddcd924aa9"
integrity sha512-8EpI59hT9N+kAN5kUE9F2DVzBTH7RSdXoyK5+l4UulJTzhJSh7888YvE//iDY+IiUOsNwMiHWxgAmZN3LucKQQ==
dependencies:
"@ledgerhq/hw-transport" "^6.31.4"
"@ledgerhq/hw-transport" "^6.31.2"
"@ledgerhq/logs" "^6.12.0"
bip32-path "^0.4.2"
bitcoinjs-lib "^5.2.0"
Expand Down Expand Up @@ -2001,7 +2001,7 @@
"@ledgerhq/logs" "^6.12.0"
events "^3.3.0"

"@ledgerhq/hw-transport@^6.31.4":
"@ledgerhq/hw-transport@^6.31.2":
version "6.31.4"
resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.31.4.tgz#9b23a6de4a4caaa5c24b149c2dea8adde46f0eb1"
integrity sha512-6c1ir/cXWJm5dCWdq55NPgCJ3UuKuuxRvf//Xs36Bq9BwkV2YaRQhZITAkads83l07NAdR16hkTWqqpwFMaI6A==
Expand Down Expand Up @@ -2657,6 +2657,11 @@
resolved "https://registry.yarnpkg.com/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.22.1.tgz#4d5dac21c6e044b68b13b53468633ec771f30e3b"
integrity sha512-YApSpx+3h6uejrJVh8PSqXRRAwmsWz8PZERObMGJNC9NPoMhZG/Rvqb2UWmVLrjFh880rqutsB+GrTmJP351PA==

"@scure/[email protected]":
version "1.1.8"
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.8.tgz#8f23646c352f020c83bca750a82789e246d42b50"
integrity sha512-6CyAclxj3Nb0XT7GHK6K4zK6k2xJm6E4Ft0Ohjt4WgegiFUHEtFb2CGzmPmGBwoIhrLsqNLYfLr04Y1GePrzZg==

"@scure/base@^1.1.1":
version "1.1.6"
resolved "https://registry.npmjs.org/@scure/base/-/base-1.1.6.tgz"
Expand All @@ -2667,7 +2672,7 @@
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.7.tgz#fe973311a5c6267846aa131bc72e96c5d40d2b30"
integrity sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==

"@scure/base@^1.1.6", "@scure/base@~1.1.5", "@scure/base@~1.1.7", "@scure/base@~1.1.8", "@scure/base@~1.1.9":
"@scure/base@~1.1.5", "@scure/base@~1.1.7", "@scure/base@~1.1.8":
version "1.1.9"
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.9.tgz#e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1"
integrity sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==
Expand Down Expand Up @@ -2706,14 +2711,14 @@
"@noble/hashes" "~1.5.0"
"@scure/base" "~1.1.8"

"@scure/btc-signer@^1.3.1":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@scure/btc-signer/-/btc-signer-1.4.0.tgz#b8e87b7c2bee51f28cb991c6987708338a683438"
integrity sha512-uSZqmiWWm1+wflQbiob0CrzQSCwDO9MmAxqsqk+tkiRcUv8GbC3Ptv9/2nUbsoUBuPN/6mBQJ/KOBzHjc5Bgow==
"@scure/[email protected].2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@scure/btc-signer/-/btc-signer-1.3.2.tgz#56cf02a2e318097b1e4f531fac8ef114bdf4ddc8"
integrity sha512-BmcQHvxaaShKwgbFC0vDk0xzqbMhNtNmgXm6u7cz07FNtGsVItUuHow6NbgHmc+oJSBZJRym5dz8+Uu0JoEJhQ==
dependencies:
"@noble/curves" "~1.6.0"
"@noble/hashes" "~1.5.0"
"@scure/base" "~1.1.9"
"@noble/curves" "~1.4.0"
"@noble/hashes" "~1.4.0"
"@scure/base" "~1.1.6"
micro-packed "~0.6.2"

"@sinclair/typebox@^0.27.8":
Expand Down Expand Up @@ -3283,7 +3288,7 @@
resolved "https://registry.npmjs.org/@types/raf/-/raf-3.4.3.tgz"
integrity sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw==

"@types/ramda@^0.30.1":
"@types/ramda@0.30.1", "@types/ramda@^0.30.1":
version "0.30.1"
resolved "https://registry.yarnpkg.com/@types/ramda/-/ramda-0.30.1.tgz#316257fec12747bb39a2e921df48a9dcb8c164a9"
integrity sha512-aoyF/ADPL6N+/NXXfhPWF+Qj6w1Cql59m9wX0Gi15uyF+bpzXeLd63HPdiTDE2bmLXfNcVufsDPKmbfOrOzTBA==
Expand Down Expand Up @@ -4144,6 +4149,16 @@ bip32-path@^0.4.2:
resolved "https://registry.npmjs.org/bip32-path/-/bip32-path-0.4.2.tgz"
integrity sha512-ZBMCELjJfcNMkz5bDuJ1WrYvjlhEF5k6mQ8vUr4N7MbVRsXei7ZOg8VhhwMfNiW68NWmLkgkc6WvTickrLGprQ==

[email protected], bip32@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/bip32/-/bip32-4.0.0.tgz"
integrity sha512-aOGy88DDlVUhspIXJN+dVEtclhIsfAUppD43V0j40cPTld3pv/0X/MlrZSZ6jowIaQQzFwP8M6rFU2z2mVYjDQ==
dependencies:
"@noble/hashes" "^1.2.0"
"@scure/base" "^1.1.1"
typeforce "^1.11.5"
wif "^2.0.6"

bip32@^2.0.4:
version "2.0.6"
resolved "https://registry.yarnpkg.com/bip32/-/bip32-2.0.6.tgz#6a81d9f98c4cd57d05150c60d8f9e75121635134"
Expand All @@ -4157,16 +4172,6 @@ bip32@^2.0.4:
typeforce "^1.11.5"
wif "^2.0.6"

bip32@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/bip32/-/bip32-4.0.0.tgz"
integrity sha512-aOGy88DDlVUhspIXJN+dVEtclhIsfAUppD43V0j40cPTld3pv/0X/MlrZSZ6jowIaQQzFwP8M6rFU2z2mVYjDQ==
dependencies:
"@noble/hashes" "^1.2.0"
"@scure/base" "^1.1.1"
typeforce "^1.11.5"
wif "^2.0.6"

bip66@^1.1.0:
version "1.1.5"
resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22"
Expand All @@ -4184,6 +4189,18 @@ bitcoin-ops@^1.3.0, bitcoin-ops@^1.4.0:
resolved "https://registry.yarnpkg.com/bitcoin-ops/-/bitcoin-ops-1.4.1.tgz#e45de620398e22fd4ca6023de43974ff42240278"
integrity sha512-pef6gxZFztEhaE9RY9HmWVmiIHqCb2OyS4HPKkpc6CIiiOa3Qmuoylxc5P2EkU3w+5eTSifI9SEZC88idAIGow==

[email protected]:
version "6.1.6"
resolved "https://registry.yarnpkg.com/bitcoinjs-lib/-/bitcoinjs-lib-6.1.6.tgz#f57c17c82511f860f11946d784c18da39f8618a8"
integrity sha512-Fk8+Vc+e2rMoDU5gXkW9tD+313rhkm5h6N9HfZxXvYU9LedttVvmXKTgd9k5rsQJjkSfsv6XRM8uhJv94SrvcA==
dependencies:
"@noble/hashes" "^1.2.0"
bech32 "^2.0.0"
bip174 "^2.1.1"
bs58check "^3.0.1"
typeforce "^1.11.3"
varuint-bitcoin "^1.1.2"

bitcoinjs-lib@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/bitcoinjs-lib/-/bitcoinjs-lib-5.2.0.tgz#caf8b5efb04274ded1b67e0706960b93afb9d332"
Expand Down Expand Up @@ -4217,18 +4234,6 @@ bitcoinjs-lib@^6.1.3:
typeforce "^1.11.3"
varuint-bitcoin "^1.1.2"

bitcoinjs-lib@^6.1.5:
version "6.1.6"
resolved "https://registry.yarnpkg.com/bitcoinjs-lib/-/bitcoinjs-lib-6.1.6.tgz#f57c17c82511f860f11946d784c18da39f8618a8"
integrity sha512-Fk8+Vc+e2rMoDU5gXkW9tD+313rhkm5h6N9HfZxXvYU9LedttVvmXKTgd9k5rsQJjkSfsv6XRM8uhJv94SrvcA==
dependencies:
"@noble/hashes" "^1.2.0"
bech32 "^2.0.0"
bip174 "^2.1.1"
bs58check "^3.0.1"
typeforce "^1.11.3"
varuint-bitcoin "^1.1.2"

bn.js@^4.11.8, bn.js@^4.11.9:
version "4.12.0"
resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz"
Expand Down Expand Up @@ -4398,6 +4403,11 @@ chai@^4.3.10:
pathval "^1.1.1"
type-detect "^4.0.8"

[email protected]:
version "5.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==

chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz"
Expand All @@ -4415,11 +4425,6 @@ chalk@^4.0.0, chalk@^4.1.2:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==

check-error@^1.0.3:
version "1.0.3"
resolved "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz"
Expand Down Expand Up @@ -5063,7 +5068,7 @@ decamelize@^1.2.0:
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==

decimal.js@^10.4.3:
decimal.js@10.4.3, decimal.js@^10.4.3:
version "10.4.3"
resolved "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz"
integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==
Expand Down Expand Up @@ -5177,25 +5182,27 @@ dir-glob@^3.0.1:
dependencies:
path-type "^4.0.0"

"dlc-btc-lib@file:../dlc-btc-lib":
version "2.2.7"
dlc-btc-lib@^2.2.10:
version "2.2.10"
resolved "https://registry.yarnpkg.com/dlc-btc-lib/-/dlc-btc-lib-2.2.10.tgz#34bee9ee687c7ead3ec27498f1f80539003525a3"
integrity sha512-SzqnGptBUGexr5rbvc183sTY30SP0MUVX7wQAW0W5wJsuUvNgYfgboc+EC0fLxScwnm1H92mrvMWlovNu8d8iQ==
dependencies:
"@ledgerhq/hw-app-btc" "^10.2.4"
"@noble/hashes" "^1.4.0"
"@scure/base" "^1.1.6"
"@scure/btc-signer" "^1.3.1"
"@types/ramda" "^0.30.1"
bip32 "^4.0.0"
bitcoinjs-lib "^6.1.5"
chalk "^5.3.0"
decimal.js "^10.4.3"
"@ledgerhq/hw-app-btc" "10.4.1"
"@noble/hashes" "1.4.0"
"@scure/base" "1.1.8"
"@scure/btc-signer" "1.3.2"
"@types/ramda" "0.30.1"
bip32 "4.0.0"
bitcoinjs-lib "6.1.6"
chalk "5.3.0"
decimal.js "10.4.3"
ethers "5.7.2"
ledger-bitcoin "^0.2.3"
prompts "^2.4.2"
ramda "^0.30.1"
scure "^1.6.0"
tiny-secp256k1 "^2.2.3"
xrpl "^4.0.0"
ledger-bitcoin "0.2.3"
prompts "2.4.2"
ramda "0.30.1"
scure "1.6.0"
tiny-secp256k1 "2.2.3"
xrpl "4.0.0"

doctrine@^2.1.0:
version "2.1.0"
Expand Down Expand Up @@ -6781,7 +6788,7 @@ language-tags@^1.0.9:
dependencies:
language-subtag-registry "^0.3.20"

ledger-bitcoin@^0.2.3:
ledger-bitcoin@0.2.3, ledger-bitcoin@^0.2.3:
version "0.2.3"
resolved "https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.2.3.tgz"
integrity sha512-sWdvMTR5CkebNlM0Mam9ROdpsD7Y4087kj4cbIaCCq8IXShCQ44vE3j0wTmt+sHp13eETgY63OWN1rkuIfMfuQ==
Expand Down Expand Up @@ -7556,7 +7563,7 @@ process@^0.11.10:
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==

prompts@^2.4.2:
[email protected]:
version "2.4.2"
resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069"
integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==
Expand Down Expand Up @@ -7650,7 +7657,7 @@ radix3@^1.1.2:
resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0"
integrity sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==

ramda@^0.30.1:
ramda@0.30.1, ramda@^0.30.1:
version "0.30.1"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.30.1.tgz#7108ac95673062b060025052cd5143ae8fc605bf"
integrity sha512-tEF5I22zJnuclswcZMc8bDIrwRHRzf+NqVEmqg50ShAZMP7MWeR/RGDthfM/p+BlqvF2fXAzpn8i+SJcYD3alw==
Expand Down Expand Up @@ -8123,7 +8130,7 @@ [email protected]:
resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz"
integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==

scure@^1.6.0:
[email protected]:
version "1.6.0"
resolved "https://registry.yarnpkg.com/scure/-/scure-1.6.0.tgz#1d16ac36c0ae601860f28cc01c202fef796eb1da"
integrity sha512-IiQqkgU1J7gqDPIjUd1EpPQ4HAyqRXFrva+/IMh0u6dHNVdzpoOS4NvehZi4HAM3Op8DzsAmbQSCskCDgffJcw==
Expand Down Expand Up @@ -8568,7 +8575,7 @@ [email protected], tiny-secp256k1@^1.1.1, tiny-secp256k1@^1.1.3:
elliptic "^6.4.0"
nan "^2.13.2"

tiny-secp256k1@^2.2.3:
[email protected]:
version "2.2.3"
resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-2.2.3.tgz#fe1dde11a64fcee2091157d4b78bcb300feb9b65"
integrity sha512-SGcL07SxcPN2nGKHTCvRMkQLYPSoeFcvArUSCYtjVARiFAWU44cCIqYS0mYAU6nY7XfvwURuTIGo2Omt3ZQr0Q==
Expand Down Expand Up @@ -9226,7 +9233,7 @@ xmlhttprequest-ssl@~2.0.0:
resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67"
integrity sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==

xrpl@^4.0.0:
xrpl@4.0.0, xrpl@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/xrpl/-/xrpl-4.0.0.tgz#c031b848c2a3e955b69b1dd438b1156e6826a2d6"
integrity sha512-VZm1lQWHQ6PheAAFGdH+ISXKvqB2hZDQ0w4ZcdAEtmqZQXtSIVQHOKPz95rEgGANbos7+XClxJ73++joPhA8Cw==
Expand Down

0 comments on commit 703324b

Please sign in to comment.