Skip to content

fix(deps): update dependency viem to ^2.47.0#363

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/viem-2.x
Open

fix(deps): update dependency viem to ^2.47.0#363
renovate[bot] wants to merge 1 commit intomainfrom
renovate/viem-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 25, 2024

This PR contains the following updates:

Package Change Age Confidence
viem (source) ^2.24.3^2.47.0 age confidence

Release Notes

wevm/viem (viem)

v2.47.0

Compare Source

Minor Changes
  • 1adb83804d5f6c3f36d5f293de88532330d52dc7 Thanks @​jxom! - Breaking (viem/tempo): chainId is now required when signing access key authorizations with signKeyAuthorization. It is recommended to use client.accessKey.signAuthorization instead for inferred chain ID.

    import { client } from './viem.config'
    import { Account } from 'viem/tempo'
    
    const account = Account.from({ privateKey: '0x...' })
    const accessKey = Account.fromP256(generatePrivateKey(), {
      access: account,
    })
    
    - const keyAuthorization = await account.signKeyAuthorization(accessKey)
    + const keyAuthorization = await client.accessKey.signAuthorization({
    +   account,
    +   accessKey,
    + })
Patch Changes

v2.46.3

Compare Source

Patch Changes

v2.46.2

Compare Source

Patch Changes

v2.46.1

Compare Source

Patch Changes

v2.46.0

Compare Source

Minor Changes
  • #​4304 b6b50d40fb6bbadc851377b74b2dd4da584958b0 Thanks @​jxom! - Breaking (viem/tempo): Renamed nonceKey: 'random' to nonceKey: 'expiring' to align with TIP-1009 terminology.

    TIP-1009 defines "expiring nonces" as time-based replay protection using validBefore timestamps. The name 'expiring' better describes the mechanism than 'random'.

    await sendTransaction(client, {
      account,
    - nonceKey: 'random',
    + nonceKey: 'expiring',
      to: '0x...',
    })

v2.45.3

Compare Source

Patch Changes

v2.45.2

Compare Source

Patch Changes

v2.45.1

Compare Source

Patch Changes

v2.45.0

Compare Source

Minor Changes
Patch Changes

v2.44.4

Compare Source

Patch Changes

v2.44.2

Compare Source

Patch Changes

v2.44.1

Compare Source

Patch Changes

v2.44.0

Compare Source

Minor Changes
  • #​4201 0268ca88c67c7851ae03d8d41508657f2b62729d Thanks @​jxom! - ### viem/tempo Extension

    Added support for Tempo Moderato testnet.

    • (Breaking): Renamed tempoTestnettempoModerato. The old export is deprecated but still available as an alias.
    • (Breaking): Renamed reward.startreward.distribute: Renamed for distributing rewards (no longer supports streaming).
    • (Breaking): Renamed reward.getTotalPerSecondreward.getGlobalRewardPerToken: Returns the global reward per token value instead of per-second rate.
    • (Breaking): Renamed reward.watchRewardScheduledreward.watchRewardDistributed: Watches for reward distributed events.
    • (Breaking): Removed nonce.getNonceKeyCount.
    • (Breaking): Removed nonce.watchActiveKeyCountChanged.
    • (Breaking): Removed amm.watchFeeSwap (FeeSwap event no longer emitted by protocol).
    • (Breaking): OrderPlaced event now includes isFlipOrder and flipTick fields. The FlipOrderPlaced event has been removed and merged into OrderPlaced.
    • (Breaking): Renamed Address.stablecoinExchangeAddress.stablecoinDex.
    • (Breaking): Renamed Abis.stablecoinExchangeAbis.stablecoinDex.
    • Added dex.cancelStale action to cancel stale orders from restricted makers.
    • Added salt parameter to token.create.
Patch Changes

v2.43.5

Compare Source

Patch Changes

v2.43.4

Compare Source

Patch Changes

v2.43.3

Compare Source

Patch Changes

v2.43.2

Compare Source

Patch Changes

v2.43.1

Compare Source

Patch Changes

v2.43.0

Compare Source

