Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

crates/cre8-app-compute/src/market_authority.rs

cre8-app-compute · module market_authority · src · 1,784 lines (1,573 code, 82 comment) · sha d6d8c0ce9b9e4a57

Items

const COMPUTE_MARKET_LOTS_TABLE struct AuthenticatedComputeMarketBuyer impl AuthenticatedComputeMarketBuyer struct AuthenticatedComputeMarketExecutor impl AuthenticatedComputeMarketExecutor enum ComputeMarketLotAuthorityError type ComputeMarketLotAuthorityResult trait ComputeMarketAuthorityClock struct PlatformComputeMarketAuthorityClock impl ComputeMarketAuthorityClock for PlatformComputeMarketAuthorityClock trait ComputeMarketLotAuthority struct SqliteComputeMarketLotAuthority impl SqliteComputeMarketLotAuthority impl ComputeMarketLotAuthority for SqliteComputeMarketLotAuthority struct PersistedLotFields impl PersistedLotFields static NEXT_TEST_DB struct TestComputeMarketClock impl TestComputeMarketClock impl ComputeMarketAuthorityClock for TestComputeMarketClock

Functions

By call-graph weight (PageRank; 1.0 is the average function). 85 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
storage_errorsrc/market_authority.rs:1120fn312105
canonical_trusted_identitysrc/market_authority.rs:1100fn73204.1
AuthenticatedComputeMarketBuyer::from_authenticated_sessionsrc/market_authority.rs:58method121512.6
AuthenticatedComputeMarketBuyer::payer_account_idsrc/market_authority.rs:75method311602.2
SqliteComputeMarketLotAuthority::observesrc/market_authority.rs:754trait impl161542.1
SqliteComputeMarketLotAuthority::compare_and_swapsrc/market_authority.rs:693method426752.1
buyer_namedsrc/market_authority.rs:1221fn31711.9
cleanupsrc/market_authority.rs:1211fn521701.7
AuthenticatedComputeMarketExecutor::from_authenticated_sessionsrc/market_authority.rs:89method121611.6
lot_forsrc/market_authority.rs:1294fn221531.5
SqliteComputeMarketLotAuthority::from_shared_truthsrc/market_authority.rs:418method311021.5
require_canonical_lot_idsrc/market_authority.rs:1108fn73301.5
SqliteComputeMarketLotAuthority::from_shared_truth_with_clocksrc/market_authority.rs:422method112301.4
authoritysrc/market_authority.rs:1201fn911551.4
PersistedLotFields::insert_paramssrc/market_authority.rs:951method181201.3
SqliteComputeMarketLotAuthority::observe_funding_authorizationsrc/market_authority.rs:582method231341.3
PersistedLotFields::from_lotsrc/market_authority.rs:930method201641.3
AuthenticatedComputeMarketExecutor::payout_account_idsrc/market_authority.rs:106method311001.2
stored_mismatchsrc/market_authority.rs:1124fn31401.2
stored_textsrc/market_authority.rs:1128fn41421.2
fused_reservationsrc/market_authority.rs:1234fn431731.1
SqliteComputeMarketLotAuthority::compute_premium_owner_competitorsrc/market_authority.rs:659method334351.1
same_immutable_termssrc/market_authority.rs:1046fn1210301.1
configured_compute_market_lot_authoritysrc/market_authority.rs:155fn183241.1
buyersrc/market_authority.rs:1217fn31911
stored_lot_from_rowsrc/market_authority.rs:991fn5415170.9
SqliteComputeMarketLotAuthority::reserve_with_execution_requestsrc/market_authority.rs:298method95181110.9
SqliteComputeMarketLotAuthority::begin_execution_after_fundingsrc/market_authority.rs:397method204130.9
SqliteComputeMarketLotAuthority::begin_funding_with_authorizationsrc/market_authority.rs:509method7215180.9
TestComputeMarketClock::newsrc/market_authority.rs:1178method31300.8
SqliteComputeMarketLotAuthority::reconcile_transitionsrc/market_authority.rs:736method114110.8
test_db_pathsrc/market_authority.rs:1193fn71200.8
lotsrc/market_authority.rs:1230fn31510.8
retains_compute_premium_ownershipsrc/market_authority.rs:1063fn132200.8
fee_kind_textsrc/market_authority.rs:1077fn84100.8
state_textsrc/market_authority.rs:1086fn139100.8
sqlite_i64src/market_authority.rs:1116fn31100.8
TestComputeMarketClock::set_now_mssrc/market_authority.rs:1182method31500.7
fused_reservesrc/market_authority.rs:1278fn151420.7
executorsrc/market_authority.rs:1225fn41410.7
SqliteComputeMarketLotAuthority::insert_if_absentsrc/market_authority.rs:606method307160.6
AuthenticatedComputeMarketBuyer::transport_peer_idsrc/market_authority.rs:71method31200.6
stored_i64src/market_authority.rs:1133fn31120.6
stored_opt_textsrc/market_authority.rs:1137fn133130.6
stored_opt_i64src/market_authority.rs:1151fn93130.6
SqliteComputeMarketLotAuthority::reconcile_reservationsrc/market_authority.rs:637method74110.6
SqliteComputeMarketLotAuthority::reject_competing_compute_premium_ownersrc/market_authority.rs:645method132110.6
SqliteComputeMarketLotAuthority::expiresrc/market_authority.rs:905trait impl51110.6
paid_legacy_lot_forsrc/market_authority.rs:1319fn181120.5
AuthenticatedComputeMarketExecutor::peer_idsrc/market_authority.rs:102method31000.5
PlatformComputeMarketAuthorityClock::now_mssrc/market_authority.rs:184trait impl31010.5
SqliteComputeMarketLotAuthority::truthsrc/market_authority.rs:434method31000.5
SqliteComputeMarketLotAuthority::ensure_schemasrc/market_authority.rs:438method662040.5
SqliteComputeMarketLotAuthority::authority_backendsrc/market_authority.rs:750trait impl31000.5
SqliteComputeMarketLotAuthority::observe_execution_requestsrc/market_authority.rs:771trait impl71010.5
SqliteComputeMarketLotAuthority::reserve_with_execution_requestsrc/market_authority.rs:779trait impl191010.5
SqliteComputeMarketLotAuthority::begin_funding_with_authorizationsrc/market_authority.rs:799trait impl131010.5
SqliteComputeMarketLotAuthority::observe_funding_authorizationsrc/market_authority.rs:813trait impl61010.5
SqliteComputeMarketLotAuthority::begin_execution_after_fundingsrc/market_authority.rs:820trait impl71010.5
SqliteComputeMarketLotAuthority::reservesrc/market_authority.rs:828trait impl163030.5
SqliteComputeMarketLotAuthority::acceptsrc/market_authority.rs:845trait impl171040.5
SqliteComputeMarketLotAuthority::begin_executionsrc/market_authority.rs:864trait impl101040.5
SqliteComputeMarketLotAuthority::begin_fundingsrc/market_authority.rs:876trait impl121060.5
SqliteComputeMarketLotAuthority::begin_funding_expirysrc/market_authority.rs:889trait impl51010.5
SqliteComputeMarketLotAuthority::refundsrc/market_authority.rs:895trait impl91030.5
PersistedLotFields::insert_statementsrc/market_authority.rs:970method131010.5
PersistedLotFields::cas_paramssrc/market_authority.rs:984method51010.5
TestComputeMarketClock::now_mssrc/market_authority.rs:1188trait impl31000.5
concurrent_accept_has_one_winner_and_exact_cas_guardsrc/market_authority.rs:1339fn262070.5
exact_retries_reconcile_and_reopen_preserves_canonical_lotsrc/market_authority.rs:1367fn141070.5
fused_reserve_rolls_back_request_when_lot_insert_abortssrc/market_authority.rs:1383fn241070.5
fused_reserve_heals_an_identical_standalone_request_orphansrc/market_authority.rs:1409fn181060.5
fused_reserve_rejects_a_conflicting_orphan_without_creating_a_lotsrc/market_authority.rs:1429fn271080.5
concurrent_exact_fused_reserve_retries_converge_on_both_rowssrc/market_authority.rs:1458fn161060.5
concurrent_competing_fused_reservations_commit_one_complete_owner_onlysrc/market_authority.rs:1476fn212070.5
competing_fused_reserve_leaves_no_orphan_then_reclaims_expired_ownersrc/market_authority.rs:1499fn321080.5
competing_fused_reserve_reclaims_expired_accepted_ownersrc/market_authority.rs:1533fn211080.5
fused_reserve_rechecks_authority_clock_before_durable_insertsrc/market_authority.rs:1556fn171070.5
v2_storage_is_not_guessed_as_v3src/market_authority.rs:1575fn341050.5
compute_premium_owner_has_one_buyer_obligation_per_work_keysrc/market_authority.rs:1611fn241080.5
reopened_paid_legacy_premium_keeps_work_key_ownershipsrc/market_authority.rs:1637fn3910110.5
concurrent_competing_compute_premium_reservations_have_one_ownersrc/market_authority.rs:1678fn261060.5
trusted_identities_and_expiry_are_fail_closedsrc/market_authority.rs:1706fn4610110.5
materialized_column_tampering_is_rejected_on_observesrc/market_authority.rs:1754fn171060.5
non_sqlite_truth_is_rejectedsrc/market_authority.rs:1773fn111020.5

Source not readable from this process.