@ensofinance/use-defi
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -325,3 +325,3 @@ import { Address, Hash } from 'viem'; | ||
}; | ||
type API_MultichainResponse = { | ||
type API_CrossChainResponse = { | ||
createdAt: number; | ||
@@ -406,3 +406,3 @@ tx: Transaction & { | ||
type UseMultichainRouteArgs = { | ||
type UseCrossChainRouteArgs = { | ||
sourceChainId: number; | ||
@@ -417,10 +417,10 @@ destinationChainId: number; | ||
}; | ||
type UseMultichainRoutePayload = { | ||
type UseCrossChainRoutePayload = { | ||
status: LoadingState; | ||
errorMessage?: string; | ||
tx?: API_MultichainResponse['tx']; | ||
tx?: API_CrossChainResponse['tx']; | ||
execute: TransactionFunc; | ||
}; | ||
declare const useMultichainRoute: (args: UseMultichainRouteArgs | undefined) => UseMultichainRoutePayload; | ||
declare const useCrossChainRoute: (args: UseCrossChainRouteArgs | undefined) => UseCrossChainRoutePayload; | ||
@@ -434,2 +434,2 @@ interface UseDeFiContextProviderProps { | ||
export { UseDeFiProvider, useExecutePosition, useMultichainRoute, usePositions }; | ||
export { UseDeFiProvider, useCrossChainRoute, useExecutePosition, usePositions }; |
{ | ||
"name": "@ensofinance/use-defi", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "React hooks library to use with enso shortcuts infrastructure", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4