import { Buffer } from "buffer/"; import { Any } from "@keplr-wallet/proto-types/google/protobuf/any"; export class UnknownMessage implements Any { constructor( /** Any type_url. */ protected readonly _typeUrl: string, /** Any value. */ protected readonly _value: Uint8Array ) {} get typeUrl(): string { return this._typeUrl; } get value(): Uint8Array { return this._value; } toJSON() { return { typeUrl: this._typeUrl, value: Buffer.from(this._value).toString("base64"), }; } }