Minor Changes
  • #​4107 b423fc17eba4f9f0648f72f5358a8e5ed9d5f092 Thanks @​tmm! - Added experimental named tuple support for contract-related actions and utilities.

  • #​4147 734d99d9da4b76f9aa985a800213b4ba581607df Thanks @​jxom! - Added first-class support and extension for Tempo.


    Attaching a Tempo chain to your client grants your transaction actions with Tempo superpowers like batched calls and external fee payer capabilities.

    import { createClient, http } from "viem";
    import { privateKeyToAccount } from "viem/accounts";
    import { tempoTestnet } from "viem/chains";
    
    const client = createClient({
      account: privateKeyToAccount("0x…"),
      chain: tempoTestnet.extend({
        feeToken: "0x20c00000000000000000000000000000000000fa",
      }),
      transport: http(),
    });
    
    const receipt = client.sendTransactionSync({
      calls: [
        { data: "0x…", to: "0x…" },
        { data: "0x…", to: "0x…" },
        { data: "0x…", to: "0x…" },
      ],
      feePayer: privateKeyToAccount("0x…"),
    });

    You can also use Tempo Actions to call to enshrined protocol features like the Stablecoin Token Factory:

    import { createClient, http } from "viem";
    import { privateKeyToAccount } from "viem/accounts";
    import { tempoTestnet } from "viem/chains";
    import { tempoActions } from "viem/tempo";
    
    const client = createClient({
      account: privateKeyToAccount("0x…"),
      chain: tempoTestnet,
      transport: http(),
    }).extend(tempoActions());
    
    const { receipt, token } = await client.token.createSync({
      currency: "USD",
      name: "My Company USD",
      symbol: "CUSD",
    });
Patch Changes

v2.42.1

Compare Source

Patch Changes

v2.42.0

Compare Source

Minor Changes
  • #​4134 d9d666beeccf748157d1292849f5a0d18768baf7 Thanks @​mikelxc! - Added EntryPoint v0.9 support for Account Abstraction (ERC-4337).

    • Added entryPoint09Abi and entryPoint09Address constants
    • Added '0.9' to EntryPointVersion type
    • Added UserOperation<'0.9'> with new paymasterSignature field for parallelizable paymaster signing
    • Updated getUserOperationHash to support v0.9 (uses EIP-712 typed data like v0.8)
    • Updated toPackedUserOperation to handle paymasterSignature
    • Updated prepareUserOperation type definitions for v0.9
Patch Changes

v2.41.2

Compare Source

Patch Changes

v2.41.1

Compare Source

Minor Changes
Patch Changes

v2.40.4

Compare Source

Patch Changes

v2.40.3

Compare Source

Patch Changes

v2.40.2

Compare Source

Patch Changes

v2.40.1

Compare Source

Patch Changes

v2.40.0

Compare Source

Minor Changes
Patch Changes

v2.39.3

Compare Source

Patch Changes

v2.39.2

Compare Source

Patch Changes

v2.39.0

Compare Source

Minor Changes
Patch Changes

v2.38.6

Compare Source

Patch Changes

v2.38.5

Compare Source

Patch Changes

v2.38.4

Compare Source

Patch Changes

v2.38.3

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 8:00 before 23:00 every weekday except on Friday" in timezone UTC.

🚦 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 enabled auto-merge (squash) March 25, 2024 04:46
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.82%. Comparing base (383612e) to head (b419ea8).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #363   +/-   ##
=======================================
  Coverage   94.82%   94.82%           
=======================================
  Files           6        6           
  Lines         116      116           
  Branches       16       15    -1     
=======================================
  Hits          110      110           
  Misses          6        6           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 383612e...b419ea8. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from 8ad3c41 to f1a79d1 Compare March 28, 2024 06:45
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.8.18 fix(deps): update dependency viem to ^2.9.0 Mar 28, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 3 times, most recently from fd68284 to 7a0e466 Compare March 28, 2024 22:57
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.0 fix(deps): update dependency viem to ^2.9.1 Mar 28, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from edb7d0c to 83d2b66 Compare March 29, 2024 08:07
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.1 fix(deps): update dependency viem to ^2.9.2 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from bdecdbb to 6d829e3 Compare March 30, 2024 08:17
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.2 fix(deps): update dependency viem to ^2.9.3 Mar 30, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 2 times, most recently from 9c0b5c4 to 027a706 Compare March 30, 2024 22:46
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.3 fix(deps): update dependency viem to ^2.9.4 Mar 30, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 3 times, most recently from bad17be to c2fdda9 Compare March 31, 2024 21:56
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.4 fix(deps): update dependency viem to ^2.9.5 Mar 31, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 4 times, most recently from f3ff44f to 99913a1 Compare April 4, 2024 00:17
@renovate renovate bot force-pushed the renovate/viem-2.x branch 6 times, most recently from 51a2ecd to a0f9510 Compare April 10, 2024 06:43
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.9 fix(deps): update dependency viem to ^2.9.12 Apr 10, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch from a0f9510 to 33a524e Compare April 11, 2024 10:36
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.12 fix(deps): update dependency viem to ^2.9.13 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 3 times, most recently from fc7e868 to 81d7b02 Compare April 12, 2024 06:08
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.13 fix(deps): update dependency viem to ^2.9.15 Apr 12, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 5 times, most recently from ed86222 to 7d90c57 Compare April 14, 2024 03:50
@renovate renovate bot changed the title fix(deps): update dependency viem to ^2.9.15 fix(deps): update dependency viem to ^2.9.16 Apr 14, 2024
@renovate renovate bot force-pushed the renovate/viem-2.x branch 10 times, most recently from 9a58608 to 2fd64e1 Compare April 18, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant