1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-energy/src/market.rs
Items
const KIND_ENERGY_OFFER const MARKET_CURRENCY const OFFER_OPEN_CONTRACT_ID const OFFER_CANCEL_CONTRACT_ID const INTENT_OFFER_OPEN const INTENT_OFFER_CANCEL const OFFER_TARGET_PATTERN const MARKET_GROUP_TARGET const MARKET_FILL_INTENT const MAX_OFFER_WH const MAX_OFFER_PRICE const STATUS_OPEN const STATUS_FILLED const STATUS_CANCELLED struct EnergyOffer impl EnergyOffer const T0
Functions
By call-graph weight (PageRank; 1.0 is the average function). 42 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| derive_offer_idsrc/market.rs:148 | fn | 3 | 1 | 2 | 1 | 2.6 | |
| EnergyOffer::newsrc/market.rs:153 | method | 14 | 1 | 4 | 1 | 2.4 | |
| offersrc/market.rs:706 | fn | 3 | 1 | 9 | 1 | 1.8 | |
| participant_rejectsrc/market.rs:197 | fn | 10 | 4 | 4 | 0 | 1.6 | |
| EnergyOffer::price_per_kwhsrc/market.rs:174 | method | 3 | 1 | 3 | 0 | 1.4 | |
| str_fieldsrc/market.rs:435 | fn | 3 | 1 | 5 | 0 | 1.4 | |
| offer_create_handlersrc/market.rs:456 | fn | 59 | 4 | 2 | 12 | 1.3 | |
| offer_list_handlersrc/market.rs:518 | fn | 29 | 2 | 2 | 4 | 1.3 | |
| offer_get_handlersrc/market.rs:549 | fn | 14 | 1 | 2 | 4 | 1.3 | |
| offer_fill_handlersrc/market.rs:565 | fn | 63 | 7 | 2 | 12 | 1.3 | |
| offer_cancel_handlersrc/market.rs:632 | fn | 52 | 7 | 2 | 10 | 1.3 | |
| offer_targetsrc/market.rs:270 | fn | 3 | 1 | 2 | 0 | 1.2 | |
| parse_offersrc/market.rs:253 | fn | 14 | 1 | 2 | 4 | 1.2 | |
| load_offersrc/market.rs:240 | fn | 3 | 1 | 5 | 3 | 1.1 | |
| validate_offersrc/market.rs:221 | fn | 13 | 6 | 3 | 2 | 1.1 | |
| fill_groupsrc/market.rs:343 | fn | 70 | 1 | 4 | 3 | 1.1 | |
| upsert_offersrc/market.rs:235 | fn | 4 | 1 | 5 | 3 | 1 | |
| validate_assetsrc/market.rs:209 | fn | 11 | 3 | 1 | 0 | 1 | |
| build_open_receiptsrc/market.rs:296 | fn | 16 | 1 | 4 | 2 | 0.9 | |
| fill_group_idsrc/market.rs:336 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| available_balancesrc/market.rs:419 | fn | 8 | 1 | 5 | 0 | 0.9 | |
| list_offerssrc/market.rs:244 | fn | 8 | 1 | 2 | 2 | 0.9 | |
| energy_offer_open_contractsrc/market.rs:276 | fn | 7 | 1 | 4 | 3 | 0.8 | |
| energy_offer_cancel_contractsrc/market.rs:285 | fn | 8 | 1 | 4 | 3 | 0.8 | |
| callersrc/market.rs:430 | fn | 4 | 1 | 3 | 1 | 0.8 | |
| build_cancel_receiptsrc/market.rs:315 | fn | 15 | 1 | 3 | 2 | 0.8 | |
| graphsrc/market.rs:702 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| i64_fieldsrc/market.rs:440 | fn | 7 | 3 | 1 | 0 | 0.6 | |
| EnergyOffer::is_opensrc/market.rs:168 | method | 3 | 1 | 0 | 0 | 0.5 | |
| EnergyOffer::propssrc/market.rs:178 | method | 14 | 1 | 0 | 0 | 0.5 | |
| offer_jsonsrc/market.rs:686 | fn | 8 | 2 | 0 | 1 | 0.5 | |
| round_trip_preserves_trade_statesrc/market.rs:711 | fn | 10 | 1 | 0 | 5 | 0.5 | |
| validation_refuses_unpriced_unowned_and_non_energy_lotssrc/market.rs:723 | fn | 27 | 1 | 0 | 2 | 0.5 | |
| the_open_contract_reserves_exactly_the_offered_watt_hourssrc/market.rs:752 | fn | 16 | 2 | 0 | 4 | 0.5 | |
| the_cancel_contract_releases_back_to_the_sellersrc/market.rs:770 | fn | 12 | 2 | 0 | 4 | 0.5 | |
| market_contracts_do_not_cross_bindsrc/market.rs:786 | fn | 10 | 1 | 0 | 6 | 0.5 | |
| receipt_timestamps_are_derived_from_the_offer_never_the_clocksrc/market.rs:800 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| the_fill_group_swaps_both_sides_and_conserves_every_assetsrc/market.rs:810 | fn | 27 | 2 | 0 | 2 | 0.5 | |
| the_group_id_and_receipt_repeat_for_the_same_offer_and_buyersrc/market.rs:839 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| participants_must_be_attributablesrc/market.rs:851 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| price_per_kwh_is_the_comparable_numbersrc/market.rs:860 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| listing_is_newest_first_and_ids_split_on_every_termsrc/market.rs:869 | fn | 20 | 1 | 0 | 5 | 0.5 |
Source not readable from this process.