Table of Contents

Class SimpleIntentScheduler

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll
public class SimpleIntentScheduler : IIntentScheduler
Inheritance
SimpleIntentScheduler
Implements
Inherited Members

Constructors

SimpleIntentScheduler(IFeeEstimator, IClientTransport, IContractService, IBitcoinBlockchain, IOptions<SimpleIntentSchedulerOptions>, ILogger<SimpleIntentScheduler>?)

public SimpleIntentScheduler(IFeeEstimator feeEstimator, IClientTransport clientTransport, IContractService contractService, IBitcoinBlockchain chainTimeProvider, IOptions<SimpleIntentSchedulerOptions> options, ILogger<SimpleIntentScheduler>? logger = null)

Parameters

feeEstimator IFeeEstimator
clientTransport IClientTransport
contractService IContractService
chainTimeProvider IBitcoinBlockchain
options IOptions<SimpleIntentSchedulerOptions>
logger ILogger<SimpleIntentScheduler>

Methods

GetIntentsToSubmit(IReadOnlyCollection<ArkCoin>, CancellationToken)

Given the current unspent coins, returns the set of intents to submit. Called periodically by the SDK's intent generation loop (default every 5 minutes).

public Task<IReadOnlyCollection<ArkIntentSpec>> GetIntentsToSubmit(IReadOnlyCollection<ArkCoin> unspentVtxos, CancellationToken cancellationToken = default)

Parameters

unspentVtxos IReadOnlyCollection<ArkCoin>
cancellationToken CancellationToken

Returns

Task<IReadOnlyCollection<ArkIntentSpec>>