import { hexstr2str } from '../utils' ; /**
 * Represents Notify event of attest creation of revocation.
 */ export class AttestNotifyEvent { param e static deserialize ( e ) { const event = new AttestNotifyEvent ( ) ; event . Action = e . Action ; event . Error = e . Error ; event . Desc = e . Desc ; event . Result = Result . deserialize ( e . Result ) ; return event ; } Action : string = 'Notify' ; Desc : string ; Error : number ; Result : Result ; } /**
 * Result of Notify event.
 */ export class Result { param r static deserialize ( r ) { const result = new Result ( ) ; result . TxHash = r . TxHash ; result . State = r . State ; result . GasConsumed = r . GasConsumed ; result . Notify = r . Notify . map ( ( n ) => { return { ContractAddress : n . ContractAddress , States : n . States . map ( ( s ) => typeof s === 'string' ? hexstr2str ( s ) : s ) } ; } ) ; result . Version = r . Version ; return result ; } TxHash : string ; /**
     * State = 1 : smartcontract executation success
     * State = 0 : smartcontract executation failure
     */ State : number ; GasConsumed : number ; Notify : [ { ContractAddress : string ; /**
             * The value of States are usually hex string
             */ States : any [ ] ; } ] ; Version : string ; }