Skip to main content
@eco-incorp/sauce/compiler exports the compiler’s compile behind a readiness check, ready() for a browser, and resolveSdkModule/resolveSdkPackage, which serve the SDK’s SauceScript libraries (@sauce/token, @sauce/router) and ABIs to a compile. It re-exports the compiler’s option, result and account manifest types. The compiler’s own options and results are documented under @eco-incorp/sauce-compiler.
Generated from the type declarations of @eco-incorp/sauce.

resolveSdkModule

Function · @eco-incorp/sauce/compiler The bytes of an SDK module: a standard-library file, an engine ABI or a protocol ABI twin. undefined for anything else, which is the compiler’s “nothing at this path”.

resolveSdkPackage

Function · @eco-incorp/sauce/compiler The entry path of a standard-library package (@sauce/token, @sauce/router), under SDK_STD_ROOT, or undefined to decline any other specifier. The entry is the package’s module, else main, else index.js. Each package’s main is a neutral base (token.js, router.js) the compiler suffixes per target (token.evm.js).