Skip to main content
Archived documentation for @eco-incorp/sauce@0.99.16. Install this release with npm install --save-exact @eco-incorp/sauce@0.99.16. Links to guides outside this tab open current documentation.
The deposit namespace emits a program that makes protocol deposits, withdrawals, stakes or wraps from data. deposit.depositSource(spec) returns a function main() program with each call and its approval, which routes.compileSauceProgram compiles; deposit.listDepositTemplates() lists the supported calls, one template per protocol and action (aave-v3 supply, lido stake, weth unwrap, โ€ฆ).
Generated from the type declarations of @eco-incorp/sauce.

deposit.DEPOSIT_TEMPLATES

Variable ยท @eco-incorp/sauce

deposit.depositTemplateFor

Function ยท @eco-incorp/sauce Looks up a template by protocol:action, throwing (and listing every registered key) rather than letting a caller emit a program that would misbehave on-chain.

deposit.listDepositTemplates

Function ยท @eco-incorp/sauce

deposit.DepositKey

Type ยท @eco-incorp/sauce