mirror of
https://github.com/lux-amm/v4-periphery.git
synced 2026-10-30 20:54:39 +00:00
16 lines
478 B
Solidity
16 lines
478 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.20;
|
|
|
|
import {UnorderedNonce} from "../../src/base/UnorderedNonce.sol";
|
|
|
|
contract MockUnorderedNonce is UnorderedNonce {
|
|
function spendNonce(address owner, uint256 nonce) external {
|
|
_useUnorderedNonce(owner, nonce);
|
|
}
|
|
|
|
/// @dev Bulk-spend nonces on a single word. FOR TESTING ONLY
|
|
function batchSpendNonces(uint256 wordPos, uint256 mask) external {
|
|
nonces[msg.sender][wordPos] |= mask;
|
|
}
|
|
}
|