cuckoo

Reference

CLI

Every command of cuckoo.

node cli/cuckoo.mjs help lists them. Configuration: CUCKOO_RPC or --rpc, CUCKOO_NEST or --nest, CUCKOO_KEY or cuckoo-wallet.json.

CommandWhat it does
wallet newCreates a key file.
deployDeploys the contract. Needs a funded CUCKOO_KEY.
blockThe block number the contract reads, next to eth_blockNumber.
statusYour escrow and the contract's balance.
deposit <eth> / withdraw <eth>Move ETH in and out of escrow.
egg buy --curve --eth --block [--window] [--reward] [--file]Signs an egg for a Pons-style buy.
hatch <egg.json>Carries an egg yourself.
cancel <nonce>Burns an egg.
keeper <eggs.json> [--lead] [--poll]Runs a keeper on a file of signed eggs.
measure [--n] [--ahead]Sends plain transactions aimed at a block and prints where they land.

measure

This is how real precision is established. It needs a funded key (each trial costs a little gas) and, for a fair result, a private RPC. It prints a histogram of landed - target and the share within one block.