@compass-labs/api-sdk 2.2.19 → 2.2.20-rc.0
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 +16 -1
- package/codeSamples_typescript.yaml +36 -0
- package/dist/commonjs/funcs/creditCreditBorrow.d.ts +25 -0
- package/dist/commonjs/funcs/creditCreditBorrow.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditBorrow.js +125 -0
- package/dist/commonjs/funcs/creditCreditBorrow.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditBundle.d.ts +21 -0
- package/dist/commonjs/funcs/creditCreditBundle.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditBundle.js +121 -0
- package/dist/commonjs/funcs/creditCreditBundle.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditCreateAccount.d.ts +26 -0
- package/dist/commonjs/funcs/creditCreditCreateAccount.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditCreateAccount.js +126 -0
- package/dist/commonjs/funcs/creditCreditCreateAccount.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditPositions.d.ts +22 -0
- package/dist/commonjs/funcs/creditCreditPositions.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditPositions.js +126 -0
- package/dist/commonjs/funcs/creditCreditPositions.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditRepay.d.ts +26 -0
- package/dist/commonjs/funcs/creditCreditRepay.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditRepay.js +126 -0
- package/dist/commonjs/funcs/creditCreditRepay.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditTransfer.d.ts +27 -0
- package/dist/commonjs/funcs/creditCreditTransfer.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditTransfer.js +127 -0
- package/dist/commonjs/funcs/creditCreditTransfer.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/accountsummary.d.ts +40 -0
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/accountsummary.js +66 -0
- package/dist/commonjs/models/components/accountsummary.js.map +1 -0
- package/dist/commonjs/models/components/borrowabletoken.d.ts +28 -0
- package/dist/commonjs/models/components/borrowabletoken.d.ts.map +1 -0
- package/dist/commonjs/models/components/borrowabletoken.js +59 -0
- package/dist/commonjs/models/components/borrowabletoken.js.map +1 -0
- package/dist/commonjs/models/components/collateralposition.d.ts +53 -0
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/collateralposition.js +71 -0
- package/dist/commonjs/models/components/collateralposition.js.map +1 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.d.ts +39 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.js +64 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.js.map +1 -0
- package/dist/commonjs/models/components/createcreditaccountresponse.d.ts +21 -0
- package/dist/commonjs/models/components/createcreditaccountresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/createcreditaccountresponse.js +57 -0
- package/dist/commonjs/models/components/createcreditaccountresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditborrowparams.d.ts +44 -0
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditborrowparams.js +65 -0
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -0
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +108 -0
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditborrowrequest.js +95 -0
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -0
- package/dist/commonjs/models/components/creditborrowresponse.d.ts +23 -0
- package/dist/commonjs/models/components/creditborrowresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditborrowresponse.js +61 -0
- package/dist/commonjs/models/components/creditborrowresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditbundlerequest.d.ts +35 -0
- package/dist/commonjs/models/components/creditbundlerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditbundlerequest.js +59 -0
- package/dist/commonjs/models/components/creditbundlerequest.js.map +1 -0
- package/dist/commonjs/models/components/creditbundleresponse.d.ts +23 -0
- package/dist/commonjs/models/components/creditbundleresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditbundleresponse.js +61 -0
- package/dist/commonjs/models/components/creditbundleresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditevent.d.ts +53 -0
- package/dist/commonjs/models/components/creditevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditevent.js +76 -0
- package/dist/commonjs/models/components/creditevent.js.map +1 -0
- package/dist/commonjs/models/components/creditpositionsresponse.d.ts +36 -0
- package/dist/commonjs/models/components/creditpositionsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditpositionsresponse.js +67 -0
- package/dist/commonjs/models/components/creditpositionsresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditrepayparams.d.ts +44 -0
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditrepayparams.js +65 -0
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -0
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +108 -0
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditrepayrequest.js +95 -0
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -0
- package/dist/commonjs/models/components/creditrepayresponse.d.ts +23 -0
- package/dist/commonjs/models/components/creditrepayresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditrepayresponse.js +61 -0
- package/dist/commonjs/models/components/creditrepayresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +34 -0
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditsupplyparams.js +62 -0
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -0
- package/dist/commonjs/models/components/credittransferrequest.d.ts +40 -0
- package/dist/commonjs/models/components/credittransferrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/credittransferrequest.js +59 -0
- package/dist/commonjs/models/components/credittransferrequest.js.map +1 -0
- package/dist/commonjs/models/components/credittransferresponse.d.ts +11 -0
- package/dist/commonjs/models/components/credittransferresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/credittransferresponse.js +56 -0
- package/dist/commonjs/models/components/credittransferresponse.js.map +1 -0
- package/dist/commonjs/models/components/credituseroperation.d.ts +28 -0
- package/dist/commonjs/models/components/credituseroperation.d.ts.map +1 -0
- package/dist/commonjs/models/components/credituseroperation.js +78 -0
- package/dist/commonjs/models/components/credituseroperation.js.map +1 -0
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +34 -0
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditwithdrawparams.js +62 -0
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -0
- package/dist/commonjs/models/components/debtposition.d.ts +49 -0
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/debtposition.js +69 -0
- package/dist/commonjs/models/components/debtposition.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +21 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +21 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/v2creditpositions.d.ts +26 -0
- package/dist/commonjs/models/operations/v2creditpositions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2creditpositions.js +57 -0
- package/dist/commonjs/models/operations/v2creditpositions.js.map +1 -0
- package/dist/commonjs/sdk/credit.d.ts +86 -0
- package/dist/commonjs/sdk/credit.d.ts.map +1 -0
- package/dist/commonjs/sdk/credit.js +110 -0
- package/dist/commonjs/sdk/credit.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/creditCreditBorrow.d.ts +25 -0
- package/dist/esm/funcs/creditCreditBorrow.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditBorrow.js +89 -0
- package/dist/esm/funcs/creditCreditBorrow.js.map +1 -0
- package/dist/esm/funcs/creditCreditBundle.d.ts +21 -0
- package/dist/esm/funcs/creditCreditBundle.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditBundle.js +85 -0
- package/dist/esm/funcs/creditCreditBundle.js.map +1 -0
- package/dist/esm/funcs/creditCreditCreateAccount.d.ts +26 -0
- package/dist/esm/funcs/creditCreditCreateAccount.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditCreateAccount.js +90 -0
- package/dist/esm/funcs/creditCreditCreateAccount.js.map +1 -0
- package/dist/esm/funcs/creditCreditPositions.d.ts +22 -0
- package/dist/esm/funcs/creditCreditPositions.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditPositions.js +90 -0
- package/dist/esm/funcs/creditCreditPositions.js.map +1 -0
- package/dist/esm/funcs/creditCreditRepay.d.ts +26 -0
- package/dist/esm/funcs/creditCreditRepay.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditRepay.js +90 -0
- package/dist/esm/funcs/creditCreditRepay.js.map +1 -0
- package/dist/esm/funcs/creditCreditTransfer.d.ts +27 -0
- package/dist/esm/funcs/creditCreditTransfer.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditTransfer.js +91 -0
- package/dist/esm/funcs/creditCreditTransfer.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/accountsummary.d.ts +40 -0
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -0
- package/dist/esm/models/components/accountsummary.js +29 -0
- package/dist/esm/models/components/accountsummary.js.map +1 -0
- package/dist/esm/models/components/borrowabletoken.d.ts +28 -0
- package/dist/esm/models/components/borrowabletoken.d.ts.map +1 -0
- package/dist/esm/models/components/borrowabletoken.js +22 -0
- package/dist/esm/models/components/borrowabletoken.js.map +1 -0
- package/dist/esm/models/components/collateralposition.d.ts +53 -0
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -0
- package/dist/esm/models/components/collateralposition.js +34 -0
- package/dist/esm/models/components/collateralposition.js.map +1 -0
- package/dist/esm/models/components/createcreditaccountrequest.d.ts +39 -0
- package/dist/esm/models/components/createcreditaccountrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createcreditaccountrequest.js +27 -0
- package/dist/esm/models/components/createcreditaccountrequest.js.map +1 -0
- package/dist/esm/models/components/createcreditaccountresponse.d.ts +21 -0
- package/dist/esm/models/components/createcreditaccountresponse.d.ts.map +1 -0
- package/dist/esm/models/components/createcreditaccountresponse.js +20 -0
- package/dist/esm/models/components/createcreditaccountresponse.js.map +1 -0
- package/dist/esm/models/components/creditborrowparams.d.ts +44 -0
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -0
- package/dist/esm/models/components/creditborrowparams.js +27 -0
- package/dist/esm/models/components/creditborrowparams.js.map +1 -0
- package/dist/esm/models/components/creditborrowrequest.d.ts +108 -0
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -0
- package/dist/esm/models/components/creditborrowrequest.js +55 -0
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -0
- package/dist/esm/models/components/creditborrowresponse.d.ts +23 -0
- package/dist/esm/models/components/creditborrowresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditborrowresponse.js +24 -0
- package/dist/esm/models/components/creditborrowresponse.js.map +1 -0
- package/dist/esm/models/components/creditbundlerequest.d.ts +35 -0
- package/dist/esm/models/components/creditbundlerequest.d.ts.map +1 -0
- package/dist/esm/models/components/creditbundlerequest.js +22 -0
- package/dist/esm/models/components/creditbundlerequest.js.map +1 -0
- package/dist/esm/models/components/creditbundleresponse.d.ts +23 -0
- package/dist/esm/models/components/creditbundleresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditbundleresponse.js +24 -0
- package/dist/esm/models/components/creditbundleresponse.js.map +1 -0
- package/dist/esm/models/components/creditevent.d.ts +53 -0
- package/dist/esm/models/components/creditevent.d.ts.map +1 -0
- package/dist/esm/models/components/creditevent.js +39 -0
- package/dist/esm/models/components/creditevent.js.map +1 -0
- package/dist/esm/models/components/creditpositionsresponse.d.ts +36 -0
- package/dist/esm/models/components/creditpositionsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditpositionsresponse.js +30 -0
- package/dist/esm/models/components/creditpositionsresponse.js.map +1 -0
- package/dist/esm/models/components/creditrepayparams.d.ts +44 -0
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -0
- package/dist/esm/models/components/creditrepayparams.js +27 -0
- package/dist/esm/models/components/creditrepayparams.js.map +1 -0
- package/dist/esm/models/components/creditrepayrequest.d.ts +108 -0
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -0
- package/dist/esm/models/components/creditrepayrequest.js +55 -0
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -0
- package/dist/esm/models/components/creditrepayresponse.d.ts +23 -0
- package/dist/esm/models/components/creditrepayresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditrepayresponse.js +24 -0
- package/dist/esm/models/components/creditrepayresponse.js.map +1 -0
- package/dist/esm/models/components/creditsupplyparams.d.ts +34 -0
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -0
- package/dist/esm/models/components/creditsupplyparams.js +24 -0
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -0
- package/dist/esm/models/components/credittransferrequest.d.ts +40 -0
- package/dist/esm/models/components/credittransferrequest.d.ts.map +1 -0
- package/dist/esm/models/components/credittransferrequest.js +21 -0
- package/dist/esm/models/components/credittransferrequest.js.map +1 -0
- package/dist/esm/models/components/credittransferresponse.d.ts +11 -0
- package/dist/esm/models/components/credittransferresponse.d.ts.map +1 -0
- package/dist/esm/models/components/credittransferresponse.js +19 -0
- package/dist/esm/models/components/credittransferresponse.js.map +1 -0
- package/dist/esm/models/components/credituseroperation.d.ts +28 -0
- package/dist/esm/models/components/credituseroperation.d.ts.map +1 -0
- package/dist/esm/models/components/credituseroperation.js +40 -0
- package/dist/esm/models/components/credituseroperation.js.map +1 -0
- package/dist/esm/models/components/creditwithdrawparams.d.ts +34 -0
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/creditwithdrawparams.js +24 -0
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -0
- package/dist/esm/models/components/debtposition.d.ts +49 -0
- package/dist/esm/models/components/debtposition.d.ts.map +1 -0
- package/dist/esm/models/components/debtposition.js +32 -0
- package/dist/esm/models/components/debtposition.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +21 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +21 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/v2creditpositions.d.ts +26 -0
- package/dist/esm/models/operations/v2creditpositions.d.ts.map +1 -0
- package/dist/esm/models/operations/v2creditpositions.js +20 -0
- package/dist/esm/models/operations/v2creditpositions.js.map +1 -0
- package/dist/esm/sdk/credit.d.ts +86 -0
- package/dist/esm/sdk/credit.d.ts.map +1 -0
- package/dist/esm/sdk/credit.js +106 -0
- package/dist/esm/sdk/credit.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/models/components/accountsummary.md +30 -0
- package/docs/models/components/borrowabletoken.md +25 -0
- package/docs/models/components/borrowamount.md +19 -0
- package/docs/models/components/collateralposition.md +31 -0
- package/docs/models/components/createcreditaccountrequest.md +24 -0
- package/docs/models/components/createcreditaccountrequestchain.md +15 -0
- package/docs/models/components/createcreditaccountresponse.md +31 -0
- package/docs/models/components/creditborrowparams.md +24 -0
- package/docs/models/components/creditborrowparamsamount.md +19 -0
- package/docs/models/components/creditborrowrequest.md +38 -0
- package/docs/models/components/creditborrowrequestamountin.md +19 -0
- package/docs/models/components/creditborrowrequestslippage.md +19 -0
- package/docs/models/components/creditborrowresponse.md +17 -0
- package/docs/models/components/creditbundlerequest.md +25 -0
- package/docs/models/components/creditbundleresponse.md +19 -0
- package/docs/models/components/creditevent.md +29 -0
- package/docs/models/components/creditpositionsresponse.md +33 -0
- package/docs/models/components/creditrepayparams.md +24 -0
- package/docs/models/components/creditrepayparamsamount.md +19 -0
- package/docs/models/components/creditrepayrequest.md +37 -0
- package/docs/models/components/creditrepayrequestslippage.md +19 -0
- package/docs/models/components/creditrepayresponse.md +17 -0
- package/docs/models/components/creditsupplyparams.md +23 -0
- package/docs/models/components/creditsupplyparamsamount.md +19 -0
- package/docs/models/components/credittransferrequest.md +23 -0
- package/docs/models/components/credittransferrequestamount.md +19 -0
- package/docs/models/components/credittransferresponse.md +75 -0
- package/docs/models/components/credituseroperation.md +23 -0
- package/docs/models/components/credituseroperationbody.md +80 -0
- package/docs/models/components/creditwithdrawparams.md +23 -0
- package/docs/models/components/creditwithdrawparamsamount.md +19 -0
- package/docs/models/components/debtposition.md +30 -0
- package/docs/models/components/eventtype.md +17 -0
- package/docs/models/components/repayamount.md +19 -0
- package/docs/models/components/withdrawamount.md +19 -0
- package/docs/models/operations/v2creditpositionschain.md +15 -0
- package/docs/models/operations/v2creditpositionsrequest.md +19 -0
- package/docs/sdks/credit/README.md +562 -0
- package/package.json +1 -1
- package/src/funcs/creditCreditBorrow.ts +176 -0
- package/src/funcs/creditCreditBundle.ts +172 -0
- package/src/funcs/creditCreditCreateAccount.ts +178 -0
- package/src/funcs/creditCreditPositions.ts +178 -0
- package/src/funcs/creditCreditRepay.ts +177 -0
- package/src/funcs/creditCreditTransfer.ts +178 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountsummary.ts +77 -0
- package/src/models/components/borrowabletoken.ts +58 -0
- package/src/models/components/collateralposition.ts +94 -0
- package/src/models/components/createcreditaccountrequest.ts +72 -0
- package/src/models/components/createcreditaccountresponse.ts +51 -0
- package/src/models/components/creditborrowparams.ts +89 -0
- package/src/models/components/creditborrowrequest.ts +198 -0
- package/src/models/components/creditborrowresponse.ts +59 -0
- package/src/models/components/creditbundlerequest.ts +66 -0
- package/src/models/components/creditbundleresponse.ts +59 -0
- package/src/models/components/creditevent.ts +92 -0
- package/src/models/components/creditpositionsresponse.ts +79 -0
- package/src/models/components/creditrepayparams.ts +89 -0
- package/src/models/components/creditrepayrequest.ts +190 -0
- package/src/models/components/creditrepayresponse.ts +59 -0
- package/src/models/components/creditsupplyparams.ts +74 -0
- package/src/models/components/credittransferrequest.ts +78 -0
- package/src/models/components/credittransferresponse.ts +40 -0
- package/src/models/components/credituseroperation.ts +133 -0
- package/src/models/components/creditwithdrawparams.ts +74 -0
- package/src/models/components/debtposition.ts +88 -0
- package/src/models/components/index.ts +21 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v2creditpositions.ts +50 -0
- package/src/sdk/credit.ts +156 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# CreditBorrowRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditBorrowRequest } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditBorrowRequest = {
|
|
9
|
+
owner: "0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425",
|
|
10
|
+
chain: "base",
|
|
11
|
+
tokenIn: "USDC",
|
|
12
|
+
amountIn: 100,
|
|
13
|
+
collateralToken: "USDC",
|
|
14
|
+
borrowToken: "WETH",
|
|
15
|
+
borrowAmount: 0.01,
|
|
16
|
+
interestRateMode: "variable",
|
|
17
|
+
slippage: 0.5,
|
|
18
|
+
gasSponsorship: false,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Fields
|
|
23
|
+
|
|
24
|
+
| Field | Type | Required | Description | Example |
|
|
25
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
26
|
+
| `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425 |
|
|
27
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
28
|
+
| `tokenIn` | *string* | :heavy_check_mark: | Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. | USDC |
|
|
29
|
+
| `amountIn` | *components.CreditBorrowRequestAmountIn* | :heavy_check_mark: | Amount of token_in to use (in token units, not wei). | 100 |
|
|
30
|
+
| `collateralToken` | *string* | :heavy_check_mark: | Aave reserve token to supply as collateral. | USDC |
|
|
31
|
+
| `borrowToken` | *string* | :heavy_check_mark: | Asset to borrow from Aave. | WETH |
|
|
32
|
+
| `borrowAmount` | *components.BorrowAmount* | :heavy_check_mark: | Amount to borrow (in token units, not wei). | 0.01 |
|
|
33
|
+
| `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
|
|
34
|
+
| `slippage` | *components.CreditBorrowRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
|
|
35
|
+
| `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
|
|
36
|
+
| `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the borrow bundle will first pull token_in from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
|
|
37
|
+
| `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
|
|
38
|
+
| `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditBorrowRequestAmountIn
|
|
2
|
+
|
|
3
|
+
Amount of token_in to use (in token units, not wei).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 100;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "<value>";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditBorrowRequestSlippage
|
|
2
|
+
|
|
3
|
+
Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 1284.03;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "0.5";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CreditBorrowResponse
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditBorrowResponse } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditBorrowResponse = {};
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Fields
|
|
12
|
+
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
15
|
+
| `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction to execute the borrow bundle. Present when gas_sponsorship is false. |
|
|
16
|
+
| `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship is true. |
|
|
17
|
+
| `estimatedCollateralAmount` | *string* | :heavy_minus_sign: | Estimated amount of collateral token received from swap. Only present when token_in differs from collateral_token. |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# CreditBundleRequest
|
|
2
|
+
|
|
3
|
+
Request to execute multiple credit actions in a single atomic transaction.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditBundleRequest } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditBundleRequest = {
|
|
11
|
+
owner: "<value>",
|
|
12
|
+
chain: "base",
|
|
13
|
+
actions: [],
|
|
14
|
+
gasSponsorship: false,
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description | Example |
|
|
21
|
+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
22
|
+
| `owner` | *string* | :heavy_check_mark: | The owner's wallet address that controls the Credit Account. | |
|
|
23
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
24
|
+
| `actions` | [components.CreditUserOperation](../../models/components/credituseroperation.md)[] | :heavy_check_mark: | List of actions to bundle. Actions are executed in order. | |
|
|
25
|
+
| `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas-sponsored execution. | false |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditBundleResponse
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditBundleResponse } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditBundleResponse = {
|
|
9
|
+
actionsCount: 957599,
|
|
10
|
+
};
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Fields
|
|
14
|
+
|
|
15
|
+
| Field | Type | Required | Description |
|
|
16
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false. |
|
|
18
|
+
| `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. Owner must sign and submit to /gas_sponsorship/prepare. |
|
|
19
|
+
| `actionsCount` | *number* | :heavy_check_mark: | Number of individual transactions bundled in this execution. |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# CreditEvent
|
|
2
|
+
|
|
3
|
+
A single historical event in a credit position.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditEvent } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditEvent = {
|
|
11
|
+
eventType: "supply",
|
|
12
|
+
blockNumber: 349470,
|
|
13
|
+
blockTimestamp: new Date("2026-03-29T05:53:04.536Z"),
|
|
14
|
+
transactionHash: "<value>",
|
|
15
|
+
amount: "731.51",
|
|
16
|
+
symbol: "<value>",
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Fields
|
|
21
|
+
|
|
22
|
+
| Field | Type | Required | Description |
|
|
23
|
+
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
24
|
+
| `eventType` | [components.EventType](../../models/components/eventtype.md) | :heavy_check_mark: | Type of credit event. |
|
|
25
|
+
| `blockNumber` | *number* | :heavy_check_mark: | Block number when the event occurred |
|
|
26
|
+
| `blockTimestamp` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Timestamp when the event occurred |
|
|
27
|
+
| `transactionHash` | *string* | :heavy_check_mark: | Transaction hash of the event |
|
|
28
|
+
| `amount` | *string* | :heavy_check_mark: | Amount involved in the event |
|
|
29
|
+
| `symbol` | *string* | :heavy_check_mark: | Symbol of the token |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# CreditPositionsResponse
|
|
2
|
+
|
|
3
|
+
Credit account positions response with per-reserve positions and account summary.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditPositionsResponse } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditPositionsResponse = {
|
|
11
|
+
collateralPositions: [],
|
|
12
|
+
debtPositions: [],
|
|
13
|
+
accountSummary: {
|
|
14
|
+
healthFactor: "<value>",
|
|
15
|
+
totalCollateralUsd: "<value>",
|
|
16
|
+
totalDebtUsd: "<value>",
|
|
17
|
+
availableBorrowsUsd: "<value>",
|
|
18
|
+
ltv: "<value>",
|
|
19
|
+
emodeCategoryId: 0,
|
|
20
|
+
},
|
|
21
|
+
borrowableTokens: [],
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Fields
|
|
26
|
+
|
|
27
|
+
| Field | Type | Required | Description | Example |
|
|
28
|
+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
29
|
+
| `collateralPositions` | [components.CollateralPosition](../../models/components/collateralposition.md)[] | :heavy_minus_sign: | All collateral positions, one per reserve. | [] |
|
|
30
|
+
| `debtPositions` | [components.DebtPosition](../../models/components/debtposition.md)[] | :heavy_minus_sign: | All debt positions, one per reserve. | [] |
|
|
31
|
+
| `accountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_check_mark: | Aave account-level summary from getUserAccountData(). | |
|
|
32
|
+
| `borrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | All tokens available for borrowing with max amounts based on current collateral. | [] |
|
|
33
|
+
| `totalUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (total collateral - total debt). Null if prices unavailable. | |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreditRepayParams
|
|
2
|
+
|
|
3
|
+
Repay debt to Aave via Credit Account.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditRepayParams } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditRepayParams = {
|
|
11
|
+
actionType: "CREDIT_REPAY",
|
|
12
|
+
token: "<value>",
|
|
13
|
+
amount: 9432.03,
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Fields
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description | Example |
|
|
20
|
+
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `actionType` | *"CREDIT_REPAY"* | :heavy_check_mark: | N/A | CREDIT_REPAY |
|
|
22
|
+
| `token` | *string* | :heavy_check_mark: | Token to repay to Aave. | |
|
|
23
|
+
| `amount` | *components.CreditRepayParamsAmount* | :heavy_check_mark: | Amount in token units to repay. | |
|
|
24
|
+
| `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditRepayParamsAmount
|
|
2
|
+
|
|
3
|
+
Amount in token units to repay.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 1284.03;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "<value>";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# CreditRepayRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditRepayRequest } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditRepayRequest = {
|
|
9
|
+
owner: "0x831Ad0C52C77708DA5D49dc8278C966dfdD4ddA1",
|
|
10
|
+
chain: "base",
|
|
11
|
+
repayToken: "WETH",
|
|
12
|
+
repayAmount: 0.01,
|
|
13
|
+
interestRateMode: "variable",
|
|
14
|
+
withdrawToken: "USDC",
|
|
15
|
+
withdrawAmount: 100,
|
|
16
|
+
slippage: 0.5,
|
|
17
|
+
gasSponsorship: false,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Fields
|
|
22
|
+
|
|
23
|
+
| Field | Type | Required | Description | Example |
|
|
24
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0x831Ad0C52C77708DA5D49dc8278C966dfdD4ddA1 |
|
|
26
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
27
|
+
| `repayToken` | *string* | :heavy_check_mark: | The borrowed asset to repay (e.g. WETH). Must match the debt position's token. | WETH |
|
|
28
|
+
| `repayAmount` | *components.RepayAmount* | :heavy_check_mark: | Amount of repay_token to repay (in token units, not wei). | 0.01 |
|
|
29
|
+
| `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
|
|
30
|
+
| `withdrawToken` | *string* | :heavy_check_mark: | Collateral token to withdraw from Aave after repaying debt. | USDC |
|
|
31
|
+
| `withdrawAmount` | *components.WithdrawAmount* | :heavy_check_mark: | Amount of collateral to withdraw (in token units, not wei). | 100 |
|
|
32
|
+
| `tokenOut` | *string* | :heavy_minus_sign: | Desired output token. If different from withdraw_token, a swap is performed after withdrawal. If None, the withdrawn collateral is kept as-is. | |
|
|
33
|
+
| `slippage` | *components.CreditRepayRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
|
|
34
|
+
| `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
|
|
35
|
+
| `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the repay bundle will first pull repay_token from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
|
|
36
|
+
| `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
|
|
37
|
+
| `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditRepayRequestSlippage
|
|
2
|
+
|
|
3
|
+
Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 1284.03;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "0.5";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CreditRepayResponse
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditRepayResponse } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditRepayResponse = {};
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Fields
|
|
12
|
+
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction to execute the repay bundle. Present when gas_sponsorship is false. |
|
|
16
|
+
| `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship is true. |
|
|
17
|
+
| `estimatedTokenOutAmount` | *string* | :heavy_minus_sign: | Estimated amount of token_out received from swap. Only present when token_out differs from withdraw_token. |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CreditSupplyParams
|
|
2
|
+
|
|
3
|
+
Supply collateral to Aave via Credit Account.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditSupplyParams } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditSupplyParams = {
|
|
11
|
+
actionType: "CREDIT_SUPPLY",
|
|
12
|
+
token: "<value>",
|
|
13
|
+
amount: "271.94",
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Fields
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description | Example |
|
|
20
|
+
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
|
|
21
|
+
| `actionType` | *"CREDIT_SUPPLY"* | :heavy_check_mark: | N/A | CREDIT_SUPPLY |
|
|
22
|
+
| `token` | *string* | :heavy_check_mark: | Collateral token to supply to Aave. | |
|
|
23
|
+
| `amount` | *components.CreditSupplyParamsAmount* | :heavy_check_mark: | Amount in token units to supply. | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditSupplyParamsAmount
|
|
2
|
+
|
|
3
|
+
Amount in token units to supply.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 1284.03;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "<value>";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CreditTransferRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditTransferRequest } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditTransferRequest = {
|
|
9
|
+
owner: "0x4A83fec8c6A9A25Be28f3242a16dBaD0ab00f3a6",
|
|
10
|
+
chain: "base",
|
|
11
|
+
token: "USDC",
|
|
12
|
+
amount: 100,
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description | Example |
|
|
19
|
+
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
|
20
|
+
| `owner` | *string* | :heavy_check_mark: | The owner's wallet address (EOA). | 0x4A83fec8c6A9A25Be28f3242a16dBaD0ab00f3a6 |
|
|
21
|
+
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
22
|
+
| `token` | *string* | :heavy_check_mark: | The token to transfer from the EOA to the Credit Account. | USDC |
|
|
23
|
+
| `amount` | *components.CreditTransferRequestAmount* | :heavy_check_mark: | The amount of tokens to transfer (in token units, not wei). | 100 |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CreditTransferRequestAmount
|
|
2
|
+
|
|
3
|
+
The amount of tokens to transfer (in token units, not wei).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `number`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: number = 100;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `string`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: string = "<value>";
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# CreditTransferResponse
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreditTransferResponse } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CreditTransferResponse = {
|
|
9
|
+
eip712: {
|
|
10
|
+
types: {
|
|
11
|
+
eip712Domain: [
|
|
12
|
+
{
|
|
13
|
+
name: "name",
|
|
14
|
+
type: "string",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "chainId",
|
|
18
|
+
type: "uint256",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "verifyingContract",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
tokenPermissions: [
|
|
26
|
+
{
|
|
27
|
+
name: "token",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "amount",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
permitTransferFrom: [
|
|
36
|
+
{
|
|
37
|
+
name: "permitted",
|
|
38
|
+
type: "TokenPermissions",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "spender",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "nonce",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "deadline",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
domain: {
|
|
55
|
+
chainId: 659817,
|
|
56
|
+
verifyingContract: "<value>",
|
|
57
|
+
},
|
|
58
|
+
message: {
|
|
59
|
+
permitted: {
|
|
60
|
+
token: "<value>",
|
|
61
|
+
amount: 387057,
|
|
62
|
+
},
|
|
63
|
+
spender: "<value>",
|
|
64
|
+
nonce: 382019,
|
|
65
|
+
deadline: 22738,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Fields
|
|
72
|
+
|
|
73
|
+
| Field | Type | Required | Description |
|
|
74
|
+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
75
|
+
| `eip712` | [components.Permit2TypedDataOutput](../../models/components/permit2typeddataoutput.md) | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CreditUserOperation
|
|
2
|
+
|
|
3
|
+
A single operation in a credit bundle.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CreditUserOperation } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CreditUserOperation = {
|
|
11
|
+
body: {
|
|
12
|
+
actionType: "CREDIT_SUPPLY",
|
|
13
|
+
token: "<value>",
|
|
14
|
+
amount: "988.97",
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Fields
|
|
20
|
+
|
|
21
|
+
| Field | Type | Required | Description |
|
|
22
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
23
|
+
| `body` | *components.CreditUserOperationBody* | :heavy_check_mark: | N/A |
|