@@ -273,7 +273,7 @@ <h2 id="acknowledgment"><a class="header" href="#acknowledgment">Acknowledgment<
273273< li > < a href ="src/algorithms/clvr.sol/contract.CLVR.html "> CLVR</ a > </ li >
274274</ ul >
275275< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="basealgorithm "> < a class ="header " href ="#basealgorithm "> BaseAlgorithm</ a > </ h1 >
276- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/algorithms/BaseAlgorithm.sol "> Git Source</ a > </ p >
276+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/algorithms/BaseAlgorithm.sol "> Git Source</ a > </ p >
277277< p > < strong > Inherits:</ strong >
278278< a href ="src/algorithms/BaseAlgorithm.sol//src/interfaces/IAlgorithm.sol/interface.IAlgorithm.html "> IAlgorithm</ a > </ p >
279279< h2 id ="state-variables "> < a class ="header " href ="#state-variables "> State Variables</ a > </ h2 >
@@ -331,7 +331,7 @@ <h3 id="getvolatility"><a class="header" href="#getvolatility">getVolatility</a>
331331< pre > < code class ="language-solidity "> function getVolatility(AsyncOrder[] memory orders) external pure virtual override returns (uint256);
332332</ code > </ pre >
333333< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="clvr "> < a class ="header " href ="#clvr "> CLVR</ a > </ h1 >
334- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/algorithms/clvr.sol "> Git Source</ a > </ p >
334+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/algorithms/clvr.sol "> Git Source</ a > </ p >
335335< p > < strong > Inherits:</ strong >
336336< a href ="src/algorithms/clvr.sol//src/algorithms/BaseAlgorithm.sol/contract.BaseAlgorithm.html "> BaseAlgorithm</ a > </ p >
337337< p > < strong > Title:</ strong >
@@ -387,7 +387,7 @@ <h3 id="getvolatility-1"><a class="header" href="#getvolatility-1">getVolatility
387387< li > < a href ="src/interfaces/IRouter.sol/interface.IRouter.html "> IRouter</ a > </ li >
388388</ ul >
389389< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="ialgorithm "> < a class ="header " href ="#ialgorithm "> IAlgorithm</ a > </ h1 >
390- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/interfaces/IAlgorithm.sol "> Git Source</ a > </ p >
390+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/interfaces/IAlgorithm.sol "> Git Source</ a > </ p >
391391< p > < strong > Title:</ strong >
392392Algorithm Interface</ p >
393393< p > < strong > Author:</ strong >
@@ -426,7 +426,7 @@ <h3 id="getvolatility-2"><a class="header" href="#getvolatility-2">getVolatility
426426< pre > < code class ="language-solidity "> function getVolatility(AsyncOrder[] memory orders) external pure returns (uint256);
427427</ code > </ pre >
428428< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="iasyncswapamm "> < a class ="header " href ="#iasyncswapamm "> IAsyncSwapAMM</ a > </ h1 >
429- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/interfaces/IAsyncSwapAMM.sol "> Git Source</ a > </ p >
429+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/interfaces/IAsyncSwapAMM.sol "> Git Source</ a > </ p >
430430< p > < strong > Inherits:</ strong >
431431< a href ="src/interfaces/IAsyncSwapAMM.sol//src/interfaces/IAsyncSwapOrder.sol/interface.IAsyncSwapOrder.html "> IAsyncSwapOrder</ a > </ p >
432432< p > < strong > Title:</ strong >
@@ -472,7 +472,7 @@ <h3 id="userparams"><a class="header" href="#userparams">UserParams</a></h3>
472472< tr > < td > < code > executor</ code > </ td > < td > < code > address</ code > </ td > < td > </ td > </ tr >
473473</ tbody > </ table >
474474</ div > < div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="iasyncswaporder "> < a class ="header " href ="#iasyncswaporder "> IAsyncSwapOrder</ a > </ h1 >
475- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/interfaces/IAsyncSwapOrder.sol "> Git Source</ a > </ p >
475+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/interfaces/IAsyncSwapOrder.sol "> Git Source</ a > </ p >
476476< p > < strong > Title:</ strong >
477477Async Swap Interface</ p >
478478< p > < strong > Author:</ strong >
@@ -514,14 +514,15 @@ <h3 id="isexecutor"><a class="header" href="#isexecutor">isExecutor</a></h3>
514514< h2 id ="events "> < a class ="header " href ="#events "> Events</ a > </ h2 >
515515< h3 id ="asyncorderfilled "> < a class ="header " href ="#asyncorderfilled "> AsyncOrderFilled</ a > </ h3 >
516516< p > Emitted when an async order is filled.</ p >
517- < pre > < code class ="language-solidity "> event AsyncOrderFilled(PoolId poolId, address owner, bool zeroForOne, uint256 amount);
517+ < pre > < code class ="language-solidity "> event AsyncOrderFilled(PoolId poolId, address owner, bool zeroForOne, uint256 amount, uint256 deadline );
518518</ code > </ pre >
519519< p > < strong > Parameters</ strong > </ p >
520520< div class ="table-wrapper "> < table > < thead > < tr > < th > Name</ th > < th > Type</ th > < th > Description</ th > </ tr > </ thead > < tbody >
521521< tr > < td > < code > poolId</ code > </ td > < td > < code > PoolId</ code > </ td > < td > The poolId of the pool where the order is placed.</ td > </ tr >
522522< tr > < td > < code > owner</ code > </ td > < td > < code > address</ code > </ td > < td > The owner of the order, who can claim the order.</ td > </ tr >
523523< tr > < td > < code > zeroForOne</ code > </ td > < td > < code > bool</ code > </ td > < td > Whether the order is for a swap from currency0 to currency1 (true) or currency1 to currency0 (false).</ td > </ tr >
524524< tr > < td > < code > amount</ code > </ td > < td > < code > uint256</ code > </ td > < td > The amount of the order.</ td > </ tr >
525+ < tr > < td > < code > deadline</ code > </ td > < td > < code > uint256</ code > </ td > < td > The deadline of the order.</ td > </ tr >
525526</ tbody > </ table >
526527</ div >
527528< h3 id ="asyncswaporder "> < a class ="header " href ="#asyncswaporder "> AsyncSwapOrder</ a > </ h3 >
@@ -546,7 +547,7 @@ <h3 id="zerofillorder"><a class="header" href="#zerofillorder">ZeroFillOrder</a>
546547< pre > < code class ="language-solidity "> error ZeroFillOrder();
547548</ code > </ pre >
548549< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="irouter "> < a class ="header " href ="#irouter "> IRouter</ a > </ h1 >
549- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/interfaces/IRouter.sol "> Git Source</ a > </ p >
550+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/interfaces/IRouter.sol "> Git Source</ a > </ p >
550551< p > < strong > Title:</ strong >
551552Router Interface</ p >
552553< p > < strong > Author:</ strong >
@@ -618,7 +619,7 @@ <h3 id="actiontype"><a class="header" href="#actiontype">ActionType</a></h3>
618619< li > < a href ="src/libraries/AsyncFiller.sol/library.AsyncFiller.html "> AsyncFiller</ a > </ li >
619620</ ul >
620621< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="asyncfiller "> < a class ="header " href ="#asyncfiller "> AsyncFiller</ a > </ h1 >
621- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/libraries/AsyncFiller.sol "> Git Source</ a > </ p >
622+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/libraries/AsyncFiller.sol "> Git Source</ a > </ p >
622623< p > < strong > Title:</ strong >
623624AsyncFiller library</ p >
624625< p > < strong > Author:</ strong >
@@ -707,14 +708,15 @@ <h3 id="state"><a class="header" href="#state">State</a></h3>
707708< li > < a href ="src/types/AsyncOrder.sol/struct.AsyncOrder.html "> AsyncOrder</ a > </ li >
708709</ ul >
709710< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="asyncorder "> < a class ="header " href ="#asyncorder "> AsyncOrder</ a > </ h1 >
710- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/types/AsyncOrder.sol "> Git Source</ a > </ p >
711+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/types/AsyncOrder.sol "> Git Source</ a > </ p >
711712< p > Represents an async order for a swap in the Uniswap V4 pool.</ p >
712713< pre > < code class ="language-solidity "> struct AsyncOrder {
713714PoolKey key;
714715address owner;
715716bool zeroForOne;
716717uint256 amountIn;
717718uint160 sqrtPrice;
719+ uint256 deadline;
718720}
719721</ code > </ pre >
720722< p > < strong > Properties</ strong > </ p >
@@ -724,13 +726,14 @@ <h3 id="state"><a class="header" href="#state">State</a></h3>
724726< tr > < td > < code > zeroForOne</ code > </ td > < td > < code > bool</ code > </ td > < td > Whether the order is for a swap from currency0 to currency1 (true) or currency1 to currency0 (false).</ td > </ tr >
725727< tr > < td > < code > amountIn</ code > </ td > < td > < code > uint256</ code > </ td > < td > The amount of the order that is being filled.</ td > </ tr >
726728< tr > < td > < code > sqrtPrice</ code > </ td > < td > < code > uint160</ code > </ td > < td > The square root price of the pool at the time of the order.</ td > </ tr >
729+ < tr > < td > < code > deadline</ code > </ td > < td > < code > uint256</ code > </ td > < td > The timestamp after which the order cannot be executed.</ td > </ tr >
727730</ tbody > </ table >
728731</ div > < div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="contents-4 "> < a class ="header " href ="#contents-4 "> Contents</ a > </ h1 >
729732< ul >
730733< li > < a href ="src/utils/TransientStorage.sol/contract.TransientStorage.html "> TransientStorage</ a > </ li >
731734</ ul >
732735< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="transientstorage "> < a class ="header " href ="#transientstorage "> TransientStorage</ a > </ h1 >
733- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/utils/TransientStorage.sol "> Git Source</ a > </ p >
736+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/utils/TransientStorage.sol "> Git Source</ a > </ p >
734737< p > < strong > Title:</ strong >
735738TransientStorage helper contract</ p >
736739< p > < strong > Author:</ strong >
@@ -756,7 +759,7 @@ <h3 id="tstore"><a class="header" href="#tstore">tstore</a></h3>
756759< tr > < td > < code > value</ code > </ td > < td > < code > bytes32</ code > </ td > < td > The value to store in the transient storage.</ td > </ tr >
757760</ tbody > </ table >
758761</ div > < div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="asyncswap "> < a class ="header " href ="#asyncswap "> AsyncSwap</ a > </ h1 >
759- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/AsyncSwap.sol "> Git Source</ a > </ p >
762+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/AsyncSwap.sol "> Git Source</ a > </ p >
760763< p > < strong > Inherits:</ strong >
761764BaseHook, < a href ="src/AsyncSwap.sol//src/interfaces/IAsyncSwapAMM.sol/interface.IAsyncSwapAMM.html "> IAsyncSwapAMM</ a > </ p >
762765< p > < strong > Title:</ strong >
@@ -870,14 +873,17 @@ <h3 id="unsupportedliquidity"><a class="header" href="#unsupportedliquidity">Uns
870873< p > Error thrown when liquidity is not supported in this hook.</ p >
871874< pre > < code class ="language-solidity "> error UnsupportedLiquidity();
872875</ code > </ pre >
876+ < h3 id ="orderexpired "> < a class ="header " href ="#orderexpired "> OrderExpired</ a > </ h3 >
877+ < pre > < code class ="language-solidity "> error OrderExpired();
878+ </ code > </ pre >
873879< h3 id ="invalidwithdrawal "> < a class ="header " href ="#invalidwithdrawal "> InvalidWithdrawal</ a > </ h3 >
874880< pre > < code class ="language-solidity "> error InvalidWithdrawal();
875881</ code > </ pre >
876882< h3 id ="notapprovedexecutor "> < a class ="header " href ="#notapprovedexecutor "> NotApprovedExecutor</ a > </ h3 >
877883< pre > < code class ="language-solidity "> error NotApprovedExecutor();
878884</ code > </ pre >
879885< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="router "> < a class ="header " href ="#router "> Router</ a > </ h1 >
880- < p > < a href ="https://github.com/asyncswap/async-swap/blob/25f74fb1a2375758a7352efe2a078c10b91c15ae /src/router.sol "> Git Source</ a > </ p >
886+ < p > < a href ="https://github.com/asyncswap/async-swap/blob/3629ea7fce016a727e6ae09dc5468036d6a3e621 /src/router.sol "> Git Source</ a > </ p >
881887< p > < strong > Inherits:</ strong >
882888< a href ="src/router.sol//src/interfaces/IRouter.sol/interface.IRouter.html "> IRouter</ a > </ p >
883889< p > < strong > Title:</ strong >
0 commit comments