Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
SayanKar
reviewed
Nov 13, 2025
| }, | ||
| "dependencies": { | ||
| "@avalanche-sdk/chainkit": "0.3.0-alpha.8", | ||
| "@avalanche-sdk/client": "^0.0.4-alpha.16", |
Collaborator
There was a problem hiding this comment.
Lets switch to v0.1.0-alpha.2 as we have some breaking changes where the avalanche specific txn preparation methods and the send txn method takes amount in nAvax instead of avax.
SayanKar
reviewed
Nov 13, 2025
| * Abstract base interface for earn providers | ||
| * All earn providers (AAVE, Benqi, etc.) must implement this interface | ||
| */ | ||
| export interface EarnProviderBase { |
Collaborator
There was a problem hiding this comment.
I think we can define the type for the params and returned values for most of the methods in a separate types file And use those here. Also we expose a Address type from client (reexport of viem), which can be used instead of 0x${string}
Collaborator
There was a problem hiding this comment.
I think you already have it, just need to move the type definitions here ui/src/earn/types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add @avalanche-sdk/ui Package
Overview
This PR introduces the
@avalanche-sdk/uipackage - a comprehensive React component library and TypeScript utilities for building Avalanche blockchain applications. This package provides ready-to-use UI components for wallet management, token transfers, staking, earning, and interchain operations.Package Details
@avalanche-sdk/ui0.1.0Key Features
Core Components
Additional Features
sideEffects: falseDependencies
Peer Dependencies
react: ^18 || ^19react-dom: ^18 || ^19viem: ^2.0.0Dependencies
@avalanche-sdk/chainkit: 0.3.0-alpha.8@avalanche-sdk/client: ^0.0.4-alpha.16@avalanche-sdk/interchain: ^0.1.1-alpha.1Notes
ui/playground/) references the published package (^0.1.0) rather than workspace protocol, as the rootpnpm-workspace.yamlis not tracked in gitNext Steps
After merge:
ui/v0.1.0@avalanche-sdk/ui@0.1.0