Skip to main content

ITangleInstance

Struct ITangleInstance 

Source
pub struct ITangleInstance<P, N = Ethereum> { /* private fields */ }
Expand description

A ITangle instance.

Contains type-safe methods for interacting with an on-chain instance of the ITangle contract located at a given address, using a given provider P.

If the contract bytecode is available (see the sol! documentation on how to provide it), the deploy and deploy_builder methods can be used to deploy a new instance of the contract.

See the module-level documentation for all the available methods.

Implementations§

Source§

impl<P, N> ITangleInstance<P, N>
where P: Provider<N>, N: Network,

Instantiation and getters/setters.

Source

pub const fn new(address: Address, __provider: P) -> ITangleInstance<P, N>

Creates a new wrapper around an on-chain ITangle contract instance.

See the wrapper’s documentation for more details.

Source

pub async fn deploy(__provider: P) -> Result<ITangleInstance<P, N>, Error>

Deploys this contract using the given provider and constructor arguments, if any.

Returns a new instance of the contract, if the deployment was successful.

For more fine-grained control over the deployment process, use deploy_builder instead.

Source

pub fn deploy_builder(__provider: P) -> CallBuilder<P, (), N>

Creates a RawCallBuilder for deploying this contract using the given provider and constructor arguments, if any.

This is a simple wrapper around creating a RawCallBuilder with the data set to the bytecode concatenated with the constructor’s ABI-encoded arguments.

Source

pub const fn address(&self) -> &Address

Returns a reference to the address.

Source

pub fn set_address(&mut self, address: Address)

Sets the address.

Source

pub fn at(self, address: Address) -> ITangleInstance<P, N>

Sets the address and returns self.

Source

pub const fn provider(&self) -> &P

Returns a reference to the provider.

Source§

impl<P, N> ITangleInstance<&P, N>
where P: Clone,

Source

pub fn with_cloned_provider(self) -> ITangleInstance<P, N>

Clones the provider and returns a new instance with the cloned provider.

Source§

impl<P, N> ITangleInstance<P, N>
where P: Provider<N>, N: Network,

Function calls.

Source

pub fn call_builder<C>(&self, call: &C) -> CallBuilder<&P, PhantomData<C>, N>
where C: SolCall,

Creates a new call builder using this contract instance’s provider and address.

Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.

Source

pub fn addPermittedCaller( &self, serviceId: u64, caller: Address, ) -> CallBuilder<&P, PhantomData<addPermittedCallerCall>, N>

Creates a new call builder for the [addPermittedCaller] function.

Source

pub fn approveService( &self, requestId: u64, stakingPercent: u8, ) -> CallBuilder<&P, PhantomData<approveServiceCall>, N>

Creates a new call builder for the [approveService] function.

Source

pub fn approveServiceWithBls( &self, requestId: u64, stakingPercent: u8, blsPubkey: [Uint<256, 4>; 4], ) -> CallBuilder<&P, PhantomData<approveServiceWithBlsCall>, N>

Creates a new call builder for the [approveServiceWithBls] function.

Source

pub fn approveServiceWithCommitments( &self, requestId: u64, commitments: Vec<<AssetSecurityCommitment as SolType>::RustType>, ) -> CallBuilder<&P, PhantomData<approveServiceWithCommitmentsCall>, N>

Creates a new call builder for the [approveServiceWithCommitments] function.

Source

pub fn approveServiceWithCommitmentsAndBls( &self, requestId: u64, commitments: Vec<<AssetSecurityCommitment as SolType>::RustType>, blsPubkey: [Uint<256, 4>; 4], ) -> CallBuilder<&P, PhantomData<approveServiceWithCommitmentsAndBlsCall>, N>

Creates a new call builder for the [approveServiceWithCommitmentsAndBls] function.

Source

