Skip to content
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

Bun #1183

Merged
merged 25 commits into from
Sep 12, 2023
Merged

Bun #1183

merged 25 commits into from
Sep 12, 2023

Conversation

jxom
Copy link
Member

@jxom jxom commented Sep 10, 2023

PR-Codex overview

This PR focuses on updating test file imports to use the new ~test/src path.

Detailed summary:

  • Updated test file imports to use ~test/src path instead of ../../_test
  • Updated imports in various files to use the new ~test/src path
  • Added new imports for JsonRpcProvider and localHttpUrl in src/_test/bench.ts
  • Updated imports in src/actions/public/call.test-d.ts
  • Updated imports in src/accounts/toAccount.test.ts
  • Updated imports in src/actions/test/setCoinbase.test.ts
  • Updated imports in src/utils/abi/encodePacked.test.ts
  • Updated imports in src/actions/public/getChainId.test.ts
  • Updated imports in src/actions/wallet/watchAsset.test.ts
  • Updated imports in src/actions/public/getChainId.bench.ts
  • Updated imports in src/accounts/utils/signMessage.test.ts
  • Updated imports in src/actions/public/getGasPrice.test.ts
  • Updated imports in src/utils/promise/withRetry.test.ts
  • Updated imports in src/actions/public/estimateGas.test-d.ts
  • Added import for WebSocket in src/clients/transports/webSocket.ts
  • Updated imports in src/actions/wallet/getAddresses.test.ts
  • Updated imports in src/actions/public/getFeeHistory.bench.ts
  • Updated imports in src/utils/ens/avatar/parseAvatarRecord.test.ts
  • Updated imports in src/utils/ens/avatar/utils.test.ts
  • Updated imports in src/actions/wallet/getPermissions.test.ts
  • Updated imports in src/actions/test/setCode.test.ts
  • Updated imports in src/actions/test/setLoggingEnabled.test.ts
  • Added new import for whichPmRuns in scripts/preinstall.ts
  • Updated imports in src/actions/wallet/requestAddresses.test.ts
  • Updated imports in src/errors/request.test.ts
  • Updated workflow file github/workflows/snapshot.yml to use bun run build instead of pnpm build
  • No newline changes in tsconfig.build.json

