@sonarwatch/portfolio-plugins 0.8.46 → 0.8.48
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 +164 -151
- package/package.json +2 -41
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/{getPoolsV2Fetcher.js → getV2Fetcher.js} +1 -2
- package/src/plugins/balancer/getV2Fetcher.js.map +1 -0
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/balancer/index.js +6 -6
- package/src/plugins/balancer/index.js.map +1 -1
- package/src/plugins/balancer/{poolsJob.js → v2Job.js} +5 -8
- package/src/plugins/balancer/v2Job.js.map +1 -0
- package/src/plugins/paraswap/abis.d.ts +76 -0
- package/src/plugins/paraswap/abis.js +69 -0
- package/src/plugins/paraswap/abis.js.map +1 -0
- package/src/plugins/paraswap/bptFarmingFetcher.d.ts +3 -0
- package/src/plugins/paraswap/bptFarmingFetcher.js +106 -0
- package/src/plugins/paraswap/bptFarmingFetcher.js.map +1 -0
- package/src/plugins/paraswap/bptInfoJob.d.ts +3 -0
- package/src/plugins/paraswap/bptInfoJob.js +47 -0
- package/src/plugins/paraswap/bptInfoJob.js.map +1 -0
- package/src/plugins/paraswap/bptStakingFetcher.d.ts +3 -0
- package/src/plugins/paraswap/bptStakingFetcher.js +140 -0
- package/src/plugins/paraswap/bptStakingFetcher.js.map +1 -0
- package/src/plugins/paraswap/constants.d.ts +24 -0
- package/src/plugins/paraswap/constants.js +79 -0
- package/src/plugins/paraswap/constants.js.map +1 -0
- package/src/plugins/paraswap/index.d.ts +6 -0
- package/src/plugins/paraswap/index.js +19 -0
- package/src/plugins/paraswap/index.js.map +1 -0
- package/src/plugins/paraswap/stakingFetcher.d.ts +3 -0
- package/src/plugins/paraswap/stakingFetcher.js +114 -0
- package/src/plugins/paraswap/stakingFetcher.js.map +1 -0
- package/src/plugins/paraswap/types.d.ts +9 -0
- package/src/plugins/paraswap/types.js +3 -0
- package/src/plugins/paraswap/types.js.map +1 -0
- package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js +1 -1
- package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js.map +1 -1
- package/src/plugins/top-tokens/forcedAddresses.js +11 -0
- package/src/plugins/top-tokens/forcedAddresses.js.map +1 -1
- package/src/plugins/top-tokens/ignoredAddresses.js +1 -0
- package/src/plugins/top-tokens/ignoredAddresses.js.map +1 -1
- package/src/plugins/top-tokens/topTokensJob.js +6 -1
- package/src/plugins/top-tokens/topTokensJob.js.map +1 -1
- package/src/plugins/uniswap/abis.d.ts +201 -0
- package/src/plugins/uniswap/abis.js +132 -0
- package/src/plugins/uniswap/abis.js.map +1 -0
- package/src/plugins/uniswap/constants.d.ts +7 -0
- package/src/plugins/uniswap/constants.js +46 -0
- package/src/plugins/uniswap/constants.js.map +1 -0
- package/src/plugins/uniswap/getPositionsV3Fetcher.d.ts +3 -0
- package/src/plugins/uniswap/getPositionsV3Fetcher.js +318 -0
- package/src/plugins/uniswap/getPositionsV3Fetcher.js.map +1 -0
- package/src/plugins/uniswap/index.d.ts +6 -0
- package/src/plugins/uniswap/index.js +11 -0
- package/src/plugins/uniswap/index.js.map +1 -0
- package/src/plugins/uniswap/types.d.ts +55 -0
- package/src/plugins/uniswap/types.js +3 -0
- package/src/plugins/uniswap/types.js.map +1 -0
- package/src/utils/clients/constants.js +2 -0
- package/src/utils/clients/constants.js.map +1 -1
- package/src/utils/clients/getEvmClients.js +1 -0
- package/src/utils/clients/getEvmClients.js.map +1 -1
- package/src/utils/evm/erc20Abi.d.ts +1 -1
- package/src/utils/evm/erc20Abi.js +2 -2
- package/src/utils/evm/erc20Abi.js.map +1 -1
- package/src/utils/evm/getBalances.js +1 -1
- package/src/utils/evm/getBalances.js.map +1 -1
- package/src/plugins/balancer/getPoolsV2Fetcher.js.map +0 -1
- package/src/plugins/balancer/poolsJob.js.map +0 -1
- /package/src/plugins/balancer/{getPoolsV2Fetcher.d.ts → getV2Fetcher.d.ts} +0 -0
- /package/src/plugins/balancer/{poolsJob.d.ts → v2Job.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,164 +2,177 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.8.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## [0.8.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.44...plugins-0.8.45) (2023-10-23)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## [0.8.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.43...plugins-0.8.44) (2023-10-23)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## [0.8.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.42...plugins-0.8.43) (2023-10-23)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
## [0.8.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.41...plugins-0.8.42) (2023-10-23)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
## [0.8.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.40...plugins-0.8.41) (2023-10-23)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
## [0.8.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.39...plugins-0.8.40) (2023-10-23)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
## [0.8.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.38...plugins-0.8.39) (2023-10-23)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
## [0.8.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.37...plugins-0.8.38) (2023-10-21)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
## [0.8.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.36...plugins-0.8.37) (2023-10-21)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.35...plugins-0.8.36) (2023-10-21)
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.34...plugins-0.8.35) (2023-10-21)
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
## [0.8.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.33...plugins-0.8.34) (2023-10-20)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
## [0.8.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.32...plugins-0.8.33) (2023-10-18)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
## [0.8.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.31...plugins-0.8.32) (2023-10-18)
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
## [0.8.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.30...plugins-0.8.31) (2023-10-18)
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
## [0.8.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.29...plugins-0.8.30) (2023-10-18)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
## [0.8.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.28...plugins-0.8.29) (2023-10-17)
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
## [0.8.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.27...plugins-0.8.28) (2023-10-17)
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
## [0.8.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.26...plugins-0.8.27) (2023-10-16)
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
## [0.8.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.25...plugins-0.8.26) (2023-10-16)
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
## [0.8.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.24...plugins-0.8.25) (2023-10-16)
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
## [0.8.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.23...plugins-0.8.24) (2023-10-14)
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
## [0.8.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.22...plugins-0.8.23) (2023-10-14)
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
## [0.8.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.21...plugins-0.8.22) (2023-10-14)
|
102
|
-
|
103
|
-
|
104
|
-
### Reverts
|
105
|
-
|
106
|
-
* Revert "rename" ([ffcf477](https://github.com/sonarwatch/portfolio/commit/ffcf47783e7dcb924c7685a4c7784a2385b526c2))
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
## [0.8.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.20...plugins-0.8.21) (2023-10-13)
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
## [0.8.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.19...plugins-0.8.20) (2023-10-13)
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
## [0.8.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.18...plugins-0.8.19) (2023-10-13)
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
## [0.8.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.17...plugins-0.8.18) (2023-10-13)
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
## [0.8.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.16...plugins-0.8.17) (2023-10-13)
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
## [0.8.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.15...plugins-0.8.16) (2023-10-13)
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
## [0.8.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.14...plugins-0.8.15) (2023-10-13)
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
## [0.8.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.13...plugins-0.8.14) (2023-10-13)
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
## [0.8.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.12...plugins-0.8.13) (2023-10-13)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
## [0.8.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.11...plugins-0.8.12) (2023-10-13)
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
|
5
|
+
## [0.8.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.47...plugins-0.8.48) (2023-10-26)
|
151
6
|
|
152
7
|
|
153
8
|
### Reverts
|
154
9
|
|
155
|
-
* Revert "
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.9...plugins-0.8.10) (2023-10-12)
|
10
|
+
* Revert "upgrade nx" ([62550ba](https://github.com/sonarwatch/portfolio/commit/62550bab2e60d40b8616465843dad4d3ad612bbd))
|
160
11
|
|
161
12
|
|
162
13
|
|
14
|
+
## [0.8.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.46...plugins-0.8.47) (2023-10-24)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
## [0.8.46](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.45...plugins-0.8.46) (2023-10-24)
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [0.8.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.44...plugins-0.8.45) (2023-10-23)
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
## [0.8.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.43...plugins-0.8.44) (2023-10-23)
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
## [0.8.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.42...plugins-0.8.43) (2023-10-23)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
## [0.8.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.41...plugins-0.8.42) (2023-10-23)
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
## [0.8.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.40...plugins-0.8.41) (2023-10-23)
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
## [0.8.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.39...plugins-0.8.40) (2023-10-23)
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
## [0.8.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.38...plugins-0.8.39) (2023-10-23)
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
## [0.8.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.37...plugins-0.8.38) (2023-10-21)
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
## [0.8.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.36...plugins-0.8.37) (2023-10-21)
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.35...plugins-0.8.36) (2023-10-21)
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.34...plugins-0.8.35) (2023-10-21)
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
## [0.8.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.33...plugins-0.8.34) (2023-10-20)
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
## [0.8.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.32...plugins-0.8.33) (2023-10-18)
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
## [0.8.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.31...plugins-0.8.32) (2023-10-18)
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
## [0.8.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.30...plugins-0.8.31) (2023-10-18)
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
## [0.8.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.29...plugins-0.8.30) (2023-10-18)
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## [0.8.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.28...plugins-0.8.29) (2023-10-17)
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
## [0.8.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.27...plugins-0.8.28) (2023-10-17)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
## [0.8.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.26...plugins-0.8.27) (2023-10-16)
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
## [0.8.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.25...plugins-0.8.26) (2023-10-16)
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
## [0.8.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.24...plugins-0.8.25) (2023-10-16)
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
## [0.8.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.23...plugins-0.8.24) (2023-10-14)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
## [0.8.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.22...plugins-0.8.23) (2023-10-14)
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
## [0.8.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.21...plugins-0.8.22) (2023-10-14)
|
115
|
+
|
116
|
+
|
117
|
+
### Reverts
|
118
|
+
|
119
|
+
* Revert "rename" ([ffcf477](https://github.com/sonarwatch/portfolio/commit/ffcf47783e7dcb924c7685a4c7784a2385b526c2))
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
## [0.8.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.20...plugins-0.8.21) (2023-10-13)
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
## [0.8.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.19...plugins-0.8.20) (2023-10-13)
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
## [0.8.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.18...plugins-0.8.19) (2023-10-13)
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
## [0.8.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.17...plugins-0.8.18) (2023-10-13)
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
## [0.8.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.16...plugins-0.8.17) (2023-10-13)
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
## [0.8.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.15...plugins-0.8.16) (2023-10-13)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
## [0.8.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.14...plugins-0.8.15) (2023-10-13)
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
## [0.8.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.13...plugins-0.8.14) (2023-10-13)
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
## [0.8.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.12...plugins-0.8.13) (2023-10-13)
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
## [0.8.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.11...plugins-0.8.12) (2023-10-13)
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
|
164
|
+
|
165
|
+
|
166
|
+
### Reverts
|
167
|
+
|
168
|
+
* Revert "fix" ([75a2d85](https://github.com/sonarwatch/portfolio/commit/75a2d85230c10109f052c903700899308a48e72c))
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.9...plugins-0.8.10) (2023-10-12)
|
173
|
+
|
174
|
+
|
175
|
+
|
163
176
|
## [0.8.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.8...plugins-0.8.9) (2023-10-12)
|
164
177
|
|
165
178
|
|
package/package.json
CHANGED
@@ -1,46 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.48",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
|
-
"
|
7
|
-
"@aave/contract-helpers": "^1.18.3",
|
8
|
-
"@aave/math-utils": "^1.18.3",
|
9
|
-
"@bonfida/spl-name-service": "^1.0.10",
|
10
|
-
"@cosmjs/cosmwasm-stargate": "^0.31.1",
|
11
|
-
"@ethersproject/address": "^5.7.0",
|
12
|
-
"@ethersproject/bignumber": "^5.7.0",
|
13
|
-
"@ethersproject/bytes": "^5.7.0",
|
14
|
-
"@ethersproject/constants": "^5.7.0",
|
15
|
-
"@ethersproject/providers": "^5.7.2",
|
16
|
-
"@ethersproject/units": "^5.7.0",
|
17
|
-
"@metaplex-foundation/beet": "^0.7.1",
|
18
|
-
"@metaplex-foundation/beet-solana": "^0.4.0",
|
19
|
-
"@metaplex-foundation/js": "^0.19.4",
|
20
|
-
"@metaplex-foundation/umi-serializers-encodings": "^0.8.9",
|
21
|
-
"@mysten/sui.js": "^0.37.1",
|
22
|
-
"@sei-js/core": "^3.0.1",
|
23
|
-
"@sei-js/proto": "^3.0.1",
|
24
|
-
"@solana/web3.js": "^1.78.4",
|
25
|
-
"aptos": "^1.13.1",
|
26
|
-
"axios": "^1.4.0",
|
27
|
-
"bignumber.js": "^9.1.1",
|
28
|
-
"bitcoin-address-validation": "^2.2.1",
|
29
|
-
"bn.js": "^5.2.1",
|
30
|
-
"decimal.js": "^10.4.3",
|
31
|
-
"dsa-connect": "^0.6.47",
|
32
|
-
"graphql": "^16.8.1",
|
33
|
-
"graphql-request": "^6.1.0",
|
34
|
-
"long": "^5.2.3",
|
35
|
-
"osmojs": "^16.5.1",
|
36
|
-
"reflect-metadata": "^0.1.13",
|
37
|
-
"unstorage": "^1.9.0",
|
38
|
-
"viem": "^1.16.5",
|
39
|
-
"web3-v1": "npm:web3@^1.5.0"
|
40
|
-
},
|
41
|
-
"peerDependencies": {
|
42
|
-
"@sonarwatch/portfolio-core": "0.8.46"
|
43
|
-
},
|
44
|
-
"main": "./src/index.js",
|
45
|
-
"types": "./src/index.d.ts"
|
6
|
+
"main": "./src/index.js"
|
46
7
|
}
|
package/src/index.js
CHANGED
@@ -55,7 +55,9 @@ const curve_1 = require("./plugins/curve");
|
|
55
55
|
const compound_1 = require("./plugins/compound");
|
56
56
|
const stargate_1 = require("./plugins/stargate");
|
57
57
|
const stader_1 = require("./plugins/stader");
|
58
|
+
const uniswap_1 = require("./plugins/uniswap");
|
58
59
|
const balancer_1 = require("./plugins/balancer");
|
60
|
+
const paraswap_1 = require("./plugins/paraswap");
|
59
61
|
var constants_1 = require("./plugins/tokens/constants");
|
60
62
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
61
63
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -102,7 +104,9 @@ exports.platforms = [
|
|
102
104
|
...compound_1.platforms,
|
103
105
|
...stargate_1.platforms,
|
104
106
|
...stader_1.platforms,
|
107
|
+
...uniswap_1.platforms,
|
105
108
|
...balancer_1.platforms,
|
109
|
+
...paraswap_1.platforms,
|
106
110
|
];
|
107
111
|
// JOBS //
|
108
112
|
exports.jobs = [
|
@@ -135,7 +139,9 @@ exports.jobs = [
|
|
135
139
|
...compound_1.jobs,
|
136
140
|
...stargate_1.jobs,
|
137
141
|
...stader_1.jobs,
|
142
|
+
...uniswap_1.jobs,
|
138
143
|
...balancer_1.jobs,
|
144
|
+
...paraswap_1.jobs,
|
139
145
|
];
|
140
146
|
// FETCHERS //
|
141
147
|
exports.fetchers = [
|
@@ -166,7 +172,9 @@ exports.fetchers = [
|
|
166
172
|
...compound_1.fetchers,
|
167
173
|
...lido_1.fetchers,
|
168
174
|
...stader_1.fetchers,
|
175
|
+
...uniswap_1.fetchers,
|
169
176
|
...balancer_1.fetchers,
|
177
|
+
...paraswap_1.fetchers,
|
170
178
|
];
|
171
179
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
172
180
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAG2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAG+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC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e;IAClB,GAAG,kBAAe;IAClB,GAAG,YAAS;IACZ,GAAG,WAAQ;IACX,GAAG,aAAU;IACb,GAAG,aAAU;IACb,GAAG,YAAS;IACZ,GAAG,yBAAqB;IACxB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,aAAU;IACb,GAAG,WAAQ;IACX,GAAG,YAAS;IACZ,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,aAAU;IACb,GAAG,eAAY;CAChB,CAAC;AAEF,cAAc;AACD,QAAA,QAAQ,GAAc;IACjC,GAAG,iBAAc;IACjB,GAAG,uBAAmB;IACtB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;IACvB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,6BAAyB;IAC5B,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,mBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAG2B;AAC3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GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
@@ -21,7 +21,6 @@ function getLiquidity(balance, tokenPrice) {
|
|
21
21
|
const amount = new bignumber_js_1.default(balance.toString())
|
22
22
|
.div(Math.pow(10, tokenPrice.decimals))
|
23
23
|
.toNumber();
|
24
|
-
console.log('amount:', amount);
|
25
24
|
const assets = (0, tokenPriceToAssetTokens_1.default)(tokenPrice.address, amount, tokenPrice.networkId, tokenPrice);
|
26
25
|
const value = (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value));
|
27
26
|
return {
|
@@ -127,4 +126,4 @@ function getPoolsV2Fetcher(networkId) {
|
|
127
126
|
};
|
128
127
|
}
|
129
128
|
exports.default = getPoolsV2Fetcher;
|
130
|
-
//# sourceMappingURL=
|
129
|
+
//# sourceMappingURL=getV2Fetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/balancer/getV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAErC,2CAAmE;AAGnE,6DAA0D;AAC1D,uGAA+E;AAW/E,SAAS,YAAY,CACnB,OAAe,EACf,UAAsB;IAEtB,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;SAC7C,GAAG,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;SAC9B,QAAQ,EAAE,CAAC;IAEd,MAAM,MAAM,GAAG,IAAA,iCAAuB,EACpC,UAAU,CAAC,OAAO,EAClB,M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AAiB,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
8
8
|
const constants_1 = require("./constants");
|
9
|
-
const
|
10
|
-
const
|
9
|
+
const v2Job_1 = __importDefault(require("./v2Job"));
|
10
|
+
const getV2Fetcher_1 = __importDefault(require("./getV2Fetcher"));
|
11
11
|
exports.platforms = [constants_1.platform];
|
12
|
-
exports.jobs = [
|
12
|
+
exports.jobs = [v2Job_1.default];
|
13
13
|
exports.fetchers = [
|
14
|
-
(0,
|
15
|
-
(0,
|
16
|
-
(0,
|
14
|
+
(0, getV2Fetcher_1.default)(portfolio_core_1.NetworkId.ethereum),
|
15
|
+
(0, getV2Fetcher_1.default)(portfolio_core_1.NetworkId.avalanche),
|
16
|
+
(0, getV2Fetcher_1.default)(portfolio_core_1.NetworkId.polygon),
|
17
17
|
];
|
18
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/balancer/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,2CAAuC;AACvC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/balancer/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,2CAAuC;AACvC,oDAA4B;AAC5B,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,eAAK,CAAC,CAAC;AACtB,QAAA,QAAQ,GAAc;IACjC,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC;IAChC,IAAA,sBAAY,EAAC,0BAAS,CAAC,SAAS,CAAC;IACjC,IAAA,sBAAY,EAAC,0BAAS,CAAC,OAAO,CAAC;CAChC,CAAC"}
|
@@ -17,7 +17,6 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
17
|
const constants_1 = require("./constants");
|
18
18
|
const pools_1 = require("./helpers/pools");
|
19
19
|
const gauges_1 = require("./helpers/gauges");
|
20
|
-
const runInBatch_1 = __importDefault(require("../../utils/misc/runInBatch"));
|
21
20
|
const poolConfigs = [
|
22
21
|
{
|
23
22
|
poolsUrl: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2',
|
@@ -44,14 +43,12 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
43
|
const underlyingAddresses = [
|
45
44
|
...new Set(pools.map((p) => p.tokens.map((t) => t.address)).flat()),
|
46
45
|
];
|
47
|
-
const
|
46
|
+
const tokenPrices = yield cache.getTokenPrices(underlyingAddresses, networkId);
|
48
47
|
const tokenPricesByAddress = new Map();
|
49
|
-
|
50
|
-
if (
|
48
|
+
tokenPrices.forEach((tp) => {
|
49
|
+
if (!tp)
|
51
50
|
return;
|
52
|
-
|
53
|
-
return;
|
54
|
-
tokenPricesByAddress.set(r.value.address, r.value);
|
51
|
+
tokenPricesByAddress.set(tp.address, tp);
|
55
52
|
});
|
56
53
|
const gGaugesByPool = {};
|
57
54
|
for (let i = 0; i < pools.length; i++) {
|
@@ -110,4 +107,4 @@ const job = {
|
|
110
107
|
executor,
|
111
108
|
};
|
112
109
|
exports.default = job;
|
113
|
-
//# sourceMappingURL=
|
110
|
+
//# sourceMappingURL=v2Job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"v2Job.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/balancer/v2Job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAGrC,2CAAmE;AACnE,2CAAqD;AACrD,6CAAuD;AAGvD,MAAM,WAAW,GAAG;IAClB;QACE,QAAQ,EACN,mEAAmE;QACrE,SAAS,EACP,uEAAuE;QACzE,SAAS,EAAE,0BAAS,CAAC,QAAQ;KAC9B;IACD;QACE,QAAQ,EACN,6EAA6E;QAC/E,SAAS,EACP,iFAAiF;QACnF,SAAS,EAAE,0BAAS,CAAC,SAAS;KAC/B;IACD;QACE,QAAQ,EACN,2EAA2E;QAC7E,SAAS,EACP,+EAA+E;QACjF,SAAS,EAAE,0BAAS,CAAC,OAAO;KAC7B;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,E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AAC;YAC9D,MAAM,MAAM,GAAqB;gBAC/B,EAAE,EAAE,sBAAU;gBACd,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,EAAE;gBACZ,SAAS;gBACT,UAAU,EAAE,UAAU;gBACtB,KAAK;gBACL,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;gBACrB,MAAM,EAAE,CAAC;gBACT,WAAW,EAAE,aAAa;gBAC1B,WAAW;aACZ,CAAC;YACF,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;YAC7C,aAAa,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;SACnC;QACD,MAAM,KAAK,CAAC,OAAO,CAAC,oCAAwB,EAAE,aAAa,EAAE;YAC3D,MAAM,EAAE,sBAAU;YAClB,SAAS;SACV,CAAC,CAAC;KACJ;AACH,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,KAAK;IACtB,QAAQ;CACT,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
export declare const getPoolTokensAbi: readonly [{
|
2
|
+
readonly inputs: readonly [{
|
3
|
+
readonly internalType: "bytes32";
|
4
|
+
readonly name: "poolId";
|
5
|
+
readonly type: "bytes32";
|
6
|
+
}];
|
7
|
+
readonly name: "getPoolTokens";
|
8
|
+
readonly outputs: readonly [{
|
9
|
+
readonly internalType: "contract IERC20[]";
|
10
|
+
readonly name: "tokens";
|
11
|
+
readonly type: "address[]";
|
12
|
+
}, {
|
13
|
+
readonly internalType: "uint256[]";
|
14
|
+
readonly name: "balances";
|
15
|
+
readonly type: "uint256[]";
|
16
|
+
}, {
|
17
|
+
readonly internalType: "uint256";
|
18
|
+
readonly name: "lastChangeBlock";
|
19
|
+
readonly type: "uint256";
|
20
|
+
}];
|
21
|
+
readonly stateMutability: "view";
|
22
|
+
readonly type: "function";
|
23
|
+
}];
|
24
|
+
export declare const getTotalRewardsAbi: readonly [{
|
25
|
+
readonly inputs: readonly [{
|
26
|
+
readonly internalType: "address";
|
27
|
+
readonly name: "staker";
|
28
|
+
readonly type: "address";
|
29
|
+
}];
|
30
|
+
readonly name: "getTotalRewardsBalance";
|
31
|
+
readonly outputs: readonly [{
|
32
|
+
readonly internalType: "uint256";
|
33
|
+
readonly name: "";
|
34
|
+
readonly type: "uint256";
|
35
|
+
}];
|
36
|
+
readonly stateMutability: "view";
|
37
|
+
readonly type: "function";
|
38
|
+
}];
|
39
|
+
export declare const totalSupplyAbi: readonly [{
|
40
|
+
readonly inputs: readonly [];
|
41
|
+
readonly name: "totalSupply";
|
42
|
+
readonly outputs: readonly [{
|
43
|
+
readonly internalType: "uint256";
|
44
|
+
readonly name: "";
|
45
|
+
readonly type: "uint256";
|
46
|
+
}];
|
47
|
+
readonly stateMutability: "view";
|
48
|
+
readonly type: "function";
|
49
|
+
}];
|
50
|
+
export declare const pendingWithdrawalsAbi: readonly [{
|
51
|
+
readonly name: "userVsWithdrawals";
|
52
|
+
readonly inputs: readonly [{
|
53
|
+
readonly internalType: "address";
|
54
|
+
readonly name: "staker";
|
55
|
+
readonly type: "address";
|
56
|
+
}, {
|
57
|
+
readonly internalType: "int256";
|
58
|
+
readonly name: "id";
|
59
|
+
readonly type: "int256";
|
60
|
+
}];
|
61
|
+
readonly outputs: readonly [{
|
62
|
+
readonly internalType: "uint256";
|
63
|
+
readonly name: "amount";
|
64
|
+
readonly type: "uint256";
|
65
|
+
}, {
|
66
|
+
readonly internalType: "uint256";
|
67
|
+
readonly name: "releaseTime";
|
68
|
+
readonly type: "uint256";
|
69
|
+
}, {
|
70
|
+
readonly internalType: "uint8";
|
71
|
+
readonly name: "status";
|
72
|
+
readonly type: "uint8";
|
73
|
+
}];
|
74
|
+
readonly stateMutability: "view";
|
75
|
+
readonly type: "function";
|
76
|
+
}];
|