pub struct ContractVerificationDal<'a, 'c> { /* private fields */ }Implementations§
Source§impl ContractVerificationDal<'_, '_>
impl ContractVerificationDal<'_, '_>
pub async fn get_count_of_queued_verification_requests( &mut self, ) -> Result<usize>
pub async fn add_contract_verification_request( &mut self, query: VerificationIncomingRequest, ) -> Result<usize>
Sourcepub async fn get_next_queued_verification_request(
&mut self,
processing_timeout: Duration,
) -> Result<Option<VerificationRequest>>
pub async fn get_next_queued_verification_request( &mut self, processing_timeout: Duration, ) -> Result<Option<VerificationRequest>>
Returns the next verification request for processing.
Considering the situation where processing of some request
can be interrupted (panic, pod restart, etc..),
processing_timeout parameter is added to avoid stuck requests.
Sourcepub async fn save_verification_info(
&mut self,
verification_info: VerificationInfo,
) -> Result<()>
pub async fn save_verification_info( &mut self, verification_info: VerificationInfo, ) -> Result<()>
Updates the verification request status and inserts the verification info upon successful verification.
pub async fn save_verification_error( &mut self, id: usize, error: String, compilation_errors: Value, panic_message: Option<String>, ) -> Result<()>
pub async fn get_verification_request_status( &mut self, id: usize, ) -> Result<Option<VerificationRequestStatus>>
Sourcepub async fn get_contract_info_for_verification(
&mut self,
address: Address,
) -> Result<Option<(Vec<u8>, DeployContractCalldata)>>
pub async fn get_contract_info_for_verification( &mut self, address: Address, ) -> Result<Option<(Vec<u8>, DeployContractCalldata)>>
Returns bytecode and calldata from the contract and the transaction that created it.
Sourcepub async fn is_contract_verified(&mut self, address: Address) -> Result<bool>
pub async fn is_contract_verified(&mut self, address: Address) -> Result<bool>
Returns true if the contract has a stored contracts_verification_info.
pub async fn get_zksolc_versions(&mut self) -> Result<Vec<String>>
pub async fn get_solc_versions(&mut self) -> Result<Vec<String>>
pub async fn get_zkvyper_versions(&mut self) -> Result<Vec<String>>
pub async fn get_vyper_versions(&mut self) -> Result<Vec<String>>
pub async fn set_zksolc_versions(&mut self, versions: Vec<String>) -> Result<()>
pub async fn set_solc_versions(&mut self, versions: Vec<String>) -> Result<()>
pub async fn set_zkvyper_versions( &mut self, versions: Vec<String>, ) -> Result<()>
pub async fn set_vyper_versions(&mut self, versions: Vec<String>) -> Result<()>
pub async fn get_all_successful_requests( &mut self, ) -> Result<Vec<VerificationRequest>>
pub async fn get_contract_verification_info( &mut self, address: Address, ) -> Result<Option<VerificationInfo>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'c> !RefUnwindSafe for ContractVerificationDal<'a, 'c>
impl<'a, 'c> !UnwindSafe for ContractVerificationDal<'a, 'c>
impl<'a, 'c> Freeze for ContractVerificationDal<'a, 'c>
impl<'a, 'c> Send for ContractVerificationDal<'a, 'c>
impl<'a, 'c> Sync for ContractVerificationDal<'a, 'c>
impl<'a, 'c> Unpin for ContractVerificationDal<'a, 'c>
impl<'a, 'c> UnsafeUnpin for ContractVerificationDal<'a, 'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request