@compass-labs/api-sdk 2.1.26 → 2.1.27
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.
- package/docs/models/components/aavelooprequest.md +15 -15
- package/docs/models/components/aaverepayrequest.md +5 -5
- package/docs/models/components/aaverepayrequestamount.md +2 -2
- package/docs/models/components/aaverepayrequestchain.md +1 -1
- package/docs/models/components/aavesetuseremoderequest.md +3 -3
- package/docs/models/components/aavesetuseremoderequestchain.md +1 -1
- package/docs/models/components/aavesupplyrequest.md +4 -4
- package/docs/models/components/aavesupplyrequestamount.md +2 -2
- package/docs/models/components/aavesupplyrequestchain.md +1 -1
- package/docs/models/components/aavewithdrawrequest.md +5 -5
- package/docs/models/components/aavewithdrawrequestamount.md +2 -2
- package/docs/models/components/aavewithdrawrequestchain.md +1 -1
- package/docs/models/components/aerodromeslipstreambuyexactlyrequest.md +7 -7
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountinmaximum.md +2 -2
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountout.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequest.md +7 -7
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequest.md +12 -12
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/aerodromeslipstreamsellexactlyrequest.md +6 -6
- package/docs/models/components/aerodromeslipstreamsellexactlyrequestamountin.md +2 -2
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequest.md +4 -4
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +2 -2
- package/docs/models/components/approvetransferrequest.md +2 -2
- package/docs/models/components/approvetransferresponse.md +7 -2
- package/docs/models/components/batchedsafeoperationsresponseinput.md +22 -9
- package/docs/models/components/batchedsafeoperationsresponseoutput.md +2 -7
- package/docs/models/components/batcheduseroperationsrequest.md +2 -2
- package/docs/models/components/createaccountrequest.md +3 -3
- package/docs/models/components/createaccountrequestchain.md +1 -1
- package/docs/models/components/depositforburnrequest.md +4 -4
- package/docs/models/components/depositforburnrequestamount.md +2 -2
- package/docs/models/components/depositforburnresponse.md +2 -7
- package/docs/models/components/destinationchain.md +1 -1
- package/docs/models/components/earnmanageparams.md +2 -2
- package/docs/models/components/earnmanageparamsvenue.md +1 -1
- package/docs/models/components/earnmanagerequest.md +3 -3
- package/docs/models/components/earnmanagerequestvenue.md +1 -1
- package/docs/models/components/earnswaprequest.md +4 -4
- package/docs/models/components/earnswaprequestamountin.md +2 -2
- package/docs/models/components/earnswapresponse.md +2 -7
- package/docs/models/components/earntransferrequest.md +4 -4
- package/docs/models/components/earntransferrequestaction.md +1 -1
- package/docs/models/components/earntransferrequestamount.md +2 -2
- package/docs/models/components/earntransferresponse.md +2 -7
- package/docs/models/components/earntransferresponseeip712.md +6 -11
- package/docs/models/components/ethenadepositrequest.md +3 -3
- package/docs/models/components/ethenadepositrequestamount.md +2 -2
- package/docs/models/components/ethenarequesttowithdrawrequest.md +2 -2
- package/docs/models/components/ethenaunstakerequest.md +2 -2
- package/docs/models/components/initialcollateralamount.md +2 -2
- package/docs/models/components/loantovalue.md +2 -2
- package/docs/models/components/maxslippagepercent.md +2 -2
- package/docs/models/components/mintpreparerequest.md +5 -5
- package/docs/models/components/morphoborrowrequest.md +4 -4
- package/docs/models/components/morphoborrowrequestamount.md +2 -2
- package/docs/models/components/morphoborrowrequestchain.md +1 -1
- package/docs/models/components/morphodepositrequest.md +4 -4
- package/docs/models/components/morphodepositrequestamount.md +2 -2
- package/docs/models/components/morphodepositrequestchain.md +1 -1
- package/docs/models/components/morphorepayrequest.md +3 -3
- package/docs/models/components/morphosupplycollateralrequest.md +4 -4
- package/docs/models/components/morphosupplycollateralrequestamount.md +2 -2
- package/docs/models/components/morphosupplycollateralrequestchain.md +1 -1
- package/docs/models/components/morphowithdrawcollateralrequest.md +4 -4
- package/docs/models/components/morphowithdrawcollateralrequestamount.md +2 -2
- package/docs/models/components/morphowithdrawrequest.md +3 -3
- package/docs/models/components/morphowithdrawrequestchain.md +1 -1
- package/docs/models/components/multicallauthorizationrequest.md +4 -4
- package/docs/models/components/multicallauthorizationrequestchain.md +1 -1
- package/docs/models/components/multicallexecuterequest.md +7 -7
- package/docs/models/components/multiplier.md +2 -2
- package/docs/models/components/odosswaprequest.md +6 -6
- package/docs/models/components/odosswaprequestamountin.md +2 -2
- package/docs/models/components/pendlemanageliquidityrequest.md +7 -7
- package/docs/models/components/pendlemanageliquidityrequestamountin.md +2 -2
- package/docs/models/components/pendlemanageliquidityrequestchain.md +1 -1
- package/docs/models/components/pendleredeemyieldrequest.md +3 -3
- package/docs/models/components/pendletradeptrequest.md +7 -7
- package/docs/models/components/pendletradeptrequestaction.md +1 -1
- package/docs/models/components/pendletradeptrequestamountin.md +2 -2
- package/docs/models/components/pendletradeytrequest.md +7 -7
- package/docs/models/components/pendletradeytrequestaction.md +1 -1
- package/docs/models/components/pendletradeytrequestamountin.md +2 -2
- package/docs/models/components/permit2typeddatainput.md +10 -34
- package/docs/models/components/permit2typeddataoutput.md +4 -4
- package/docs/models/components/permittransferfrommessage.md +1 -1
- package/docs/models/components/permittypeddataresponseinput.md +50 -11
- package/docs/models/components/permittypeddataresponseoutput.md +7 -2
- package/docs/models/components/setallowancerequest.md +5 -5
- package/docs/models/components/setallowancerequestamount.md +2 -2
- package/docs/models/components/setallowancerequestcontractenum.md +1 -1
- package/docs/models/components/setallowancerequestcontractunion.md +1 -1
- package/docs/models/components/signedauthorization.md +6 -6
- package/docs/models/components/skybuyrequest.md +4 -4
- package/docs/models/components/skybuyrequestamount.md +2 -2
- package/docs/models/components/skydepositrequest.md +2 -2
- package/docs/models/components/skydepositrequestamount.md +2 -2
- package/docs/models/components/skysellrequest.md +4 -4
- package/docs/models/components/skysellrequestamount.md +2 -2
- package/docs/models/components/skysellrequesttokenout.md +1 -1
- package/docs/models/components/skywithdrawrequest.md +1 -1
- package/docs/models/components/sponsorgasrequest.md +7 -7
- package/docs/models/components/sponsorgasrequesteip712.md +76 -48
- package/docs/models/components/tokentransferrequest.md +5 -5
- package/docs/models/components/tokentransferrequestamount.md +2 -2
- package/docs/models/components/tokentransferrequestchain.md +1 -1
- package/docs/models/components/uniswapbuyexactlyrequest.md +6 -6
- package/docs/models/components/uniswapbuyexactlyrequestamountout.md +2 -2
- package/docs/models/components/uniswapbuyexactlyrequestchain.md +1 -1
- package/docs/models/components/uniswapincreaseliquidityprovisionrequest.md +7 -7
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestchain.md +1 -1
- package/docs/models/components/uniswapmintliquidityprovisionrequest.md +11 -11
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0desired.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0min.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1desired.md +2 -2
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1min.md +2 -2
- package/docs/models/components/uniswapsellexactlyrequest.md +6 -6
- package/docs/models/components/uniswapsellexactlyrequestamountin.md +2 -2
- package/docs/models/components/uniswapsellexactlyrequestchain.md +1 -1
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequest.md +4 -4
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestchain.md +1 -1
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +2 -2
- package/docs/models/components/unwrapwethrequest.md +3 -3
- package/docs/models/components/unwrapwethrequestamount.md +2 -2
- package/docs/models/components/unwrapwethrequestchain.md +1 -1
- package/docs/models/components/v2bundlerequest.md +6 -6
- package/docs/models/components/v2useroperation.md +2 -2
- package/docs/models/components/v2useroperationbody.md +2 -2
- package/docs/models/components/vaultdepositrequest.md +4 -4
- package/docs/models/components/vaultdepositrequestamount.md +2 -2
- package/docs/models/components/vaultvenue.md +1 -1
- package/docs/models/components/vaultwithdrawrequest.md +3 -3
- package/docs/models/components/vaultwithdrawrequestchain.md +1 -1
- package/docs/models/components/wrapethrequest.md +3 -3
- package/docs/models/components/wrapethrequestamount.md +2 -2
- package/docs/models/components/wrapethrequestchain.md +1 -1
- package/package.json +1 -1
|
@@ -21,9 +21,9 @@ let value: TokenTransferRequest = {
|
|
|
21
21
|
| Field | Type | Required | Description | Example |
|
|
22
22
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
23
23
|
| `actionType` | *"TOKEN_TRANSFER"* | :heavy_minus_sign: | N/A | TOKEN_TRANSFER |
|
|
24
|
-
| `to` | *string* | :heavy_check_mark: | The recipient of the tokens. |
|
|
25
|
-
| `token` | *string* | :heavy_check_mark: | The symbol or address of the token to transfer. |
|
|
26
|
-
| `amount` | *components.TokenTransferRequestAmount* | :heavy_check_mark: | Amount of token to transfer |
|
|
27
|
-
| `chain` | [components.TokenTransferRequestChain](../../models/components/tokentransferrequestchain.md) | :heavy_check_mark: | N/A |
|
|
28
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
24
|
+
| `to` | *string* | :heavy_check_mark: | The recipient of the tokens. | 0x0000000000000000000000000000000000000000 |
|
|
25
|
+
| `token` | *string* | :heavy_check_mark: | The symbol or address of the token to transfer. | USDC |
|
|
26
|
+
| `amount` | *components.TokenTransferRequestAmount* | :heavy_check_mark: | Amount of token to transfer | 0.1 |
|
|
27
|
+
| `chain` | [components.TokenTransferRequestChain](../../models/components/tokentransferrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
28
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0xA06a2D62D71BeAf93FA0a684A92c28729297eC81 |
|
|
29
29
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ Amount of token to transfer
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.1;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.1";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -23,11 +23,11 @@ let value: UniswapBuyExactlyRequest = {
|
|
|
23
23
|
| Field | Type | Required | Description | Example |
|
|
24
24
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
25
25
|
| `actionType` | *"UNISWAP_BUY_EXACTLY"* | :heavy_minus_sign: | N/A | UNISWAP_BUY_EXACTLY |
|
|
26
|
-
| `tokenIn` | *string* | :heavy_check_mark: | The symbol or address of the token to swap from.. |
|
|
27
|
-
| `tokenOut` | *string* | :heavy_check_mark: | The symbol or address of the token to swap to.. |
|
|
26
|
+
| `tokenIn` | *string* | :heavy_check_mark: | The symbol or address of the token to swap from.. | USDC |
|
|
27
|
+
| `tokenOut` | *string* | :heavy_check_mark: | The symbol or address of the token to swap to.. | USDT |
|
|
28
28
|
| `fee` | [components.FeeEnum](../../models/components/feeenum.md) | :heavy_check_mark: | The transaction fee of a Uniswap pool in bips.<br/><br/>Uniswap supports 4 different fee levels. | |
|
|
29
|
-
| `amountOut` | *components.UniswapBuyExactlyRequestAmountOut* | :heavy_check_mark: | The amount of 'token_out' to buy. |
|
|
30
|
-
| `maxSlippagePercent` | *number* | :heavy_check_mark: | The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed. |
|
|
31
|
-
| `chain` | [components.UniswapBuyExactlyRequestChain](../../models/components/uniswapbuyexactlyrequestchain.md) | :heavy_check_mark: | N/A |
|
|
32
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
29
|
+
| `amountOut` | *components.UniswapBuyExactlyRequestAmountOut* | :heavy_check_mark: | The amount of 'token_out' to buy. | 0.1 |
|
|
30
|
+
| `maxSlippagePercent` | *number* | :heavy_check_mark: | The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed. | 0.5 |
|
|
31
|
+
| `chain` | [components.UniswapBuyExactlyRequestChain](../../models/components/uniswapbuyexactlyrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
32
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0x7a27794511C14F6afFDE618D3d8ef7B9C24058Ac |
|
|
33
33
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ The amount of 'token_out' to buy.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.1;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.1";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -23,11 +23,11 @@ let value: UniswapIncreaseLiquidityProvisionRequest = {
|
|
|
23
23
|
| Field | Type | Required | Description | Example |
|
|
24
24
|
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
25
25
|
| `actionType` | *"UNISWAP_ADD_LIQUIDITY"* | :heavy_minus_sign: | N/A | UNISWAP_ADD_LIQUIDITY |
|
|
26
|
-
| `tokenId` | *number* | :heavy_check_mark: | Token ID of the NFT representing the liquidity provisioned position. |
|
|
27
|
-
| `amount0Desired` | *components.UniswapIncreaseLiquidityProvisionRequestAmount0Desired* | :heavy_check_mark: | The desired amount of the first token to deposit |
|
|
28
|
-
| `amount1Desired` | *components.UniswapIncreaseLiquidityProvisionRequestAmount1Desired* | :heavy_check_mark: | The desired amount of the second token to deposit |
|
|
29
|
-
| `amount0Min` | *components.UniswapIncreaseLiquidityProvisionRequestAmount0Min* | :heavy_check_mark: | The minimum amount of the first token to deposit |
|
|
30
|
-
| `amount1Min` | *components.UniswapIncreaseLiquidityProvisionRequestAmount1Min* | :heavy_check_mark: | The minimum amount of the second token to deposit |
|
|
31
|
-
| `chain` | [components.UniswapIncreaseLiquidityProvisionRequestChain](../../models/components/uniswapincreaseliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A |
|
|
32
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
26
|
+
| `tokenId` | *number* | :heavy_check_mark: | Token ID of the NFT representing the liquidity provisioned position. | 3432182 |
|
|
27
|
+
| `amount0Desired` | *components.UniswapIncreaseLiquidityProvisionRequestAmount0Desired* | :heavy_check_mark: | The desired amount of the first token to deposit | 0.3 |
|
|
28
|
+
| `amount1Desired` | *components.UniswapIncreaseLiquidityProvisionRequestAmount1Desired* | :heavy_check_mark: | The desired amount of the second token to deposit | 0.0 |
|
|
29
|
+
| `amount0Min` | *components.UniswapIncreaseLiquidityProvisionRequestAmount0Min* | :heavy_check_mark: | The minimum amount of the first token to deposit | 0.00 |
|
|
30
|
+
| `amount1Min` | *components.UniswapIncreaseLiquidityProvisionRequestAmount1Min* | :heavy_check_mark: | The minimum amount of the second token to deposit | 0.00 |
|
|
31
|
+
| `chain` | [components.UniswapIncreaseLiquidityProvisionRequestChain](../../models/components/uniswapincreaseliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
32
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0x41096de529D54718a5600185F8C4460979ed75C9 |
|
|
33
33
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ The desired amount of the first token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.3;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.3";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The minimum amount of the first token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.00";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The desired amount of the second token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.0";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The minimum amount of the second token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.00";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
import { UniswapIncreaseLiquidityProvisionRequestChain } from "@compass-labs/api-sdk/models/components";
|
|
7
7
|
|
|
8
|
-
let value: UniswapIncreaseLiquidityProvisionRequestChain = "
|
|
8
|
+
let value: UniswapIncreaseLiquidityProvisionRequestChain = "base";
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Values
|
|
@@ -28,16 +28,16 @@ let value: UniswapMintLiquidityProvisionRequest = {
|
|
|
28
28
|
| Field | Type | Required | Description | Example |
|
|
29
29
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
30
30
|
| `actionType` | *"UNISWAP_MINT_LIQUIDITY_PROVISION"* | :heavy_minus_sign: | N/A | UNISWAP_MINT_LIQUIDITY_PROVISION |
|
|
31
|
-
| `token0` | *string* | :heavy_check_mark: | The symbol or address of the first token in the pair. |
|
|
32
|
-
| `token1` | *string* | :heavy_check_mark: | The symbol or address of the second token in the pair. |
|
|
31
|
+
| `token0` | *string* | :heavy_check_mark: | The symbol or address of the first token in the pair. | USDC |
|
|
32
|
+
| `token1` | *string* | :heavy_check_mark: | The symbol or address of the second token in the pair. | USDT |
|
|
33
33
|
| `fee` | [components.FeeEnum](../../models/components/feeenum.md) | :heavy_check_mark: | The transaction fee of a Uniswap pool in bips.<br/><br/>Uniswap supports 4 different fee levels. | |
|
|
34
|
-
| `tickLower` | *number* | :heavy_check_mark: | The lower tick of the range to mint the position in |
|
|
35
|
-
| `tickUpper` | *number* | :heavy_check_mark: | The upper tick of the range to mint the position in |
|
|
36
|
-
| `amount0Desired` | *components.UniswapMintLiquidityProvisionRequestAmount0Desired* | :heavy_check_mark: | The desired amount of the first token to deposit |
|
|
37
|
-
| `amount1Desired` | *components.UniswapMintLiquidityProvisionRequestAmount1Desired* | :heavy_check_mark: | The desired amount of the second token to deposit |
|
|
38
|
-
| `amount0Min` | *components.UniswapMintLiquidityProvisionRequestAmount0Min* | :heavy_check_mark: | The minimum amount of the first token to deposit |
|
|
39
|
-
| `amount1Min` | *components.UniswapMintLiquidityProvisionRequestAmount1Min* | :heavy_check_mark: | The minimum amount of the second token to deposit |
|
|
40
|
-
| `recipient` | *string* | :heavy_minus_sign: | The address that will receive the LP tokens |
|
|
41
|
-
| `chain` | [components.UniswapMintLiquidityProvisionRequestChain](../../models/components/uniswapmintliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A |
|
|
42
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
34
|
+
| `tickLower` | *number* | :heavy_check_mark: | The lower tick of the range to mint the position in | 1823 |
|
|
35
|
+
| `tickUpper` | *number* | :heavy_check_mark: | The upper tick of the range to mint the position in | 2623 |
|
|
36
|
+
| `amount0Desired` | *components.UniswapMintLiquidityProvisionRequestAmount0Desired* | :heavy_check_mark: | The desired amount of the first token to deposit | 0.05 |
|
|
37
|
+
| `amount1Desired` | *components.UniswapMintLiquidityProvisionRequestAmount1Desired* | :heavy_check_mark: | The desired amount of the second token to deposit | 0.00 |
|
|
38
|
+
| `amount0Min` | *components.UniswapMintLiquidityProvisionRequestAmount0Min* | :heavy_check_mark: | The minimum amount of the first token to deposit | 0 |
|
|
39
|
+
| `amount1Min` | *components.UniswapMintLiquidityProvisionRequestAmount1Min* | :heavy_check_mark: | The minimum amount of the second token to deposit | 0 |
|
|
40
|
+
| `recipient` | *string* | :heavy_minus_sign: | The address that will receive the LP tokens | 0x41096de529D54718a5600185F8C4460979ed75C9 |
|
|
41
|
+
| `chain` | [components.UniswapMintLiquidityProvisionRequestChain](../../models/components/uniswapmintliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
42
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0x41096de529D54718a5600185F8C4460979ed75C9 |
|
|
43
43
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ The desired amount of the first token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.05;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.05";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The minimum amount of the first token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The desired amount of the second token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.00";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ The minimum amount of the second token to deposit
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -23,11 +23,11 @@ let value: UniswapSellExactlyRequest = {
|
|
|
23
23
|
| Field | Type | Required | Description | Example |
|
|
24
24
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
25
25
|
| `actionType` | *"UNISWAP_SELL_EXACTLY"* | :heavy_minus_sign: | N/A | UNISWAP_SELL_EXACTLY |
|
|
26
|
-
| `tokenIn` | *string* | :heavy_check_mark: | The symbol or address of the token to sell.. |
|
|
27
|
-
| `tokenOut` | *string* | :heavy_check_mark: | The symbol or address of the token to buy.. |
|
|
26
|
+
| `tokenIn` | *string* | :heavy_check_mark: | The symbol or address of the token to sell.. | USDC |
|
|
27
|
+
| `tokenOut` | *string* | :heavy_check_mark: | The symbol or address of the token to buy.. | USDT |
|
|
28
28
|
| `fee` | [components.FeeEnum](../../models/components/feeenum.md) | :heavy_check_mark: | The transaction fee of a Uniswap pool in bips.<br/><br/>Uniswap supports 4 different fee levels. | |
|
|
29
|
-
| `amountIn` | *components.UniswapSellExactlyRequestAmountIn* | :heavy_check_mark: | The amount of the `token_in` to sell |
|
|
30
|
-
| `maxSlippagePercent` | *number* | :heavy_check_mark: | The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed. |
|
|
31
|
-
| `chain` | [components.UniswapSellExactlyRequestChain](../../models/components/uniswapsellexactlyrequestchain.md) | :heavy_check_mark: | N/A |
|
|
32
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
29
|
+
| `amountIn` | *components.UniswapSellExactlyRequestAmountIn* | :heavy_check_mark: | The amount of the `token_in` to sell | 0.1 |
|
|
30
|
+
| `maxSlippagePercent` | *number* | :heavy_check_mark: | The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed. | 0.5 |
|
|
31
|
+
| `chain` | [components.UniswapSellExactlyRequestChain](../../models/components/uniswapsellexactlyrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
32
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0xA7DeA16238DdF6ed8AaC73A348bbdE6da20C20B5 |
|
|
33
33
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ The amount of the `token_in` to sell
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.1;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.1";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -18,8 +18,8 @@ let value: UniswapWithdrawLiquidityProvisionRequest = {
|
|
|
18
18
|
| Field | Type | Required | Description | Example |
|
|
19
19
|
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
20
20
|
| `actionType` | *"UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"* | :heavy_minus_sign: | N/A | UNISWAP_WITHDRAW_LIQUIDITY_PROVISION |
|
|
21
|
-
| `tokenId` | *number* | :heavy_check_mark: | Token ID of the NFT representing the liquidity provisioned position. |
|
|
22
|
-
| `percentageForWithdrawal` | *components.UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal* | :heavy_check_mark: | How much liquidity to take out in percentage. |
|
|
23
|
-
| `chain` | [components.UniswapWithdrawLiquidityProvisionRequestChain](../../models/components/uniswapwithdrawliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A |
|
|
24
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
21
|
+
| `tokenId` | *number* | :heavy_check_mark: | Token ID of the NFT representing the liquidity provisioned position. | 3432182 |
|
|
22
|
+
| `percentageForWithdrawal` | *components.UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal* | :heavy_check_mark: | How much liquidity to take out in percentage. | 1 |
|
|
23
|
+
| `chain` | [components.UniswapWithdrawLiquidityProvisionRequestChain](../../models/components/uniswapwithdrawliquidityprovisionrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
24
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0x41096de529D54718a5600185F8C4460979ed75C9 |
|
|
25
25
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
import { UniswapWithdrawLiquidityProvisionRequestChain } from "@compass-labs/api-sdk/models/components";
|
|
7
7
|
|
|
8
|
-
let value: UniswapWithdrawLiquidityProvisionRequestChain = "
|
|
8
|
+
let value: UniswapWithdrawLiquidityProvisionRequestChain = "base";
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Values
|
package/docs/models/components/uniswapwithdrawliquidityprovisionrequestpercentageforwithdrawal.md
CHANGED
|
@@ -8,12 +8,12 @@ How much liquidity to take out in percentage.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 1;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "1";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -19,7 +19,7 @@ let value: UnwrapWethRequest = {
|
|
|
19
19
|
| Field | Type | Required | Description | Example |
|
|
20
20
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
21
21
|
| `actionType` | *"UNWRAP_WETH"* | :heavy_minus_sign: | N/A | UNWRAP_WETH |
|
|
22
|
-
| `amount` | *components.UnwrapWethRequestAmount* | :heavy_check_mark: | The amount of WETH to unwrap. |
|
|
23
|
-
| `chain` | [components.UnwrapWethRequestChain](../../models/components/unwrapwethrequestchain.md) | :heavy_check_mark: | N/A |
|
|
24
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
22
|
+
| `amount` | *components.UnwrapWethRequestAmount* | :heavy_check_mark: | The amount of WETH to unwrap. | 0.00004 |
|
|
23
|
+
| `chain` | [components.UnwrapWethRequestChain](../../models/components/unwrapwethrequestchain.md) | :heavy_check_mark: | N/A | base |
|
|
24
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0x0E9E8986823aF26F6b18702C31AfF6a10C1e9E7A |
|
|
25
25
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -8,12 +8,12 @@ The amount of WETH to unwrap.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 0.00004;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "0.00004";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -36,9 +36,9 @@ let value: V2BundleRequest = {
|
|
|
36
36
|
|
|
37
37
|
## Fields
|
|
38
38
|
|
|
39
|
-
| Field
|
|
40
|
-
|
|
|
41
|
-
| `owner`
|
|
42
|
-
| `chain`
|
|
43
|
-
| `actions`
|
|
44
|
-
| `gasSponsorship`
|
|
39
|
+
| Field | Type | Required | Description | Example |
|
|
40
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
41
|
+
| `owner` | *string* | :heavy_check_mark: | The owner's wallet address that controls the Earn Account. | 0x01E62835dd7F52173546A325294762143eE4a882 |
|
|
42
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
43
|
+
| `actions` | [components.V2UserOperation](../../models/components/v2useroperation.md)[] | :heavy_check_mark: | List of actions to bundle. Actions are executed in order. | [<br/>{<br/>"body": {<br/>"action_type": "V2_SWAP",<br/>"amount_in": "100",<br/>"slippage": "0.5",<br/>"token_in": "USDC",<br/>"token_out": "AUSD"<br/>}<br/>},<br/>{<br/>"body": {<br/>"action": "DEPOSIT",<br/>"action_type": "V2_MANAGE",<br/>"amount": "ALL",<br/>"venue": {<br/>"type": "VAULT",<br/>"vault_address": "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6"<br/>}<br/>}<br/>}<br/>] |
|
|
44
|
+
| `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas sponsorship. The owner must sign this data and submit to /gas_sponsorship/prepare. | false |
|
|
@@ -12,10 +12,10 @@ let value: V2UserOperation = {
|
|
|
12
12
|
actionType: "V2_MANAGE",
|
|
13
13
|
venue: {
|
|
14
14
|
type: "VAULT",
|
|
15
|
-
vaultAddress: "
|
|
15
|
+
vaultAddress: "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A",
|
|
16
16
|
},
|
|
17
17
|
action: "WITHDRAW",
|
|
18
|
-
amount:
|
|
18
|
+
amount: "314.39",
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
```
|