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

Version Packages #123

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Version Packages #123

merged 1 commit into from
Mar 6, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 6, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

viem@0.1.0

Minor Changes

Patch Changes

  • 976fd86 Thanks @jxom! - Added decodeDeployData.

  • 6c902f8 Thanks @jxom! - Added decodeEventLog.

  • #89 3e45853 Thanks @jxom! - Added fetchOptions to the http transport.

  • #81 eb572b0 Thanks @jxom! - Improved transaction & contract error messaging & coalesce error messages from nodes.

  • 057e01e Thanks @jxom! - - testClient.getTxPoolContenttestClient.getTxpoolContent

    • testClient.getTxPoolStatustestClient.getTxpoolStatus
  • #100 6bb8ce4 Thanks @jxom! - Breaking: Renamed requestAccounts Wallet Action to requestAddresses

    Breaking: Renamed getAccounts Wallet Action to getAddresses

  • 8799a49 Thanks @jxom! - Added deployContract

  • ebf1dc8 Thanks @jxom! - Added watchEvent

  • #37 32e2b76 Thanks @jxom! - Support CJS

  • a74d643 Thanks @jxom! - Breaking: Removed the viem/actions export in favor of viem/public, viem/test & viem/wallet exports.

  • 7afdee8 Thanks @jxom! - Added readContract

  • #57 40c76e3 Thanks @jxom! - support Panic & custom contract errors

  • d722728 Thanks @jxom! - - Breaking: Renamed ethereumProvider Transport to custom.

    • Breaking: Refactored Transport APIs.
    • Breaking: Flattened sendTransaction, call & estimateGas APIs.
    • Added encodeAbi & decodeAbi.
    • Added fallback Transport.
    • Added getFilterLogs.
  • #61 e4b2dbb Thanks @tmm! - Exported multicall action

  • 6bdee9c Thanks @jxom! - Fixed issue where fallback transport was not falling back on timeouts

  • f2e6bb1 Thanks @jxom! - Added decodeFunctionResult.

  • ebf1dc8 Thanks @jxom! - Added watchContractEvent

  • 9120e26 Thanks @jxom! - Added encodeErrorResult.

  • ac69d16 Thanks @jxom! - Added writeContract.

  • ac69d16 Thanks @jxom! - Breaking: Replaced callContract with simulateContract.

  • #44 f908190 Thanks @0xOlias! - Added getLogs action.

  • 43700d9 Thanks @jxom! - Fixed issue where preinstall/postinstall scripts were being published to NPM.

  • 9f386f5 Thanks @jxom! - Added sourcemaps

  • #63 7473582 Thanks @tmm! - Exported missing watchContractEvent and watchEvent actions.

  • #85 2350d1a Thanks @jxom! - Breaking: Renamed encodeAbi & decodeAbi to encodeAbiParameters & decodeAbiParameters, and modified API from named arguments to inplace arguments:

    import {
    - encodeAbi,
    - decodeAbi,
    + encodeAbiParameters,
    + decodeAbiParameters,
    } from 'viem'
    
    -const result = encodeAbi({ params, values })
    +const result = encodeAbiParameters(params, values)
    
    -const result = decodeAbi({ params, data })
    +const result = decodeAbiParameters(params, data)
  • #31 1f65640 Thanks @jxom! - Added initial callContract implementation

  • 5a6bdf8 Thanks @jxom! - Fixed an issue where encodeAbi couldn't encode dynamic bytes larger than 32 bytes"

  • 8ef068b Thanks @jxom! - Added 502, 503 and 504 error codes as "non-deterministic" errors for fallback transport & retries.

  • #56 3e90197 Thanks @jxom! - - Breaking: Renamed humanMessage to shortMessage in BaseError.

    • Added multicall.
    • Support overloaded contract functions.
  • 22ffc1d Thanks @jxom! - Added support for 4001 & 4902 RPC error codes.

  • #91 0ac32c2 Thanks @jxom! - Breaking: Renamed getFunctionSignature and getEventSignature to getFunctionSelector and getEventSelector.

  • #18 bb9e88a Thanks @jxom! - Added encodeFunctionData.

  • #100 6bb8ce4 Thanks @jxom! - Added support for Externally Owned Accounts.

  • ba8e7c5 Thanks @jxom! - Alpha release

  • 2028985 Thanks @jxom! - Added getStorageAt

  • 94b32ab Thanks @jxom! - Added encodeDeployData.

  • 8f51bdd Thanks @jxom! - Breaking: Renamed encoding utils.

    • encodeBytes/decodeBytestoBytes/fromBytes
    • encodeHex/decodeHextoHex/fromHex
    • encodeRlp/decodeRlptoRlp/fromRlp
  • #68 1be77b3 Thanks @jxom! - Breaking: Removed all public/wallet/test actions & utils from the viem entrypoint to their respective entrypoints:

    • viem = Clients & Transport exports
    • viem/chains = Chains exports
    • viem/contract = Contract Actions & Utils exports
    • viem/ens = ENS Actions & Utils exports
    • viem/public = Public Actions exports
    • viem/test = Test Actions exports
    • viem/utils = Utils exports
    • viem/wallet = Wallet Actions exports
  • 7d9a241 Thanks @jxom! - Added estimateContractGas.

  • 1971e6a Thanks @jxom! - Added assertion to check if addresses are valid for sendTransaction, estimateGas & call.

  • #66 f19fc32 Thanks @tmm! - Added ENS actions getEnsAddress and getEnsName.

  • 59a60cb Thanks @jxom! - Fixed decoding zero data bytes

  • 6a47671 Thanks @jxom! - Fixed published package.json.

  • #79 db9caa9 Thanks @jxom! - Added timeout as a config option to the http and webSocket Transports.

  • ae90357 Thanks @jxom! - Made watchBlocks more type safe with the includeTransactions arg.

  • 68c3816 Thanks @jxom! - Added encodePacked.

  • e1634b5 Thanks @jxom! - Fixed ABI encoding dynamic tuple child derivation

  • 849653f Thanks @jxom! - - Breaking: Renamed encodeFunctionParams to encodeFunctionData.

    • Added decodeFunctionData.
  • #100 6bb8ce4 Thanks @jxom! - Breaking: The from argument has been removed from Actions in favour of account to distinguish between Account types:

    + import { getAccount } from 'viem'
    
    const [address] = await walletClient.requestAddresses()
    + const account = getAccount(address)
    
    const hash = await walletClient.sendTransaction({
    - from: address,
    + account,
      to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
      value: 1000000000000000000n
    })

    Affected actions:

    • call
    • estimateGas
    • sendTransaction
    • signMessage
    • estimateContractGas
    • multicall
    • readContract
    • simulateContract
    • writeContract
  • c52ce66 Thanks @jxom! - Added decodeErrorResult.

  • e07f212 Thanks @jxom! - Breaking: Renamed formatUnit and parseUnit to formatUnits and parseUnits.

  • 7d9a241 Thanks @jxom! - Added retryCount and retryDelay config to Transports.

  • #77 d6a29f5 Thanks @jxom! - Decorated Clients with their respective Actions.

    Example:

    import { createPublicClient, http } from 'viem'
    import { mainnet } from 'viem/chains'
    -import { getBlockNumber } from 'viem/public'
    
    const client = createPublicClient({
      chain: mainnet,
      transport: http(),
    })
    
    - const blockNumber = await getBlockNumber(client)
    + const blockNumber = await client.getBlockNumber()
  • ee4d256 Thanks @jxom! - Added encodeFunctionResult.

  • 257c8f3 Thanks @jxom! - Added getBytecode.

  • 68c3816 Thanks @jxom! - Made keccak256 accept a hex value (as well as byte array).

  • 497b0b1 Thanks @jxom! - Added encodeEventTopics.

