Skip to main content
The contracts namespace describes protocol contracts as descriptors (ABI, methods, per-chain addresses) and exposes them as typed accessors route bodies can call.
This page covers sdk/dist/descriptors/query.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.

contracts.addressOn

Function · sdk/dist/descriptors/query.d.ts The sparse-map accessor, bigint-aware - never index perChainAddress by a raw chain id directly.

contracts.contractsOnChain

Function · sdk/dist/descriptors/query.d.ts REVERSE INDEX: every returned descriptor is guaranteed to have an address on chain. kind:“interface” descriptors never appear here (reach them via listInterfaces()).

contracts.describeContract

Function · sdk/dist/descriptors/query.d.ts THE thin resolver: (chain, protocol, contract) -> address + abi + methods for that chain, or undefined. E2.3’s typed accessor tree is a walk over this, not a reimplementation of it.

contracts.descriptorChains

Function · sdk/dist/descriptors/query.d.ts Resolved CanonicalChain records (not raw slugs) for every chain this descriptor has an address on.

contracts.getDescriptor

Function · sdk/dist/descriptors/query.d.ts Chain-free lookup: the descriptor is the chain-INDEPENDENT object; ResolvedContract (describeContract) is its chain-bound view.

contracts.listContracts

Function · sdk/dist/descriptors/query.d.ts Forward index: protocol (slug, or normalized ProtocolInfo.name) -> its descriptors.

contracts.listDescriptors

Function · sdk/dist/descriptors/query.d.ts The whole flat registry, stable order.

contracts.listInterfaces

Function · sdk/dist/descriptors/query.d.ts kind:“interface” descriptors (erc20, erc4626 in the starter set): ABI + methods, no fixed address.

contracts.methodOf

Function · sdk/dist/descriptors/query.d.ts Name-keyed method lookup. Safe for this dataset: zero overloaded function names across every starter-set ABI (see the linkage test).

contracts.protocolsOnChain

Function · sdk/dist/descriptors/query.d.ts Reverse index at protocol granularity, deduped, over the STARTER SET only - deliberately narrower than protocols/index.ts’s getProtocolsByChain (all ~128 protocols, no descriptor behind it).

contracts.requireContract

Function · sdk/dist/descriptors/query.d.ts Throwing sibling of describeContract, mirroring requireChain/requireV12Deployment’s “here is the known set” error style.

contracts.selectorOf

Function · sdk/dist/descriptors/query.d.ts