import { H512 } from "../classes" ; import { Transaction } from "../Transaction" ; import { NetworkId } from "../types" ; export interface SetRegularKeyActionJSON { key : string ; } export class SetRegularKey extends Transaction { private readonly key : H512 ; public constructor ( key , networkId ) { super ( networkId ) ; this . key = key ; } public type ( ) { return "setRegularKey" ; } protected actionToEncodeObject ( ) { return [ 3 , this . key . toEncodeObject ( ) ] ; } protected actionToJSON ( ) { return { key : this . key . toJSON ( ) } ; } }