@aave/react 4.0.0-next.46 → 4.0.0-next.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { UnexpectedError, CurrencyQueryOptions } from '@aave/client';
2
2
  import { UnexpectedError as UnexpectedError$1 } from '@aave/core';
3
3
  import { ChainRequest, Chain, ChainsRequest, ExchangeRateRequest, ExchangeAmount, ActivityItem, PreviewAction, NativeAmount } from '@aave/graphql';
4
4
  import { NullishDeep, Prettify } from '@aave/types';
5
- import { a as UseAsyncTask } from './writes-CcVGQGt5.js';
5
+ import { a as UseAsyncTask } from './writes-sBt0thuG.js';
6
6
 
7
7
  /**
8
8
  * A read hook result that supports pausing.
@@ -2,7 +2,7 @@ import { UnexpectedError, CurrencyQueryOptions } from '@aave/client';
2
2
  import { UnexpectedError as UnexpectedError$1 } from '@aave/core';
3
3
  import { ChainRequest, Chain, ChainsRequest, ExchangeRateRequest, ExchangeAmount, ActivityItem, PreviewAction, NativeAmount } from '@aave/graphql';
4
4
  import { NullishDeep, Prettify } from '@aave/types';
5
- import { a as UseAsyncTask } from './writes-CcVGQGt5.cjs';
5
+ import { a as UseAsyncTask } from './writes-sBt0thuG.cjs';
6
6
 
7
7
  /**
8
8
  * A read hook result that supports pausing.
package/dist/privy.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TypedData, SignTypedDataError } from '@aave/client';
2
2
  import { Signature } from '@aave/types';
3
- import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-CcVGQGt5.cjs';
3
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-sBt0thuG.cjs';
4
4
  import '@aave/core';
5
5
  import '@aave/graphql';
6
6
 
package/dist/privy.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TypedData, SignTypedDataError } from '@aave/client';
2
2
  import { Signature } from '@aave/types';
3
- import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-CcVGQGt5.js';
3
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-sBt0thuG.js';
4
4
  import '@aave/core';
5
5
  import '@aave/graphql';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { TypedData, SignTypedDataError } from '@aave/client';
2
2
  import { Signature } from '@aave/types';
3
3
  import { ThirdwebClient } from 'thirdweb';
4
- import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-CcVGQGt5.cjs';
4
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-sBt0thuG.cjs';
5
5
  import '@aave/core';
6
6
  import '@aave/graphql';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { TypedData, SignTypedDataError } from '@aave/client';
2
2
  import { Signature } from '@aave/types';
3
3
  import { ThirdwebClient } from 'thirdweb';
4
- import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-CcVGQGt5.js';
4
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from './writes-sBt0thuG.js';
5
5
  import '@aave/core';
6
6
  import '@aave/graphql';
7
7
 
@@ -2,8 +2,8 @@ export { viemChainsFrom } from '@aave/client/viem';
2
2
  import { TypedData, SignTypedDataError } from '@aave/client';
3
3
  import { Signature } from '@aave/types';
4
4
  import { WalletClient } from 'viem';
5
- import { U as UseSendTransactionResult, a as UseAsyncTask } from '../writes-CcVGQGt5.cjs';
6
- import { U as UseNetworkFee } from '../misc-DBn3Mp67.cjs';
5
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from '../writes-sBt0thuG.cjs';
6
+ import { U as UseNetworkFee } from '../misc-rpxVotZV.cjs';
7
7
  import '@aave/core';
8
8
  import '@aave/graphql';
9
9
 
@@ -2,8 +2,8 @@ export { viemChainsFrom } from '@aave/client/viem';
2
2
  import { TypedData, SignTypedDataError } from '@aave/client';
3
3
  import { Signature } from '@aave/types';
4
4
  import { WalletClient } from 'viem';
5
- import { U as UseSendTransactionResult, a as UseAsyncTask } from '../writes-CcVGQGt5.js';
6
- import { U as UseNetworkFee } from '../misc-COaS62_P.js';
5
+ import { U as UseSendTransactionResult, a as UseAsyncTask } from '../writes-sBt0thuG.js';
6
+ import { U as UseNetworkFee } from '../misc-BqyLi2XD.js';
7
7
  import '@aave/core';
8
8
  import '@aave/graphql';
9
9
 
@@ -92,6 +92,10 @@ type UseAsyncTask<TInput, TValue, TError> = [
92
92
  */
93
93
  type SendTransactionError = CancelError | SigningError | UnexpectedError;
