@compass-labs/api-sdk 2.2.76-rc.3 → 2.2.76
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 +3 -7
- package/codeSamples_typescript.yaml +0 -12
- package/dist/commonjs/models/components/aavelooprequest.d.ts +16 -16
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.js +17 -17
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
- package/dist/commonjs/models/components/accountsummary.d.ts +0 -4
- 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 +0 -12
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js +0 -4
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +0 -9
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js +0 -2
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +0 -9
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js +0 -2
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +0 -4
- 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 +0 -9
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +0 -5
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +0 -9
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js +0 -2
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +0 -9
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js +0 -2
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +0 -9
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js +0 -2
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +0 -9
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js +0 -2
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +0 -12
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js +0 -4
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -6
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -6
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/credit.d.ts +0 -32
- package/dist/commonjs/sdk/credit.d.ts.map +1 -1
- package/dist/commonjs/sdk/credit.js +0 -38
- package/dist/commonjs/sdk/credit.js.map +1 -1
- package/dist/esm/models/components/aavelooprequest.d.ts +16 -16
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/aavelooprequest.js +12 -12
- package/dist/esm/models/components/aavelooprequest.js.map +1 -1
- package/dist/esm/models/components/accountsummary.d.ts +0 -4
- 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 +0 -12
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js +0 -4
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +0 -9
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js +0 -2
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +0 -9
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js +0 -2
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +0 -4
- 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 +0 -9
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +0 -5
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +0 -9
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js +0 -2
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +0 -9
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js +0 -2
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +0 -9
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js +0 -2
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +0 -9
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js +0 -2
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +0 -12
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js +0 -4
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -6
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -6
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/credit.d.ts +0 -32
- package/dist/esm/sdk/credit.d.ts.map +1 -1
- package/dist/esm/sdk/credit.js +0 -38
- package/dist/esm/sdk/credit.js.map +1 -1
- package/docs/models/components/aavelooprequest.md +4 -4
- package/docs/models/components/accountsummary.md +10 -10
- package/docs/models/components/collateralposition.md +14 -16
- package/docs/models/components/creditborrowparams.md +9 -10
- package/docs/models/components/creditborrowrequest.md +19 -20
- package/docs/models/components/creditenablecollateralparams.md +6 -6
- package/docs/models/components/creditprotocol.md +1 -5
- package/docs/models/components/creditrepayparams.md +8 -9
- package/docs/models/components/creditrepayrequest.md +18 -19
- package/docs/models/components/creditsupplyparams.md +7 -8
- package/docs/models/components/creditwithdrawparams.md +7 -8
- package/docs/models/components/debtposition.md +13 -15
- package/docs/models/components/{aavelooprequestinitialcollateralamount.md → initialcollateralamount.md} +1 -1
- package/docs/models/components/{aavelooprequestloantovalue.md → loantovalue.md} +1 -1
- package/docs/models/components/{aavelooprequestmaxslippagepercent.md → maxslippagepercent.md} +1 -1
- package/docs/models/components/{aavelooprequestmultiplier.md → multiplier.md} +1 -1
- package/docs/sdks/credit/README.md +0 -186
- package/examples/node_modules/tsx/dist/cli.cjs +1 -1
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/loader.cjs +1 -1
- package/examples/node_modules/tsx/dist/loader.mjs +1 -1
- package/examples/node_modules/tsx/dist/package-BhsaYzSJ.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-REq4Oepp.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-BBZNEaBg.cjs +2 -0
- package/examples/node_modules/tsx/dist/register-tkXbOgAS.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.cjs +1 -1
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/package.json +1 -1
- package/examples/package-lock.json +3 -3
- package/openapi_prepped_for_speakeasy.json +2 -658
- package/package.json +1 -1
- package/src/models/components/aavelooprequest.ts +30 -43
- package/src/models/components/accountsummary.ts +0 -4
- package/src/models/components/collateralposition.ts +0 -16
- package/src/models/components/creditborrowparams.ts +0 -11
- package/src/models/components/creditborrowrequest.ts +0 -11
- package/src/models/components/creditenablecollateralparams.ts +0 -4
- package/src/models/components/creditprotocol.ts +0 -9
- package/src/models/components/creditrepayparams.ts +0 -11
- package/src/models/components/creditrepayrequest.ts +0 -11
- package/src/models/components/creditsupplyparams.ts +0 -11
- package/src/models/components/creditwithdrawparams.ts +0 -11
- package/src/models/components/debtposition.ts +0 -16
- package/src/models/components/index.ts +0 -6
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/credit.ts +0 -54
- package/dist/commonjs/funcs/creditCreditLoop.d.ts +0 -31
- package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +0 -1
- package/dist/commonjs/funcs/creditCreditLoop.js +0 -132
- package/dist/commonjs/funcs/creditCreditLoop.js.map +0 -1
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +0 -24
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +0 -128
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +0 -1
- package/dist/commonjs/models/components/creditlooppreview.d.ts +0 -45
- package/dist/commonjs/models/components/creditlooppreview.d.ts.map +0 -1
- package/dist/commonjs/models/components/creditlooppreview.js +0 -68
- package/dist/commonjs/models/components/creditlooppreview.js.map +0 -1
- package/dist/commonjs/models/components/creditlooprequest.d.ts +0 -125
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/creditlooprequest.js +0 -98
- package/dist/commonjs/models/components/creditlooprequest.js.map +0 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts +0 -27
- package/dist/commonjs/models/components/creditloopresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/creditloopresponse.js +0 -61
- package/dist/commonjs/models/components/creditloopresponse.js.map +0 -1
- package/dist/commonjs/models/components/looplegpreview.d.ts +0 -24
- package/dist/commonjs/models/components/looplegpreview.d.ts.map +0 -1
- package/dist/commonjs/models/components/looplegpreview.js +0 -59
- package/dist/commonjs/models/components/looplegpreview.js.map +0 -1
- package/dist/commonjs/models/components/morpholendingmarket.d.ts +0 -80
- package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +0 -1
- package/dist/commonjs/models/components/morpholendingmarket.js +0 -82
- package/dist/commonjs/models/components/morpholendingmarket.js.map +0 -1
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts +0 -21
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/morphomarketsresponse.js +0 -52
- package/dist/commonjs/models/components/morphomarketsresponse.js.map +0 -1
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +0 -22
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js +0 -57
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +0 -1
- package/dist/esm/funcs/creditCreditLoop.d.ts +0 -31
- package/dist/esm/funcs/creditCreditLoop.d.ts.map +0 -1
- package/dist/esm/funcs/creditCreditLoop.js +0 -96
- package/dist/esm/funcs/creditCreditLoop.js.map +0 -1
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +0 -24
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
- package/dist/esm/funcs/creditCreditMorphoMarkets.js +0 -92
- package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +0 -1
- package/dist/esm/models/components/creditlooppreview.d.ts +0 -45
- package/dist/esm/models/components/creditlooppreview.d.ts.map +0 -1
- package/dist/esm/models/components/creditlooppreview.js +0 -31
- package/dist/esm/models/components/creditlooppreview.js.map +0 -1
- package/dist/esm/models/components/creditlooprequest.d.ts +0 -125
- package/dist/esm/models/components/creditlooprequest.d.ts.map +0 -1
- package/dist/esm/models/components/creditlooprequest.js +0 -57
- package/dist/esm/models/components/creditlooprequest.js.map +0 -1
- package/dist/esm/models/components/creditloopresponse.d.ts +0 -27
- package/dist/esm/models/components/creditloopresponse.d.ts.map +0 -1
- package/dist/esm/models/components/creditloopresponse.js +0 -24
- package/dist/esm/models/components/creditloopresponse.js.map +0 -1
- package/dist/esm/models/components/looplegpreview.d.ts +0 -24
- package/dist/esm/models/components/looplegpreview.d.ts.map +0 -1
- package/dist/esm/models/components/looplegpreview.js +0 -22
- package/dist/esm/models/components/looplegpreview.js.map +0 -1
- package/dist/esm/models/components/morpholendingmarket.d.ts +0 -80
- package/dist/esm/models/components/morpholendingmarket.d.ts.map +0 -1
- package/dist/esm/models/components/morpholendingmarket.js +0 -45
- package/dist/esm/models/components/morpholendingmarket.js.map +0 -1
- package/dist/esm/models/components/morphomarketsresponse.d.ts +0 -21
- package/dist/esm/models/components/morphomarketsresponse.d.ts.map +0 -1
- package/dist/esm/models/components/morphomarketsresponse.js +0 -15
- package/dist/esm/models/components/morphomarketsresponse.js.map +0 -1
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +0 -22
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
- package/dist/esm/models/operations/v2creditmorphomarkets.js +0 -20
- package/dist/esm/models/operations/v2creditmorphomarkets.js.map +0 -1
- package/docs/models/components/creditlooppreview.md +0 -33
- package/docs/models/components/creditlooprequest.md +0 -41
- package/docs/models/components/creditlooprequestinitialcollateralamount.md +0 -19
- package/docs/models/components/creditlooprequestloantovalue.md +0 -19
- package/docs/models/components/creditlooprequestmaxslippagepercent.md +0 -19
- package/docs/models/components/creditlooprequestmultiplier.md +0 -19
- package/docs/models/components/creditloopresponse.md +0 -30
- package/docs/models/components/looplegpreview.md +0 -21
- package/docs/models/components/morpholendingmarket.md +0 -49
- package/docs/models/components/morphomarketsresponse.md +0 -21
- package/docs/models/operations/v2creditmorphomarketschain.md +0 -15
- package/docs/models/operations/v2creditmorphomarketsrequest.md +0 -17
- package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-DMqO70yR.cjs +0 -1
- package/examples/node_modules/tsx/dist/register-CKju0f8h.cjs +0 -2
- package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +0 -2
- package/src/funcs/creditCreditLoop.ts +0 -184
- package/src/funcs/creditCreditMorphoMarkets.ts +0 -182
- package/src/models/components/creditlooppreview.ts +0 -86
- package/src/models/components/creditlooprequest.ts +0 -235
- package/src/models/components/creditloopresponse.ts +0 -65
- package/src/models/components/looplegpreview.ts +0 -54
- package/src/models/components/morpholendingmarket.ts +0 -133
- package/src/models/components/morphomarketsresponse.ts +0 -46
- package/src/models/operations/v2creditmorphomarkets.ts +0 -49
package/README.md
CHANGED
|
@@ -171,10 +171,8 @@ run();
|
|
|
171
171
|
* [creditPositions](docs/sdks/credit/README.md#creditpositions) - List credit positions
|
|
172
172
|
* [creditBalances](docs/sdks/credit/README.md#creditbalances) - Get credit account token balances
|
|
173
173
|
* [creditEulerMarkets](docs/sdks/credit/README.md#crediteulermarkets) - List curated Euler markets
|
|
174
|
-
* [creditMorphoMarkets](docs/sdks/credit/README.md#creditmorphomarkets) - List curated Morpho markets
|
|
175
174
|
* [creditCreateAccount](docs/sdks/credit/README.md#creditcreateaccount) - Create credit account
|
|
176
175
|
* [creditBorrow](docs/sdks/credit/README.md#creditborrow) - Borrow against collateral
|
|
177
|
-
* [creditLoop](docs/sdks/credit/README.md#creditloop) - Open a leveraged loop
|
|
178
176
|
* [creditTransfer](docs/sdks/credit/README.md#credittransfer) - Transfer tokens to/from Credit Account
|
|
179
177
|
* [creditRepay](docs/sdks/credit/README.md#creditrepay) - Repay debt and withdraw collateral
|
|
180
178
|
* [creditBundle](docs/sdks/credit/README.md#creditbundle) - Execute multiple credit actions
|
|
@@ -382,8 +380,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
382
380
|
- [`creditCreditBundle`](docs/sdks/credit/README.md#creditbundle) - Execute multiple credit actions
|
|
383
381
|
- [`creditCreditCreateAccount`](docs/sdks/credit/README.md#creditcreateaccount) - Create credit account
|
|
384
382
|
- [`creditCreditEulerMarkets`](docs/sdks/credit/README.md#crediteulermarkets) - List curated Euler markets
|
|
385
|
-
- [`creditCreditLoop`](docs/sdks/credit/README.md#creditloop) - Open a leveraged loop
|
|
386
|
-
- [`creditCreditMorphoMarkets`](docs/sdks/credit/README.md#creditmorphomarkets) - List curated Morpho markets
|
|
387
383
|
- [`creditCreditPositions`](docs/sdks/credit/README.md#creditpositions) - List credit positions
|
|
388
384
|
- [`creditCreditRepay`](docs/sdks/credit/README.md#creditrepay) - Repay debt and withdraw collateral
|
|
389
385
|
- [`creditCreditTransfer`](docs/sdks/credit/README.md#credittransfer) - Transfer tokens to/from Credit Account
|
|
@@ -631,9 +627,9 @@ run();
|
|
|
631
627
|
|
|
632
628
|
|
|
633
629
|
**Inherit from [`CompassAPISDKError`](./src/models/errors/compassapisdkerror.ts)**:
|
|
634
|
-
* [`TokenizedAssetsErrorResponse`](./src/models/errors/tokenizedassetserrorresponse.ts): Standard error envelope returned by every non-2xx response. Surfaced in OpenAPI ``responses`` declarations so SDK consumers can decode failures uniformly without inspecting per-status-code shapes. Applicable to 12 of
|
|
635
|
-
* [`OnrampErrorResponse`](./src/models/errors/onramperrorresponse.ts): Standard error envelope returned by every non-2xx on-ramp response. Surfaced in OpenAPI ``responses`` declarations so SDK consumers can decode failures uniformly without inspecting per-status-code shapes. Applicable to 3 of
|
|
636
|
-
* [`MintPrepareNotFoundResponseError`](./src/models/errors/mintpreparenotfoundresponseerror.ts): Response when the burn event has not been found yet. This means the burn transaction hasn't been confirmed on-chain yet, or the user hasn't broadcast the burn transaction. Status code `404`. Applicable to 1 of
|
|
630
|
+
* [`TokenizedAssetsErrorResponse`](./src/models/errors/tokenizedassetserrorresponse.ts): Standard error envelope returned by every non-2xx response. Surfaced in OpenAPI ``responses`` declarations so SDK consumers can decode failures uniformly without inspecting per-status-code shapes. Applicable to 12 of 137 methods.*
|
|
631
|
+
* [`OnrampErrorResponse`](./src/models/errors/onramperrorresponse.ts): Standard error envelope returned by every non-2xx on-ramp response. Surfaced in OpenAPI ``responses`` declarations so SDK consumers can decode failures uniformly without inspecting per-status-code shapes. Applicable to 3 of 137 methods.*
|
|
632
|
+
* [`MintPrepareNotFoundResponseError`](./src/models/errors/mintpreparenotfoundresponseerror.ts): Response when the burn event has not been found yet. This means the burn transaction hasn't been confirmed on-chain yet, or the user hasn't broadcast the burn transaction. Status code `404`. Applicable to 1 of 137 methods.*
|
|
637
633
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
638
634
|
|
|
639
635
|
</details>
|
|
@@ -525,18 +525,6 @@ actions:
|
|
|
525
525
|
- "lang": "typescript"
|
|
526
526
|
"label": "Typescript (SDK)"
|
|
527
527
|
"source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.credit.creditEulerMarkets({\n chain: \"ethereum\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
528
|
-
- target: $["paths"]["/v2/credit/loop"]["post"]
|
|
529
|
-
update:
|
|
530
|
-
"x-codeSamples":
|
|
531
|
-
- "lang": "typescript"
|
|
532
|
-
"label": "Typescript (SDK)"
|
|
533
|
-
"source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.credit.creditLoop({\n owner: \"0x5e5b00ed886A6879C2B934612D2312975427fcAf\",\n chain: \"ethereum\",\n protocol: \"AAVE\",\n collateralToken: \"WETH\",\n borrowToken: \"USDC\",\n initialCollateralAmount: 1,\n multiplier: 2,\n loanToValue: 70,\n maxSlippagePercent: 0.5,\n gasSponsorship: false,\n });\n\n console.log(result);\n}\n\nrun();"
|
|
534
|
-
- target: $["paths"]["/v2/credit/morpho_markets"]["get"]
|
|
535
|
-
update:
|
|
536
|
-
"x-codeSamples":
|
|
537
|
-
- "lang": "typescript"
|
|
538
|
-
"label": "Typescript (SDK)"
|
|
539
|
-
"source": "import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.credit.creditMorphoMarkets({\n chain: \"ethereum\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
540
528
|
- target: $["paths"]["/v2/credit/positions"]["get"]
|
|
541
529
|
update:
|
|
542
530
|
"x-codeSamples":
|
|
@@ -10,19 +10,19 @@ export type AaveLoopRequestChain = ClosedEnum<typeof AaveLoopRequestChain>;
|
|
|
10
10
|
/**
|
|
11
11
|
* Amount of collateral token to supply to Aave
|
|
12
12
|
*/
|
|
13
|
-
export type
|
|
13
|
+
export type InitialCollateralAmount = number | string;
|
|
14
14
|
/**
|
|
15
15
|
* Leverage multiplier. Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type Multiplier = number | string;
|
|
18
18
|
/**
|
|
19
19
|
* Maximum allowed slippage for token swaps in percentage
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type MaxSlippagePercent = number | string;
|
|
22
22
|
/**
|
|
23
23
|
* Loan To Value percentage of the loop
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type LoanToValue = number | string;
|
|
26
26
|
/**
|
|
27
27
|
* Request model for executing an Aave loop strategy.
|
|
28
28
|
*/
|
|
@@ -80,25 +80,25 @@ export type AaveLoopRequest = {
|
|
|
80
80
|
/** @internal */
|
|
81
81
|
export declare const AaveLoopRequestChain$outboundSchema: z.ZodNativeEnum<typeof AaveLoopRequestChain>;
|
|
82
82
|
/** @internal */
|
|
83
|
-
export type
|
|
83
|
+
export type InitialCollateralAmount$Outbound = number | string;
|
|
84
84
|
/** @internal */
|
|
85
|
-
export declare const
|
|
86
|
-
export declare function
|
|
85
|
+
export declare const InitialCollateralAmount$outboundSchema: z.ZodType<InitialCollateralAmount$Outbound, z.ZodTypeDef, InitialCollateralAmount>;
|
|
86
|
+
export declare function initialCollateralAmountToJSON(initialCollateralAmount: InitialCollateralAmount): string;
|
|
87
87
|
/** @internal */
|
|
88
|
-
export type
|
|
88
|
+
export type Multiplier$Outbound = number | string;
|
|
89
89
|
/** @internal */
|
|
90
|
-
export declare const
|
|
91
|
-
export declare function
|
|
90
|
+
export declare const Multiplier$outboundSchema: z.ZodType<Multiplier$Outbound, z.ZodTypeDef, Multiplier>;
|
|
91
|
+
export declare function multiplierToJSON(multiplier: Multiplier): string;
|
|
92
92
|
/** @internal */
|
|
93
|
-
export type
|
|
93
|
+
export type MaxSlippagePercent$Outbound = number | string;
|
|
94
94
|
/** @internal */
|
|
95
|
-
export declare const
|
|
96
|
-
export declare function
|
|
95
|
+
export declare const MaxSlippagePercent$outboundSchema: z.ZodType<MaxSlippagePercent$Outbound, z.ZodTypeDef, MaxSlippagePercent>;
|
|
96
|
+
export declare function maxSlippagePercentToJSON(maxSlippagePercent: MaxSlippagePercent): string;
|
|
97
97
|
/** @internal */
|
|
98
|
-
export type
|
|
98
|
+
export type LoanToValue$Outbound = number | string;
|
|
99
99
|
/** @internal */
|
|
100
|
-
export declare const
|
|
101
|
-
export declare function
|
|
100
|
+
export declare const LoanToValue$outboundSchema: z.ZodType<LoanToValue$Outbound, z.ZodTypeDef, LoanToValue>;
|
|
101
|
+
export declare function loanToValueToJSON(loanToValue: LoanToValue): string;
|
|
102
102
|
/** @internal */
|
|
103
103
|
export type AaveLoopRequest$Outbound = {
|
|
104
104
|
chain: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models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AAW,CACwB,CAAC;AAEtC,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,oBAAoB,CAAC,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,CAAC;IACvE,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,sBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CA6Bf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.AaveLoopRequest$outboundSchema = exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
39
|
+
exports.AaveLoopRequest$outboundSchema = exports.LoanToValue$outboundSchema = exports.MaxSlippagePercent$outboundSchema = exports.Multiplier$outboundSchema = exports.InitialCollateralAmount$outboundSchema = exports.AaveLoopRequestChain$outboundSchema = exports.AaveLoopRequestChain = void 0;
|
|
40
|
+
exports.initialCollateralAmountToJSON = initialCollateralAmountToJSON;
|
|
41
|
+
exports.multiplierToJSON = multiplierToJSON;
|
|
42
|
+
exports.maxSlippagePercentToJSON = maxSlippagePercentToJSON;
|
|
43
|
+
exports.loanToValueToJSON = loanToValueToJSON;
|
|
44
44
|
exports.aaveLoopRequestToJSON = aaveLoopRequestToJSON;
|
|
45
45
|
const z = __importStar(require("zod/v3"));
|
|
46
46
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -53,24 +53,24 @@ exports.AaveLoopRequestChain = {
|
|
|
53
53
|
/** @internal */
|
|
54
54
|
exports.AaveLoopRequestChain$outboundSchema = z.nativeEnum(exports.AaveLoopRequestChain);
|
|
55
55
|
/** @internal */
|
|
56
|
-
exports.
|
|
57
|
-
function
|
|
58
|
-
return JSON.stringify(exports.
|
|
56
|
+
exports.InitialCollateralAmount$outboundSchema = z.union([z.number(), z.string()]);
|
|
57
|
+
function initialCollateralAmountToJSON(initialCollateralAmount) {
|
|
58
|
+
return JSON.stringify(exports.InitialCollateralAmount$outboundSchema.parse(initialCollateralAmount));
|
|
59
59
|
}
|
|
60
60
|
/** @internal */
|
|
61
|
-
exports.
|
|
62
|
-
function
|
|
63
|
-
return JSON.stringify(exports.
|
|
61
|
+
exports.Multiplier$outboundSchema = z.union([z.number(), z.string()]);
|
|
62
|
+
function multiplierToJSON(multiplier) {
|
|
63
|
+
return JSON.stringify(exports.Multiplier$outboundSchema.parse(multiplier));
|
|
64
64
|
}
|
|
65
65
|
/** @internal */
|
|
66
|
-
exports.
|
|
67
|
-
function
|
|
68
|
-
return JSON.stringify(exports.
|
|
66
|
+
exports.MaxSlippagePercent$outboundSchema = z.union([z.number(), z.string()]);
|
|
67
|
+
function maxSlippagePercentToJSON(maxSlippagePercent) {
|
|
68
|
+
return JSON.stringify(exports.MaxSlippagePercent$outboundSchema.parse(maxSlippagePercent));
|
|
69
69
|
}
|
|
70
70
|
/** @internal */
|
|
71
|
-
exports.
|
|
72
|
-
function
|
|
73
|
-
return JSON.stringify(exports.
|
|
71
|
+
exports.LoanToValue$outboundSchema = z.union([z.number(), z.string()]);
|
|
72
|
+
function loanToValueToJSON(loanToValue) {
|
|
73
|
+
return JSON.stringify(exports.LoanToValue$outboundSchema.parse(loanToValue));
|
|
74
74
|
}
|
|
75
75
|
/** @internal */
|
|
76
76
|
exports.AaveLoopRequest$outboundSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,
|
|
1
|
+
{"version":3,"file":"aavelooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,sEAMC;AAYD,4CAEC;AAYD,4DAMC;AAYD,8CAEC;AAsDD,sDAIC;AAxND,0CAA4B;AAC5B,2DAA0D;AAE1D,qEAIkC;AAErB,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AA8EX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAKvC,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KA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sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -20,10 +20,6 @@ export type AccountSummary = {
|
|
|
20
20
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
21
21
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
22
22
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
23
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
24
|
-
* currently read-only: positions and market discovery only — transaction
|
|
25
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
26
|
-
* endpoints reject it with a 422.
|
|
27
23
|
*/
|
|
28
24
|
protocol?: CreditProtocol | undefined;
|
|
29
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountsummary.d.ts","sourceRoot":"","sources":["../../../../src/models/components/accountsummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B
|
|
1
|
+
{"version":3,"file":"accountsummary.d.ts","sourceRoot":"","sources":["../../../../src/models/components/accountsummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountsummary.js","sourceRoot":"","sources":["../../../../src/models/components/accountsummary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"accountsummary.js","sourceRoot":"","sources":["../../../../src/models/components/accountsummary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,wDAQC;AA7FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAG6B;AAoD7B,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACjD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAChC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,sBAAsB,EAAE,oBAAoB;QAC5C,gBAAgB,EAAE,cAAc;QAChC,uBAAuB,EAAE,qBAAqB;QAC9C,mBAAmB,EAAE,iBAAiB;QACtC,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -23,24 +23,12 @@ export type CollateralPosition = {
|
|
|
23
23
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
24
24
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
25
25
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
26
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
27
|
-
* currently read-only: positions and market discovery only — transaction
|
|
28
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
29
|
-
* endpoints reject it with a 422.
|
|
30
26
|
*/
|
|
31
27
|
protocol?: CreditProtocol | undefined;
|
|
32
28
|
/**
|
|
33
29
|
* Euler only: the EVK collateral vault holding this position.
|
|
34
30
|
*/
|
|
35
31
|
vault?: string | null | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Morpho only: the bytes32 id of the isolated market holding this position.
|
|
38
|
-
*/
|
|
39
|
-
marketId?: string | null | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows.
|
|
42
|
-
*/
|
|
43
|
-
isPureSupply?: boolean | null | undefined;
|
|
44
32
|
/**
|
|
45
33
|
* Current on-chain collateral balance (the vault's underlying asset for Euler).
|
|
46
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collateralposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf
|
|
1
|
+
{"version":3,"file":"collateralposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAwBP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -49,8 +49,6 @@ exports.CollateralPosition$inboundSchema = z.object({
|
|
|
49
49
|
symbol: z.string(),
|
|
50
50
|
protocol: creditprotocol_js_1.CreditProtocol$inboundSchema.optional(),
|
|
51
51
|
vault: z.nullable(z.string()).optional(),
|
|
52
|
-
market_id: z.nullable(z.string()).optional(),
|
|
53
|
-
is_pure_supply: z.nullable(z.boolean()).optional(),
|
|
54
52
|
amount_supplied: z.nullable(z.string()),
|
|
55
53
|
usd_value: z.nullable(z.string()).optional(),
|
|
56
54
|
supply_apy: z.nullable(z.string()).optional(),
|
|
@@ -61,8 +59,6 @@ exports.CollateralPosition$inboundSchema = z.object({
|
|
|
61
59
|
events: z.array(creditevent_js_1.CreditEvent$inboundSchema).optional(),
|
|
62
60
|
}).transform((v) => {
|
|
63
61
|
return (0, primitives_js_1.remap)(v, {
|
|
64
|
-
"market_id": "marketId",
|
|
65
|
-
"is_pure_supply": "isPureSupply",
|
|
66
62
|
"amount_supplied": "amountSupplied",
|
|
67
63
|
"usd_value": "usdValue",
|
|
68
64
|
"supply_apy": "supplyApy",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collateralposition.js","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"collateralposition.js","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,gEAQC;AA7GD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qDAA0E;AAC1E,2DAG6B;AA8D7B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,e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J,CAAC"}
|
|
@@ -39,20 +39,12 @@ export type CreditBorrowParams = {
|
|
|
39
39
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
40
40
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
41
41
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
42
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
43
|
-
* currently read-only: positions and market discovery only — transaction
|
|
44
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
45
|
-
* endpoints reject it with a 422.
|
|
46
42
|
*/
|
|
47
43
|
protocol?: CreditProtocol | undefined;
|
|
48
44
|
/**
|
|
49
45
|
* Euler only: the EVK vault to borrow from. Required when protocol=EULER.
|
|
50
46
|
*/
|
|
51
47
|
borrowVault?: string | null | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
|
|
54
|
-
*/
|
|
55
|
-
marketId?: string | null | undefined;
|
|
56
48
|
};
|
|
57
49
|
/** @internal */
|
|
58
50
|
export type CreditBorrowParamsAmount$Outbound = number | string;
|
|
@@ -68,7 +60,6 @@ export type CreditBorrowParams$Outbound = {
|
|
|
68
60
|
fee?: CreditFee$Outbound | null | undefined;
|
|
69
61
|
protocol?: string | undefined;
|
|
70
62
|
borrow_vault?: string | null | undefined;
|
|
71
|
-
market_id?: string | null | undefined;
|
|
72
63
|
};
|
|
73
64
|
/** @internal */
|
|
74
65
|
export declare const CreditBorrowParams$outboundSchema: z.ZodType<CreditBorrowParams$Outbound, z.ZodTypeDef, CreditBorrowParams>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC
|
|
1
|
+
{"version":3,"file":"creditborrowparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhE,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CACW,CAAC;AAEtC,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,eAAe,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,GAAG,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAelB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -58,13 +58,11 @@ exports.CreditBorrowParams$outboundSchema = z.object({
|
|
|
58
58
|
fee: z.nullable(creditfee_js_1.CreditFee$outboundSchema).optional(),
|
|
59
59
|
protocol: creditprotocol_js_1.CreditProtocol$outboundSchema.optional(),
|
|
60
60
|
borrowVault: z.nullable(z.string()).optional(),
|
|
61
|
-
marketId: z.nullable(z.string()).optional(),
|
|
62
61
|
}).transform((v) => {
|
|
63
62
|
return (0, primitives_js_1.remap)(v, {
|
|
64
63
|
actionType: "action_type",
|
|
65
64
|
interestRateMode: "interest_rate_mode",
|
|
66
65
|
borrowVault: "borrow_vault",
|
|
67
|
-
marketId: "market_id",
|
|
68
66
|
});
|
|
69
67
|
});
|
|
70
68
|
function creditBorrowParamsToJSON(creditBorrowParams) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditborrowparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EH,wEAMC;AAkCD,4DAMC;AAtHD,0CAA4B;AAC5B,2DAA0D;AAC1D,iDAIwB;AACxB,2DAG6B;AAC7B,+DAG+B;AAmD/B,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAaD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,gBAAgB,EAAE,qDAA+B,CAAC,QAAQ,EAAE;IAC5D,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,uCAAwB,CAAC,CAAC,QAAQ,EAAE;IACpD,QAAQ,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IAClD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,gBAAgB,EAAE,oBAAoB;QACtC,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -32,10 +32,6 @@ export type CreditBorrowRequest = {
|
|
|
32
32
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
33
33
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
34
34
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
35
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
36
|
-
* currently read-only: positions and market discovery only — transaction
|
|
37
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
38
|
-
* endpoints reject it with a 422.
|
|
39
35
|
*/
|
|
40
36
|
protocol?: CreditProtocol | undefined;
|
|
41
37
|
/**
|
|
@@ -46,10 +42,6 @@ export type CreditBorrowRequest = {
|
|
|
46
42
|
* Euler only: the EVK vault to borrow from. Required when protocol=EULER.
|
|
47
43
|
*/
|
|
48
44
|
borrowVault?: string | null | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
|
|
51
|
-
*/
|
|
52
|
-
marketId?: string | null | undefined;
|
|
53
45
|
/**
|
|
54
46
|
* Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. Omit together with amount_in and collateral_token to borrow against existing collateral.
|
|
55
47
|
*/
|
|
@@ -125,7 +117,6 @@ export type CreditBorrowRequest$Outbound = {
|
|
|
125
117
|
protocol?: string | undefined;
|
|
126
118
|
collateral_vault?: string | null | undefined;
|
|
127
119
|
borrow_vault?: string | null | undefined;
|
|
128
|
-
market_id?: string | null | undefined;
|
|
129
120
|
token_in?: string | null | undefined;
|
|
130
121
|
amount_in?: number | string | null | undefined;
|
|
131
122
|
collateral_token?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb
|
|
1
|
+
{"version":3,"file":"creditborrowrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequ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ema = z.object({
|
|
|
69
69
|
protocol: creditprotocol_js_1.CreditProtocol$outboundSchema.optional(),
|
|
70
70
|
collateralVault: z.nullable(z.string()).optional(),
|
|
71
71
|
borrowVault: z.nullable(z.string()).optional(),
|
|
72
|
-
marketId: z.nullable(z.string()).optional(),
|
|
73
72
|
tokenIn: z.nullable(z.string()).optional(),
|
|
74
73
|
amountIn: z.nullable(z.union([z.number(), z.string()])).optional(),
|
|
75
74
|
collateralToken: z.nullable(z.string()).optional(),
|
|
@@ -86,7 +85,6 @@ exports.CreditBorrowRequest$outboundSchema = z.object({
|
|
|
86
85
|
return (0, primitives_js_1.remap)(v, {
|
|
87
86
|
collateralVault: "collateral_vault",
|
|
88
87
|
borrowVault: "borrow_vault",
|
|
89
|
-
marketId: "market_id",
|
|
90
88
|
tokenIn: "token_in",
|
|
91
89
|
amountIn: "amount_in",
|
|
92
90
|
collateralToken: "collateral_token",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowrequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditborrowrequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6HH,8EAQC;AAYD,gDAEC;AAYD,8EAQC;AA+DD,8DAMC;AA1OD,0CAA4B;AAC5B,2DAA0D;AAC1D,yCAAyD;AACzD,iDAIwB;AACxB,2DAG6B;AAC7B,+DAG+B;AAqG/B,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI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oB;QACtC,cAAc,EAAE,iBAAiB;QACjC,gBAAgB,EAAE,mBAAmB;QACrC,YAAY,EAAE,eAAe;QAC7B,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -22,10 +22,6 @@ export type CreditEnableCollateralParams = {
|
|
|
22
22
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
23
23
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
24
24
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
25
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
26
|
-
* currently read-only: positions and market discovery only — transaction
|
|
27
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
28
|
-
* endpoints reject it with a 422.
|
|
29
25
|
*/
|
|
30
26
|
protocol?: CreditProtocol | undefined;
|
|
31
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditenablecollateralparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"creditenablecollateralparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,EAAE,0BAA0B,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAW5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditenablecollateralparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditenablecollateralparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,gFAQC;AAtED,0CAA4B;AAC5B,2DAA0D;AAC1D,2DAG6B;AAwC7B,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -8,15 +8,10 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
9
9
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
10
10
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
11
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
12
|
-
* currently read-only: positions and market discovery only — transaction
|
|
13
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
14
|
-
* endpoints reject it with a 422.
|
|
15
11
|
*/
|
|
16
12
|
export declare const CreditProtocol: {
|
|
17
13
|
readonly Aave: "AAVE";
|
|
18
14
|
readonly Euler: "EULER";
|
|
19
|
-
readonly Morpho: "MORPHO";
|
|
20
15
|
};
|
|
21
16
|
/**
|
|
22
17
|
* Which lending protocol a credit action targets.
|
|
@@ -26,10 +21,6 @@ export declare const CreditProtocol: {
|
|
|
26
21
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
27
22
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
28
23
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
29
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
30
|
-
* currently read-only: positions and market discovery only — transaction
|
|
31
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
32
|
-
* endpoints reject it with a 422.
|
|
33
24
|
*/
|
|
34
25
|
export type CreditProtocol = ClosedEnum<typeof CreditProtocol>;
|
|
35
26
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditprotocol.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"creditprotocol.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AACX;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,cAAc,CACS,CAAC;AACjC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,cAAc,CACS,CAAC"}
|
|
@@ -46,15 +46,10 @@ const z = __importStar(require("zod/v3"));
|
|
|
46
46
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
47
47
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
48
48
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
49
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
50
|
-
* currently read-only: positions and market discovery only — transaction
|
|
51
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
52
|
-
* endpoints reject it with a 422.
|
|
53
49
|
*/
|
|
54
50
|
exports.CreditProtocol = {
|
|
55
51
|
Aave: "AAVE",
|
|
56
52
|
Euler: "EULER",
|
|
57
|
-
Morpho: "MORPHO",
|
|
58
53
|
};
|
|
59
54
|
/** @internal */
|
|
60
55
|
exports.CreditProtocol$inboundSchema = z.nativeEnum(exports.CreditProtocol);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditprotocol.js","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B
|
|
1
|
+
{"version":3,"file":"creditprotocol.js","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;;;;;;;GAQG;AACU,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAYX,gBAAgB;AACH,QAAA,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AACjC,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,oCAA4B,CAAC"}
|
|
@@ -34,20 +34,12 @@ export type CreditRepayParams = {
|
|
|
34
34
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
35
35
|
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
36
36
|
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
37
|
-
* ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
|
|
38
|
-
* currently read-only: positions and market discovery only — transaction
|
|
39
|
-
* builders land with the looping work (COM-7106/7107/7108), so transact
|
|
40
|
-
* endpoints reject it with a 422.
|
|
41
37
|
*/
|
|
42
38
|
protocol?: CreditProtocol | undefined;
|
|
43
39
|
/**
|
|
44
40
|
* Euler only: the EVK vault the debt is owed to. Required when protocol=EULER.
|
|
45
41
|
*/
|
|
46
42
|
borrowVault?: string | null | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
|
|
49
|
-
*/
|
|
50
|
-
marketId?: string | null | undefined;
|
|
51
43
|
};
|
|
52
44
|
/** @internal */
|
|
53
45
|
export type CreditRepayParamsAmount$Outbound = number | string;
|
|
@@ -62,7 +54,6 @@ export type CreditRepayParams$Outbound = {
|
|
|
62
54
|
interest_rate_mode?: string | undefined;
|
|
63
55
|
protocol?: string | undefined;
|
|
64
56
|
borrow_vault?: string | null | undefined;
|
|
65
|
-
market_id?: string | null | undefined;
|
|
66
57
|
};
|
|
67
58
|
/** @internal */
|
|
68
59
|
export declare const CreditRepayParams$outboundSchema: z.ZodType<CreditRepayParams$Outbound, z.ZodTypeDef, CreditRepayParams>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditrepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD
|
|
1
|
+
{"version":3,"file":"creditrepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CACY,CAAC;AAEtC,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAcjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -56,13 +56,11 @@ exports.CreditRepayParams$outboundSchema = z.object({
|
|
|
56
56
|
interestRateMode: interestratemode_js_1.InterestRateMode$outboundSchema.optional(),
|
|
57
57
|
protocol: creditprotocol_js_1.CreditProtocol$outboundSchema.optional(),
|
|
58
58
|
borrowVault: z.nullable(z.string()).optional(),
|
|
59
|
-
marketId: z.nullable(z.string()).optional(),
|
|
60
59
|
}).transform((v) => {
|
|
61
60
|
return (0, primitives_js_1.remap)(v, {
|
|
62
61
|
actionType: "action_type",
|
|
63
62
|
interestRateMode: "interest_rate_mode",
|
|
64
63
|
borrowVault: "borrow_vault",
|
|
65
|
-
marketId: "market_id",
|
|
66
64
|
});
|
|
67
65
|
});
|
|
68
66
|
function creditRepayParamsToJSON(creditRepayParams) {
|