@compass-labs/api-sdk 2.1.26-rc.15 → 2.1.26-rc.16
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 +2 -7
- package/docs/models/components/batchedsafeoperationsresponseinput.md +9 -22
- package/docs/models/components/batchedsafeoperationsresponseoutput.md +7 -2
- 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 +7 -2
- 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 +7 -2
- 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 +7 -2
- package/docs/models/components/earntransferresponseeip712.md +11 -6
- 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 +34 -10
- package/docs/models/components/permit2typeddataoutput.md +4 -4
- package/docs/models/components/permittransferfrommessage.md +1 -1
- package/docs/models/components/permittypeddataresponseinput.md +11 -50
- package/docs/models/components/permittypeddataresponseoutput.md +2 -7
- 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 +48 -76
- 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
|
@@ -9,61 +9,22 @@ import { PermitTypedDataResponseInput } from "@compass-labs/api-sdk/models/compo
|
|
|
9
9
|
|
|
10
10
|
let value: PermitTypedDataResponseInput = {
|
|
11
11
|
domain: {
|
|
12
|
-
name: "
|
|
13
|
-
version: "
|
|
14
|
-
chainId:
|
|
15
|
-
verifyingContract: "
|
|
12
|
+
name: "<value>",
|
|
13
|
+
version: "<value>",
|
|
14
|
+
chainId: 76014,
|
|
15
|
+
verifyingContract: "<value>",
|
|
16
16
|
},
|
|
17
17
|
types: {
|
|
18
|
-
eip712Domain: [
|
|
19
|
-
|
|
20
|
-
name: "name",
|
|
21
|
-
type: "string",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: "version",
|
|
25
|
-
type: "string",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "chainId",
|
|
29
|
-
type: "uint256",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "verifyingContract",
|
|
33
|
-
type: "address",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
permit: [
|
|
37
|
-
{
|
|
38
|
-
name: "owner",
|
|
39
|
-
type: "address",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "spender",
|
|
43
|
-
type: "address",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: "value",
|
|
47
|
-
type: "uint256",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "nonce",
|
|
51
|
-
type: "uint256",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "deadline",
|
|
55
|
-
type: "uint256",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
18
|
+
eip712Domain: [],
|
|
19
|
+
permit: [],
|
|
58
20
|
},
|
|
59
21
|
primaryType: "Permit",
|
|
60
22
|
message: {
|
|
61
|
-
owner: "
|
|
62
|
-
spender: "
|
|
63
|
-
value:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
deadline: "1762269774",
|
|
23
|
+
owner: "<value>",
|
|
24
|
+
spender: "<value>",
|
|
25
|
+
value: "<value>",
|
|
26
|
+
nonce: "<value>",
|
|
27
|
+
deadline: "<value>",
|
|
67
28
|
},
|
|
68
29
|
};
|
|
69
30
|
```
|
|
@@ -11,16 +11,11 @@ let value: PermitTypedDataResponseOutput = {
|
|
|
11
11
|
domain: {
|
|
12
12
|
name: "<value>",
|
|
13
13
|
version: "<value>",
|
|
14
|
-
chainId:
|
|
14
|
+
chainId: 76014,
|
|
15
15
|
verifyingContract: "<value>",
|
|
16
16
|
},
|
|
17
17
|
types: {
|
|
18
|
-
eip712Domain: [
|
|
19
|
-
{
|
|
20
|
-
name: "<value>",
|
|
21
|
-
type: "<value>",
|
|
22
|
-
},
|
|
23
|
-
],
|
|
18
|
+
eip712Domain: [],
|
|
24
19
|
permit: [],
|
|
25
20
|
},
|
|
26
21
|
primaryType: "Permit",
|
|
@@ -21,9 +21,9 @@ let value: SetAllowanceRequest = {
|
|
|
21
21
|
| Field | Type | Required | Description | Example |
|
|
22
22
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
23
23
|
| `actionType` | *"SET_ALLOWANCE"* | :heavy_minus_sign: | N/A | SET_ALLOWANCE |
|
|
24
|
-
| `token` | *string* | :heavy_check_mark: | The symbol or address of the token for which the allowance is set.. |
|
|
25
|
-
| `contract` | *components.SetAllowanceRequestContractUnion* | :heavy_check_mark: | The name or address of the contract to set spending allowance for. |
|
|
26
|
-
| `amount` | *components.SetAllowanceRequestAmount* | :heavy_check_mark: | The amount to set the allowance to. |
|
|
27
|
-
| `chain` | [components.SetAllowanceRequestChain](../../models/components/setallowancerequestchain.md) | :heavy_check_mark: | N/A |
|
|
28
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
24
|
+
| `token` | *string* | :heavy_check_mark: | The symbol or address of the token for which the allowance is set.. | |
|
|
25
|
+
| `contract` | *components.SetAllowanceRequestContractUnion* | :heavy_check_mark: | The name or address of the contract to set spending allowance for. | |
|
|
26
|
+
| `amount` | *components.SetAllowanceRequestAmount* | :heavy_check_mark: | The amount to set the allowance to. | |
|
|
27
|
+
| `chain` | [components.SetAllowanceRequestChain](../../models/components/setallowancerequestchain.md) | :heavy_check_mark: | N/A | |
|
|
28
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
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 @@ The amount to set the allowance to.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 1284.03;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "<value>";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import { SignedAuthorization } from "@compass-labs/api-sdk/models/components";
|
|
7
7
|
|
|
8
8
|
let value: SignedAuthorization = {
|
|
9
|
-
nonce:
|
|
10
|
-
address: "
|
|
11
|
-
chainId:
|
|
12
|
-
r: "
|
|
13
|
-
s:
|
|
14
|
-
yParity:
|
|
9
|
+
nonce: 236555,
|
|
10
|
+
address: "84199 Elian Harbors",
|
|
11
|
+
chainId: 183648,
|
|
12
|
+
r: "<value>",
|
|
13
|
+
s: 816144,
|
|
14
|
+
yParity: 957614,
|
|
15
15
|
};
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -18,8 +18,8 @@ let value: SkyBuyRequest = {
|
|
|
18
18
|
| Field | Type | Required | Description | Example |
|
|
19
19
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
20
20
|
| `actionType` | *"SKY_BUY"* | :heavy_minus_sign: | N/A | SKY_BUY |
|
|
21
|
-
| `tokenIn` | [components.SkyBuyRequestTokenIn](../../models/components/skybuyrequesttokenin.md) | :heavy_check_mark: | The token you would like to swap 1:1 for USDS. Choose from DAI or USDC. |
|
|
22
|
-
| `amount` | *components.SkyBuyRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to buy 1:1 with 'token_in'. |
|
|
23
|
-
| `chain` | [components.SkyBuyRequestChain](../../models/components/skybuyrequestchain.md) | :heavy_check_mark: | N/A |
|
|
24
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
21
|
+
| `tokenIn` | [components.SkyBuyRequestTokenIn](../../models/components/skybuyrequesttokenin.md) | :heavy_check_mark: | The token you would like to swap 1:1 for USDS. Choose from DAI or USDC. | |
|
|
22
|
+
| `amount` | *components.SkyBuyRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to buy 1:1 with 'token_in'. | |
|
|
23
|
+
| `chain` | [components.SkyBuyRequestChain](../../models/components/skybuyrequestchain.md) | :heavy_check_mark: | N/A | |
|
|
24
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
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 USDS you would like to buy 1:1 with 'token_in'.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 1284.03;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "<value>";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -17,8 +17,8 @@ let value: SkyDepositRequest = {
|
|
|
17
17
|
| Field | Type | Required | Description | Example |
|
|
18
18
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
19
19
|
| `actionType` | *"SKY_DEPOSIT"* | :heavy_minus_sign: | N/A | SKY_DEPOSIT |
|
|
20
|
-
| `amount` | *components.SkyDepositRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to deposit for sUSDS to earn yield. |
|
|
20
|
+
| `amount` | *components.SkyDepositRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to deposit for sUSDS to earn yield. | |
|
|
21
21
|
| `receiver` | *string* | :heavy_minus_sign: | The address which will receive the sUSDS. Defaults to the sender. | |
|
|
22
22
|
| `chain` | [components.SkyDepositRequestChain](../../models/components/skydepositrequestchain.md) | :heavy_minus_sign: | N/A | ethereum |
|
|
23
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
23
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
24
24
|
| `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 USDS you would like to deposit for sUSDS to earn yield.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 1284.03;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "<value>";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -18,8 +18,8 @@ let value: SkySellRequest = {
|
|
|
18
18
|
| Field | Type | Required | Description | Example |
|
|
19
19
|
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
20
20
|
| `actionType` | *"SKY_SELL"* | :heavy_minus_sign: | N/A | SKY_SELL |
|
|
21
|
-
| `tokenOut` | [components.SkySellRequestTokenOut](../../models/components/skysellrequesttokenout.md) | :heavy_check_mark: | The token you would like to swap 1:1 with USDS. Choose from DAI or USDC. |
|
|
22
|
-
| `amount` | *components.SkySellRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to sell 1:1 for 'token_out'. |
|
|
23
|
-
| `chain` | [components.SkySellRequestChain](../../models/components/skysellrequestchain.md) | :heavy_check_mark: | N/A |
|
|
24
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
21
|
+
| `tokenOut` | [components.SkySellRequestTokenOut](../../models/components/skysellrequesttokenout.md) | :heavy_check_mark: | The token you would like to swap 1:1 with USDS. Choose from DAI or USDC. | |
|
|
22
|
+
| `amount` | *components.SkySellRequestAmount* | :heavy_check_mark: | The amount of USDS you would like to sell 1:1 for 'token_out'. | |
|
|
23
|
+
| `chain` | [components.SkySellRequestChain](../../models/components/skysellrequestchain.md) | :heavy_check_mark: | N/A | |
|
|
24
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
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 USDS you would like to sell 1:1 for 'token_out'.
|
|
|
8
8
|
### `number`
|
|
9
9
|
|
|
10
10
|
```typescript
|
|
11
|
-
const value: number =
|
|
11
|
+
const value: number = 1284.03;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### `string`
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
const value: string = "
|
|
17
|
+
const value: string = "<value>";
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -7,7 +7,7 @@ The token you would like to swap 1:1 with USDS. Choose from DAI or USDC.
|
|
|
7
7
|
```typescript
|
|
8
8
|
import { SkySellRequestTokenOut } from "@compass-labs/api-sdk/models/components";
|
|
9
9
|
|
|
10
|
-
let value: SkySellRequestTokenOut = "
|
|
10
|
+
let value: SkySellRequestTokenOut = "DAI";
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Values
|
|
@@ -20,5 +20,5 @@ let value: SkyWithdrawRequest = {
|
|
|
20
20
|
| `amount` | *any* | :heavy_check_mark: | The amount of USDS you would like to withdraw. If set to 'ALL', your total deposited USDS amount will be withdrawn. | |
|
|
21
21
|
| `receiver` | *string* | :heavy_minus_sign: | The address which will receive the withdrawn USDS. Defaults to the sender. | |
|
|
22
22
|
| `chain` | [components.SkyWithdrawRequestChain](../../models/components/skywithdrawrequestchain.md) | :heavy_minus_sign: | N/A | ethereum |
|
|
23
|
-
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. |
|
|
23
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
24
24
|
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
@@ -75,10 +75,10 @@ let value: SponsorGasRequest = {
|
|
|
75
75
|
|
|
76
76
|
## Fields
|
|
77
77
|
|
|
78
|
-
| Field
|
|
79
|
-
|
|
|
80
|
-
| `owner`
|
|
81
|
-
| `chain`
|
|
82
|
-
| `eip712`
|
|
83
|
-
| `signature`
|
|
84
|
-
| `sender`
|
|
78
|
+
| Field | Type | Required | Description |
|
|
79
|
+
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
|
|
80
|
+
| `owner` | *string* | :heavy_check_mark: | The owner of the smart account's address. |
|
|
81
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. |
|
|
82
|
+
| `eip712` | *components.SponsorGasRequestEip712* | :heavy_check_mark: | The EIP-712 typed data that was signed. |
|
|
83
|
+
| `signature` | *string* | :heavy_check_mark: | The EIP-712 signed typed data signature. |
|
|
84
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the wallet which will send the transaction. |
|
|
@@ -10,35 +10,22 @@ The EIP-712 typed data that was signed.
|
|
|
10
10
|
```typescript
|
|
11
11
|
const value: components.BatchedSafeOperationsResponseInput = {
|
|
12
12
|
domain: {
|
|
13
|
-
chainId:
|
|
14
|
-
verifyingContract: "
|
|
13
|
+
chainId: 95340,
|
|
14
|
+
verifyingContract: "<value>",
|
|
15
15
|
},
|
|
16
16
|
types: {
|
|
17
|
-
eip712Domain: [
|
|
17
|
+
eip712Domain: [],
|
|
18
|
+
safeTx: [
|
|
18
19
|
{
|
|
19
|
-
name: "
|
|
20
|
-
type: "
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "version",
|
|
24
|
-
type: "string",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: "chainId",
|
|
28
|
-
type: "uint256",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "verifyingContract",
|
|
32
|
-
type: "address",
|
|
20
|
+
name: "<value>",
|
|
21
|
+
type: "<value>",
|
|
33
22
|
},
|
|
34
23
|
],
|
|
35
|
-
safeTx: [],
|
|
36
24
|
},
|
|
37
25
|
primaryType: "SafeTx",
|
|
38
26
|
message: {
|
|
39
27
|
to: "<value>",
|
|
40
|
-
value:
|
|
41
|
-
"115792089237316195423570985008687907853269984665640564039457584007913129639935",
|
|
28
|
+
value: "<value>",
|
|
42
29
|
data: "<value>",
|
|
43
30
|
operation: 0,
|
|
44
31
|
safeTxGas: "<value>",
|
|
@@ -46,7 +33,7 @@ const value: components.BatchedSafeOperationsResponseInput = {
|
|
|
46
33
|
gasPrice: "<value>",
|
|
47
34
|
gasToken: "<value>",
|
|
48
35
|
refundReceiver: "<value>",
|
|
49
|
-
nonce: "
|
|
36
|
+
nonce: "<value>",
|
|
50
37
|
},
|
|
51
38
|
};
|
|
52
39
|
```
|
|
@@ -56,21 +43,36 @@ const value: components.BatchedSafeOperationsResponseInput = {
|
|
|
56
43
|
```typescript
|
|
57
44
|
const value: components.PermitTypedDataResponseInput = {
|
|
58
45
|
domain: {
|
|
59
|
-
name: "
|
|
60
|
-
version: "
|
|
61
|
-
chainId:
|
|
62
|
-
verifyingContract: "
|
|
46
|
+
name: "<value>",
|
|
47
|
+
version: "<value>",
|
|
48
|
+
chainId: 76014,
|
|
49
|
+
verifyingContract: "<value>",
|
|
63
50
|
},
|
|
51
|
+
types: {
|
|
52
|
+
eip712Domain: [],
|
|
53
|
+
permit: [],
|
|
54
|
+
},
|
|
55
|
+
primaryType: "Permit",
|
|
56
|
+
message: {
|
|
57
|
+
owner: "<value>",
|
|
58
|
+
spender: "<value>",
|
|
59
|
+
value: "<value>",
|
|
60
|
+
nonce: "<value>",
|
|
61
|
+
deadline: "<value>",
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### `components.Permit2TypedDataInput`
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
const value: components.Permit2TypedDataInput = {
|
|
64
70
|
types: {
|
|
65
71
|
eip712Domain: [
|
|
66
72
|
{
|
|
67
73
|
name: "name",
|
|
68
74
|
type: "string",
|
|
69
75
|
},
|
|
70
|
-
{
|
|
71
|
-
name: "version",
|
|
72
|
-
type: "string",
|
|
73
|
-
},
|
|
74
76
|
{
|
|
75
77
|
name: "chainId",
|
|
76
78
|
type: "uint256",
|
|
@@ -80,77 +82,47 @@ const value: components.PermitTypedDataResponseInput = {
|
|
|
80
82
|
type: "address",
|
|
81
83
|
},
|
|
82
84
|
],
|
|
83
|
-
|
|
85
|
+
tokenPermissions: [
|
|
84
86
|
{
|
|
85
|
-
name: "
|
|
86
|
-
type: "address",
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "spender",
|
|
87
|
+
name: "token",
|
|
90
88
|
type: "address",
|
|
91
89
|
},
|
|
92
90
|
{
|
|
93
|
-
name: "
|
|
94
|
-
type: "uint256",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "nonce",
|
|
98
|
-
type: "uint256",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "deadline",
|
|
91
|
+
name: "amount",
|
|
102
92
|
type: "uint256",
|
|
103
93
|
},
|
|
104
94
|
],
|
|
105
|
-
|
|
106
|
-
primaryType: "Permit",
|
|
107
|
-
message: {
|
|
108
|
-
owner: "0xCE1A77F0abff993d6d3D04d44b70831c6924fb40",
|
|
109
|
-
spender: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
110
|
-
value:
|
|
111
|
-
"115792089237316195423570985008687907853269984665640564039457584007913129639935",
|
|
112
|
-
nonce: "0",
|
|
113
|
-
deadline: "1762269774",
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### `components.Permit2TypedDataInput`
|
|
119
|
-
|
|
120
|
-
```typescript
|
|
121
|
-
const value: components.Permit2TypedDataInput = {
|
|
122
|
-
types: {
|
|
123
|
-
eip712Domain: [
|
|
95
|
+
permitTransferFrom: [
|
|
124
96
|
{
|
|
125
|
-
name: "
|
|
126
|
-
type: "
|
|
97
|
+
name: "permitted",
|
|
98
|
+
type: "TokenPermissions",
|
|
127
99
|
},
|
|
128
100
|
{
|
|
129
|
-
name: "
|
|
130
|
-
type: "
|
|
101
|
+
name: "spender",
|
|
102
|
+
type: "address",
|
|
131
103
|
},
|
|
132
104
|
{
|
|
133
|
-
name: "
|
|
105
|
+
name: "nonce",
|
|
134
106
|
type: "uint256",
|
|
135
107
|
},
|
|
136
108
|
{
|
|
137
|
-
name: "
|
|
138
|
-
type: "
|
|
109
|
+
name: "deadline",
|
|
110
|
+
type: "uint256",
|
|
139
111
|
},
|
|
140
112
|
],
|
|
141
113
|
},
|
|
142
114
|
domain: {
|
|
143
|
-
chainId:
|
|
144
|
-
verifyingContract: "
|
|
115
|
+
chainId: 387057,
|
|
116
|
+
verifyingContract: "<value>",
|
|
145
117
|
},
|
|
146
118
|
message: {
|
|
147
119
|
permitted: {
|
|
148
120
|
token: "<value>",
|
|
149
|
-
amount:
|
|
121
|
+
amount: 434763,
|
|
150
122
|
},
|
|
151
|
-
spender: "
|
|
152
|
-
nonce:
|
|
153
|
-
deadline:
|
|
123
|
+
spender: "<value>",
|
|
124
|
+
nonce: 410419,
|
|
125
|
+
deadline: 192156,
|
|
154
126
|
},
|
|
155
127
|
};
|
|
156
128
|
```
|