The following files were skipped due to too many changes: tsconfig.build.json, src/actions/public/createBlockFilter.bench.ts, src/actions/wallet/requestPermissions.test.ts, src/utils/buildRequest.test.ts, src/_test/abis.ts, src/accounts/utils/signTypedData.test.ts, src/actions/public/getBlockNumber.test.ts, src/actions/test/setNextBlockTimestamp.test.ts, src/utils/signature/verifyTypedData.test.ts, src/utils/errors/getNodeError.test.ts, src/utils/signature/hashTypedData.test.ts, src/actions/public/getBlockTransactionCount.bench.ts, src/actions/test/getAutomine.test.ts, src/actions/test/setAutomine.test.ts, src/actions/wallet/addChain.test.ts, src/utils/promise/withTimeout.test.ts, src/accounts/utils/privateKeyToAddress.test.ts, src/errors/estimateGas.test.ts, src/errors/transaction.test.ts, src/accounts/utils/signTransaction.test.ts, src/chains/celo/serializers.test.ts, src/utils/transaction/parseTransaction.test.ts, src/actions/wallet/switchChain.test.ts, src/actions/public/createEventFilter.test-d.ts, src/actions/public/createPendingTransactionFilter.bench.ts, src/utils/transaction/serializeTransaction.test.ts, src/utils/signature/recoverAddress.test.ts, src/actions/test/setMinGasPrice.test.ts, biome.json, src/actions/test/mine.test.ts, src/accounts/utils/parseAccount.test.ts, src/actions/test/increaseTime.test.ts, src/actions/test/setBlockTimestampInterval.test.ts, src/actions/wallet/signTypedData.test-d.ts, src/actions/test/removeBlockTimestampInterval.test.ts, src/utils/signature/recoverPublicKey.test.ts, src/actions/test/setIntervalMining.test.ts, src/utils/signature/recoverMessageAddress.test.ts, src/accounts/privateKeyToAccount.test.ts, src/actions/public/getLogs.test-d.ts, src/actions/test/setBlockGasLimit.test.ts, src/actions/public/readContract.test-d.ts, src/actions/test/setRpcUrl.test.ts, src/actions/test/setNextBlockBaseFeePerGas.test.ts, src/actions/public/uninstallFilter.bench.ts, src/actions/public/getFilterChanges.bench.ts, site/.vitepress/sidebar.ts, src/utils/abi/encodeAbiParameters.test.ts, src/utils/encoding/toHex.test.ts, src/utils/formatters/extract.ts, src/actions/public/getBlock.test-d.ts, src/_test/globalSetup.ts, src/utils/signature/recoverTypedDataAddress.test.ts, src/utils/abi/getAbiItem.test.ts, src/utils/errors/getCallError.test.ts, src/actions/public/getFeeHistory.test.ts, src/clients/transports/fallback.test.ts, src/actions/wallet/deployContract.test-d.ts, src/clients/createClient.test.ts, src/actions/test/setStorageAt.test.ts, src/utils/errors/getEstimateGasError.test.ts, src/utils/errors/getTransactionError.test.ts, examples/signing/typed-data/package.json, src/actions/public/simulateContract.test-d.ts, src/actions/public/getTransaction.test-d.ts, src/clients/createPublicClient.test.ts, test/contracts/lib/forge-std/lib/ds-test/Makefile, src/accounts/mnemonicToAccount.test.ts, src/clients/createTestClient.test.ts, site/.vitepress/config.ts, site/package.json, src/clients/transports/http.test.ts, src/clients/createWalletClient.test.ts, src/utils/signature/verifyMessage.test.ts, src/actions/test/setNonce.test.ts, src/actions/test/reset.test.ts, src/actions/public/createBlockFilter.test.ts, src/accounts/hdKeyToAccount.test.ts, src/utils/ens/avatar/utils.ts, src/actions/public/watchBlocks.test.ts, src/actions/test/setBalance.test.ts, src/actions/public/createContractEventFilter.test-d.ts, src/actions/test/snapshot.test.ts, src/actions/public/createPendingTransactionFilter.test.ts, src/actions/test/inspectTxpool.test.ts, src/actions/public/watchBlockNumber.test.ts, test/contracts/lib/forge-std/lib/ds-test/package.json, src/actions/test/getTxpoolStatus.test.ts, src/actions/test/getTxpoolContent.test.ts, src/utils/address/getAddress.bench.ts, src/clients/decorators/test.test.ts, src/utils/filters/createFilterRequestScope.test.ts, src/actions/test/impersonateAccount.test.ts, src/actions/wallet/signMessage.test.ts, src/actions/test/stopImpersonatingAccount.test.ts, .github/workflows/bench.yml, src/actions/public/getBytecode.test.ts, src/actions/public/getStorageAt.test.ts, src/utils/address/getContractAddress.bench.ts, src/actions/public/getBlock.test.ts, src/utils/errors/getContractError.test.ts, .github/workflows/on-push-to-main.yml, test/contracts/lib/forge-std/lib/ds-test/package.json.d.ts, src/actions/wallet/signTransaction.test.ts, src/actions/ens/getEnsText.test.ts, src/actions/public/getBalance.test.ts, src/actions/public/getTransactionCount.test.ts, src/actions/ens/getEnsAddress.test.ts, src/actions/public/getTransactionConfirmations.test.ts, src/actions/public/watchPendingTransactions.test.ts, test/contracts/lib/forge-std/test/compilation/CompilationTest.sol, src/actions/test/sendUnsignedTransaction.test.ts, src/actions/ens/getEnsResolver.test.ts, src/actions/wallet/prepareTransactionRequest.test.ts, src/actions/wallet/sendRawTransaction.test.ts, test/contracts/lib/forge-std/test/compilation/CompilationScript.sol, src/actions/test/revert.test.ts, src/actions/getContract.test.ts, src/actions/public/estimateContractGas.test-d.ts, test/contracts/lib/forge-std/test/compilation/CompilationTestBase.sol, src/actions/wallet/sendTransaction.test-d.ts, src/actions/public/estimateMaxPriorityFeePerGas.test.ts, src/actions/public/uninstallFilter.test.ts, src/actions/test/dropTransaction.test.ts, test/contracts/lib/forge-std/test/compilation/CompilationScriptBase.sol, src/actions/ens/getEnsName.test.ts, src/actions/public/verifyMessage.test.ts, src/utils/abi/decodeAbiParameters.test.ts, src/utils/unit/parseUnits.bench.ts, .github/actions/install-dependencies/action.yml, src/actions/public/getFilterLogs.test-d.ts, src/actions/public/getFilterChanges.test-d.ts, src/actions/public/verifyTypedData.test.ts, src/utils/rpc.test.ts, src/actions/public/getBlockTransactionCount.test.ts, src/actions/wallet/writeContract.test-d.ts, src/actions/public/getTransaction.test.ts, src/actions/public/createEventFilter.test.ts, src/clients/decorators/public.test.ts, src/actions/public/waitForTransactionReceipt.test.ts, src/actions/public/estimateFeesPerGas.test.ts, src/actions/public/multicall.test-d.ts, .github/workflows/canary.yml, test/contracts/lib/forge-std/package.json, src/clients/transports/webSocket.test.ts, src/actions/public/estimateGas.test.ts, src/actions/wallet/sendTransaction.test.ts, src/utils/unit/formatUnits.bench.ts, src/actions/wallet/signTypedData.test.ts, tsconfig.json, src/actions/ens/getEnsAvatar.test.ts, test/contracts/lib/forge-std/src/interfaces/IERC165.sol, src/utils/address/isAddress.bench.ts, src/actions/wallet/deployContract.test.ts, src/actions/public/getTransactionReceipt.test.ts, test/contracts/lib/forge-std/package.json.d.ts, src/actions/public/verifyHash.test.ts, src/actions/ens/getEnsName.bench.ts, src/utils/rpc.ts, src/actions/getContract.test-d.ts, src/actions/ens/getEnsAddress.bench.ts, src/actions/public/getBlock.bench.ts, src/actions/public/createContractEventFilter.test.ts, src/clients/decorators/wallet.test.ts, src/actions/public/getTransaction.bench.ts, site/docs/getting-started.md, src/actions/public/getBlockNumber.bench.ts, site/.vitepress/theme/components/HomeSponsors.vue, scripts/generateTypedArtifacts.ts, src/actions/public/getTransactionReceipt.bench.ts, src/utils/abi/encodePacked.bench.ts, scripts/updateVersion.ts, src/utils/data/pad.bench.ts, src/actions/public/call.bench.ts, src/utils/encoding/toBytes.bench.ts, test/contracts/lib/forge-std/src/Script.sol, .github/workflows/on-pull-request.yml, vitest.config.ts, test/contracts/lib/forge-std/foundry.toml, src/actions/public/estimateGas.bench.ts, src/utils/data/trim.bench.ts, dist/client/theme-default/without-fonts.js, src/utils/encoding/fromBytes.bench.ts, src/accounts/utils/signTypedData.bench.ts, test/contracts/lib/forge-std/src/StdError.sol, src/_test/ccip.ts, src/_test/setup.ts, test/contracts/lib/forge-std/src/Test.sol, test/contracts/lib/forge-std/LICENSE-MIT, src/actions/wallet/sendTransaction.bench.ts, src/actions/wallet/writeContract.test.ts, test/contracts/lib/forge-std/src/StdMath.sol, src/utils/encoding/toHex.bench.ts, src/actions/public/simulateContract.bench.ts, src/actions/public/call.test.ts, .github/workflows/verify.yml, src/utils/transaction/parseTransaction.bench.ts, src/utils/promise/createBatchScheduler.test.ts, src/utils/ccip.test.ts, .size-limit.json, src/utils/abi/decodeAbiParameters.bench.ts, test/contracts/lib/forge-std/src/Base.sol, src/utils/transaction/serializeTransaction.bench.ts, src/actions/public/getLogs.test.ts, src/actions/getContract.bench.ts, test/contracts/lib/forge-std/src/interfaces/IMulticall3.sol, src/accounts/utils/signTransaction.bench.ts, site/.vitepress/theme/index.css, test/contracts/lib/forge-std/src/interfaces/IERC20.sol, test/contracts/lib/forge-std/.github/workflows/ci.yml, test/contracts/lib/forge-std/test/StdError.t.sol, src/actions/public/multicall.test.ts, src/actions/public/watchEvent.test.ts, src/actions/public/simulateContract.test.ts, src/actions/public/estimateContractGas.test.ts, src/utils/encoding/toRlp.bench.ts, src/actions/public/watchContractEvent.test.ts, src/actions/public/readContract.test.ts, test/contracts/lib/forge-std/src/StdInvariant.sol, src/errors/contract.test.ts, src/package.json, src/actions/public/getFilterChanges.test.ts, src/actions/public/getFilterLogs.test.ts, site/index.md, .github/CONTRIBUTING.md, src/_test/utils.ts, src/utils/abi/encodeAbiParameters.bench.ts, test/contracts/lib/forge-std/src/StdJson.sol, test/contracts/lib/forge-std/lib/ds-test/demo/demo.sol, test/contracts/lib/forge-std/test/StdChains.t.sol, test/contracts/lib/forge-std/test/StdMath.t.sol, test/contracts/lib/forge-std/src/interfaces/IERC1155.sol, test/contracts/lib/forge-std/README.md, package.json, test/contracts/lib/forge-std/src/interfaces/IERC721.sol, test/contracts/lib/forge-std/src/StdUtils.sol, test/contracts/lib/forge-std/src/StdChains.sol, test/contracts/lib/forge-std/test/StdStorage.t.sol, test/contracts/lib/forge-std/src/StdAssertions.sol, test/contracts/lib/forge-std/src/StdStorage.sol, test/contracts/lib/forge-std/test/fixtures/broadcast.log.json, test/contracts/lib/forge-std/test/fixtures/broadcast.log.json.d.ts, test/contracts/lib/forge-std/test/StdCheats.t.sol, test/contracts/lib/forge-std/LICENSE-APACHE, test/contracts/lib/forge-std/test/StdUtils.t.sol, test/contracts/lib/forge-std/src/interfaces/IERC4626.sol, test/contracts/lib/forge-std/lib/ds-test/src/test.sol, test/contracts/lib/forge-std/src/StdCheats.sol, test/contracts/lib/forge-std/src/Vm.sol, test/contracts/lib/forge-std/test/StdAssertions.t.sol, test/contracts/lib/forge-std/lib/ds-test/LICENSE, src/utils/encoding/fromRlp.bench.ts, test/contracts/lib/forge-std/src/console.sol, test/contracts/lib/forge-std/src/console2.sol

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Sep 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
viem ✅ Ready (Inspect) Visit Preview Sep 12, 2023 2:24am

