Skip to content

chore(deps): update dependency viem to v2 #60

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
viem (source) ^1.21.4 -> ^2.28.0 age adoption passing confidence

Release Notes

wevm/viem (viem)

v2.28.0

Compare Source

Minor Changes
Patch Changes

v2.27.3

Compare Source

Patch Changes

v2.27.2

Patch Changes

v2.27.0

Compare Source

Minor Changes
Patch Changes

v2.26.5

Compare Source

Patch Changes

v2.26.4

Compare Source

Patch Changes

v2.26.3

Compare Source

Patch Changes

v2.26.2

Compare Source

Patch Changes

v2.26.1

Compare Source

Patch Changes

v2.26.0

Compare Source

Minor Changes
getCallsStatus
```diff
const result = await client.getCallsStatus({ id })
//    ^?
      {
+       atomic: boolean
+       chainId: number
+       id: string
        receipts: Receipt[]
-       status: 'PENDING' | 'CONFIRMED'
+       status: 'pending' | 'success' | 'failure' | undefined
+       statusCode: number
+       version: string
}
```
sendCalls
```diff
const result = await client.sendCalls({ calls })
//    ^?
-     string
+     { id: string, capabilities?: Capabilities }
```
waitForCallsStatus
```diff
const result = await client.waitForCallsStatus({ id })
//    ^?
      {
+       atomic: boolean
+       chainId: number
+       id: string
        receipts: Receipt[]
-       status: 'PENDING' | 'CONFIRMED'
+       status: 'pending' | 'success' | 'failure' | undefined
+       statusCode: number
+       version: string
}
```
Patch Changes

v2.25.0

Compare Source

Minor Changes
Patch Changes

v2.24.3

Compare Source

Patch Changes

v2.24.2

Compare Source

Patch Changes

v2.24.1

Compare Source

Patch Changes

v2.24.0

Compare Source

Minor Changes
  • #​3427 2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7 Thanks @​jxom! - Stabilized EIP-7702.

    • Added prepareAuthorization and signAuthorization Actions to the Wallet Client.
    • Added hashAuthorization, recoverAuthorizationAddress, and verifyAuthorization Utilities.
    • Renamed account.experimental_signAuthorization to account.signAuthorization.
  • #​3427 2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7 Thanks @​jxom! - BREAKING (Experimental): Removed deprecated walletActionsEip5792 export. Use eip5792Actions instead.

  • #​3427 2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7 Thanks @​jxom! - BREAKING (Experimental): Removed deprecated ERC-6492 exports in viem/experimental. These are no longer experimental. Use exports from viem instead.

  • #​3427 2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7 Thanks @​jxom! - BREAKING (Experimental): Removed deprecated walletActionsErc7715 export. Use erc7715Actions instead.

  • #​3427 2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7 Thanks @​jxom! - BREAKING (Experimental):

    Removed EIP-7702 exports in viem/experimental. These are no longer experimental. Use exports from viem or viem/utils instead.

    Note, there is also a behavioral change in the stable EIP-7702 signAuthorization function. Previously, it was assumed that the signer of the Authorization was also the executor of the Transaction. This is no longer the case.

    If the signer of the Authorization is NOT the executor of the Transaction, you no longer need to pass a sponsor parameter.

    const eoa = privateKeyToAccount('0x...')
    const relay = privateKeyToAccount('0x...')
    
    const authorization = await client.signAuthorization({
      account: eoa,
      contractAddress: '0x...',
    - sponsor: true
    })
    
    const transaction = await client.sendTransaction({
      account: relay,
      authorizationList: [authorization],
    })

    If the signer of the Authorization is ALSO the executor of the Transaction, you will now need to pass the executor parameter with a value of 'self'.

    const eoa = privateKeyToAccount('0x...')
    - const relay = privateKeyToAccount('0x...')
    
    const authorization = await client.signAuthorization({
      account: eoa,
      contractAddress: '0x...',
    + executor: 'self',
    })
    
    const transaction = await client.sendTransaction({
    - account: relay,
    + account: eoa,
      authorizationList: [authorization],
    })
Patch Changes

v2.23.15

Compare Source

Patch Changes

v2.23.14

Compare Source

Patch Changes

v2.23.13

Compare Source

Patch Changes

v2.23.12

Compare Source

Patch Changes

v2.23.11

Compare Source

Patch Changes

v2.23.10

Compare Source

Patch Changes

v2.23.9

Compare Source

Patch Changes

v2.23.8

Compare Source

Patch Changes

v2.23.7

Compare Source

Patch Changes

v2.23.6

Compare Source

Patch Changes

v2.23.5

Compare Source

Patch Changes

v2.23.4

Compare Source

Patch Changes

v2.23.3

Compare Source

Patch Changes

v2.23.2

Compare Source

Patch Changes

v2.23.1

Compare Source

Patch Changes

v2.23.0

Compare Source

Minor Changes
Patch Changes

v2.22.23

Compare Source

Patch Changes

v2.22.22

Compare Source

Patch Changes

v2.22.21

Compare Source

Patch Changes

v2.22.20

Compare Source

Patch Changes

v2.22.19

Compare Source

Patch Changes

v2.22.17

Compare Source

Patch Changes

v2.22.16

Compare Source

Patch Changes

v2.22.15

Compare Source

Patch Changes

v2.22.14

Compare Source

Patch Changes

v2.22.13

Compare Source

Patch Changes

v2.22.12

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "every 7 day" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from Hebilicious as a code owner January 3, 2024 21:50
@renovate renovate bot force-pushed the renovate/viem-2.x branch 5 times, most recently from 1c0301c to 50af044 Compare January 11, 2024 21:20
@renovate renovate bot force-pushed the renovate/viem-2.x branch 7 times, most recently from fd96632 to cc04f61 Compare January 22, 2024 04:53
@renovate renovate bot force-pushed the renovate/viem-2.x branch from cc04f61 to e5d7fb0 Compare January 23, 2024 01:26
@renovate renovate bot force-pushed the renovate/viem-2.x branch 6 times, most recently from 8083094 to f0f2132 Compare February 6, 2024 01:41
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from 7eb1a98 to a2ac207 Compare February 14, 2024 00:45
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from 572343d to 03070f2 Compare February 22, 2024 22:51
@renovate renovate bot force-pushed the renovate/viem-2.x branch 3 times, most recently from 3c9975e to b4592e2 Compare February 28, 2024 23:14
@renovate renovate bot force-pushed the renovate/viem-2.x branch from b4592e2 to 47394f9 Compare March 3, 2024 07:09
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from 9ee7de5 to aeea678 Compare February 19, 2025 05:52
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from 1ea326b to 191ad86 Compare February 24, 2025 02:22
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from 7150f0c to e2a8b71 Compare March 10, 2025 03:17
@renovate renovate bot force-pushed the renovate/viem-2.x branch 3 times, most recently from 3d3681f to 4da73dd Compare March 18, 2025 01:46
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from 1f335c8 to 5254db8 Compare March 27, 2025 03:32
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from 34b7bc8 to 60955f3 Compare April 3, 2025 05:48
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from ce3fb97 to 6588a4b Compare April 11, 2025 03:10
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from f6b1722 to bf93e0d Compare April 17, 2025 12:33
@renovate renovate bot force-pushed the renovate/viem-2.x branch from bf93e0d to 11221b5 Compare April 21, 2025 23:10
@renovate renovate bot force-pushed the renovate/viem-2.x branch from 11221b5 to f281ea1 Compare April 22, 2025 11:40
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.

0 participants