swapable
Version:
Swapable: Automated Liquidity Pools
40 lines (39 loc) • 972 B
JavaScript
;
/**
* This file is part of Swapable shared under AGPL-3.0
* Copyright (C) 2021 Using Blockchain Ltd, Reg No.: 12658136, United Kingdom
*
* @package Swapable
* @author Grégory Saive for Using Blockchain Ltd <greg@ubc.digital>
* @license AGPL-3.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssetAmount = void 0;
/**
* @class AssetAmount
* @package Swapable
* @subpackage Models
* @since v1.0.0
* @description Model that describes an amount of a digital asset.
*/
class AssetAmount {
/**
* Constructor for AssetAmount objects
*
* @param {AssetIdentifier} identifier
* @param {number} amount
*/
constructor(
/**
* @description The digital asset identifier
*/
identifier,
/**
* @description The amount
*/
amount) {
this.identifier = identifier;
this.amount = amount;
}
}
exports.AssetAmount = AssetAmount;