@sonarwatch/portfolio-plugins 0.14.112 → 0.14.113
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.14.113](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.112...plugins-0.14.113) (2025-02-17)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.14.112](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.111...plugins-0.14.112) (2025-02-17)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import { NetworkIdType, PortfolioAssetAttributes, PortfolioAssetToken, TokenPrice, TokenPriceUnderlying } from '@sonarwatch/portfolio-core';
|
2
|
-
export default function tokenPriceToAssetToken(address: string, amount: number, networkId: NetworkIdType, tokenPrice?: TokenPrice | TokenPriceUnderlying | null, price?: number, attributes?: PortfolioAssetAttributes,
|
2
|
+
export default function tokenPriceToAssetToken(address: string, amount: number, networkId: NetworkIdType, tokenPrice?: TokenPrice | TokenPriceUnderlying | null, price?: number, attributes?: PortfolioAssetAttributes, link?: string): PortfolioAssetToken;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
4
|
-
function tokenPriceToAssetToken(address, amount, networkId, tokenPrice, price, attributes,
|
4
|
+
function tokenPriceToAssetToken(address, amount, networkId, tokenPrice, price, attributes, link) {
|
5
5
|
const fPrice = (tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price) || price || null;
|
6
6
|
return {
|
7
7
|
type: portfolio_core_1.PortfolioAssetType.token,
|
@@ -13,7 +13,7 @@ function tokenPriceToAssetToken(address, amount, networkId, tokenPrice, price, a
|
|
13
13
|
price: fPrice,
|
14
14
|
},
|
15
15
|
attributes: attributes || {},
|
16
|
-
|
16
|
+
link,
|
17
17
|
};
|
18
18
|
}
|
19
19
|
exports.default = tokenPriceToAssetToken;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tokenPriceToAssetToken.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/tokenPriceToAssetToken.ts"],"names":[],"mappings":";;AAAA,+DASoC;AAEpC,SAAwB,sBAAsB,CAC5C,OAAe,EACf,MAAc,EACd,SAAwB,EACxB,UAAqD,EACrD,KAAc,EACd,UAAqC,EACrC,
|
1
|
+
{"version":3,"file":"tokenPriceToAssetToken.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/tokenPriceToAssetToken.ts"],"names":[],"mappings":";;AAAA,+DASoC;AAEpC,SAAwB,sBAAsB,CAC5C,OAAe,EACf,MAAc,EACd,SAAwB,EACxB,UAAqD,EACrD,KAAc,EACd,UAAqC,EACrC,IAAa;IAEb,MAAM,MAAM,GAAa,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,KAAI,KAAK,IAAI,IAAI,CAAC;IAC5D,OAAO;QACL,IAAI,EAAE,mCAAkB,CAAC,KAAK;QAC9B,SAAS;QACT,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI;QACtC,IAAI,EAAE;YACJ,OAAO,EAAE,IAAA,mCAAkB,EAAC,OAAO,EAAE,SAAS,CAAC;YAC/C,MAAM;YACN,KAAK,EAAE,MAAM;SACd;QACD,UAAU,EAAE,UAAU,IAAI,EAAE;QAC5B,IAAI;KACL,CAAC;AACJ,CAAC;AAtBD,yCAsBC"}
|