mirror of
https://github.com/paradigmxyz/cryo.git
synced 2026-11-17 08:44:55 +00:00
* add incomplete --timestamp parameter * create interface for timestamp_to_block function * add get_latest_block_number() function * Add timestamp_to_block_number() function * Use Strings for timestamp * change timestamp argument to Vec<String> part 2 * use reference, fix get_latest_block_number() * add parse_timestamp() functions * make some block processing functions public * cargo fmt * add docs * add support for "every nth value" syntax * implement parse_timestamp_range_to_block_number_range() * remove unused array in timestamp_to_block_numbers() * fix binary search in timestamp_to_block_number() * cargo fmt * initial test for timestamp_to_block_number() * cargo fmt * Add additional timestamp_to_block_number tests * return lower block number if edge case * cargo fmt * Test before genesis block and after latest block * update commenting * Test latest timestamp to latest block number * refactor timestamp test cases * add rate limit to timestamp test setup * remove unneeded test case * update testing rpc * cargo fmt * remove redundant timestamp test * reduce value in timestamp extrema test case * Add tests for timestamp ending with a unit * Fix timestamp range to blocknumber range and add tests * Refactor parse timestamp functions and fix tests * cargo fmt * Refactor get_latest_block_number() into blocks.rs * remove unneeded test case * optimize latest timestamp testcase * cargo fmt * use parse_timestamps, and rename file * update docs, use timestamps instead of timestamp * fix typo in timestamp specification syntax * update timestamp scaling units * remove debug print * update docs to incorporate timestamp scales * update tests * Remove test case that overloads RPC
223 lines
6.1 KiB
223 lines
6.1 KiB