@sonarwatch/portfolio-plugins 0.4.19 → 0.4.21
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 +125 -117
- package/README.md +11 -11
- package/package.json +2 -2
- package/src/plugins/tokens/fetchers/solana.js +1 -1
- package/src/plugins/tokens/fetchers/solana.js.map +1 -1
- package/src/utils/misc/durationForHumans.d.ts +1 -1
- package/src/utils/misc/durationForHumans.js +4 -4
- package/src/utils/misc/durationForHumans.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,120 +2,128 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.4.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## [0.4.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## [0.4.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## [0.4.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
## [0.4.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
## [0.4.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
## [0.4.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
## [0.4.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
## [0.4.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
## [0.4.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
## [0.4.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
## [0.4.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
## [0.4.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
## [0.4.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
## [0.4.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
## [0.4.
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
## [0.4.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
## [0.4.
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
## [0.4.
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
## [0.2.
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
## [0.1
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
## [0.
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
5
|
+
## [0.4.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.20...plugins-0.4.21) (2023-07-12)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.4.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.19...plugins-0.4.20) (2023-07-10)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.4.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.18...plugins-0.4.19) (2023-07-10)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [0.4.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.17...plugins-0.4.18) (2023-07-09)
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
## [0.4.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.16...plugins-0.4.17) (2023-07-09)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## [0.4.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.15...plugins-0.4.16) (2023-07-09)
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
## [0.4.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.14...plugins-0.4.15) (2023-07-09)
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## [0.4.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.13...plugins-0.4.14) (2023-07-09)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
## [0.4.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.12...plugins-0.4.13) (2023-07-09)
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
## [0.4.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.11...plugins-0.4.12) (2023-07-08)
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
## [0.4.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.10...plugins-0.4.11) (2023-07-08)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
## [0.4.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.9...plugins-0.4.10) (2023-07-08)
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
## [0.4.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.8...plugins-0.4.9) (2023-07-08)
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
## [0.4.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.7...plugins-0.4.8) (2023-07-08)
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
## [0.4.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.6...plugins-0.4.7) (2023-07-08)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
## [0.4.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.5...plugins-0.4.6) (2023-07-08)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
## [0.4.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.4...plugins-0.4.5) (2023-07-08)
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
## [0.4.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.3...plugins-0.4.4) (2023-07-08)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
## [0.4.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.2...plugins-0.4.3) (2023-07-08)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
## [0.4.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.1...plugins-0.4.2) (2023-07-07)
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
## [0.4.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.0...plugins-0.4.1) (2023-07-07)
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
# [0.4.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.3.0...plugins-0.4.0) (2023-07-07)
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# [0.3.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.3...plugins-0.3.0) (2023-07-07)
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
## [0.2.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.2...plugins-0.2.3) (2023-07-07)
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
## [0.2.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.1...plugins-0.2.2) (2023-07-06)
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
## [0.2.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.0...plugins-0.2.1) (2023-07-06)
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
# [0.2.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.2...plugins-0.2.0) (2023-07-06)
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
## [0.1.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.1...plugins-0.1.2) (2023-07-06)
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
## [0.1.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.0...plugins-0.1.1) (2023-07-04)
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# [0.1.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.0.2...plugins-0.1.0) (2023-07-04)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
## [0.0.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.0.1...plugins-0.0.2) (2023-07-04)
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
## 0.0.1 (2023-07-04)
|
package/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# plugins
|
2
|
-
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
4
|
-
|
5
|
-
## Building
|
6
|
-
|
7
|
-
Run `nx build plugins` to build the library.
|
8
|
-
|
9
|
-
## Running unit tests
|
10
|
-
|
11
|
-
Run `nx test plugins` to execute the unit tests via [Jest](https://jestjs.io).
|
1
|
+
# plugins
|
2
|
+
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
4
|
+
|
5
|
+
## Building
|
6
|
+
|
7
|
+
Run `nx build plugins` to build the library.
|
8
|
+
|
9
|
+
## Running unit tests
|
10
|
+
|
11
|
+
Run `nx test plugins` to execute the unit tests via [Jest](https://jestjs.io).
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.21",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"viem": "^1.2.9"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
|
-
"@sonarwatch/portfolio-core": "0.4.
|
25
|
+
"@sonarwatch/portfolio-core": "0.4.21"
|
26
26
|
},
|
27
27
|
"main": "./src/index.js",
|
28
28
|
"types": "./src/index.d.ts"
|
@@ -14,11 +14,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const js_1 = require("@metaplex-foundation/js");
|
16
16
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
-
const runInBatch_1 = __importDefault(require("packages/plugins/src/utils/misc/runInBatch"));
|
18
17
|
const platforms_1 = require("../../../platforms");
|
19
18
|
const clients_1 = require("../../../utils/clients");
|
20
19
|
const solana_1 = require("../../../utils/solana");
|
21
20
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../../utils/misc/tokenPriceToAssetToken"));
|
21
|
+
const runInBatch_1 = __importDefault(require("../../../utils/misc/runInBatch"));
|
22
22
|
const solFactor = Math.pow(10, portfolio_core_1.solanaNetwork.native.decimals);
|
23
23
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
24
|
const client = (0, clients_1.getClientSolana)();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solana.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/solana.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAoD;AACpD,+DAYoC;AAEpC,
|
1
|
+
{"version":3,"file":"solana.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/solana.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAoD;AACpD,+DAYoC;AAEpC,kDAA0D;AAC1D,oDAAyD;AACzD,kDAAgE;AAChE,wGAAgF;AAChF,gFAAwD;AAExD,MAAM,SAAS,GAAG,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;AAEtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,WAAW,GAAG,IAAI,cAAS,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAE9D,MAAM,aAAa,GAAG,MAAM,IAAA,gCAAuB,EAAC,MA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AAc,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAEtC,MAAM,MAAM,GAAG,cAAc,GAAG,SAAS,CAAC;QAC1C,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;QAExC,OAAO,IAAA,gCAAsB,EAC3B,8BAAa,CAAC,MAAM,CAAC,OAAO,EAC5B,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,SAAS;IACvC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export default function durationForHumans(
|
1
|
+
export default function durationForHumans(durationMs: number): string;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
function durationForHumans(
|
4
|
-
if (
|
5
|
-
return `${
|
3
|
+
function durationForHumans(durationMs) {
|
4
|
+
if (durationMs < 100) {
|
5
|
+
return `${durationMs}ms`;
|
6
6
|
}
|
7
|
-
const seconds =
|
7
|
+
const seconds = durationMs / 1000;
|
8
8
|
if (seconds < 60) {
|
9
9
|
return `${seconds.toFixed(2)}s`;
|
10
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"durationForHumans.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/durationForHumans.ts"],"names":[],"mappings":";;AAAA,SAAwB,iBAAiB,CAAC,
|
1
|
+
{"version":3,"file":"durationForHumans.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/durationForHumans.ts"],"names":[],"mappings":";;AAAA,SAAwB,iBAAiB,CAAC,UAAkB;IAC1D,IAAI,UAAU,GAAG,GAAG,EAAE;QACpB,OAAO,GAAG,UAAU,IAAI,CAAC;KAC1B;IAED,MAAM,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;IAClC,IAAI,OAAO,GAAG,EAAE,EAAE;QAChB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;KACjC;IAED,MAAM,OAAO,GAAG,OAAO,GAAG,EAAE,CAAC;IAC7B,IAAI,OAAO,GAAG,EAAE,EAAE;QAChB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;KACnC;IAED,MAAM,KAAK,GAAG,OAAO,GAAG,EAAE,CAAC;IAC3B,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAClC,CAAC;AAjBD,oCAiBC"}
|