import { Amino } from "@chainapsis/ts-amino" ; const { Field , DefineStruct } = Amino ; import { Msg } from "../../core/tx" ; import { AccAddress , ValAddress } from "../../common/address" ; @ DefineStruct ( ) export class MsgUnjail extends Msg { @ Field . Defined ( 0 , { jsonName : "address" } ) public validatorAddr : ValAddress ; public bech32PrefixAccAddr : string ; constructor ( validatorAddr , bech32PrefixAccAddr ) { super ( ) ; this . validatorAddr = validatorAddr ; this . bech32PrefixAccAddr = bech32PrefixAccAddr ; } public validateBasic ( ) { } public getSigners ( ) { return [ new AccAddress ( this . validatorAddr . toBytes ( ) , this . bech32PrefixAccAddr ) ] ; } }