Skip to main content
@eco-incorp/sauce/actions reads JSON action programs ({ version, chainId?, actions }), validates them against the JSON Schema exported as @eco-incorp/sauce/actions/action-program.schema.json, and compiles them for a chain. A token field takes a registry symbol and a contract field a namespace reference, beside an address.
Generated from the type declarations of @eco-incorp/sauce.

quoteAction

Function · @eco-incorp/sauce/actions The eth_call that prices action at its own amount (a Carbon trade or a Balancer batch at the amounts it carries). None needs a balance or an allowance. Venues that price through a separate quoter take its address from options.

Quote

Interface · @eco-incorp/sauce/actions A quote as an eth_call: send data to to, and decode the result into the output amount.

QuoteOptions

Interface · @eco-incorp/sauce/actions The quoter contracts for venues that price through one rather than through the pool or router the action names.