Archived documentation for
@eco-incorp/sauce@1.0.0. Install this release with npm install --save-exact @eco-incorp/sauce@1.0.0. Links to guides outside this tab open current documentation.v12PredictPot(owner, salt?, kitchen?) derives a Potโs address without reading a chain, potSalt and DEFAULT_POT_SALT give its salt, and kitchenExecutionFee() builds the read of the Kitchenโs fee per cook. sqrtPriceX96FromPrice and priceFromSqrtPriceX96 convert between a price and a poolโs sqrtPriceX96.
@eco-incorp/sauce.
potSalt
Function ยท @eco-incorp/sauce
The salt of the Pot an owner names label: keccak256(utf8(label)).
An owner has one Pot per salt. The zero salt (DEFAULT_POT_SALT) is the convention
for the one Pot an owner has by default, and a label names any other:
v12PredictPot(owner, potSalt("treasury")). Hashing gives any label a full 32-byte salt, the
same everywhere: the sauce commandโs --salt treasury is this. An exact salt needs no helper;
pass the 32 bytes to v12PredictPot as they are.
DEFAULT_POT_SALT
Variable ยท @eco-incorp/sauce
The salt of an ownerโs default Pot: zero.
A Pot is fixed by its (owner, salt) pair, so this is not a namespace: whoever calls
Kitchen.deployPot(owner, 0) creates this same Pot, owned by owner, and nobody can create a
different one there.
v12PredictPot
Function ยท @eco-incorp/sauce
CREATE2(kitchen, keccak256(abi.encode(owner, salt)), initCodeHash) - the formula
V12Deployments.json records, applied. kitchen defaults to the pinned releaseโs Kitchen proxy,
the Potsโ deployer; the init-code hash is always the pinned releaseโs, never a constant here.
Chain-independent, like every CREATE2 address: the same owner and salt give the same Pot on every
chain the Kitchen is deployed at that address on. A Kitchen upgrade that moves the init-code hash
moves every Pot minted after it - the reason this reads the hash from the release.
kitchenExecutionFee
Function ยท @eco-incorp/sauce
Kitchen.executionFee(), as a request plus its decoder.
ExecutionFeeCall
Interface ยท @eco-incorp/sauce
