UNPKG

tiny-crypto-suite

Version:

Tiny tools, big crypto — seamless encryption and certificate handling for modern web and Node apps.

39 lines 1.6 kB
export default TinyChainEvents; /** * List of event names used by TinyChain in the EventEmitter. * Each key maps to its string identifier. */ declare class TinyChainEvents { /** Triggered when initial balances are updated. */ static InitialBalancesUpdated: string; /** Triggered when the blockchain instance finishes its initialization. */ static Initialized: string; /** Triggered when a new block is successfully added to the chain. */ static NewBlock: string; /** Triggered when all balances are initialized. */ static BalancesInitialized: string; /** Triggered when a balance record is first created for an address. */ static BalanceStarted: string; /** Triggered when a balance value is updated for an existing address. */ static BalanceUpdated: string; /** Triggered when a payload is emitted as part of a block or transaction. */ static Payload: string; /** Triggered when the miner's balance is updated after a block is mined. */ static MinerBalanceUpdated: string; /** Triggered when balances are recalculated during import. */ static BalanceRecalculated: string; /** Triggered when the entire blockchain is cleared or reset. */ static ChainCleared: string; /** Triggered when a new chain is imported and replaces the current one. */ static ImportChain: string; /** * @returns {string[]} */ static get all(): string[]; /** * @param {string} event * @returns {boolean} */ static isValid(event: string): boolean; } //# sourceMappingURL=TinyChainEvents.d.mts.map