cardano-wallet-js
Version:
javascript/typescript client for the official cardano-wallet api
19 lines (14 loc) • 659 B
text/typescript
import { ApiWalletUTxOsStatistics, ApiWalletUTxOsStatisticsScaleEnum, WalletswalletIdpaymentfeesAmount } from "../models";
export class UtxoStatisticsWallet implements ApiWalletUTxOsStatistics {
total: WalletswalletIdpaymentfeesAmount;
scale: ApiWalletUTxOsStatisticsScaleEnum;
distribution: any;
constructor(total: WalletswalletIdpaymentfeesAmount, scale: ApiWalletUTxOsStatisticsScaleEnum, distribution: any) {
this.total = total;
this.scale = scale;
this.distribution = distribution;
}
static from(utxoStatistics: ApiWalletUTxOsStatistics) {
return new this(utxoStatistics.total, utxoStatistics.scale, utxoStatistics.distribution);
}
}