@vercel
Copy link

vercel bot commented Mar 6, 2023

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

Name Status Preview Comments Updated
viem-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 6, 2023 at 5:39AM (UTC)
viem-site ✅ Ready (Inspect) Visit Preview 💬 3 unresolved Mar 6, 2023 at 5:39AM (UTC)

@socket-security
Copy link

Socket Security Pull Request Report

Dependency issues detected: If you merge this pull request, you will not be alerted to the instances of these issues again.

📜 Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
rome@11.0.0 (added) postinstall package.json
bun@0.5.7 (added) postinstall package.json
esbuild@0.15.13 (added) postinstall package.json via @wagmi/cli@0.1.11
esbuild@0.16.17 (added) postinstall package.json via @vitest/coverage-c8@0.29.2, vite@4.1.4, vitest@0.29.2, examples/_template/package.json via vite@4.1.4, examples/blocks/fetching-blocks/package.json via vite@4.1.4, examples/clients/public-client/package.json via vite@4.1.4, examples/clients/wallet-client/package.json via @vitejs/plugin-react@3.1.0, vite@4.1.4, examples/contracts/deploying-contracts/package.json via @vitejs/plugin-react@3.1.0, vite@4.1.4, examples/contracts/reading-contracts/package.json via vite@4.1.4, examples/contracts/writing-to-contracts/package.json via @vitejs/plugin-react@3.1.0, vite@4.1.4, examples/ens/package.json via vite@4.1.4, examples/filters-and-logs/block-event-logs/package.json via vite@4.1.4, examples/filters-and-logs/event-logs/package.json via vite@4.1.4, examples/transactions/sending-transactions/package.json via @vitejs/plugin-react@3.1.0, vite@4.1.4, playgrounds/browser/package.json via @vitejs/plugin-react@3.1.0, vite@4.1.4, site/package.json via vitepress@1.0.0-alpha.49
esbuild@0.17.11 (added) postinstall package.json via tsup@6.6.3
simple-git-hooks@2.8.1 (added) postinstall package.json
Pull request report summary
Issue Status
Install scripts ⚠️ 6 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues
Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore rome@11.0.0
  • @SocketSecurity ignore bun@0.5.7
  • @SocketSecurity ignore esbuild@0.15.13
  • @SocketSecurity ignore esbuild@0.16.17
  • @SocketSecurity ignore esbuild@0.17.11
  • @SocketSecurity ignore simple-git-hooks@2.8.1

Powered by socket.dev

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