@changeset-bot
Copy link

changeset-bot bot commented Sep 10, 2023

⚠️ No Changeset found

Latest commit: 61ab0e6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@socket-security
Copy link

socket-security bot commented Sep 10, 2023

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
bun-types 0.5.8 None +0 1.24 MB robobun
@types/which-pm-runs 1.0.0 None +0 2.78 kB types
unws 0.2.4 None +1 141 kB sxzz
@size-limit/preset-big-lib 8.2.6 eval, network, shell +168 21 MB ai
react-dom 18.2.0 environment +21 7.47 MB gnoff
which-pm-runs 1.1.0 None +0 3.16 kB zkochan
@changesets/changelog-github 0.4.8 network, environment +4 177 kB changesets-release-bot
rimraf 4.4.1 filesystem, environment +9 2.72 MB isaacs
@types/ws 8.5.5 None +1 782 kB types
@types/fs-extra 9.0.13 None +1 788 kB types
@types/react-dom 18.2.7 None +0 30.2 kB types
ethers 6.7.1 network, filesystem +7 17.2 MB ricmoo
@viem/anvil 0.0.5 network, filesystem +22 875 kB awkweb
ws 8.13.0 network, environment +0 137 kB lpinca
vue 3.3.4 eval, environment +13 9.16 MB yyx990803
@actions/github 5.1.1 network, environment +18 4.43 MB thboop
react 18.2.0 environment +7 422 kB gnoff
@scure/bip39 1.2.1 None +0 357 kB paulmillr
@adraffy/ens-normalize 1.9.4 None +0 429 kB adraffy
globby 13.2.2 None +22 596 kB sindresorhus
fs-extra 10.1.0 environment +3 120 kB ryanzim
@scure/bip32 1.3.2 None +0 57.7 kB paulmillr
@vitejs/plugin-react 3.1.0 environment +224 1.5 GB vitebot
@walletconnect/ethereum-provider 2.10.0 eval, network, environment +68 20.6 MB gancho_walletconnect
abitype 0.9.8 None +0 1.17 MB awkweb
@biomejs/biome 1.0.0...1.1.2 None +6/-0 88.1 MB dominionl
vite 4.1.4...4.4.9, 4.4.2...4.4.9 None +450/-21 3.8 GB vitebot
simple-git-hooks 2.8.1...2.9.0 None +0/-0 12.8 kB toplenboren
size-limit 8.2.4...8.2.6 filesystem, environment +34/-0 817 kB ai
@changesets/cli 2.24.0...2.26.2 None +197/-4 20.8 MB changesets-release-bot
tailwindcss 3.2.4...3.3.3 environment +74/-4 8.66 MB adamwathan
autoprefixer 10.4.13...10.4.15 filesystem, environment +8/-3 2.47 MB ai

🚮 Removed packages: @wagmi/cli@0.1.6, bun@0.5.9, typescript@4.9.5, typescript@5.0.3, vitepress@1.0.0-beta.4

@codecov
Copy link

codecov bot commented Sep 10, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.12% 🎉

Comparison is base (e2d3dea) 99.80% compared to head (878ffb9) 99.92%.

❗ Current head 878ffb9 differs from pull request most recent head 61ab0e6. Consider uploading reports for the commit 61ab0e6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1183      +/-   ##
==========================================
+ Coverage   99.80%   99.92%   +0.12%     
==========================================
  Files         400      372      -28     
  Lines       31346    29981    -1365     
  Branches     1921     1917       -4     
==========================================
- Hits        31285    29960    -1325     
+ Misses         55       15      -40     
  Partials        6        6              
Files Changed Coverage Δ
src/clients/transports/webSocket.ts 100.00% <100.00%> (ø)

... and 29 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant