Skip to content
Snippets Groups Projects
Select Git revision
  • b10b64b2032e975853335eb94f4d9bfc6a9f7930
  • master default protected
  • chrome-manifest-v3
  • feature/migrate-cordova-13
  • feat/improve-network-scan
  • feat/force-migration-check
  • develop
  • feature/encrypted_comment
  • feature/android_api_19
  • gitlab_migration_1
  • rml8
  • v1.7.15-rc1
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.7.0-rc2
  • v1.7.0-rc1
  • v1.6.12
  • v1.6.11
31 results

sync-storage.js

Blame
  • distance.rs 805 B
    use crate::*;
    
    /// request distance evaluation
    pub async fn request_distance_evaluation(data: &Data) -> Result<(), subxt::Error> {
    	submit_call_and_look_event::<
    		runtime::distance::events::EvaluationRequested,
    		Payload<runtime::distance::calls::types::RequestDistanceEvaluation>,
    	>(
    		data,
    		&runtime::tx().distance().request_distance_evaluation(),
    	)
    	.await
    }
    
    /// request distance evaluation for someone else (must be unvalidated)
    pub async fn request_distance_evaluation_for(
    	data: &Data,
    	target: IdtyId,
    ) -> Result<(), subxt::Error> {
    	submit_call_and_look_event::<
    		runtime::distance::events::EvaluationRequested,
    		Payload<runtime::distance::calls::types::RequestDistanceEvaluationFor>,
    	>(
    		data,
    		&runtime::tx()
    			.distance()
    			.request_distance_evaluation_for(target),
    	)
    	.await
    }