ZeroExChain
Defined in: protocol-swap2-0x/src/chains.ts:24
Properties
Section titled “Properties”maxGasLimit?
Section titled “maxGasLimit?”
optionalmaxGasLimit?:bigint
Defined in: protocol-swap2-0x/src/chains.ts:51
The most gas a 0x swap on this chain may be given (the padded limit: 0x’s transaction.gas × 1.2 + 20,000), for a
chain where Settler swaps need more than the cap every other chain keeps (ZEROEX_MAX_GAS_LIMIT, 6,000,000). A
bigint, 1…ZEROEX_GAS_CAP_CEILING; absent: that default. In the default table only Monad sets one (15,000,000).
name:
string
Defined in: protocol-swap2-0x/src/chains.ts:26
Display name.
newestLiveNonce
Section titled “newestLiveNonce”newestLiveNonce:
number
Defined in: protocol-swap2-0x/src/chains.ts:37
The taker Settler deployment (the registry’s taker-feature nonce, see zeroExSettlerAddress) the registry named as
the one in force when the table was pinned. A native-coin sale is sent only to this deployment or to
previousLiveNonce: its value goes straight to the Settler’s address, so that address must be a Settler that
was live then. A token sale (Permit2) may also go to the next ZEROEX_SETTLER_NONCE_MARGIN deployments once
they hold code. Anything newer is refused, clearly, until the pin is raised — the watch job reports every new
deployment (ownerOf(2) per chain in watch.json, verify:live on the canary). 1…ZEROEX_SETTLER_MAX_NONCE.
previousLiveNonce
Section titled “previousLiveNonce”previousLiveNonce:
number
Defined in: protocol-swap2-0x/src/chains.ts:43
The deployment the registry named as the previous one (prev(2)) when the table was pinned: the oldest accepted.
An older Settler — a replaced one, whose code predates what the checks rely on — is refused as the one in force
and dropped as the previous one. 1…newestLiveNonce (equal to it on a chain with a single deployment).
registry
Section titled “registry”registry:
string
Defined in: protocol-swap2-0x/src/chains.ts:28
The Settler registry on this chain.
wrappedNative?
Section titled “wrappedNative?”
optionalwrappedNative?:string
Defined in: protocol-swap2-0x/src/chains.ts:45
Wrapped native token; native ↔ wrapped pairs are refused up front (0x answers them with a call to this token, not a Settler).