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