Skip to content

Adding support for your pool software

Enis edited this page Jun 19, 2018 · 2 revisions

Fork this repository, add your custom WalletDataGatherer implementation and then make a pull request against develop.

Create a new class in the io.enoy.burst.bot.data.gatherer package of the burst-mining-pool-bot-data-gatherer module. The class must implement the WalletDataGatherer interface. Define a profile for your WalletDataGatherer by annotating the class with @Profile("your-name"). Annotate the class with @Component.

Example class header

package io.enoy.burst.bot.data.gatherer;

import io.enoy.burst.bot.commons.WalletDataGatherer;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Component
@Profile("crypto-guru")
public class CryptoGuruPoolDataGatherer implements WalletDataGatherer {

The WalletDataGatherer has one method that must be overridden: List<WalletData> gatherDataOf(Collection<Wallet> wallets). Your implementation must return a List of the WalletData corresponding to the given wallets. The timestamp will be set automatically after the data is gathered. If your pool doesn't provide some datapoint (e.g. no confirmed deadlines) just leave it at 0 in the WalletData Object.

Example

CryptoGuruPoolDataGatherer

Clone this wiki locally