@dao-xyz/peerbit
Version:
Distributed p2p database on IPFS
14 lines (12 loc) • 316 B
text/typescript
import { variant, field } from "@dao-xyz/borsh";
import { ProtocolMessage } from "@dao-xyz/peerbit-program";
import { v4 as uuid } from "uuid";
(1)
export abstract class TransportMessage extends ProtocolMessage {
({ type: "string" })
id: string;
constructor() {
super();
this.id = uuid();
}
}