@compass-labs/api-sdk 0.0.25 → 0.0.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/bin/mcp-server.js +12 -12
- package/bin/mcp-server.js.map +31 -31
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aaverate.d.ts +1 -6
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaverate.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +13 -6
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +3 -0
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +3 -0
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +6 -0
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +10 -4
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +4 -4
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +6 -0
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +5 -2
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +2 -2
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +3 -0
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/skyposition.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +9 -0
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aaverate.d.ts +1 -6
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
- package/dist/esm/models/operations/aaverate.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +13 -6
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +3 -0
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +3 -0
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +6 -0
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +10 -4
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +4 -4
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +6 -0
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +5 -2
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +2 -2
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +3 -0
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
- package/dist/esm/models/operations/skyposition.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +1 -6
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +9 -0
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +1 -6
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/docs/sdks/aavev3/README.md +14 -14
- package/docs/sdks/aerodromeslipstream/README.md +28 -28
- package/docs/sdks/morpho/README.md +24 -10
- package/docs/sdks/sky/README.md +2 -2
- package/docs/sdks/token/README.md +2 -2
- package/docs/sdks/transactionbatching/README.md +12 -12
- package/docs/sdks/uniswapv3/README.md +26 -26
- package/docs/sdks/universal/README.md +4 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/aavehistoricaltransactions.ts +9 -0
- package/src/models/operations/aaveliquiditychange.ts +7 -6
- package/src/models/operations/aaverate.ts +1 -6
- package/src/models/operations/aavereserveoverview.ts +1 -6
- package/src/models/operations/aavetokenprice.ts +1 -6
- package/src/models/operations/aaveuserpositionpertoken.ts +4 -6
- package/src/models/operations/aaveuserpositionsummary.ts +3 -0
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -12
- package/src/models/operations/genericallowance.ts +13 -6
- package/src/models/operations/genericens.ts +3 -0
- package/src/models/operations/genericportfolio.ts +3 -0
- package/src/models/operations/genericvisualizeportfolio.ts +3 -0
- package/src/models/operations/morphomarketposition.ts +6 -0
- package/src/models/operations/morphomarkets.ts +14 -8
- package/src/models/operations/morphovaultposition.ts +6 -0
- package/src/models/operations/morphovaults.ts +7 -4
- package/src/models/operations/skyposition.ts +3 -0
- package/src/models/operations/tokenaddress.ts +1 -6
- package/src/models/operations/tokenbalance.ts +9 -0
- package/src/models/operations/tokenprice.ts +1 -6
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/uniswappoolprice.ts +3 -17
- package/src/models/operations/uniswapquotebuyexactly.ts +9 -17
- package/src/models/operations/uniswapquotesellexactly.ts +9 -17
|
@@ -95,12 +95,7 @@ export type AaveReserveOverviewRequest = {
|
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveReserveOverviewChain | undefined;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
*
|
|
102
|
-
* This class is used to represent the token in the system. Notice individual
|
|
103
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
98
|
+
* The symbol of the asset..
|
|
104
99
|
*/
|
|
105
100
|
token?: AaveReserveOverviewToken | undefined;
|
|
106
101
|
};
|
|
@@ -91,12 +91,7 @@ export type AaveTokenPriceRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: AaveTokenPriceChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the asset whose price you want..
|
|
100
95
|
*/
|
|
101
96
|
token?: AaveTokenPriceToken | undefined;
|
|
102
97
|
};
|
|
@@ -94,14 +94,12 @@ export type AaveUserPositionPerTokenRequest = {
|
|
|
94
94
|
* The chain to use.
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveUserPositionPerTokenChain | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The user to fetch the token-specific position of.
|
|
99
|
+
*/
|
|
97
100
|
user?: string | undefined;
|
|
98
101
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
*
|
|
103
|
-
* This class is used to represent the token in the system. Notice individual
|
|
104
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
102
|
+
* The symbol of the asset to fetch the user's position on..
|
|
105
103
|
*/
|
|
106
104
|
token?: AaveUserPositionPerTokenToken | undefined;
|
|
107
105
|
};
|
|
@@ -28,6 +28,9 @@ export type AerodromeSlipstreamLiquidityProvisionPositionsRequest = {
|
|
|
28
28
|
* The chain to use.
|
|
29
29
|
*/
|
|
30
30
|
chain?: AerodromeSlipstreamLiquidityProvisionPositionsChain | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The user to get positions for.
|
|
33
|
+
*/
|
|
31
34
|
user?: string | undefined;
|
|
32
35
|
};
|
|
33
36
|
|
|
@@ -162,23 +162,16 @@ export type AerodromeSlipstreamPoolPriceRequest = {
|
|
|
162
162
|
*/
|
|
163
163
|
chain?: AerodromeSlipstreamPoolPriceChain | undefined;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @remarks
|
|
168
|
-
*
|
|
169
|
-
* This class is used to represent the token in the system. Notice individual
|
|
170
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
165
|
+
* The symbol of a token in the pool.
|
|
171
166
|
*/
|
|
172
167
|
tokenIn?: AerodromeSlipstreamPoolPriceTokenInToken | undefined;
|
|
173
168
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
*
|
|
178
|
-
* This class is used to represent the token in the system. Notice individual
|
|
179
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
169
|
+
* The symbol of a token in the pool.
|
|
180
170
|
*/
|
|
181
171
|
tokenOut?: AerodromeSlipstreamPoolPriceTokenOutToken | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The tick spacing of the pool
|
|
174
|
+
*/
|
|
182
175
|
tickSpacing?: number | undefined;
|
|
183
176
|
};
|
|
184
177
|
|
|
@@ -86,6 +86,9 @@ export const GenericAllowanceToken = {
|
|
|
86
86
|
*/
|
|
87
87
|
export type GenericAllowanceToken = ClosedEnum<typeof GenericAllowanceToken>;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The name of the contract to check allowance for.
|
|
91
|
+
*/
|
|
89
92
|
export const ContractName = {
|
|
90
93
|
AaveV3Pool: "AaveV3Pool",
|
|
91
94
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
@@ -99,6 +102,9 @@ export const ContractName = {
|
|
|
99
102
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
100
103
|
SkyUsdsVault: "SkyUsdsVault",
|
|
101
104
|
} as const;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the contract to check allowance for.
|
|
107
|
+
*/
|
|
102
108
|
export type ContractName = ClosedEnum<typeof ContractName>;
|
|
103
109
|
|
|
104
110
|
export type GenericAllowanceRequest = {
|
|
@@ -106,16 +112,17 @@ export type GenericAllowanceRequest = {
|
|
|
106
112
|
* The chain to use.
|
|
107
113
|
*/
|
|
108
114
|
chain?: GenericAllowanceChain | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The user to get the ERC20 allowance of.
|
|
117
|
+
*/
|
|
109
118
|
user?: string | undefined;
|
|
110
119
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* @remarks
|
|
114
|
-
*
|
|
115
|
-
* This class is used to represent the token in the system. Notice individual
|
|
116
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
120
|
+
* The symbol of the token for which the allowance is checked..
|
|
117
121
|
*/
|
|
118
122
|
token?: GenericAllowanceToken | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the contract to check allowance for.
|
|
125
|
+
*/
|
|
119
126
|
contractName?: ContractName | undefined;
|
|
120
127
|
};
|
|
121
128
|
|
|
@@ -19,7 +19,13 @@ export type MorphoMarketPositionChain = ClosedEnum<
|
|
|
19
19
|
|
|
20
20
|
export type MorphoMarketPositionRequest = {
|
|
21
21
|
chain?: MorphoMarketPositionChain | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The user address of the desired market position.
|
|
24
|
+
*/
|
|
22
25
|
userAddress?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
28
|
+
*/
|
|
23
29
|
uniqueMarketKey?: string | undefined;
|
|
24
30
|
};
|
|
25
31
|
|
|
@@ -17,8 +17,14 @@ export type MorphoMarketsChain = ClosedEnum<typeof MorphoMarketsChain>;
|
|
|
17
17
|
|
|
18
18
|
export type MorphoMarketsRequest = {
|
|
19
19
|
chain?: MorphoMarketsChain | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Collateral token to identify the market.
|
|
22
|
+
*/
|
|
23
|
+
collateralToken: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Loan token to identify the market.
|
|
26
|
+
*/
|
|
27
|
+
loanToken: string | null;
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
/** @internal */
|
|
@@ -49,8 +55,8 @@ export const MorphoMarketsRequest$inboundSchema: z.ZodType<
|
|
|
49
55
|
unknown
|
|
50
56
|
> = z.object({
|
|
51
57
|
chain: MorphoMarketsChain$inboundSchema.default("ethereum:mainnet"),
|
|
52
|
-
collateral_token: z.nullable(z.string())
|
|
53
|
-
loan_token: z.nullable(z.string())
|
|
58
|
+
collateral_token: z.nullable(z.string()),
|
|
59
|
+
loan_token: z.nullable(z.string()),
|
|
54
60
|
}).transform((v) => {
|
|
55
61
|
return remap$(v, {
|
|
56
62
|
"collateral_token": "collateralToken",
|
|
@@ -61,8 +67,8 @@ export const MorphoMarketsRequest$inboundSchema: z.ZodType<
|
|
|
61
67
|
/** @internal */
|
|
62
68
|
export type MorphoMarketsRequest$Outbound = {
|
|
63
69
|
chain: string;
|
|
64
|
-
collateral_token
|
|
65
|
-
loan_token
|
|
70
|
+
collateral_token: string | null;
|
|
71
|
+
loan_token: string | null;
|
|
66
72
|
};
|
|
67
73
|
|
|
68
74
|
/** @internal */
|
|
@@ -72,8 +78,8 @@ export const MorphoMarketsRequest$outboundSchema: z.ZodType<
|
|
|
72
78
|
MorphoMarketsRequest
|
|
73
79
|
> = z.object({
|
|
74
80
|
chain: MorphoMarketsChain$outboundSchema.default("ethereum:mainnet"),
|
|
75
|
-
collateralToken: z.nullable(z.string())
|
|
76
|
-
loanToken: z.nullable(z.string())
|
|
81
|
+
collateralToken: z.nullable(z.string()),
|
|
82
|
+
loanToken: z.nullable(z.string()),
|
|
77
83
|
}).transform((v) => {
|
|
78
84
|
return remap$(v, {
|
|
79
85
|
collateralToken: "collateral_token",
|
|
@@ -19,7 +19,13 @@ export type MorphoVaultPositionChain = ClosedEnum<
|
|
|
19
19
|
|
|
20
20
|
export type MorphoVaultPositionRequest = {
|
|
21
21
|
chain?: MorphoVaultPositionChain | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The user address of the desired vault position.
|
|
24
|
+
*/
|
|
22
25
|
userAddress?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The vault address of the desired vault position.
|
|
28
|
+
*/
|
|
23
29
|
vaultAddress?: string | undefined;
|
|
24
30
|
};
|
|
25
31
|
|
|
@@ -17,7 +17,10 @@ export type MorphoVaultsChain = ClosedEnum<typeof MorphoVaultsChain>;
|
|
|
17
17
|
|
|
18
18
|
export type MorphoVaultsRequest = {
|
|
19
19
|
chain?: MorphoVaultsChain | undefined;
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Token address that will filter vaults by this deposit token.
|
|
22
|
+
*/
|
|
23
|
+
depositToken: string | null;
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
/** @internal */
|
|
@@ -48,7 +51,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
|
|
|
48
51
|
unknown
|
|
49
52
|
> = z.object({
|
|
50
53
|
chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
|
|
51
|
-
deposit_token: z.nullable(z.string())
|
|
54
|
+
deposit_token: z.nullable(z.string()),
|
|
52
55
|
}).transform((v) => {
|
|
53
56
|
return remap$(v, {
|
|
54
57
|
"deposit_token": "depositToken",
|
|
@@ -58,7 +61,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
|
|
|
58
61
|
/** @internal */
|
|
59
62
|
export type MorphoVaultsRequest$Outbound = {
|
|
60
63
|
chain: string;
|
|
61
|
-
deposit_token
|
|
64
|
+
deposit_token: string | null;
|
|
62
65
|
};
|
|
63
66
|
|
|
64
67
|
/** @internal */
|
|
@@ -68,7 +71,7 @@ export const MorphoVaultsRequest$outboundSchema: z.ZodType<
|
|
|
68
71
|
MorphoVaultsRequest
|
|
69
72
|
> = z.object({
|
|
70
73
|
chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
|
|
71
|
-
depositToken: z.nullable(z.string())
|
|
74
|
+
depositToken: z.nullable(z.string()),
|
|
72
75
|
}).transform((v) => {
|
|
73
76
|
return remap$(v, {
|
|
74
77
|
depositToken: "deposit_token",
|
|
@@ -10,6 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type SkyPositionRequest = {
|
|
12
12
|
chain?: "ethereum:mainnet" | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The user address of the desired position.
|
|
15
|
+
*/
|
|
13
16
|
userAddress?: string | undefined;
|
|
14
17
|
};
|
|
15
18
|
|
|
@@ -91,12 +91,7 @@ export type TokenAddressRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: TokenAddressChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The token symbol to get the address for..
|
|
100
95
|
*/
|
|
101
96
|
token?: TokenAddressToken | undefined;
|
|
102
97
|
};
|
|
@@ -22,6 +22,9 @@ export const TokenBalanceChain = {
|
|
|
22
22
|
*/
|
|
23
23
|
export type TokenBalanceChain = ClosedEnum<typeof TokenBalanceChain>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The symbol of the token for which the balance is checked..
|
|
27
|
+
*/
|
|
25
28
|
export type TokenBalanceToken = components.TokenEnum | string;
|
|
26
29
|
|
|
27
30
|
export type TokenBalanceRequest = {
|
|
@@ -29,7 +32,13 @@ export type TokenBalanceRequest = {
|
|
|
29
32
|
* The chain to use.
|
|
30
33
|
*/
|
|
31
34
|
chain?: TokenBalanceChain | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The user to get the ERC20 balance of.
|
|
37
|
+
*/
|
|
32
38
|
user?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The symbol of the token for which the balance is checked..
|
|
41
|
+
*/
|
|
33
42
|
token: components.TokenEnum | string;
|
|
34
43
|
};
|
|
35
44
|
|
|
@@ -91,12 +91,7 @@ export type TokenPriceRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: TokenPriceChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the token for which to get the price.
|
|
100
95
|
*/
|
|
101
96
|
token?: TokenPriceToken | undefined;
|
|
102
97
|
};
|
|
@@ -29,6 +29,9 @@ export type UniswapLiquidityProvisionInRangeRequest = {
|
|
|
29
29
|
* The chain to use.
|
|
30
30
|
*/
|
|
31
31
|
chain?: UniswapLiquidityProvisionInRangeChain | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Token ID of the NFT representing the liquidity provisioned position.
|
|
34
|
+
*/
|
|
32
35
|
tokenId?: number | undefined;
|
|
33
36
|
};
|
|
34
37
|
|
|
@@ -184,29 +184,15 @@ export type UniswapPoolPriceRequest = {
|
|
|
184
184
|
*/
|
|
185
185
|
chain?: UniswapPoolPriceChain | undefined;
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @remarks
|
|
190
|
-
*
|
|
191
|
-
* This class is used to represent the token in the system. Notice individual
|
|
192
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
187
|
+
* The symbol of a token in the pool
|
|
193
188
|
*/
|
|
194
189
|
tokenIn?: UniswapPoolPriceTokenInToken | undefined;
|
|
195
190
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* @remarks
|
|
199
|
-
*
|
|
200
|
-
* This class is used to represent the token in the system. Notice individual
|
|
201
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
191
|
+
* The symbol of a token in the pool
|
|
202
192
|
*/
|
|
203
193
|
tokenOut?: UniswapPoolPriceTokenOutToken | undefined;
|
|
204
194
|
/**
|
|
205
|
-
* The
|
|
206
|
-
*
|
|
207
|
-
* @remarks
|
|
208
|
-
*
|
|
209
|
-
* Uniswap supports 4 different fee levels.
|
|
195
|
+
* The fee of the pool
|
|
210
196
|
*/
|
|
211
197
|
fee?: UniswapPoolPriceFeeEnum | undefined;
|
|
212
198
|
};
|
|
@@ -180,6 +180,9 @@ export type UniswapQuoteBuyExactlyFeeEnum = ClosedEnum<
|
|
|
180
180
|
typeof UniswapQuoteBuyExactlyFeeEnum
|
|
181
181
|
>;
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The amount of the token to swap to
|
|
185
|
+
*/
|
|
183
186
|
export type AmountOut = number | string;
|
|
184
187
|
|
|
185
188
|
export type UniswapQuoteBuyExactlyRequest = {
|
|
@@ -188,31 +191,20 @@ export type UniswapQuoteBuyExactlyRequest = {
|
|
|
188
191
|
*/
|
|
189
192
|
chain?: UniswapQuoteBuyExactlyChain | undefined;
|
|
190
193
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* @remarks
|
|
194
|
-
*
|
|
195
|
-
* This class is used to represent the token in the system. Notice individual
|
|
196
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
194
|
+
* The symbol of the token to swap from.
|
|
197
195
|
*/
|
|
198
196
|
tokenIn?: UniswapQuoteBuyExactlyTokenInToken | undefined;
|
|
199
197
|
/**
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* @remarks
|
|
203
|
-
*
|
|
204
|
-
* This class is used to represent the token in the system. Notice individual
|
|
205
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
198
|
+
* The symbol of the token to swap to.
|
|
206
199
|
*/
|
|
207
200
|
tokenOut?: UniswapQuoteBuyExactlyTokenOutToken | undefined;
|
|
208
201
|
/**
|
|
209
|
-
* The
|
|
210
|
-
*
|
|
211
|
-
* @remarks
|
|
212
|
-
*
|
|
213
|
-
* Uniswap supports 4 different fee levels.
|
|
202
|
+
* The fee to pay for the swap
|
|
214
203
|
*/
|
|
215
204
|
fee?: UniswapQuoteBuyExactlyFeeEnum | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* The amount of the token to swap to
|
|
207
|
+
*/
|
|
216
208
|
amountOut: number | string;
|
|
217
209
|
};
|
|
218
210
|
|
|
@@ -180,6 +180,9 @@ export type UniswapQuoteSellExactlyFeeEnum = ClosedEnum<
|
|
|
180
180
|
typeof UniswapQuoteSellExactlyFeeEnum
|
|
181
181
|
>;
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The amount of the token to swap from
|
|
185
|
+
*/
|
|
183
186
|
export type AmountIn = number | string;
|
|
184
187
|
|
|
185
188
|
export type UniswapQuoteSellExactlyRequest = {
|
|
@@ -188,31 +191,20 @@ export type UniswapQuoteSellExactlyRequest = {
|
|
|
188
191
|
*/
|
|
189
192
|
chain?: UniswapQuoteSellExactlyChain | undefined;
|
|
190
193
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* @remarks
|
|
194
|
-
*
|
|
195
|
-
* This class is used to represent the token in the system. Notice individual
|
|
196
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
194
|
+
* The symbol of the token to swap from.
|
|
197
195
|
*/
|
|
198
196
|
tokenIn?: UniswapQuoteSellExactlyTokenInToken | undefined;
|
|
199
197
|
/**
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* @remarks
|
|
203
|
-
*
|
|
204
|
-
* This class is used to represent the token in the system. Notice individual
|
|
205
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
198
|
+
* The symbol of the token to swap to.
|
|
206
199
|
*/
|
|
207
200
|
tokenOut?: UniswapQuoteSellExactlyTokenOutToken | undefined;
|
|
208
201
|
/**
|
|
209
|
-
* The
|
|
210
|
-
*
|
|
211
|
-
* @remarks
|
|
212
|
-
*
|
|
213
|
-
* Uniswap supports 4 different fee levels.
|
|
202
|
+
* The fee to pay for the swap
|
|
214
203
|
*/
|
|
215
204
|
fee?: UniswapQuoteSellExactlyFeeEnum | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* The amount of the token to swap from
|
|
207
|
+
*/
|
|
216
208
|
amountIn: number | string;
|
|
217
209
|
};
|
|
218
210
|
|