import { protoW } from "../TransactionHelper"; export class Msg{ type_url: string; value: Buffer; constructor(type_url: string, value: Buffer){ this.type_url = type_url; this.value = value; } encode = (encoder) => { if(!encoder){ encoder = protoW.create(); } encoder.uint32(/* id 1, wireType 2 =*/10).string(this.type_url); encoder.uint32(/* id 2, wireType 2 =*/18).bytes(this.value); return encoder; } }