import { Consensus } from '../consensus'; import { SerializedBlock } from '../primitives/block'; import { NetworkDefinition } from './networkDefinition'; export declare class Network { readonly default: boolean; readonly name: string; readonly id: number; readonly consensus: Consensus; readonly genesis: SerializedBlock; readonly bootstrapNodes: string[]; private miningRewardCachedByYear; constructor(definition: NetworkDefinition); /** * Calculate the mining reward for a block based on its sequence * * See https://ironfish.network/docs/whitepaper/4_mining#include-the-miner-reward-based-on-coin-emission-schedule * * Annual coin issuance from mining goes down every year. Year is defined here by the * number of blocks * * Given the genesis block supply (genesisSupplyInIron) the formula to calculate * reward per block is: * (genesisSupply / 4) * e ^(-.05 * yearsAfterLaunch) * Where e is the natural number e (Euler's number), and -.05 is a decay function constant * * @param sequence Block sequence * @returns mining reward (in ORE) per block given the block sequence */ miningReward(sequence: number): number; } //# sourceMappingURL=network.d.ts.map