UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

10 lines (9 loc) 736 B
import { debug, groupCollapsed, groupEnd, sliceAddress } from '@broxus/js-utils'; import { getScanLink, inheritTextStyle, successLabelStyle, successTextStyle } from '../../console'; export function contractStateChangeDebugMessage(name, address, event) { groupCollapsed(`%c${name}%c %ccontractStateChanged%c event has been captured on the ${name} [%c${sliceAddress(address?.toString())}%c] contract`, successLabelStyle, inheritTextStyle, successTextStyle, inheritTextStyle, successTextStyle, inheritTextStyle); debug(`${name} address: %c${sliceAddress(event.address.toString())}%c ${getScanLink(event.address.toString())}`, successTextStyle, inheritTextStyle); debug('Event state'); debug(event.state); groupEnd(); }