@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
43 lines (42 loc) • 1.16 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const BaseDto_1 = __importDefault(require("../base/BaseDto"));
/**
* WalletProfileDto
*
* DTO for storing blockchain-linked user identity.
*/
class WalletProfileDto extends BaseDto_1.default {
constructor(data) {
super(data);
this._userId = data.userId;
this._walletAddress = data.walletAddress;
this._network = data.network;
this._verified = data.verified;
}
async serialize() {
return {
...(await this.serializeBase()),
userId: this._userId,
walletAddress: this._walletAddress,
network: this._network,
verified: this._verified,
};
}
get userId() {
return this._userId;
}
get walletAddress() {
return this._walletAddress;
}
get network() {
return this._network;
}
get verified() {
return this._verified;
}
}
exports.default = WalletProfileDto;