Skip to content

chore: version packages#129

Merged
ryangoree merged 2 commits intomainfrom
changeset-release/main
Jun 25, 2025
Merged

chore: version packages#129
ryangoree merged 2 commits intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jun 24, 2025

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

@delvtech/drift@0.10.1

Patch Changes

  • b9fc425: EIP-5792 Wallet Call API Implementation

    🚀 Features

    EIP-5792 Wallet Call API Support

    • Added complete EIP-5792 (Wallet Call API) implementation to all adapters with getWalletCapabilities(), getCallsStatus(), showCallsStatus(), and sendCalls() methods + comprehensive type definitions.
    • Supports calls in a variety of formats including ABI function calls, ABI deploy calls, raw calldata, and raw bytecode (deployless) calls.
    • Added methods for EIP-5792 functionality to MockAdapter:
      • onGetWalletCapabilities()
      • onGetCallsStatus()
      • onShowCallsStatus()
      • onSendCalls()
    • Added getWalletCallsStatusLabel() util function for generating user-friendly labels for wallet call statuses.

    New Web Example Application

    • Added a React + TypeScript + Vite example application.
    • Includes integration examples for all adapter types (default, ethers, viem, web3).
    • Demonstrates EIP-5792 wallet call functionality.

    🔧 Improvements

    Enhanced Testing Utilities

    • Added randomSelection utility for selecting random items from arrays.
    • Added createStubWalletCallsStatus for testing EIP-5792 functionality.
    • Improved MockAdapter with better type definitions and expanded functionality.
    • Added method parameter types to exports:
      • OnReadParams
      • OnSimulateWriteParams
      • OnMulticallParams
      • OnDeployParams
      • OnWriteParams
      • OnSendCallsParams
      • StubMulticallCallParams
      • StubWalletCallParams.

    Call Preparation and Processing

    • Added prepareCall utility function for unified call preparation across different call types (function calls, deploy calls, encoded calls, bytecode calls).
    • Enhanced multicall functionality to support mixed call types including encoded calls alongside ABI function calls.
    • Improved call processing in all adapters by centralizing call preparation logic.

    Type System Enhancements

    • Added BytecodeCallParams type for bytecode-based calls without contract addresses.
    • Improved type inference for multicall operations with mixed call types.
    • Added PartialByOptional utility type for better optional property handling.

    Adapter Improvements

    • Better fallback handling for individual wallet call stub matching in MockAdapter.
    • Refactored Web3 adapter to use injected provider for getSignerAddress and EIP-5792 calls.
    • Improved internal adapter utilities and type safety.
    • Added NotImplementedError as a generalized replacement for stub-specific errors.

    Client and Caching Enhancements

    • Enhanced multicall caching to support both function calls and encoded calls.
    • Improved cache key generation for mixed call types.

    Utility Functions

    • Added toHexString utility for flexible hex string conversion
    • Enhanced isHexString with configurable prefix option to control 0x prefix enforcement.
    • Improved DriftError to automatically use constructor name for subclasses.

    🐛 Bug Fixes

    Package Configuration

    • Fixed @delvtech/drift-web3 package.json fields to point to correct dist files.
    • Updated gitignore files across all packages.

    Type Safety

    • Enhanced FunctionCallParams to infer function names even when address is missing.
    • Improved adapter type definitions and method signatures.
    • Better error handling and type checking throughout the codebase.
    • Enhanced multicall type inference to support mixed call types (function calls, encoded calls, etc.).
    • Improved readonly array handling for better immutability support.

    📦 Dependencies

    • Upgraded all dependencies to their latest versions.
    • Updated Node.js version requirement (.nvmrc) to v24

    🔄 Internal Changes

    • Restructured examples directory with dedicated Node.js and web folders.
    • Updated biome configuration (renamed from .jsonc to .json).
    • Improved internal type utilities for better developer experience.

    Breaking Changes: None

    Migration Guide: This release is fully backward compatible. The new EIP-5792 functionality is opt-in and doesn't affect existing adapter usage patterns.

@delvtech/drift-ethers@0.10.1

@delvtech/drift-ethers-v5@0.10.1

@delvtech/drift-viem@0.10.1

@delvtech/drift-web3@0.10.1

@github-actions github-actions bot force-pushed the changeset-release/main branch 6 times, most recently from 357c114 to 9c4191e Compare June 25, 2025 20:30
@github-actions github-actions bot force-pushed the changeset-release/main branch from 9c4191e to f8e1805 Compare June 25, 2025 20:32
@ryangoree ryangoree merged commit ccf4899 into main Jun 25, 2025
1 of 4 checks passed
@ryangoree ryangoree deleted the changeset-release/main branch June 25, 2025 20:36
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