import ActiveStakeAmounts from './active-stake-amounts'; import Blocks from './blocks'; import Delegations from './delegations'; import DelegatorsCounts from './delegators-counts'; import Epochs from './epochs'; import Healthchecks from './healthchecks'; import NativeAssets from './native-assets'; import PoolUpdates from './pool-updates'; import Rewards from './rewards'; import Sigmas from './sigmas'; import Stakepools from './stakepools'; import StakepoolMetadata from './stakepool-metadata'; import Transactions from './transactions'; import WalletBalances from './wallet-balances'; const enums = { country: ['IE', 'UK'], }; export default class HilltopApiClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.activeStakeAmounts = new ActiveStakeAmounts(options); this.blocks = new Blocks(options); this.delegations = new Delegations(options); this.delegatorsCounts = new DelegatorsCounts(options); this.epochs = new Epochs(options); this.healthchecks = new Healthchecks(options); this.nativeAssets = new NativeAssets(options); this.poolUpdates = new PoolUpdates(options); this.rewards = new Rewards(options); this.sigmas = new Sigmas(options); this.stakepools = new Stakepools(options); this.stakepoolMetadata = new StakepoolMetadata(options); this.transactions = new Transactions(options); this.walletBalances = new WalletBalances(options); } }