Class SimpleIntentScheduler
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
feeEstimatorIFeeEstimatorclientTransportIClientTransportcontractServiceIContractServicechainTimeProviderIBitcoinBlockchainoptionsIOptions<SimpleIntentSchedulerOptions>loggerILogger<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
unspentVtxosIReadOnlyCollection<ArkCoin>cancellationTokenCancellationToken