{"deployed":true,"program_id":"7mg6mbGQcKAgzpeEebEZYd6hntuqdCvB4BUyAGi49SZX","keys":[{"role":"Upgrade authority","address":"2rBQLofxC197chU53RarCV4hkq6Bp37qf3w9A8oH6m7A","can":"Replace the whole program code, including vaults and every rule.","worst":"Everything the program holds: locked tokens, the sale vault, the rules. Nothing in the program limits this key."},{"role":"Admin","address":"2rBQLofxC197chU53RarCV4hkq6Bp37qf3w9A8oH6m7A","can":"Propose config changes (public, applied 7+ days later), set the token mint once.","worst":"Config changes that wait 7 days in public view; cannot move locked tokens or past roots."},{"role":"Record key","address":"2rBQLofxC197chU53RarCV4hkq6Bp37qf3w9A8oH6m7A","can":"Post one root per finished UTC hour, in increasing hour order.","worst":"Bad roots for hours not yet posted (they fail verification against the leaf files); cannot change or remove any posted root."},{"role":"House wallet","address":"2rBQLofxC197chU53RarCV4hkq6Bp37qf3w9A8oH6m7A","can":"Send test and rejection-demo transactions.","worst":"Its own test funds."}],"enforced_by_chain":["Hourly roots only in increasing hour order: a second root for an hour or a root for an older hour is refused (HourNotIncreasing)","A root only after its hour has ended by the chain clock (HourNotFinished)","No instruction edits or removes a posted root","Only the record key posts roots (NotRecordKey)","A deposit counts after 24 hours; a withdrawal request stops counting at once and pays after the wait (WithdrawNotReady)","Only the owner withdraws (NotOwner)","Config changes wait at least 7 days (TimelockNotElapsed)","The USDC mint is fixed at initialize","The token mint is set once and must have no freeze authority, no charge on transfers, no transfer hook, no permanent delegate, no pause and no default-frozen state (MintAlreadySet, FreezeAuthorityPresent, MintExtensionNotAllowed)"],"recorded_on_chain_followed_by_server":["Each plan's expiry in the buyer's purchase account (Basic, Watch, Pro run separately; buying again extends from the current end)","Limits by lock tier"],"done_by_server":["Finding calls and matching markets: every verdict is a leaf","Market probability and score: recomputable from Kalshi minute data","Leaf files hash to the root on chain"],"rejection_demos":[{"n":1,"what":"Post a root for the hour that already has the last root (the same hour twice)","signer":"Record key","expected_error":"HourNotIncreasing","tx":null,"status":"to send after deploy, once the server has posted a root"},{"n":2,"what":"Post a root for an hour older than the last posted hour","signer":"Record key","expected_error":"HourNotIncreasing","tx":null,"status":"to send after deploy, once the server has posted a root"},{"n":3,"what":"Post a root for the current UTC hour, which is not over (the same post twice in one transaction, so it can never be stored)","signer":"Record key","expected_error":"HourNotFinished","tx":null,"status":"to send after deploy"},{"n":4,"what":"Post a root signed by a key that is not the record key","signer":"House wallet","expected_error":"NotRecordKey","tx":null,"status":"to send after deploy"},{"n":5,"what":"Withdraw before the withdrawal wait has passed (deposit, request and withdraw in one transaction)","signer":"House wallet","expected_error":"WithdrawNotReady","tx":null,"status":"to send after the token mint is set"},{"n":6,"what":"Withdraw from a lock owned by another wallet","signer":"House wallet","expected_error":"NotOwner","tx":null,"status":"to send after the token mint is set and another wallet has a lock"},{"n":7,"what":"Apply a config change right after proposing it (propose and apply in one transaction)","signer":"Admin","expected_error":"TimelockNotElapsed","tx":null,"status":"to send after deploy"}],"idl_instructions":["apply_config","buy_plan","cancel_config","deposit","initialize","post_root","propose_config","request_withdraw","set_token_mint","withdraw"],"idl_errors":[{"code":6000,"name":"NotAdmin"},{"code":6001,"name":"NotRecordKey"},{"code":6002,"name":"NotOwner"},{"code":6003,"name":"NotUpgradeAuthority"},{"code":6004,"name":"TimelockNotElapsed"},{"code":6005,"name":"NoPendingConfig"},{"code":6006,"name":"ZeroKey"},{"code":6007,"name":"InvalidTiers"},{"code":6008,"name":"InvalidBps"},{"code":6009,"name":"InvalidPrice"},{"code":6010,"name":"InvalidTimelock"},{"code":6011,"name":"InvalidWait"},{"code":6012,"name":"MintAlreadySet"},{"code":6013,"name":"MintNotSet"},{"code":6014,"name":"InvalidMint"},{"code":6015,"name":"FreezeAuthorityPresent"},{"code":6016,"name":"MintExtensionNotAllowed"},{"code":6017,"name":"WrongMint"},{"code":6018,"name":"WrongTokenProgram"},{"code":6019,"name":"HourNotFinished"},{"code":6020,"name":"HourNotIncreasing"},{"code":6021,"name":"ZeroAmount"},{"code":6022,"name":"TooManyLots"},{"code":6023,"name":"InsufficientLocked"},{"code":6024,"name":"WithdrawNotReady"},{"code":6025,"name":"NothingPending"},{"code":6026,"name":"WrongUsdcMint"},{"code":6027,"name":"InvalidPlan"},{"code":6028,"name":"InvalidMonths"},{"code":6031,"name":"MathOverflow"}]}