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-protocol-identity/src/compute_market.rs
Items
const COMPUTE_MARKET_LOT_SCHEMA const COMPUTE_MARKET_LOT_PREFIX const COMPUTE_MARKET_LOT_RECORD_PREFIX const COMPUTE_MARKET_EFFECT_KEY_PREFIX enum ComputeMarketFeeKind impl ComputeMarketFeeKind enum ComputeMarketLotState enum ComputeMarketLotError impl Display for ComputeMarketLotError impl Error for ComputeMarketLotError type ComputeMarketLotResult struct ComputeMarketLot impl ComputeMarketLot
Functions
By call-graph weight (PageRank; 1.0 is the average function). 40 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ComputeMarketLot::validatesrc/compute_market.rs:434 | method | 59 | 11 | 7 | 7 | 11.2 | |
| require_canonical_fieldsrc/compute_market.rs:606 | fn | 6 | 3 | 7 | 0 | 7.8 | |
| ComputeMarketLot::derived_record_hashsrc/compute_market.rs:582 | method | 22 | 1 | 5 | 1 | 7.1 | |
| ComputeMarketLot::accepted_funding_bindingsrc/compute_market.rs:193 | method | 20 | 4 | 11 | 2 | 4.2 | |
| ComputeMarketLot::acceptsrc/compute_market.rs:250 | method | 29 | 3 | 18 | 3 | 3.9 | |
| ComputeMarketLot::require_statesrc/compute_market.rs:545 | method | 8 | 2 | 9 | 1 | 3.5 | |
| ComputeMarketLot::refresh_and_validatesrc/compute_market.rs:561 | method | 5 | 1 | 9 | 2 | 3.5 | |
| ComputeMarketLot::derived_lot_idsrc/compute_market.rs:567 | method | 14 | 1 | 3 | 1 | 3.4 | |
| ComputeMarketLot::effect_keysrc/compute_market.rs:399 | method | 34 | 5 | 8 | 1 | 2.9 | |
| ComputeMarketLot::reservesrc/compute_market.rs:141 | method | 35 | 1 | 9 | 2 | 2.7 | |
| ComputeMarketLot::require_livesrc/compute_market.rs:554 | method | 6 | 2 | 4 | 0 | 2.3 | |
| ComputeMarketLot::require_payer_accountsrc/compute_market.rs:217 | method | 9 | 2 | 15 | 2 | 2.2 | |
| ComputeMarketLot::validate_state_shapesrc/compute_market.rs:494 | method | 50 | 22 | 1 | 0 | 1.9 | |
| validate_optional_commitmentsrc/compute_market.rs:613 | fn | 6 | 2 | 1 | 1 | 1.9 | |
| validate_optional_acceptancesrc/compute_market.rs:620 | fn | 17 | 3 | 1 | 1 | 1.9 | |
| validate_execution_keyssrc/compute_market.rs:638 | fn | 22 | 5 | 1 | 2 | 1.9 | |
| reservedsrc/compute_market.rs:671 | fn | 5 | 1 | 6 | 2 | 1.8 | |
| keyssrc/compute_market.rs:666 | fn | 4 | 1 | 2 | 2 | 1.3 | |
| ComputeMarketLot::require_executor_payout_accountsrc/compute_market.rs:240 | method | 8 | 3 | 11 | 2 | 1.3 | |
| ComputeMarketLot::require_accepted_executorsrc/compute_market.rs:229 | method | 8 | 3 | 9 | 2 | 1.2 | |
| claimedsrc/compute_market.rs:677 | fn | 11 | 1 | 3 | 5 | 1.2 | |
| ComputeMarketLot::current_record_hashsrc/compute_market.rs:185 | method | 3 | 1 | 2 | 1 | 1 | |
| ComputeMarketLot::bind_fenced_premium_claimsrc/compute_market.rs:333 | method | 17 | 1 | 6 | 3 | 1 | |
| ComputeMarketLot::begin_fundingsrc/compute_market.rs:282 | method | 7 | 1 | 2 | 3 | 0.7 | |
| ComputeMarketLot::begin_executionsrc/compute_market.rs:292 | method | 7 | 1 | 2 | 3 | 0.7 | |
| ComputeMarketLot::bind_external_payment_receiptsrc/compute_market.rs:357 | method | 10 | 1 | 3 | 2 | 0.7 | |
| ComputeMarketLot::begin_funding_expirysrc/compute_market.rs:302 | method | 9 | 2 | 1 | 2 | 0.5 | |
| ComputeMarketLot::finish_funding_expirysrc/compute_market.rs:316 | method | 9 | 2 | 1 | 2 | 0.5 | |
| ComputeMarketLot::refundsrc/compute_market.rs:369 | method | 13 | 1 | 1 | 2 | 0.5 | |
| ComputeMarketFeeKind::as_strsrc/compute_market.rs:43 | method | 8 | 4 | 0 | 0 | 0.5 | |
| ComputeMarketLotError::fmtsrc/compute_market.rs:90 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| ComputeMarketLot::stable_hashsrc/compute_market.rs:180 | method | 3 | 1 | 0 | 1 | 0.5 | |
| ComputeMarketLot::expiresrc/compute_market.rs:387 | method | 9 | 2 | 0 | 2 | 0.5 | |
| reservation_is_deterministic_and_serde_round_tripssrc/compute_market.rs:690 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| price_and_identity_guards_fail_closedsrc/compute_market.rs:703 | fn | 66 | 1 | 0 | 8 | 0.5 | |
| expiry_and_state_machine_are_fail_closedsrc/compute_market.rs:771 | fn | 44 | 1 | 0 | 11 | 0.5 | |
| compute_premium_key_is_shared_across_policy_upgrades_but_future_fee_keys_are_distinctsrc/compute_market.rs:817 | fn | 20 | 2 | 0 | 2 | 0.5 | |
| tampering_and_unknown_fields_are_rejectedsrc/compute_market.rs:839 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| prototype_v1_and_v2_rows_are_explicitly_rejectedsrc/compute_market.rs:852 | fn | 15 | 2 | 0 | 1 | 0.5 | |
| payout_account_is_part_of_the_accepted_record_bindingsrc/compute_market.rs:869 | fn | 11 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.