Skip to content

Commit 921d93a

Browse files
authored
Merge branch 'main' into test/math-check-user-position-summary
2 parents 11530da + 484022a commit 921d93a

File tree

14 files changed

+470
-77
lines changed

14 files changed

+470
-77
lines changed

.changeset/bold-bees-pull.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aave/graphql": patch
3+
"@aave/react": patch
4+
---
5+
6+
**fix:** `useTokenSwap` and `useCancelSwap` hooks.

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@aave/cli": "4.0.0"
1212
},
1313
"changesets": [
14+
"bold-bees-pull",
1415
"bumpy-plants-guess",
1516
"clear-ears-smash",
1617
"clever-symbols-search",

packages/cli/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @aave/cli
22

3+
## 4.1.0-next.6
4+
5+
### Patch Changes
6+
7+
- @aave/client@4.0.0-next.13
8+
39
## 4.1.0-next.5
410

511
### Patch Changes

packages/cli/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ npm install -g @aave/cli
2020
$ aave COMMAND
2121
running command...
2222
$ aave (--version)
23-
@aave/cli/4.1.0-next.5 darwin-arm64 node-v22.17.0
23+
@aave/cli/4.1.0-next.6 darwin-arm64 node-v22.17.0
2424
$ aave --help [COMMAND]
2525
USAGE
2626
$ aave COMMAND
@@ -51,7 +51,7 @@ DESCRIPTION
5151
List Aave v4 liquidity hubs
5252
```
5353

54-
_See code: [src/commands/hubs/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.5/src/commands/hubs/list.ts)_
54+
_See code: [src/commands/hubs/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.6/src/commands/hubs/list.ts)_
5555

5656
## `aave reserves list`
5757

@@ -74,7 +74,7 @@ DESCRIPTION
7474
List Aave v4 reserves
7575
```
7676

77-
_See code: [src/commands/reserves/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.5/src/commands/reserves/list.ts)_
77+
_See code: [src/commands/reserves/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.6/src/commands/reserves/list.ts)_
7878

7979
## `aave spokes list`
8080

@@ -96,5 +96,5 @@ DESCRIPTION
9696
List Aave v4 spokes
9797
```
9898

99-
_See code: [src/commands/spokes/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.5/src/commands/spokes/list.ts)_
99+
_See code: [src/commands/spokes/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.6/src/commands/spokes/list.ts)_
100100
<!-- commandsstop -->

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aave/cli",
3-
"version": "4.1.0-next.5",
3+
"version": "4.1.0-next.6",
44
"description": "CLI to interact with AaveKit API",
55
"keywords": [
66
"aave",

packages/client/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @aave/client
22

3+
## 4.0.0-next.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [93adceb]
8+
- @aave/graphql@1.0.0-next.12
9+
310
## 4.0.0-next.12
411

512
### Patch Changes

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aave/client",
3-
"version": "4.0.0-next.12",
3+
"version": "4.0.0-next.13",
44
"description": "The official TypeScript client for the AaveKit API",
55
"keywords": [
66
"aave",

packages/graphql/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @aave/graphql
22

3+
## 1.0.0-next.12
4+
5+
### Patch Changes
6+
7+
- 93adceb: **fix:** `useTokenSwap` and `useCancelSwap` hooks.
8+
39
## 1.0.0-next.11
410

511
### Patch Changes

packages/graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aave/graphql",
3-
"version": "1.0.0-next.11",
3+
"version": "1.0.0-next.12",
44
"description": "GraphQL bindings for the Aave API",
55
"repository": {
66
"directory": "packages/graphql",

packages/graphql/src/testing.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import type {
1616
PercentNumber,
1717
PositionSwapAdapterContractApproval,
1818
PositionSwapPositionManagerApproval,
19+
SwapCancelled,
20+
SwapOpen,
1921
SwapQuote,
2022
SwapReceipt,
2123
SwapTypedData,
@@ -247,6 +249,33 @@ export function makeSwapReceipt(): SwapReceipt {
247249
};
248250
}
249251

252+
/**
253+
* @internal
254+
*/
255+
export function makeSwapOpen(): SwapOpen {
256+
return {
257+
__typename: 'SwapOpen',
258+
swapId: randomBase64String() as SwapId,
259+
createdAt: new Date(),
260+
deadline: new Date(Date.now() + 3600_000), // 1 hour from now
261+
explorerLink: 'https://example.com/explorer.json',
262+
desiredSell: makeErc20Amount(1000, 'WETH'),
263+
desiredBuy: makeErc20Amount(1000, 'USDC'),
264+
};
265+
}
266+
267+
/**
268+
* @internal
269+
*/
270+
export function makeSwapCancelled(): SwapCancelled {
271+
return {
272+
__typename: 'SwapCancelled',
273+
createdAt: new Date(),
274+
cancelledAt: new Date(),
275+
explorerLink: 'https://example.com/explorer.json',
276+
};
277+
}
278+
250279
/**
251280
* @internal
252281
*/

0 commit comments

Comments
 (0)