... blocks.
let sub = provider.subscribe_blocks().await?;
// Wait and take the next 4 blocks.
let mut stream = sub.into_stream().take(4);
// let mut stream = sub.into_stream();
println!("Awaiting block headers...");
// Take the stream and print the block number upon ...
...oks 合约
- `hookData`:Hooks 数据
### 方法定义
#### getPoolAndSwapDirection
根据输入代币和中间代币信息,计算交易池子和交易方向。
```solidity
/// @notice Get the pool and swap direction for a given PathKey
/// @param params the given PathKey
/// @par...
...s(level), bytes32(uint256(5)));
// Call the level's `unlock` function and pass the downcasted bytes16
// value we just took from the private slot
level.unlock(bytes16(data));
// Assert we have unlocked the contract and passed the challenge
assertEq(level.locked(), false);
vm....