@compass-labs/api-sdk 2.2.75 → 2.2.76-rc.1
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/README.md +7 -3
- package/codeSamples_typescript.yaml +12 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +24 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +128 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +1 -0
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +30 -0
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -0
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +136 -0
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -0
- package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/accountsummary.js.map +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +12 -0
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js +4 -0
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +8 -6
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +3 -3
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts +4 -2
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +4 -0
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +9 -0
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +5 -0
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +4 -0
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +12 -0
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js +4 -0
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/marketdetail.d.ts +8 -6
- package/dist/commonjs/models/components/marketdetail.d.ts.map +1 -1
- package/dist/commonjs/models/components/marketdetail.js +3 -3
- package/dist/commonjs/models/components/marketdetail.js.map +1 -1
- package/dist/commonjs/models/components/morpholendingmarket.d.ts +80 -0
- package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -0
- package/dist/commonjs/models/components/morpholendingmarket.js +82 -0
- package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -0
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts +21 -0
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/morphomarketsresponse.js +52 -0
- package/dist/commonjs/models/components/morphomarketsresponse.js.map +1 -0
- package/dist/commonjs/models/components/redemption.d.ts +52 -0
- package/dist/commonjs/models/components/redemption.d.ts.map +1 -0
- package/dist/commonjs/models/components/redemption.js +73 -0
- package/dist/commonjs/models/components/redemption.js.map +1 -0
- package/dist/commonjs/models/components/redemptionsresponse.d.ts +17 -0
- package/dist/commonjs/models/components/redemptionsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/redemptionsresponse.js +51 -0
- package/dist/commonjs/models/components/redemptionsresponse.js.map +1 -0
- package/dist/commonjs/models/components/tokenizedassetclass.d.ts +9 -4
- package/dist/commonjs/models/components/tokenizedassetclass.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetclass.js +5 -2
- package/dist/commonjs/models/components/tokenizedassetclass.js.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetprovider.d.ts +1 -0
- package/dist/commonjs/models/components/tokenizedassetprovider.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetprovider.js +1 -0
- package/dist/commonjs/models/components/tokenizedassetprovider.js.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetstraderesponse.d.ts +22 -0
- package/dist/commonjs/models/components/tokenizedassetstraderesponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetstraderesponse.js +14 -1
- package/dist/commonjs/models/components/tokenizedassetstraderesponse.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +22 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js +57 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +1 -0
- package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.d.ts +43 -0
- package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.js +64 -0
- package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.js.map +1 -0
- package/dist/commonjs/sdk/credit.d.ts +12 -0
- package/dist/commonjs/sdk/credit.d.ts.map +1 -1
- package/dist/commonjs/sdk/credit.js +15 -0
- package/dist/commonjs/sdk/credit.js.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.d.ts +18 -0
- package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.js +21 -0
- package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +24 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.js +92 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +1 -0
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +30 -0
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -0
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +100 -0
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -0
- package/dist/esm/models/components/accountsummary.d.ts +4 -0
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
- package/dist/esm/models/components/accountsummary.js.map +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +12 -0
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js +4 -0
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +8 -6
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +3 -3
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js.map +1 -1
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts +4 -2
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +4 -0
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +4 -0
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +4 -0
- package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +9 -0
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +5 -0
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +4 -0
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +4 -0
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +4 -0
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +4 -0
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +12 -0
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js +4 -0
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/marketdetail.d.ts +8 -6
- package/dist/esm/models/components/marketdetail.d.ts.map +1 -1
- package/dist/esm/models/components/marketdetail.js +3 -3
- package/dist/esm/models/components/marketdetail.js.map +1 -1
- package/dist/esm/models/components/morpholendingmarket.d.ts +80 -0
- package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -0
- package/dist/esm/models/components/morpholendingmarket.js +45 -0
- package/dist/esm/models/components/morpholendingmarket.js.map +1 -0
- package/dist/esm/models/components/morphomarketsresponse.d.ts +21 -0
- package/dist/esm/models/components/morphomarketsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/morphomarketsresponse.js +15 -0
- package/dist/esm/models/components/morphomarketsresponse.js.map +1 -0
- package/dist/esm/models/components/redemption.d.ts +52 -0
- package/dist/esm/models/components/redemption.d.ts.map +1 -0
- package/dist/esm/models/components/redemption.js +36 -0
- package/dist/esm/models/components/redemption.js.map +1 -0
- package/dist/esm/models/components/redemptionsresponse.d.ts +17 -0
- package/dist/esm/models/components/redemptionsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/redemptionsresponse.js +14 -0
- package/dist/esm/models/components/redemptionsresponse.js.map +1 -0
- package/dist/esm/models/components/tokenizedassetclass.d.ts +9 -4
- package/dist/esm/models/components/tokenizedassetclass.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetclass.js +5 -2
- package/dist/esm/models/components/tokenizedassetclass.js.map +1 -1
- package/dist/esm/models/components/tokenizedassetprovider.d.ts +1 -0
- package/dist/esm/models/components/tokenizedassetprovider.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetprovider.js +1 -0
- package/dist/esm/models/components/tokenizedassetprovider.js.map +1 -1
- package/dist/esm/models/components/tokenizedassetstraderesponse.d.ts +22 -0
- package/dist/esm/models/components/tokenizedassetstraderesponse.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetstraderesponse.js +13 -0
- package/dist/esm/models/components/tokenizedassetstraderesponse.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +22 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.js +20 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.js.map +1 -0
- package/dist/esm/models/operations/v2tokenizedassetsredemptions.d.ts +43 -0
- package/dist/esm/models/operations/v2tokenizedassetsredemptions.d.ts.map +1 -0
- package/dist/esm/models/operations/v2tokenizedassetsredemptions.js +27 -0
- package/dist/esm/models/operations/v2tokenizedassetsredemptions.js.map +1 -0
- package/dist/esm/sdk/credit.d.ts +12 -0
- package/dist/esm/sdk/credit.d.ts.map +1 -1
- package/dist/esm/sdk/credit.js +15 -0
- package/dist/esm/sdk/credit.js.map +1 -1
- package/dist/esm/sdk/tokenizedassets.d.ts +18 -0
- package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/esm/sdk/tokenizedassets.js +21 -0
- package/dist/esm/sdk/tokenizedassets.js.map +1 -1
- package/docs/models/components/accountsummary.md +10 -10
- package/docs/models/components/collateralposition.md +16 -14
- package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.md +21 -18
- package/docs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.md +15 -15
- package/docs/models/components/creditborrowparams.md +9 -9
- package/docs/models/components/creditborrowrequest.md +19 -19
- package/docs/models/components/creditenablecollateralparams.md +6 -6
- package/docs/models/components/creditprotocol.md +5 -1
- package/docs/models/components/creditrepayparams.md +8 -8
- package/docs/models/components/creditrepayrequest.md +18 -18
- package/docs/models/components/creditsupplyparams.md +7 -7
- package/docs/models/components/creditwithdrawparams.md +7 -7
- package/docs/models/components/debtposition.md +15 -13
- package/docs/models/components/marketdetail.md +32 -29
- package/docs/models/components/morpholendingmarket.md +49 -0
- package/docs/models/components/morphomarketsresponse.md +21 -0
- package/docs/models/components/redemption.md +27 -0
- package/docs/models/components/redemptionsresponse.md +19 -0
- package/docs/models/components/redemptionstatus.md +17 -0
- package/docs/models/components/settlement.md +17 -0
- package/docs/models/components/tokenizedassetclass.md +6 -4
- package/docs/models/components/tokenizedassetprovider.md +2 -2
- package/docs/models/components/tokenizedassetstraderesponse.md +9 -6
- package/docs/models/operations/v2creditmorphomarketschain.md +15 -0
- package/docs/models/operations/v2creditmorphomarketsrequest.md +17 -0
- package/docs/models/operations/v2tokenizedassetsredemptionschain.md +17 -0
- package/docs/models/operations/v2tokenizedassetsredemptionsrequest.md +21 -0
- package/docs/sdks/credit/README.md +80 -0
- package/docs/sdks/tokenizedassets/README.md +90 -0
- package/openapi_prepped_for_speakeasy.json +451 -21
- package/package.json +1 -1
- package/src/funcs/creditCreditMorphoMarkets.ts +182 -0
- package/src/funcs/tokenizedAssetsTokenizedAssetsRedemptions.ts +192 -0
- package/src/models/components/accountsummary.ts +4 -0
- package/src/models/components/collateralposition.ts +16 -0
- package/src/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.ts +11 -9
- package/src/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.ts +4 -2
- package/src/models/components/creditborrowparams.ts +4 -0
- package/src/models/components/creditborrowrequest.ts +4 -0
- package/src/models/components/creditenablecollateralparams.ts +4 -0
- package/src/models/components/creditprotocol.ts +9 -0
- package/src/models/components/creditrepayparams.ts +4 -0
- package/src/models/components/creditrepayrequest.ts +4 -0
- package/src/models/components/creditsupplyparams.ts +4 -0
- package/src/models/components/creditwithdrawparams.ts +4 -0
- package/src/models/components/debtposition.ts +16 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/marketdetail.ts +11 -9
- package/src/models/components/morpholendingmarket.ts +133 -0
- package/src/models/components/morphomarketsresponse.ts +46 -0
- package/src/models/components/redemption.ts +89 -0
- package/src/models/components/redemptionsresponse.ts +38 -0
- package/src/models/components/tokenizedassetclass.ts +9 -4
- package/src/models/components/tokenizedassetprovider.ts +1 -0
- package/src/models/components/tokenizedassetstraderesponse.ts +28 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/v2creditmorphomarkets.ts +49 -0
- package/src/models/operations/v2tokenizedassetsredemptions.ts +72 -0
- package/src/sdk/credit.ts +23 -0
- package/src/sdk/tokenizedassets.ts +29 -0
|
@@ -36,7 +36,7 @@ export type MarketDetail = {
|
|
|
36
36
|
*/
|
|
37
37
|
name: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* On-chain ERC-20 address for this token, on the network given by `chain`.
|
|
40
40
|
*/
|
|
41
41
|
contractAddress: string;
|
|
42
42
|
/**
|
|
@@ -66,21 +66,23 @@ export type MarketDetail = {
|
|
|
66
66
|
/**
|
|
67
67
|
* Issuer/provider of a tokenized asset.
|
|
68
68
|
*/
|
|
69
|
-
provider
|
|
69
|
+
provider: TokenizedAssetProvider;
|
|
70
70
|
/**
|
|
71
71
|
* Asset class of a tokenized asset.
|
|
72
72
|
*
|
|
73
73
|
* @remarks
|
|
74
74
|
*
|
|
75
75
|
* `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
|
|
76
|
-
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`)
|
|
77
|
-
* swap-based `transact/buy` and `transact/sell` endpoints.
|
|
76
|
+
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
|
|
77
|
+
* trade via the swap-based `transact/buy` and `transact/sell` endpoints.
|
|
78
|
+
* `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
|
|
79
|
+
* *asynchronous* redemption request settled off-chain by the vault operator.
|
|
78
80
|
*/
|
|
79
|
-
assetClass
|
|
81
|
+
assetClass: TokenizedAssetClass;
|
|
80
82
|
/**
|
|
81
83
|
* The chain to use.
|
|
82
84
|
*/
|
|
83
|
-
chain
|
|
85
|
+
chain: Chain;
|
|
84
86
|
/**
|
|
85
87
|
* Trailing 7-day annualized NAV growth (decimal fraction string, e.g. '0.0512' = 5.12%). RWA yield assets only; null until enough NAV history exists.
|
|
86
88
|
*/
|
|
@@ -155,9 +157,9 @@ export const MarketDetail$inboundSchema: z.ZodType<
|
|
|
155
157
|
change_24h_pct: z.nullable(z.string()).optional(),
|
|
156
158
|
sectors: z.array(z.string()).optional(),
|
|
157
159
|
region_exposure: z.array(z.string()).optional(),
|
|
158
|
-
provider: TokenizedAssetProvider$inboundSchema
|
|
159
|
-
asset_class: TokenizedAssetClass$inboundSchema
|
|
160
|
-
chain: Chain$inboundSchema
|
|
160
|
+
provider: TokenizedAssetProvider$inboundSchema,
|
|
161
|
+
asset_class: TokenizedAssetClass$inboundSchema,
|
|
162
|
+
chain: Chain$inboundSchema,
|
|
161
163
|
apy_7d: z.nullable(z.string()).optional(),
|
|
162
164
|
apy_30d: z.nullable(z.string()).optional(),
|
|
163
165
|
tvl_usd: z.nullable(z.string()).optional(),
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A Morpho Blue lending market: one isolated (collateral, loan) pair.
|
|
13
|
+
*/
|
|
14
|
+
export type MorphoLendingMarket = {
|
|
15
|
+
/**
|
|
16
|
+
* Morpho Blue market id — the bytes32 keccak of the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Pass this to the Morpho credit actions to identify the market.
|
|
17
|
+
*/
|
|
18
|
+
marketId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Token that is supplied and borrowed in this market.
|
|
21
|
+
*/
|
|
22
|
+
loanToken: string;
|
|
23
|
+
/**
|
|
24
|
+
* Symbol of the loan token (e.g. USDC).
|
|
25
|
+
*/
|
|
26
|
+
loanTokenSymbol: string;
|
|
27
|
+
/**
|
|
28
|
+
* Decimals of the loan token.
|
|
29
|
+
*/
|
|
30
|
+
loanTokenDecimals: number;
|
|
31
|
+
/**
|
|
32
|
+
* Token accepted as collateral in this market.
|
|
33
|
+
*/
|
|
34
|
+
collateralToken: string;
|
|
35
|
+
/**
|
|
36
|
+
* Symbol of the collateral token (e.g. wstETH).
|
|
37
|
+
*/
|
|
38
|
+
collateralTokenSymbol: string;
|
|
39
|
+
/**
|
|
40
|
+
* Decimals of the collateral token.
|
|
41
|
+
*/
|
|
42
|
+
collateralTokenDecimals: number;
|
|
43
|
+
/**
|
|
44
|
+
* Oracle pricing the collateral in loan-token terms for this market.
|
|
45
|
+
*/
|
|
46
|
+
oracle: string;
|
|
47
|
+
/**
|
|
48
|
+
* Interest rate model contract of this market.
|
|
49
|
+
*/
|
|
50
|
+
irm: string;
|
|
51
|
+
/**
|
|
52
|
+
* Liquidation loan-to-value in percentage (e.g. 86 means a position is liquidatable once debt exceeds 86% of collateral value).
|
|
53
|
+
*/
|
|
54
|
+
lltv: string;
|
|
55
|
+
/**
|
|
56
|
+
* Current supply APY for lending the loan token, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable.
|
|
57
|
+
*/
|
|
58
|
+
supplyApy?: string | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable.
|
|
61
|
+
*/
|
|
62
|
+
borrowApy?: string | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Borrowed share of supplied assets, in percentage 0-100.
|
|
65
|
+
*/
|
|
66
|
+
utilization: string;
|
|
67
|
+
/**
|
|
68
|
+
* Total loan tokens supplied to the market, in token units.
|
|
69
|
+
*/
|
|
70
|
+
totalSupplyAssets: string;
|
|
71
|
+
/**
|
|
72
|
+
* Total loan tokens borrowed from the market, in token units.
|
|
73
|
+
*/
|
|
74
|
+
totalBorrowAssets: string;
|
|
75
|
+
/**
|
|
76
|
+
* Loan tokens available to borrow or withdraw (supplied - borrowed), in token units.
|
|
77
|
+
*/
|
|
78
|
+
availableLiquidity: string;
|
|
79
|
+
/**
|
|
80
|
+
* Protocol fee taken from interest, in percentage of interest (e.g. 0 means no fee).
|
|
81
|
+
*/
|
|
82
|
+
fee: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const MorphoLendingMarket$inboundSchema: z.ZodType<
|
|
87
|
+
MorphoLendingMarket,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.object({
|
|
91
|
+
market_id: z.string(),
|
|
92
|
+
loan_token: z.string(),
|
|
93
|
+
loan_token_symbol: z.string(),
|
|
94
|
+
loan_token_decimals: z.number().int(),
|
|
95
|
+
collateral_token: z.string(),
|
|
96
|
+
collateral_token_symbol: z.string(),
|
|
97
|
+
collateral_token_decimals: z.number().int(),
|
|
98
|
+
oracle: z.string(),
|
|
99
|
+
irm: z.string(),
|
|
100
|
+
lltv: z.string(),
|
|
101
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
102
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
103
|
+
utilization: z.string(),
|
|
104
|
+
total_supply_assets: z.string(),
|
|
105
|
+
total_borrow_assets: z.string(),
|
|
106
|
+
available_liquidity: z.string(),
|
|
107
|
+
fee: z.string(),
|
|
108
|
+
}).transform((v) => {
|
|
109
|
+
return remap$(v, {
|
|
110
|
+
"market_id": "marketId",
|
|
111
|
+
"loan_token": "loanToken",
|
|
112
|
+
"loan_token_symbol": "loanTokenSymbol",
|
|
113
|
+
"loan_token_decimals": "loanTokenDecimals",
|
|
114
|
+
"collateral_token": "collateralToken",
|
|
115
|
+
"collateral_token_symbol": "collateralTokenSymbol",
|
|
116
|
+
"collateral_token_decimals": "collateralTokenDecimals",
|
|
117
|
+
"supply_apy": "supplyApy",
|
|
118
|
+
"borrow_apy": "borrowApy",
|
|
119
|
+
"total_supply_assets": "totalSupplyAssets",
|
|
120
|
+
"total_borrow_assets": "totalBorrowAssets",
|
|
121
|
+
"available_liquidity": "availableLiquidity",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export function morphoLendingMarketFromJSON(
|
|
126
|
+
jsonString: string,
|
|
127
|
+
): SafeParseResult<MorphoLendingMarket, SDKValidationError> {
|
|
128
|
+
return safeParse(
|
|
129
|
+
jsonString,
|
|
130
|
+
(x) => MorphoLendingMarket$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
+
`Failed to parse 'MorphoLendingMarket' from JSON`,
|
|
132
|
+
);
|
|
133
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
MorphoLendingMarket,
|
|
11
|
+
MorphoLendingMarket$inboundSchema,
|
|
12
|
+
} from "./morpholendingmarket.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Curated Morpho Blue lending markets, read on-chain per request.
|
|
16
|
+
*/
|
|
17
|
+
export type MorphoMarketsResponse = {
|
|
18
|
+
/**
|
|
19
|
+
* Morpho Blue singleton contract the markets were read from.
|
|
20
|
+
*/
|
|
21
|
+
morpho: string;
|
|
22
|
+
/**
|
|
23
|
+
* Curated lending markets with live LLTV, APYs, utilization, and liquidity.
|
|
24
|
+
*/
|
|
25
|
+
markets?: Array<MorphoLendingMarket> | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const MorphoMarketsResponse$inboundSchema: z.ZodType<
|
|
30
|
+
MorphoMarketsResponse,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
morpho: z.string(),
|
|
35
|
+
markets: z.array(MorphoLendingMarket$inboundSchema).optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function morphoMarketsResponseFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<MorphoMarketsResponse, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => MorphoMarketsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'MorphoMarketsResponse' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
|
|
14
|
+
*/
|
|
15
|
+
export const RedemptionStatus = {
|
|
16
|
+
Pending: "pending",
|
|
17
|
+
Finalized: "finalized",
|
|
18
|
+
Rejected: "rejected",
|
|
19
|
+
Unknown: "unknown",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
|
|
23
|
+
*/
|
|
24
|
+
export type RedemptionStatus = ClosedEnum<typeof RedemptionStatus>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* One IXS vault redemption request, reconstructed on-chain.
|
|
28
|
+
*/
|
|
29
|
+
export type Redemption = {
|
|
30
|
+
/**
|
|
31
|
+
* On-chain redemption request id.
|
|
32
|
+
*/
|
|
33
|
+
id: number;
|
|
34
|
+
/**
|
|
35
|
+
* Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
|
|
36
|
+
*/
|
|
37
|
+
status: RedemptionStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Vault shares in the request (human units).
|
|
40
|
+
*/
|
|
41
|
+
shares: string;
|
|
42
|
+
/**
|
|
43
|
+
* For a `pending` request, the estimated net assets (after the exit fee) it would settle for at the current NAV — a preview, not a guarantee (settlement depends on the operator and the vault's available assets). Null once finalized or rejected.
|
|
44
|
+
*/
|
|
45
|
+
expectedNetAssets?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Unix timestamp when the redemption was requested.
|
|
48
|
+
*/
|
|
49
|
+
requestedAt: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix timestamp when finalized/rejected; null while pending.
|
|
52
|
+
*/
|
|
53
|
+
processedAt?: number | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const RedemptionStatus$inboundSchema: z.ZodNativeEnum<
|
|
58
|
+
typeof RedemptionStatus
|
|
59
|
+
> = z.nativeEnum(RedemptionStatus);
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const Redemption$inboundSchema: z.ZodType<
|
|
63
|
+
Redemption,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
unknown
|
|
66
|
+
> = z.object({
|
|
67
|
+
id: z.number().int(),
|
|
68
|
+
status: RedemptionStatus$inboundSchema,
|
|
69
|
+
shares: z.string(),
|
|
70
|
+
expected_net_assets: z.nullable(z.string()).optional(),
|
|
71
|
+
requested_at: z.number().int(),
|
|
72
|
+
processed_at: z.nullable(z.number().int()).optional(),
|
|
73
|
+
}).transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
"expected_net_assets": "expectedNetAssets",
|
|
76
|
+
"requested_at": "requestedAt",
|
|
77
|
+
"processed_at": "processedAt",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function redemptionFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<Redemption, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => Redemption$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'Redemption' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Redemption, Redemption$inboundSchema } from "./redemption.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* An owner's IXS redemption requests for one vault.
|
|
13
|
+
*/
|
|
14
|
+
export type RedemptionsResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* The owner's non-empty redemption requests for the vault, in ascending id order. Empty when the owner has never requested one.
|
|
17
|
+
*/
|
|
18
|
+
redemptions?: Array<Redemption> | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RedemptionsResponse$inboundSchema: z.ZodType<
|
|
23
|
+
RedemptionsResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
redemptions: z.array(Redemption$inboundSchema).optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function redemptionsResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<RedemptionsResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => RedemptionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'RedemptionsResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -11,14 +11,17 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
13
|
* `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
|
|
14
|
-
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`)
|
|
15
|
-
* swap-based `transact/buy` and `transact/sell` endpoints.
|
|
14
|
+
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
|
|
15
|
+
* trade via the swap-based `transact/buy` and `transact/sell` endpoints.
|
|
16
|
+
* `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
|
|
17
|
+
* *asynchronous* redemption request settled off-chain by the vault operator.
|
|
16
18
|
*/
|
|
17
19
|
export const TokenizedAssetClass = {
|
|
18
20
|
Equity: "EQUITY",
|
|
19
21
|
TBills: "T_BILLS",
|
|
20
22
|
BasisTrade: "BASIS_TRADE",
|
|
21
23
|
BtcYield: "BTC_YIELD",
|
|
24
|
+
ManagedVault: "MANAGED_VAULT",
|
|
22
25
|
} as const;
|
|
23
26
|
/**
|
|
24
27
|
* Asset class of a tokenized asset.
|
|
@@ -26,8 +29,10 @@ export const TokenizedAssetClass = {
|
|
|
26
29
|
* @remarks
|
|
27
30
|
*
|
|
28
31
|
* `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
|
|
29
|
-
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`)
|
|
30
|
-
* swap-based `transact/buy` and `transact/sell` endpoints.
|
|
32
|
+
* yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
|
|
33
|
+
* trade via the swap-based `transact/buy` and `transact/sell` endpoints.
|
|
34
|
+
* `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
|
|
35
|
+
* *asynchronous* redemption request settled off-chain by the vault operator.
|
|
31
36
|
*/
|
|
32
37
|
export type TokenizedAssetClass = ClosedEnum<typeof TokenizedAssetClass>;
|
|
33
38
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -16,6 +17,18 @@ import {
|
|
|
16
17
|
UnsignedTransaction$inboundSchema,
|
|
17
18
|
} from "./unsignedtransaction.js";
|
|
18
19
|
|
|
20
|
+
/**
|
|
21
|
+
* How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
|
|
22
|
+
*/
|
|
23
|
+
export const Settlement = {
|
|
24
|
+
Instant: "instant",
|
|
25
|
+
Async: "async",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
|
|
29
|
+
*/
|
|
30
|
+
export type Settlement = ClosedEnum<typeof Settlement>;
|
|
31
|
+
|
|
19
32
|
/**
|
|
20
33
|
* Unsigned trade execution for the owner to sign.
|
|
21
34
|
*
|
|
@@ -41,8 +54,20 @@ export type TokenizedAssetsTradeResponse = {
|
|
|
41
54
|
* Fee charged on the sell, in payout-token (USDC) units. Null when no fee was applied.
|
|
42
55
|
*/
|
|
43
56
|
feeAmount?: string | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
|
|
59
|
+
*/
|
|
60
|
+
settlement?: Settlement | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* For `async` settlements, the endpoint to poll for redemption status (`GET /v2/tokenized_assets/redemptions`). Null for instant trades.
|
|
63
|
+
*/
|
|
64
|
+
pollEndpoint?: string | null | undefined;
|
|
44
65
|
};
|
|
45
66
|
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const Settlement$inboundSchema: z.ZodNativeEnum<typeof Settlement> = z
|
|
69
|
+
.nativeEnum(Settlement);
|
|
70
|
+
|
|
46
71
|
/** @internal */
|
|
47
72
|
export const TokenizedAssetsTradeResponse$inboundSchema: z.ZodType<
|
|
48
73
|
TokenizedAssetsTradeResponse,
|
|
@@ -54,11 +79,14 @@ export const TokenizedAssetsTradeResponse$inboundSchema: z.ZodType<
|
|
|
54
79
|
.optional(),
|
|
55
80
|
estimated_amount_out: z.string(),
|
|
56
81
|
fee_amount: z.nullable(z.string()).optional(),
|
|
82
|
+
settlement: Settlement$inboundSchema.optional(),
|
|
83
|
+
poll_endpoint: z.nullable(z.string()).optional(),
|
|
57
84
|
}).transform((v) => {
|
|
58
85
|
return remap$(v, {
|
|
59
86
|
"eip_712": "eip712",
|
|
60
87
|
"estimated_amount_out": "estimatedAmountOut",
|
|
61
88
|
"fee_amount": "feeAmount",
|
|
89
|
+
"poll_endpoint": "pollEndpoint",
|
|
62
90
|
});
|
|
63
91
|
});
|
|
64
92
|
|
|
@@ -43,6 +43,7 @@ export * from "./v1wildcatmarket.js";
|
|
|
43
43
|
export * from "./v2cctpmint.js";
|
|
44
44
|
export * from "./v2creditbalances.js";
|
|
45
45
|
export * from "./v2crediteulermarkets.js";
|
|
46
|
+
export * from "./v2creditmorphomarkets.js";
|
|
46
47
|
export * from "./v2creditpositions.js";
|
|
47
48
|
export * from "./v2earnaavemarkets.js";
|
|
48
49
|
export * from "./v2earnbalances.js";
|
|
@@ -63,3 +64,4 @@ export * from "./v2tokenizedassetsorderorderhash.js";
|
|
|
63
64
|
export * from "./v2tokenizedassetsorderorderhashcancel.js";
|
|
64
65
|
export * from "./v2tokenizedassetsorderorderhashchargefee.js";
|
|
65
66
|
export * from "./v2tokenizedassetspositions.js";
|
|
67
|
+
export * from "./v2tokenizedassetsredemptions.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const V2CreditMorphoMarketsChain = {
|
|
9
|
+
Arbitrum: "arbitrum",
|
|
10
|
+
Base: "base",
|
|
11
|
+
Ethereum: "ethereum",
|
|
12
|
+
Tempo: "tempo",
|
|
13
|
+
} as const;
|
|
14
|
+
export type V2CreditMorphoMarketsChain = ClosedEnum<
|
|
15
|
+
typeof V2CreditMorphoMarketsChain
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export type V2CreditMorphoMarketsRequest = {
|
|
19
|
+
chain: V2CreditMorphoMarketsChain;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const V2CreditMorphoMarketsChain$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof V2CreditMorphoMarketsChain
|
|
25
|
+
> = z.nativeEnum(V2CreditMorphoMarketsChain);
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type V2CreditMorphoMarketsRequest$Outbound = {
|
|
29
|
+
chain: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const V2CreditMorphoMarketsRequest$outboundSchema: z.ZodType<
|
|
34
|
+
V2CreditMorphoMarketsRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
V2CreditMorphoMarketsRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
chain: V2CreditMorphoMarketsChain$outboundSchema,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function v2CreditMorphoMarketsRequestToJSON(
|
|
42
|
+
v2CreditMorphoMarketsRequest: V2CreditMorphoMarketsRequest,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
V2CreditMorphoMarketsRequest$outboundSchema.parse(
|
|
46
|
+
v2CreditMorphoMarketsRequest,
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The chain to use.
|
|
10
|
+
*/
|
|
11
|
+
export const V2TokenizedAssetsRedemptionsChain = {
|
|
12
|
+
Base: "base",
|
|
13
|
+
Ethereum: "ethereum",
|
|
14
|
+
Arbitrum: "arbitrum",
|
|
15
|
+
Hyperevm: "hyperevm",
|
|
16
|
+
Tempo: "tempo",
|
|
17
|
+
Bsc: "bsc",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* The chain to use.
|
|
21
|
+
*/
|
|
22
|
+
export type V2TokenizedAssetsRedemptionsChain = ClosedEnum<
|
|
23
|
+
typeof V2TokenizedAssetsRedemptionsChain
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export type V2TokenizedAssetsRedemptionsRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The owner of the Tokenized Assets Account whose IXS redemption requests to read. Requests are reconstructed on-chain from the derived product account (the request receiver).
|
|
29
|
+
*/
|
|
30
|
+
owner: string;
|
|
31
|
+
/**
|
|
32
|
+
* Network the IXS vault lives on (IXS managed vaults are on BNB Smart Chain).
|
|
33
|
+
*/
|
|
34
|
+
chain?: V2TokenizedAssetsRedemptionsChain | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The IXS vault handle to read redemptions for (e.g. 'ixv1').
|
|
37
|
+
*/
|
|
38
|
+
vault?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const V2TokenizedAssetsRedemptionsChain$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof V2TokenizedAssetsRedemptionsChain
|
|
44
|
+
> = z.nativeEnum(V2TokenizedAssetsRedemptionsChain);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type V2TokenizedAssetsRedemptionsRequest$Outbound = {
|
|
48
|
+
owner: string;
|
|
49
|
+
chain?: string | undefined;
|
|
50
|
+
vault?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const V2TokenizedAssetsRedemptionsRequest$outboundSchema: z.ZodType<
|
|
55
|
+
V2TokenizedAssetsRedemptionsRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
V2TokenizedAssetsRedemptionsRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
owner: z.string(),
|
|
60
|
+
chain: V2TokenizedAssetsRedemptionsChain$outboundSchema.optional(),
|
|
61
|
+
vault: z.string().optional(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function v2TokenizedAssetsRedemptionsRequestToJSON(
|
|
65
|
+
v2TokenizedAssetsRedemptionsRequest: V2TokenizedAssetsRedemptionsRequest,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
V2TokenizedAssetsRedemptionsRequest$outboundSchema.parse(
|
|
69
|
+
v2TokenizedAssetsRedemptionsRequest,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
package/src/sdk/credit.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { creditCreditBorrow } from "../funcs/creditCreditBorrow.js";
|
|
|
7
7
|
import { creditCreditBundle } from "../funcs/creditCreditBundle.js";
|
|
8
8
|
import { creditCreditCreateAccount } from "../funcs/creditCreditCreateAccount.js";
|
|
9
9
|
import { creditCreditEulerMarkets } from "../funcs/creditCreditEulerMarkets.js";
|
|
10
|
+
import { creditCreditMorphoMarkets } from "../funcs/creditCreditMorphoMarkets.js";
|
|
10
11
|
import { creditCreditPositions } from "../funcs/creditCreditPositions.js";
|
|
11
12
|
import { creditCreditRepay } from "../funcs/creditCreditRepay.js";
|
|
12
13
|
import { creditCreditTransfer } from "../funcs/creditCreditTransfer.js";
|
|
@@ -78,6 +79,28 @@ export class Credit extends ClientSDK {
|
|
|
78
79
|
));
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
/**
|
|
83
|
+
* List curated Morpho markets
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* List curated Morpho Blue lending markets for a chain.
|
|
87
|
+
*
|
|
88
|
+
* Morpho Blue is permissionless, so credit actions identify a market by its
|
|
89
|
+
* bytes32 market id. This returns the curated market set with live LLTV,
|
|
90
|
+
* supply/borrow APY, utilization, and available liquidity -- read on-chain per
|
|
91
|
+
* request -- so callers know which market_id to use and what it currently costs.
|
|
92
|
+
*/
|
|
93
|
+
async creditMorphoMarkets(
|
|
94
|
+
request: operations.V2CreditMorphoMarketsRequest,
|
|
95
|
+
options?: RequestOptions,
|
|
96
|
+
): Promise<components.MorphoMarketsResponse> {
|
|
97
|
+
return unwrapAsync(creditCreditMorphoMarkets(
|
|
98
|
+
this,
|
|
99
|
+
request,
|
|
100
|
+
options,
|
|
101
|
+
));
|
|
102
|
+
}
|
|
103
|
+
|
|
81
104
|
/**
|
|
82
105
|
* Create credit account
|
|
83
106
|
*
|
|
@@ -13,6 +13,7 @@ import { tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee } from "../funcs/
|
|
|
13
13
|
import { tokenizedAssetsTokenizedAssetsOrderSubmit } from "../funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js";
|
|
14
14
|
import { tokenizedAssetsTokenizedAssetsPositions } from "../funcs/tokenizedAssetsTokenizedAssetsPositions.js";
|
|
15
15
|
import { tokenizedAssetsTokenizedAssetsQuote } from "../funcs/tokenizedAssetsTokenizedAssetsQuote.js";
|
|
16
|
+
import { tokenizedAssetsTokenizedAssetsRedemptions } from "../funcs/tokenizedAssetsTokenizedAssetsRedemptions.js";
|
|
16
17
|
import { tokenizedAssetsTokenizedAssetsTransactBuy } from "../funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js";
|
|
17
18
|
import { tokenizedAssetsTokenizedAssetsTransactSell } from "../funcs/tokenizedAssetsTokenizedAssetsTransactSell.js";
|
|
18
19
|
import { tokenizedAssetsTokenizedAssetsTransfer } from "../funcs/tokenizedAssetsTokenizedAssetsTransfer.js";
|
|
@@ -162,6 +163,34 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
162
163
|
));
|
|
163
164
|
}
|
|
164
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Get IXS vault redemption requests for an owner
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
* Get an owner's IXS vault redemption requests (async redemption status).
|
|
171
|
+
*
|
|
172
|
+
* IXS managed-vault **sells** are asynchronous: `/transact/sell` returns a
|
|
173
|
+
* `requestRedeem` transaction, and the vault operator settles it off-chain
|
|
174
|
+
* later. This endpoint reconstructs the owner's requests directly from the
|
|
175
|
+
* vault on every call (Compass persists no async state) — each entry carries
|
|
176
|
+
* its `status` (`pending` | `finalized` | `rejected`), the `shares` requested,
|
|
177
|
+
* and, while `pending`, the `expected_net_assets` it would settle for at the
|
|
178
|
+
* current NAV (a preview, not a guarantee).
|
|
179
|
+
*
|
|
180
|
+
* IXS vaults live on BNB Smart Chain — pass `chain=bsc` (the default) and the
|
|
181
|
+
* `vault` handle (default `ixv1`).
|
|
182
|
+
*/
|
|
183
|
+
async tokenizedAssetsRedemptions(
|
|
184
|
+
request: operations.V2TokenizedAssetsRedemptionsRequest,
|
|
185
|
+
options?: RequestOptions,
|
|
186
|
+
): Promise<components.RedemptionsResponse> {
|
|
187
|
+
return unwrapAsync(tokenizedAssetsTokenizedAssetsRedemptions(
|
|
188
|
+
this,
|
|
189
|
+
request,
|
|
190
|
+
options,
|
|
191
|
+
));
|
|
192
|
+
}
|
|
193
|
+
|
|
165
194
|
/**
|
|
166
195
|
* Create a Tokenized Assets Account
|
|
167
196
|
*
|