Skip to main content
@eco-incorp/sauce/compiler re-exports the published compiler’s compile and adds the compact-v1 argument codec. The compiler package itself is documented under @eco-incorp/sauce-compiler. This page covers sdk/dist/compact-arguments.d.ts.
Generated from the type declarations shipped in @eco-incorp/sauce 0.99.4. Each entry shows the package authors’ JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see architecture and deployments.

encodeCompactArguments

Function · sdk/dist/compact-arguments.d.ts Encode exactly the schema returned alongside the compiled program. Scalar negatives preserve their 256-bit two’s-complement representation. Addresses and public keys can be supplied as full-width hexadecimal integers. Bytes are raw, unpadded bytes; collection lengths are unsigned 32-bit big-endian counts.

decodeCompactArguments

Function · sdk/dist/compact-arguments.d.ts Strict inverse for inspection and signing: rejects non-minimal scalar widths, non-canonical booleans, malformed lengths and trailing bytes. Engine decoding additionally validates its bounded heap allocations before exposing any value.

CompactValue

Type · sdk/dist/compact-arguments.d.ts The compact-v1 wire format emitted by the compiler’s compactArgs option. Values are positional (including tuple fields). Code and schema depend only on source/types; request values are encoded separately and never enter code caches.