Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions contracts/tests/base/FullTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,29 @@ abstract contract FullTest is BaseTest, TestUtils {
);
}

function createTokenAndDeployPoolWithPrice(
address tokenOwner,
string memory coinName,
string memory coinAbbr,
uint8 decimals,
uint24 tokenSwapFee,
uint24 tokenTickSpacing,
uint160 sqrtPriceX96
) internal returns (TokenMeta memory tokenMeta) {
PoolMeta memory poolMeta = PoolMeta(
tokenSwapFee,
tokenTickSpacing,
sqrtPriceX96
);
tokenMeta = _createTokenAndDeployPool(
tokenOwner,
coinName,
coinAbbr,
decimals,
poolMeta
);
}

// todo: consider refactoring: extract logic of createTokenAndDeployPool and createTokenAndDeployFakePool
function createTokenAndDeployFakePool(
address tokenOwner,
Expand Down
Loading