@sonarwatch/portfolio-core 0.5.23 → 0.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/package.json +1 -1
- package/src/utils/getCollectiblessfromAssets.d.ts +2 -0
- package/src/utils/getCollectiblessfromAssets.js +9 -0
- package/src/utils/getCollectiblessfromAssets.js.map +1 -0
- package/src/utils/index.d.ts +1 -0
- package/src/utils/index.js +1 -0
- package/src/utils/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.5.
|
|
5
|
+
## [0.5.25](https://github.com/sonarwatch/portfolio/compare/core-0.5.24...core-0.5.25) (2023-08-10)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## [0.5.24](https://github.com/sonarwatch/portfolio/compare/core-0.5.23...core-0.5.24) (2023-08-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.5.23](https://github.com/sonarwatch/portfolio/compare/core-0.5.22...core-0.5.23) (2023-08-10)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
9
17
|
## [0.5.22](https://github.com/sonarwatch/portfolio/compare/core-0.5.21...core-0.5.22) (2023-08-08)
|
|
10
18
|
|
|
11
19
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCollectiblessfromAssets = void 0;
|
|
4
|
+
const Portfolio_1 = require("../Portfolio");
|
|
5
|
+
function getCollectiblessfromAssets(assets) {
|
|
6
|
+
return assets.filter((asset) => asset.type === Portfolio_1.PortfolioAssetType.collectible);
|
|
7
|
+
}
|
|
8
|
+
exports.getCollectiblessfromAssets = getCollectiblessfromAssets;
|
|
9
|
+
//# sourceMappingURL=getCollectiblessfromAssets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCollectiblessfromAssets.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/getCollectiblessfromAssets.ts"],"names":[],"mappings":";;;AAAA,4CAIsB;AAEtB,SAAgB,0BAA0B,CACxC,MAAwB;IAExB,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,8BAAkB,CAAC,WAAW,CAC1B,CAAC;AACnC,CAAC;AAND,gEAMC"}
|
package/src/utils/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './formatUniTokenInfo';
|
|
|
15
15
|
export * from './getAddressSystemFromNetworkId';
|
|
16
16
|
export * from './getAssetsFromElement';
|
|
17
17
|
export * from './getAssetsFromElements';
|
|
18
|
+
export * from './getCollectiblessfromAssets';
|
|
18
19
|
export * from './getUsdValueSum';
|
|
19
20
|
export * from './getUsdValueSumStrict';
|
|
20
21
|
export * from './mergePortfolioElementMultiples';
|
package/src/utils/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./formatUniTokenInfo"), exports);
|
|
|
31
31
|
__exportStar(require("./getAddressSystemFromNetworkId"), exports);
|
|
32
32
|
__exportStar(require("./getAssetsFromElement"), exports);
|
|
33
33
|
__exportStar(require("./getAssetsFromElements"), exports);
|
|
34
|
+
__exportStar(require("./getCollectiblessfromAssets"), exports);
|
|
34
35
|
__exportStar(require("./getUsdValueSum"), exports);
|
|
35
36
|
__exportStar(require("./getUsdValueSumStrict"), exports);
|
|
36
37
|
__exportStar(require("./mergePortfolioElementMultiples"), exports);
|
package/src/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD;AAChD,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,yDAAuC;AACvC,mEAAiD;AACjD,yDAAuC;AACvC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD;AAChD,yDAAuC;AACvC,0DAAwC;AACxC,+DAA6C;AAC7C,mDAAiC;AACjC,yDAAuC;AACvC,mEAAiD;AACjD,yDAAuC;AACvC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC"}
|