94
94
  type CancelOperation = (message: string) => ResultAsync<never, CancelError>;
95
+ /**
96
+ * @internal
97
+ */
98
+ declare const cancel: CancelOperation;
95
99
  type TransactionHandlerOptions = {
96
100
  cancel: CancelOperation;
97
101
  };
@@ -127,4 +131,4 @@ type UseSendTransactionResult = UseAsyncTask<TransactionRequest, PendingTransact
127
131
  */
128
132
  type ExecutionPlanHandler<T, R extends Signature | PendingTransaction> = (plan: T, options: TransactionHandlerOptions) => ResultAsync<R, SendTransactionError>;
129
133
 
130
- export { type AsyncTaskError as A, type CancelOperation as C, type ExecutionPlanHandler as E, PendingTransaction as P, type SendTransactionError as S, type TransactionHandlerOptions as T, type UseSendTransactionResult as U, type UseAsyncTask as a, type PendingTransactionError as b, type AsyncTaskIdle as c, type AsyncTaskLoading as d, type AsyncTaskState as e, type AsyncTaskSuccess as f };
134
+ export { type AsyncTaskError as A, type CancelOperation as C, type ExecutionPlanHandler as E, PendingTransaction as P, type SendTransactionError as S, type TransactionHandlerOptions as T, type UseSendTransactionResult as U, type UseAsyncTask as a, type PendingTransactionError as b, cancel as c, type AsyncTaskIdle as d, type AsyncTaskLoading as e, type AsyncTaskState as f, type AsyncTaskSuccess as g };
@@ -92,6 +92,10 @@ type UseAsyncTask<TInput, TValue, TError> = [
92
92
  */
93
93
  type SendTransactionError = CancelError | SigningError | UnexpectedError;
94
94
  type CancelOperation = (message: string) => ResultAsync<never, CancelError>;
95
+ /**
96
+ * @internal
97
+ */
98
+ declare const cancel: CancelOperation;
95
99
  type TransactionHandlerOptions = {
96
100
  cancel: CancelOperation;
97
101
  };
@@ -127,4 +131,4 @@ type UseSendTransactionResult = UseAsyncTask<TransactionRequest, PendingTransact
127
131
  */
128
132
  type ExecutionPlanHandler<T, R extends Signature | PendingTransaction> = (plan: T, options: TransactionHandlerOptions) => ResultAsync<R, SendTransactionError>;
129
133
 
130
- export { type AsyncTaskError as A, type CancelOperation as C, type ExecutionPlanHandler as E, PendingTransaction as P, type SendTransactionError as S, type TransactionHandlerOptions as T, type UseSendTransactionResult as U, type UseAsyncTask as a, type PendingTransactionError as b, type AsyncTaskIdle as c, type AsyncTaskLoading as d, type AsyncTaskState as e, type AsyncTaskSuccess as f };
134
+ export { type AsyncTaskError as A, type CancelOperation as C, type ExecutionPlanHandler as E, PendingTransaction as P, type SendTransactionError as S, type TransactionHandlerOptions as T, type UseSendTransactionResult as U, type UseAsyncTask as a, type PendingTransactionError as b, cancel as c, type AsyncTaskIdle as d, type AsyncTaskLoading as e, type AsyncTaskState as f, type AsyncTaskSuccess as g };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aave/react",
3
- "version": "4.0.0-next.46",
3
+ "version": "4.0.0-next.47",
4
4
  "description": "The official React bindings for the Aave Protocol",
5
5
  "keywords": [
6
6
  "aave",
@@ -72,9 +72,9 @@
72
72
  "sideEffects": false,
73
73
  "dependencies": {
74
74
  "urql": "^5.0.1",
75
- "@aave/client": "4.0.0-next.46",
76
- "@aave/core": "1.0.0-next.17",
77
- "@aave/graphql": "1.0.0-next.32",
75
+ "@aave/core": "1.0.0-next.18",
76
+ "@aave/client": "4.0.0-next.47",
77
+ "@aave/graphql": "1.0.0-next.33",
78
78
  "@aave/types": "1.0.0-next.8"
79
79
  },
80
80
  "devDependencies": {
@@ -90,6 +90,7 @@
90
90
  "thirdweb": "^5.105.25",
91
91
  "tsup": "^8.5.1",
92
92
  "typescript": "^5.9.2",
93
+ "vitest": "^3.2.4",
93
94
  "viem": "^2.37.5"
94
95
  },
95
96
  "peerDependencies": {