Skip to content

Commit

Permalink
fix web3-assets race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Oct 22, 2024
1 parent 46a70d5 commit 5e27d96
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 37 deletions.
4 changes: 2 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-dialog-stack@8"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-shadow-dom@5"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/js-verify-signature-web@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-blockchains@9.6.9"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-blockchains@9.7.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-client@10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-tokens@10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-token-image@5"></script>
Expand All @@ -27,7 +27,7 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-wallets@17.5.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-assets@7"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-exchanges@13"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13.12.7"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13.12.10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/qr-code-styling@1"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/fuse.js@6"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/react-rangeslider@2/umd/rangeslider.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-dialog-stack@8"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-shadow-dom@5"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/js-verify-signature-web@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-blockchains@9.6.9"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-blockchains@9.7.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-client@10.19.2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-tokens@10.4.3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-token-image@5.1.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/coinbase-wallet-sdk@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/walletconnect-v2@2.12.2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/worldcoin-precompiled@0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-wallets@17.5.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-assets@7"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-assets@7.4.1"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-exchanges@13.11.0"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13.12.7"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13.12.10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/qr-code-styling@1"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/fuse.js@6"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/react-rangeslider@2/umd/rangeslider.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions dist/esm/index.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -36785,6 +36785,7 @@ class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider {
method: 'POST',
body: JSON.stringify(batch),
headers: { 'Content-Type': 'application/json' },
signal: AbortSignal.timeout(10000) // 10-second timeout
}
).then((response)=>{
if(response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/umd/index.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -36783,6 +36783,7 @@
method: 'POST',
body: JSON.stringify(batch),
headers: { 'Content-Type': 'application/json' },
signal: AbortSignal.timeout(10000) // 10-second timeout
}
).then((response)=>{
if(response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.solana.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/widgets-evm",
"moduleName": "DePayWidgets",
"version": "12.16.0",
"version": "12.16.1",
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -28,11 +28,11 @@
"@depay/react-shadow-dom": "^5.0.5",
"@depay/react-token-image-evm": "^5.1.0",
"@depay/walletconnect-v2": "^2.12.2",
"@depay/web3-assets-evm": "^7.4.0",
"@depay/web3-blockchains": "^9.6.9",
"@depay/web3-assets-evm": "^7.4.1",
"@depay/web3-blockchains": "^9.7.0",
"@depay/web3-client-evm": "^10.19.2",
"@depay/web3-exchanges-evm": "^13.11.0",
"@depay/web3-payments-evm": "^13.12.7",
"@depay/web3-payments-evm": "^13.12.10",
"@depay/web3-tokens-evm": "^10.4.3",
"@depay/web3-wallets-evm": "^17.5.0",
"@depay/worldcoin-precompiled": "^0.0.33",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/widgets",
"moduleName": "DePayWidgets",
"version": "12.16.0",
"version": "12.16.1",
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -42,11 +42,11 @@
"@depay/react-token-image": "^5.1.0",
"@depay/solana-web3.js": "^1.26.0",
"@depay/walletconnect-v2": "^2.12.2",
"@depay/web3-assets": "^7.4.0",
"@depay/web3-blockchains": "^9.6.9",
"@depay/web3-assets": "^7.4.1",
"@depay/web3-blockchains": "^9.7.0",
"@depay/web3-client": "^10.19.2",
"@depay/web3-exchanges": "^13.11.0",
"@depay/web3-payments": "^13.12.7",
"@depay/web3-payments": "^13.12.10",
"@depay/web3-tokens": "^10.4.3",
"@depay/web3-wallets": "^17.5.0",
"@depay/worldcoin-precompiled": "^0.0.33",
Expand Down
8 changes: 4 additions & 4 deletions package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/widgets-solana",
"moduleName": "DePayWidgets",
"version": "12.16.0",
"version": "12.16.1",
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -29,11 +29,11 @@
"@depay/react-token-image-solana": "^5.1.0",
"@depay/solana-web3.js": "^1.26.0",
"@depay/walletconnect-v2": "^2.12.2",
"@depay/web3-assets-solana": "^7.4.0",
"@depay/web3-blockchains": "^9.6.9",
"@depay/web3-assets-solana": "^7.4.1",
"@depay/web3-blockchains": "^9.7.0",
"@depay/web3-client-solana": "^10.19.2",
"@depay/web3-exchanges-solana": "^13.11.0",
"@depay/web3-payments-solana": "^13.12.7",
"@depay/web3-payments-solana": "^13.12.10",
"@depay/web3-tokens-solana": "^10.4.3",
"@depay/web3-wallets-solana": "^17.5.0",
"@tanstack/react-virtual": "^3.0.0-beta.54",
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1330,20 +1330,20 @@
"@walletconnect/sign-client" "^2.12.2"
clipboardy "3.0.0"

"@depay/web3-assets@^7.4.0":
version "7.4.0"
resolved "https://registry.yarnpkg.com/@depay/web3-assets/-/web3-assets-7.4.0.tgz#33f8586892e3af3e5f9f120846720010983d2970"
integrity sha512-SbKdlNnXHk30mYGHUwfhNd2fKyFh8ZSx6w0St3eJSg1l13xy60sZ09673AqhiiOhsNfYCtDTFbgwdxucnot1lg==
"@depay/web3-assets@^7.4.1":
version "7.4.1"
resolved "https://registry.yarnpkg.com/@depay/web3-assets/-/web3-assets-7.4.1.tgz#1f537d27974319a5f0644f29c4869f687fe6a831"
integrity sha512-IIYlzDondkjEEpjbqpuCS/J6MeyurrBEP1i3jdsZHms+x+wNTcu4rcA2PMJ7chU0YKEfwCSjFWDuIrjBhz21Ng==

"@depay/web3-blockchains@^9.6.1":
version "9.6.3"
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.6.3.tgz#64917c69fb7e22ef84b11a55a02fe5527459cc66"
integrity sha512-JJskj51T9t6DRKFeeeFktGO+bT3xIKew8/MAJkMoOkXxDM3iVUZ07mnzWHgSlYjl65GHxKuXKv9GBNXqcIPUjw==

"@depay/web3-blockchains@^9.6.9":
version "9.6.9"
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.6.9.tgz#ea451a5aca840809a131e01232ff84e9463a2fbe"
integrity sha512-iAkWT+x6KlH7WsIprsruqVovCaR9R3yxKOp2AwsCsSwXDFsANP0BARnslFxwvGondeu0Hgt1D/zWIvOGm8+fBQ==
"@depay/web3-blockchains@^9.7.0":
version "9.7.0"
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.7.0.tgz#653655b8153165dc6626fa67762420506485283e"
integrity sha512-UzNXg4WbHHXLAa58VA6f5oq4OHXDEXIn1bigfWqAbe0jKWJR36QXLWDZsm4ufoC3ExyXOiOVyNfKOSnJ0xdTww==

"@depay/web3-client@^10.19.2":
version "10.19.2"
Expand All @@ -1364,10 +1364,10 @@
"@depay/web3-blockchains" "^9.6.1"
ethers "^5.7.1"

"@depay/web3-payments@^13.12.7":
version "13.12.7"
resolved "https://registry.yarnpkg.com/@depay/web3-payments/-/web3-payments-13.12.7.tgz#47d51b83903c97c6f56cb824ee6417479586437f"
integrity sha512-bWNIs6QrzGAEaFzUTdS5GIKpSQyA2PfJj7a9mDCp/1yulNOVIO5xJuGdMRMWLvFJ72H1CnILJnZbRQZ1x4snFQ==
"@depay/web3-payments@^13.12.10":
version "13.12.10"
resolved "https://registry.yarnpkg.com/@depay/web3-payments/-/web3-payments-13.12.10.tgz#47e8f59c2290a81a89c365fee8a3cfa8f2f005ff"
integrity sha512-RNCe/OPUwZDjPMwcVxh801/FRcVyNYhi3FZIoFc+cI9iTllSv8Q96LtV5MUQ/Pmut773quhDDWPQicgbnfMIew==

"@depay/web3-tokens@^10.4.3":
version "10.4.3"
Expand Down

0 comments on commit 5e27d96

Please sign in to comment.