1 viewer
rust 1,859,748 · typescript 235,215 · javascript 132,932 · python 20,426 · 6,405 files · digest 3ddca2872e6e · built in 1.4 s · crystals off
crates/cre8-app-agent/src/market_tools.rs
Items
trait PositionStore struct InMemoryPositionStore impl InMemoryPositionStore impl PositionStore for InMemoryPositionStore struct PostPositionTool impl PostPositionTool struct PostArgs impl Tool for PostPositionTool struct CancelPositionTool impl CancelPositionTool struct CancelArgs impl Tool for CancelPositionTool struct FailingUpsertStore impl PositionStore for FailingUpsertStore
Functions
By call-graph weight (PageRank; 1.0 is the average function). 43 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| fresh_view_with_balancesrc/market_tools.rs:403 | fn | 32 | 1 | 15 | 6 | 3.1 | |
| PostPositionTool::newsrc/market_tools.rs:119 | method | 3 | 1 | 11 | 0 | 2.4 | |
| CancelPositionTool::newsrc/market_tools.rs:306 | method | 3 | 1 | 6 | 0 | 1.5 | |
| InMemoryPositionStore::newsrc/market_tools.rs:54 | method | 3 | 1 | 4 | 0 | 1.2 | |
| post_argssrc/market_tools.rs:436 | fn | 7 | 1 | 4 | 0 | 1 | |
| InMemoryPositionStore::lensrc/market_tools.rs:58 | method | 3 | 1 | 1 | 0 | 0.9 | |
| PostPositionTool::namesrc/market_tools.rs:139 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| CancelPositionTool::namesrc/market_tools.rs:317 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| reserve_policysrc/market_tools.rs:107 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| agent_market_toolssrc/market_tools.rs:385 | fn | 6 | 1 | 2 | 3 | 0.8 | |
| derive_position_idsrc/market_tools.rs:87 | fn | 14 | 1 | 2 | 0 | 0.8 | |
| reserve_offer_assetssrc/market_tools.rs:264 | fn | 20 | 4 | 2 | 2 | 0.7 | |
| validate_post_argssrc/market_tools.rs:231 | fn | 17 | 6 | 1 | 0 | 0.6 | |
| check_offer_balancessrc/market_tools.rs:249 | fn | 14 | 3 | 1 | 1 | 0.6 | |
| post_position_recordsrc/market_tools.rs:285 | fn | 14 | 1 | 1 | 0 | 0.6 | |
| InMemoryPositionStore::is_emptysrc/market_tools.rs:62 | method | 3 | 1 | 0 | 1 | 0.5 | |
| InMemoryPositionStore::upsertsrc/market_tools.rs:68 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| InMemoryPositionStore::getsrc/market_tools.rs:73 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| InMemoryPositionStore::deletesrc/market_tools.rs:77 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| PostPositionTool::specsrc/market_tools.rs:143 | trait impl | 41 | 1 | 0 | 1 | 0.5 | |
| PostPositionTool::executesrc/market_tools.rs:185 | trait impl | 42 | 3 | 0 | 6 | 0.5 | |
| CancelPositionTool::specsrc/market_tools.rs:321 | trait impl | 21 | 1 | 0 | 1 | 0.5 | |
| CancelPositionTool::executesrc/market_tools.rs:343 | trait impl | 36 | 3 | 0 | 1 | 0.5 | |
| FailingUpsertStore::upsertsrc/market_tools.rs:447 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| FailingUpsertStore::getsrc/market_tools.rs:451 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| FailingUpsertStore::deletesrc/market_tools.rs:455 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| post_position_reserves_and_persistssrc/market_tools.rs:463 | fn | 30 | 1 | 0 | 3 | 0.5 | |
| market_tool_specs_are_named_and_describe_required_inputssrc/market_tools.rs:495 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| post_position_records_partial_and_expiry_flagssrc/market_tools.rs:509 | fn | 17 | 1 | 0 | 2 | 0.5 | |
| post_position_rejects_insufficient_balancesrc/market_tools.rs:528 | fn | 15 | 1 | 0 | 3 | 0.5 | |
| post_position_atomic_across_multiple_offered_assetssrc/market_tools.rs:545 | fn | 25 | 1 | 0 | 2 | 0.5 | |
| post_position_rejects_empty_offer_or_wantsrc/market_tools.rs:572 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| post_position_rejects_invalid_arguments_and_empty_market_idsrc/market_tools.rs:596 | fn | 16 | 1 | 0 | 2 | 0.5 | |
| post_position_rejects_non_positive_offer_amountsrc/market_tools.rs:614 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| reserve_helper_rolls_back_successful_reserves_when_later_asset_failssrc/market_tools.rs:628 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| post_position_rolls_back_reserves_when_persist_failssrc/market_tools.rs:641 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| cancel_position_releases_and_deletessrc/market_tools.rs:655 | fn | 27 | 1 | 0 | 4 | 0.5 | |
| cancel_position_rejects_unknown_idsrc/market_tools.rs:684 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| cancel_position_rejects_invalid_arguments_and_store_delete_missing_is_falsesrc/market_tools.rs:692 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| position_store_direct_methods_and_failing_store_helpers_are_coveredsrc/market_tools.rs:702 | fn | 24 | 1 | 0 | 2 | 0.5 | |
| cancel_position_rejects_other_peers_positionssrc/market_tools.rs:728 | fn | 23 | 1 | 0 | 3 | 0.5 | |
| agent_market_tools_returns_post_and_cancelsrc/market_tools.rs:755 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| derive_position_id_is_deterministicsrc/market_tools.rs:767 | fn | 9 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.