pub fn billSubscription( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<billSubscriptionCall>, N>

Creates a new call builder for the [billSubscription] function.

Source

pub fn billSubscriptionBatch( &self, serviceIds: Vec<u64>, ) -> CallBuilder<&P, PhantomData<billSubscriptionBatchCall>, N>

Creates a new call builder for the [billSubscriptionBatch] function.

Source

pub fn blueprintCount( &self, ) -> CallBuilder<&P, PhantomData<blueprintCountCall>, N>

Creates a new call builder for the [blueprintCount] function.

Source

pub fn blueprintMasterRevision( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<blueprintMasterRevisionCall>, N>

Creates a new call builder for the [blueprintMasterRevision] function.

Source

pub fn blueprintMetadata( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<blueprintMetadataCall>, N>

Creates a new call builder for the [blueprintMetadata] function.

Source

pub fn blueprintOperatorCount( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<blueprintOperatorCountCall>, N>

Creates a new call builder for the [blueprintOperatorCount] function.

Source

pub fn blueprintSources( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<blueprintSourcesCall>, N>

Creates a new call builder for the [blueprintSources] function.

Source

pub fn blueprintSupportedMemberships( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<blueprintSupportedMembershipsCall>, N>

Creates a new call builder for the [blueprintSupportedMemberships] function.

Source

pub fn canScheduleExit( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<canScheduleExitCall>, N>

Creates a new call builder for the [canScheduleExit] function.

Source

pub fn cancelExit( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<cancelExitCall>, N>

Creates a new call builder for the [cancelExit] function.

Source

pub fn claimRewards_0( &self, ) -> CallBuilder<&P, PhantomData<claimRewards_0Call>, N>

Creates a new call builder for the [claimRewards_0] function.

Source

pub fn claimRewards_1( &self, token: Address, ) -> CallBuilder<&P, PhantomData<claimRewards_1Call>, N>

Creates a new call builder for the [claimRewards_1] function.

Source

pub fn claimRewardsAll( &self, ) -> CallBuilder<&P, PhantomData<claimRewardsAllCall>, N>

Creates a new call builder for the [claimRewardsAll] function.

Source

pub fn claimRewardsBatch( &self, tokens: Vec<Address>, ) -> CallBuilder<&P, PhantomData<claimRewardsBatchCall>, N>

Creates a new call builder for the [claimRewardsBatch] function.

Source

pub fn createBlueprint( &self, definition: <BlueprintDefinition as SolType>::RustType, ) -> CallBuilder<&P, PhantomData<createBlueprintCall>, N>

Creates a new call builder for the [createBlueprint] function.

Source

pub fn createServiceFromQuotes( &self, blueprintId: u64, quotes: Vec<<SignedQuote as SolType>::RustType>, config: Bytes, permittedCallers: Vec<Address>, ttl: u64, ) -> CallBuilder<&P, PhantomData<createServiceFromQuotesCall>, N>

Creates a new call builder for the [createServiceFromQuotes] function.

Source

pub fn deactivateBlueprint( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<deactivateBlueprintCall>, N>

Creates a new call builder for the [deactivateBlueprint] function.

Source

pub fn executeExit( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<executeExitCall>, N>

Creates a new call builder for the [executeExit] function.

Source

pub fn extendServiceFromQuotes( &self, serviceId: u64, quotes: Vec<<SignedQuote as SolType>::RustType>, extensionDuration: u64, ) -> CallBuilder<&P, PhantomData<extendServiceFromQuotesCall>, N>

Creates a new call builder for the [extendServiceFromQuotes] function.

Source

pub fn forceExit( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<forceExitCall>, N>

Creates a new call builder for the [forceExit] function.

Source

pub fn forceRemoveOperator( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<forceRemoveOperatorCall>, N>

Creates a new call builder for the [forceRemoveOperator] function.

Source

pub fn fundService( &self, serviceId: u64, amount: Uint<256, 4>, ) -> CallBuilder<&P, PhantomData<fundServiceCall>, N>

Creates a new call builder for the [fundService] function.

Source

pub fn getBillableServices( &self, serviceIds: Vec<u64>, ) -> CallBuilder<&P, PhantomData<getBillableServicesCall>, N>

Creates a new call builder for the [getBillableServices] function.

Source

pub fn getBlueprint( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<getBlueprintCall>, N>

Creates a new call builder for the [getBlueprint] function.

Source

pub fn getBlueprintConfig( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<getBlueprintConfigCall>, N>

Creates a new call builder for the [getBlueprintConfig] function.

Source

pub fn getBlueprintDefinition( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<getBlueprintDefinitionCall>, N>

Creates a new call builder for the [getBlueprintDefinition] function.

Source

pub fn getBlueprintResourceRequirements( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<getBlueprintResourceRequirementsCall>, N>

Creates a new call builder for the [getBlueprintResourceRequirements] function.

Source

pub fn getExitConfig( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<getExitConfigCall>, N>

Creates a new call builder for the [getExitConfig] function.

Source

pub fn getExitRequest( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getExitRequestCall>, N>

Creates a new call builder for the [getExitRequest] function.

Source

pub fn getExitStatus( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getExitStatusCall>, N>

Creates a new call builder for the [getExitStatus] function.

Source

pub fn getJobCall( &self, serviceId: u64, callId: u64, ) -> CallBuilder<&P, PhantomData<getJobCallCall>, N>

Creates a new call builder for the [getJobCall] function.

Source

pub fn getJobEventRate( &self, blueprintId: u64, jobIndex: u8, ) -> CallBuilder<&P, PhantomData<getJobEventRateCall>, N>

Creates a new call builder for the [getJobEventRate] function.

Source

pub fn getJobQuotedOperators( &self, serviceId: u64, callId: u64, ) -> CallBuilder<&P, PhantomData<getJobQuotedOperatorsCall>, N>

Creates a new call builder for the [getJobQuotedOperators] function.

Source

pub fn getJobQuotedPrice( &self, serviceId: u64, callId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getJobQuotedPriceCall>, N>

Creates a new call builder for the [getJobQuotedPrice] function.

Source

pub fn getOperatorBlsPubkey( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getOperatorBlsPubkeyCall>, N>

Creates a new call builder for the [getOperatorBlsPubkey] function.

Source

pub fn getOperatorPreferences( &self, blueprintId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getOperatorPreferencesCall>, N>

Creates a new call builder for the [getOperatorPreferences] function.

Source

pub fn getOperatorPublicKey( &self, blueprintId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getOperatorPublicKeyCall>, N>

Creates a new call builder for the [getOperatorPublicKey] function.

Source

pub fn getOperatorRegistration( &self, blueprintId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getOperatorRegistrationCall>, N>

Creates a new call builder for the [getOperatorRegistration] function.

Source

pub fn getOperatorTotalActiveServices( &self, operator: Address, ) -> CallBuilder<&P, PhantomData<getOperatorTotalActiveServicesCall>, N>

Creates a new call builder for the [getOperatorTotalActiveServices] function.

Source

pub fn getService( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<getServiceCall>, N>

Creates a new call builder for the [getService] function.

Source

pub fn getServiceEscrow( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<getServiceEscrowCall>, N>

Creates a new call builder for the [getServiceEscrow] function.

Source

pub fn getServiceOperator( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getServiceOperatorCall>, N>

Creates a new call builder for the [getServiceOperator] function.

Source

pub fn getServiceOperators( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<getServiceOperatorsCall>, N>

Creates a new call builder for the [getServiceOperators] function.

Source

pub fn getServiceRequest( &self, requestId: u64, ) -> CallBuilder<&P, PhantomData<getServiceRequestCall>, N>

Creates a new call builder for the [getServiceRequest] function.

Source

pub fn getServiceRequestResourceRequirements( &self, requestId: u64, ) -> CallBuilder<&P, PhantomData<getServiceRequestResourceRequirementsCall>, N>

Creates a new call builder for the [getServiceRequestResourceRequirements] function.

Source

pub fn getServiceRequestSecurityCommitments( &self, requestId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getServiceRequestSecurityCommitmentsCall>, N>

Creates a new call builder for the [getServiceRequestSecurityCommitments] function.

Source

pub fn getServiceRequestSecurityRequirements( &self, requestId: u64, ) -> CallBuilder<&P, PhantomData<getServiceRequestSecurityRequirementsCall>, N>

Creates a new call builder for the [getServiceRequestSecurityRequirements] function.

Source

pub fn getServiceResourceCommitmentHash( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getServiceResourceCommitmentHashCall>, N>

Creates a new call builder for the [getServiceResourceCommitmentHash] function.

Source

pub fn getServiceSecurityCommitments( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<getServiceSecurityCommitmentsCall>, N>

Creates a new call builder for the [getServiceSecurityCommitments] function.

Source

pub fn getServiceSecurityRequirements( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<getServiceSecurityRequirementsCall>, N>

Creates a new call builder for the [getServiceSecurityRequirements] function.

Source

pub fn isOperatorRegistered( &self, blueprintId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<isOperatorRegisteredCall>, N>

Creates a new call builder for the [isOperatorRegistered] function.

Source

pub fn isPermittedCaller( &self, serviceId: u64, caller: Address, ) -> CallBuilder<&P, PhantomData<isPermittedCallerCall>, N>

Creates a new call builder for the [isPermittedCaller] function.

Source

pub fn isServiceActive( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<isServiceActiveCall>, N>

Creates a new call builder for the [isServiceActive] function.

Source

pub fn isServiceOperator( &self, serviceId: u64, operator: Address, ) -> CallBuilder<&P, PhantomData<isServiceOperatorCall>, N>

Creates a new call builder for the [isServiceOperator] function.

Source

pub fn joinService( &self, serviceId: u64, exposureBps: u16, ) -> CallBuilder<&P, PhantomData<joinServiceCall>, N>

Creates a new call builder for the [joinService] function.

Source

pub fn joinServiceWithCommitments( &self, serviceId: u64, exposureBps: u16, commitments: Vec<<AssetSecurityCommitment as SolType>::RustType>, ) -> CallBuilder<&P, PhantomData<joinServiceWithCommitmentsCall>, N>

Creates a new call builder for the [joinServiceWithCommitments] function.

Source

pub fn leaveService( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<leaveServiceCall>, N>

Creates a new call builder for the [leaveService] function.

Source

pub fn pendingRewards_0( &self, account: Address, ) -> CallBuilder<&P, PhantomData<pendingRewards_0Call>, N>

Creates a new call builder for the [pendingRewards_0] function.

Source

pub fn pendingRewards_1( &self, account: Address, token: Address, ) -> CallBuilder<&P, PhantomData<pendingRewards_1Call>, N>

Creates a new call builder for the [pendingRewards_1] function.

Source

pub fn preRegister( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<preRegisterCall>, N>

Creates a new call builder for the [preRegister] function.

Source

pub fn registerOperator_0( &self, blueprintId: u64, ecdsaPublicKey: Bytes, rpcAddress: String, registrationInputs: Bytes, ) -> CallBuilder<&P, PhantomData<registerOperator_0Call>, N>

Creates a new call builder for the [registerOperator_0] function.

Source

pub fn registerOperator_1( &self, blueprintId: u64, ecdsaPublicKey: Bytes, rpcAddress: String, ) -> CallBuilder<&P, PhantomData<registerOperator_1Call>, N>

Creates a new call builder for the [registerOperator_1] function.

Source

pub fn rejectService( &self, requestId: u64, ) -> CallBuilder<&P, PhantomData<rejectServiceCall>, N>

Creates a new call builder for the [rejectService] function.

Source

pub fn removePermittedCaller( &self, serviceId: u64, caller: Address, ) -> CallBuilder<&P, PhantomData<removePermittedCallerCall>, N>

Creates a new call builder for the [removePermittedCaller] function.

Source

pub fn requestService( &self, blueprintId: u64, operators: Vec<Address>, config: Bytes, permittedCallers: Vec<Address>, ttl: u64, paymentToken: Address, paymentAmount: Uint<256, 4>, confidentiality: <ConfidentialityPolicy as SolType>::RustType, ) -> CallBuilder<&P, PhantomData<requestServiceCall>, N>

Creates a new call builder for the [requestService] function.

Source

pub fn requestServiceWithExposure( &self, blueprintId: u64, operators: Vec<Address>, exposureBps: Vec<u16>, config: Bytes, permittedCallers: Vec<Address>, ttl: u64, paymentToken: Address, paymentAmount: Uint<256, 4>, confidentiality: <ConfidentialityPolicy as SolType>::RustType, ) -> CallBuilder<&P, PhantomData<requestServiceWithExposureCall>, N>

Creates a new call builder for the [requestServiceWithExposure] function.

Source

pub fn requestServiceWithSecurity( &self, blueprintId: u64, operators: Vec<Address>, securityRequirements: Vec<<AssetSecurityRequirement as SolType>::RustType>, config: Bytes, permittedCallers: Vec<Address>, ttl: u64, paymentToken: Address, paymentAmount: Uint<256, 4>, confidentiality: <ConfidentialityPolicy as SolType>::RustType, ) -> CallBuilder<&P, PhantomData<requestServiceWithSecurityCall>, N>

Creates a new call builder for the [requestServiceWithSecurity] function.

Source

pub fn rewardTokens( &self, account: Address, ) -> CallBuilder<&P, PhantomData<rewardTokensCall>, N>

Creates a new call builder for the [rewardTokens] function.

Source

pub fn scheduleExit( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<scheduleExitCall>, N>

Creates a new call builder for the [scheduleExit] function.

Source

pub fn serviceCount(&self) -> CallBuilder<&P, PhantomData<serviceCountCall>, N>

Creates a new call builder for the [serviceCount] function.

Source

pub fn setBlueprintResourceRequirements( &self, blueprintId: u64, requirements: Vec<<ResourceCommitment as SolType>::RustType>, ) -> CallBuilder<&P, PhantomData<setBlueprintResourceRequirementsCall>, N>

Creates a new call builder for the [setBlueprintResourceRequirements] function.

Source

pub fn setJobEventRates( &self, blueprintId: u64, jobIndexes: Vec<u8>, rates: Vec<Uint<256, 4>>, ) -> CallBuilder<&P, PhantomData<setJobEventRatesCall>, N>

Creates a new call builder for the [setJobEventRates] function.

Source

pub fn submitAggregatedResult( &self, serviceId: u64, callId: u64, output: Bytes, signerBitmap: Uint<256, 4>, aggregatedSignature: [Uint<256, 4>; 2], aggregatedPubkey: [Uint<256, 4>; 4], ) -> CallBuilder<&P, PhantomData<submitAggregatedResultCall>, N>

Creates a new call builder for the [submitAggregatedResult] function.

Source

pub fn submitJob( &self, serviceId: u64, jobIndex: u8, inputs: Bytes, ) -> CallBuilder<&P, PhantomData<submitJobCall>, N>

Creates a new call builder for the [submitJob] function.

Source

pub fn submitJobFromQuote( &self, serviceId: u64, jobIndex: u8, inputs: Bytes, quotes: Vec<<SignedJobQuote as SolType>::RustType>, ) -> CallBuilder<&P, PhantomData<submitJobFromQuoteCall>, N>

Creates a new call builder for the [submitJobFromQuote] function.

Source

pub fn submitResult( &self, serviceId: u64, callId: u64, result: Bytes, ) -> CallBuilder<&P, PhantomData<submitResultCall>, N>

Creates a new call builder for the [submitResult] function.

Source

pub fn submitResults( &self, serviceId: u64, callIds: Vec<u64>, results: Vec<Bytes>, ) -> CallBuilder<&P, PhantomData<submitResultsCall>, N>

Creates a new call builder for the [submitResults] function.

Source

pub fn terminateService( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<terminateServiceCall>, N>

Creates a new call builder for the [terminateService] function.

Source

pub fn terminateServiceForNonPayment( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<terminateServiceForNonPaymentCall>, N>

Creates a new call builder for the [terminateServiceForNonPayment] function.

Source

pub fn transferBlueprint( &self, blueprintId: u64, newOwner: Address, ) -> CallBuilder<&P, PhantomData<transferBlueprintCall>, N>

Creates a new call builder for the [transferBlueprint] function.

Source

pub fn unregisterOperator( &self, blueprintId: u64, ) -> CallBuilder<&P, PhantomData<unregisterOperatorCall>, N>

Creates a new call builder for the [unregisterOperator] function.

Source

pub fn updateBlueprint( &self, blueprintId: u64, metadataUri: String, ) -> CallBuilder<&P, PhantomData<updateBlueprintCall>, N>

Creates a new call builder for the [updateBlueprint] function.

Source

pub fn updateOperatorPreferences( &self, blueprintId: u64, ecdsaPublicKey: Bytes, rpcAddress: String, ) -> CallBuilder<&P, PhantomData<updateOperatorPreferencesCall>, N>

Creates a new call builder for the [updateOperatorPreferences] function.

Source

pub fn withdrawRemainingEscrow( &self, serviceId: u64, ) -> CallBuilder<&P, PhantomData<withdrawRemainingEscrowCall>, N>

Creates a new call builder for the [withdrawRemainingEscrow] function.

Source§

impl<P, N> ITangleInstance<P, N>
where P: Provider<N>, N: Network,

Event filters.

Source

pub fn event_filter<E>(&self) -> Event<&P, E, N>
where E: SolEvent,

Creates a new event filter using this contract instance’s provider and address.

Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.

Source

pub fn BlueprintCreated_filter(&self) -> Event<&P, BlueprintCreated, N>

Creates a new event filter for the BlueprintCreated event.

Source

pub fn BlueprintDeactivated_filter(&self) -> Event<&P, BlueprintDeactivated, N>

Creates a new event filter for the BlueprintDeactivated event.

Source

pub fn BlueprintResourceRequirementsSet_filter( &self, ) -> Event<&P, BlueprintResourceRequirementsSet, N>

Creates a new event filter for the BlueprintResourceRequirementsSet event.

Source

pub fn BlueprintTransferred_filter(&self) -> Event<&P, BlueprintTransferred, N>

Creates a new event filter for the BlueprintTransferred event.

Source

pub fn BlueprintUpdated_filter(&self) -> Event<&P, BlueprintUpdated, N>

Creates a new event filter for the BlueprintUpdated event.

Source

pub fn JobCompleted_filter(&self) -> Event<&P, JobCompleted, N>

Creates a new event filter for the JobCompleted event.

Source

pub fn JobResultSubmitted_filter(&self) -> Event<&P, JobResultSubmitted, N>

Creates a new event filter for the JobResultSubmitted event.

Source

pub fn JobSubmitted_filter(&self) -> Event<&P, JobSubmitted, N>

Creates a new event filter for the JobSubmitted event.

Source

pub fn JobSubmittedFromQuote_filter( &self, ) -> Event<&P, JobSubmittedFromQuote, N>

Creates a new event filter for the JobSubmittedFromQuote event.

Source

pub fn OperatorJoinedService_filter( &self, ) -> Event<&P, OperatorJoinedService, N>

Creates a new event filter for the OperatorJoinedService event.

Source

pub fn OperatorLeftService_filter(&self) -> Event<&P, OperatorLeftService, N>

Creates a new event filter for the OperatorLeftService event.

Source

pub fn OperatorPreferencesUpdated_filter( &self, ) -> Event<&P, OperatorPreferencesUpdated, N>

Creates a new event filter for the OperatorPreferencesUpdated event.

Source

pub fn OperatorRegistered_filter(&self) -> Event<&P, OperatorRegistered, N>

Creates a new event filter for the OperatorRegistered event.

Source

pub fn OperatorRewardAccrued_filter( &self, ) -> Event<&P, OperatorRewardAccrued, N>

Creates a new event filter for the OperatorRewardAccrued event.

Source

pub fn OperatorUnregistered_filter(&self) -> Event<&P, OperatorUnregistered, N>

Creates a new event filter for the OperatorUnregistered event.

Source

pub fn PaymentDistributed_filter(&self) -> Event<&P, PaymentDistributed, N>

Creates a new event filter for the PaymentDistributed event.

Source

pub fn RewardsClaimed_filter(&self) -> Event<&P, RewardsClaimed, N>

Creates a new event filter for the RewardsClaimed event.

Source

pub fn ServiceActivated_filter(&self) -> Event<&P, ServiceActivated, N>

Creates a new event filter for the ServiceActivated event.

Source

pub fn ServiceApproved_filter(&self) -> Event<&P, ServiceApproved, N>

Creates a new event filter for the ServiceApproved event.

Source

pub fn ServiceRejected_filter(&self) -> Event<&P, ServiceRejected, N>

Creates a new event filter for the ServiceRejected event.

Source

pub fn ServiceRequested_filter(&self) -> Event<&P, ServiceRequested, N>

Creates a new event filter for the ServiceRequested event.

Source

pub fn ServiceRequestedWithSecurity_filter( &self, ) -> Event<&P, ServiceRequestedWithSecurity, N>

Creates a new event filter for the ServiceRequestedWithSecurity event.

Source

pub fn ServiceTerminated_filter(&self) -> Event<&P, ServiceTerminated, N>

Creates a new event filter for the ServiceTerminated event.

Source

pub fn ServiceTerminatedForNonPayment_filter( &self, ) -> Event<&P, ServiceTerminatedForNonPayment, N>

Creates a new event filter for the ServiceTerminatedForNonPayment event.

Source

pub fn SubscriptionBilled_filter(&self) -> Event<&P, SubscriptionBilled, N>

Creates a new event filter for the SubscriptionBilled event.

Trait Implementations§

Source§

impl<P, N> Clone for ITangleInstance<P, N>
where P: Clone, N: Clone,

Source§

fn clone(&self) -> ITangleInstance<P, N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P, N> Debug for ITangleInstance<P, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<P, N> Freeze for ITangleInstance<P, N>
where P: Freeze,

§

impl<P, N> RefUnwindSafe for ITangleInstance<P, N>

§

impl<P, N> Send for ITangleInstance<P, N>
where P: Send, N: Send,

§

impl<P, N> Sync for ITangleInstance<P, N>
where P: Sync, N: Sync,

§

impl<P, N> Unpin for ITangleInstance<P, N>
where P: Unpin, N: Unpin,

§

impl<P, N> UnsafeUnpin for ITangleInstance<P, N>
where P: UnsafeUnpin,

§

impl<P, N> UnwindSafe for ITangleInstance<P, N>
where P: UnwindSafe, N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more