@waves/data-entities
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -21,2 +21,4 @@ import { Asset } from './Asset'; | ||
minus(money: Money): Money; | ||
times(money: Money): Money; | ||
div(money: Money): Money; | ||
eq(money: Money): boolean; | ||
@@ -23,0 +25,0 @@ lt(money: Money): boolean; |
@@ -47,2 +47,10 @@ "use strict"; | ||
}; | ||
Money.prototype.times = function (money) { | ||
this._matchAssets(money); | ||
return new Money(this.getTokens().times(money.getTokens()), this.asset); | ||
}; | ||
Money.prototype.div = function (money) { | ||
this._matchAssets(money); | ||
return new Money(this.getTokens().div(money.getTokens()), this.asset); | ||
}; | ||
Money.prototype.eq = function (money) { | ||
@@ -49,0 +57,0 @@ this._matchAssets(money); |
@@ -144,2 +144,10 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.dataEntities = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
}; | ||
Money.prototype.times = function (money) { | ||
this._matchAssets(money); | ||
return new Money(this.getTokens().times(money.getTokens()), this.asset); | ||
}; | ||
Money.prototype.div = function (money) { | ||
this._matchAssets(money); | ||
return new Money(this.getTokens().div(money.getTokens()), this.asset); | ||
}; | ||
Money.prototype.eq = function (money) { | ||
@@ -146,0 +154,0 @@ this._matchAssets(money); |
{ | ||
"name": "@waves/data-entities", | ||
"description": "Waves data types", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42401
796