@sonarwatch/portfolio-plugins 0.8.47 → 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.
Files changed (61) hide show
  1. package/CHANGELOG.md +164 -155
  2. package/package.json +2 -41
  3. package/src/index.js +8 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/balancer/helpers/pools.js +21 -21
  6. package/src/plugins/paraswap/abis.d.ts +76 -0
  7. package/src/plugins/paraswap/abis.js +69 -0
  8. package/src/plugins/paraswap/abis.js.map +1 -0
  9. package/src/plugins/paraswap/bptFarmingFetcher.d.ts +3 -0
  10. package/src/plugins/paraswap/bptFarmingFetcher.js +106 -0
  11. package/src/plugins/paraswap/bptFarmingFetcher.js.map +1 -0
  12. package/src/plugins/paraswap/bptInfoJob.d.ts +3 -0
  13. package/src/plugins/paraswap/bptInfoJob.js +47 -0
  14. package/src/plugins/paraswap/bptInfoJob.js.map +1 -0
  15. package/src/plugins/paraswap/bptStakingFetcher.d.ts +3 -0
  16. package/src/plugins/paraswap/bptStakingFetcher.js +140 -0
  17. package/src/plugins/paraswap/bptStakingFetcher.js.map +1 -0
  18. package/src/plugins/paraswap/constants.d.ts +24 -0
  19. package/src/plugins/paraswap/constants.js +79 -0
  20. package/src/plugins/paraswap/constants.js.map +1 -0
  21. package/src/plugins/paraswap/index.d.ts +6 -0
  22. package/src/plugins/paraswap/index.js +19 -0
  23. package/src/plugins/paraswap/index.js.map +1 -0
  24. package/src/plugins/paraswap/stakingFetcher.d.ts +3 -0
  25. package/src/plugins/paraswap/stakingFetcher.js +114 -0
  26. package/src/plugins/paraswap/stakingFetcher.js.map +1 -0
  27. package/src/plugins/paraswap/types.d.ts +9 -0
  28. package/src/plugins/paraswap/types.js +3 -0
  29. package/src/plugins/paraswap/types.js.map +1 -0
  30. package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js +1 -1
  31. package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js.map +1 -1
  32. package/src/plugins/top-tokens/forcedAddresses.js +11 -0
  33. package/src/plugins/top-tokens/forcedAddresses.js.map +1 -1
  34. package/src/plugins/top-tokens/ignoredAddresses.js +1 -0
  35. package/src/plugins/top-tokens/ignoredAddresses.js.map +1 -1
  36. package/src/plugins/top-tokens/topTokensJob.js +6 -1
  37. package/src/plugins/top-tokens/topTokensJob.js.map +1 -1
  38. package/src/plugins/uniswap/abis.d.ts +201 -0
  39. package/src/plugins/uniswap/abis.js +132 -0
  40. package/src/plugins/uniswap/abis.js.map +1 -0
  41. package/src/plugins/uniswap/constants.d.ts +7 -0
  42. package/src/plugins/uniswap/constants.js +46 -0
  43. package/src/plugins/uniswap/constants.js.map +1 -0
  44. package/src/plugins/uniswap/getPositionsV3Fetcher.d.ts +3 -0
  45. package/src/plugins/uniswap/getPositionsV3Fetcher.js +318 -0
  46. package/src/plugins/uniswap/getPositionsV3Fetcher.js.map +1 -0
  47. package/src/plugins/uniswap/index.d.ts +6 -0
  48. package/src/plugins/uniswap/index.js +11 -0
  49. package/src/plugins/uniswap/index.js.map +1 -0
  50. package/src/plugins/uniswap/types.d.ts +55 -0
  51. package/src/plugins/uniswap/types.js +3 -0
  52. package/src/plugins/uniswap/types.js.map +1 -0
  53. package/src/utils/clients/constants.js +2 -0
  54. package/src/utils/clients/constants.js.map +1 -1
  55. package/src/utils/clients/getEvmClients.js +1 -0
  56. package/src/utils/clients/getEvmClients.js.map +1 -1
  57. package/src/utils/evm/erc20Abi.d.ts +1 -1
  58. package/src/utils/evm/erc20Abi.js +2 -2
  59. package/src/utils/evm/erc20Abi.js.map +1 -1
  60. package/src/utils/evm/getBalances.js +1 -1
  61. package/src/utils/evm/getBalances.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,168 +2,177 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [0.8.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.46...plugins-0.8.47) (2023-10-24)
6
-
7
-
8
-
9
- ## [0.8.46](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.45...plugins-0.8.46) (2023-10-24)
10
-
11
-
12
-
13
- ## [0.8.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.44...plugins-0.8.45) (2023-10-23)
14
-
15
-
16
-
17
- ## [0.8.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.43...plugins-0.8.44) (2023-10-23)
18
-
19
-
20
-
21
- ## [0.8.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.42...plugins-0.8.43) (2023-10-23)
22
-
23
-
24
-
25
- ## [0.8.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.41...plugins-0.8.42) (2023-10-23)
26
-
27
-
28
-
29
- ## [0.8.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.40...plugins-0.8.41) (2023-10-23)
30
-
31
-
32
-
33
- ## [0.8.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.39...plugins-0.8.40) (2023-10-23)
34
-
35
-
36
-
37
- ## [0.8.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.38...plugins-0.8.39) (2023-10-23)
38
-
39
-
40
-
41
- ## [0.8.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.37...plugins-0.8.38) (2023-10-21)
42
-
43
-
44
-
45
- ## [0.8.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.36...plugins-0.8.37) (2023-10-21)
46
-
47
-
48
-
49
- ## [0.8.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.35...plugins-0.8.36) (2023-10-21)
50
-
51
-
52
-
53
- ## [0.8.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.34...plugins-0.8.35) (2023-10-21)
54
-
55
-
56
-
57
- ## [0.8.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.33...plugins-0.8.34) (2023-10-20)
58
-
59
-
60
-
61
- ## [0.8.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.32...plugins-0.8.33) (2023-10-18)
62
-
63
-
64
-
65
- ## [0.8.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.31...plugins-0.8.32) (2023-10-18)
66
-
67
-
68
-
69
- ## [0.8.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.30...plugins-0.8.31) (2023-10-18)
70
-
71
-
72
-
73
- ## [0.8.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.29...plugins-0.8.30) (2023-10-18)
74
-
75
-
76
-
77
- ## [0.8.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.28...plugins-0.8.29) (2023-10-17)
78
-
79
-
80
-
81
- ## [0.8.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.27...plugins-0.8.28) (2023-10-17)
82
-
83
-
84
-
85
- ## [0.8.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.26...plugins-0.8.27) (2023-10-16)
86
-
87
-
88
-
89
- ## [0.8.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.25...plugins-0.8.26) (2023-10-16)
90
-
91
-
92
-
93
- ## [0.8.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.24...plugins-0.8.25) (2023-10-16)
94
-
95
-
96
-
97
- ## [0.8.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.23...plugins-0.8.24) (2023-10-14)
98
-
99
-
100
-
101
- ## [0.8.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.22...plugins-0.8.23) (2023-10-14)
102
-
103
-
104
-
105
- ## [0.8.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.21...plugins-0.8.22) (2023-10-14)
5
+ ## [0.8.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.47...plugins-0.8.48) (2023-10-26)
106
6
 
107
7
 
108
8
  ### Reverts
109
9
 
110
- * Revert "rename" ([ffcf477](https://github.com/sonarwatch/portfolio/commit/ffcf47783e7dcb924c7685a4c7784a2385b526c2))
111
-
112
-
113
-
114
- ## [0.8.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.20...plugins-0.8.21) (2023-10-13)
115
-
116
-
117
-
118
- ## [0.8.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.19...plugins-0.8.20) (2023-10-13)
119
-
120
-
121
-
122
- ## [0.8.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.18...plugins-0.8.19) (2023-10-13)
123
-
124
-
125
-
126
- ## [0.8.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.17...plugins-0.8.18) (2023-10-13)
127
-
128
-
129
-
130
- ## [0.8.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.16...plugins-0.8.17) (2023-10-13)
131
-
132
-
133
-
134
- ## [0.8.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.15...plugins-0.8.16) (2023-10-13)
135
-
136
-
137
-
138
- ## [0.8.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.14...plugins-0.8.15) (2023-10-13)
139
-
140
-
141
-
142
- ## [0.8.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.13...plugins-0.8.14) (2023-10-13)
143
-
144
-
145
-
146
- ## [0.8.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.12...plugins-0.8.13) (2023-10-13)
147
-
148
-
149
-
150
- ## [0.8.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.11...plugins-0.8.12) (2023-10-13)
151
-
152
-
153
-
154
- ## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
155
-
156
-
157
- ### Reverts
158
-
159
- * Revert "fix" ([75a2d85](https://github.com/sonarwatch/portfolio/commit/75a2d85230c10109f052c903700899308a48e72c))
160
-
161
-
162
-
163
- ## [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))
164
11
 
165
12
 
166
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
+
167
176
  ## [0.8.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.8...plugins-0.8.9) (2023-10-12)
168
177
 
169
178
 
package/package.json CHANGED
@@ -1,46 +1,7 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.8.47",
3
+ "version": "0.8.48",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
- "dependencies": {
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.47"
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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,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;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;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,iDAI4B;AAC5B,iDAI4B;AAE5B,wDAGoC;AAFlC,iHAAA,oBAAoB,OAAA;AACpB,+GAAA,kBAAkB,OAAA;AAGpB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,uDAAqC;AACrC,gDAA8B;AAC9B,4DAA0C;AAE1C,eAAe;AACF,QAAA,SAAS,GAAe;IACnC,GAAG,wBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IAC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cAAW;IACd,GAAG,eAAY;IACf,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,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,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;
@@ -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
+ }];
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pendingWithdrawalsAbi = exports.totalSupplyAbi = exports.getTotalRewardsAbi = exports.getPoolTokensAbi = void 0;
4
+ exports.getPoolTokensAbi = [
5
+ {
6
+ inputs: [{ internalType: 'bytes32', name: 'poolId', type: 'bytes32' }],
7
+ name: 'getPoolTokens',
8
+ outputs: [
9
+ { internalType: 'contract IERC20[]', name: 'tokens', type: 'address[]' },
10
+ { internalType: 'uint256[]', name: 'balances', type: 'uint256[]' },
11
+ { internalType: 'uint256', name: 'lastChangeBlock', type: 'uint256' },
12
+ ],
13
+ stateMutability: 'view',
14
+ type: 'function',
15
+ },
16
+ ];
17
+ exports.getTotalRewardsAbi = [
18
+ {
19
+ inputs: [{ internalType: 'address', name: 'staker', type: 'address' }],
20
+ name: 'getTotalRewardsBalance',
21
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
22
+ stateMutability: 'view',
23
+ type: 'function',
24
+ },
25
+ ];
26
+ exports.totalSupplyAbi = [
27
+ {
28
+ inputs: [],
29
+ name: 'totalSupply',
30
+ outputs: [
31
+ {
32
+ internalType: 'uint256',
33
+ name: '',
34
+ type: 'uint256',
35
+ },
36
+ ],
37
+ stateMutability: 'view',
38
+ type: 'function',
39
+ },
40
+ ];
41
+ exports.pendingWithdrawalsAbi = [
42
+ {
43
+ name: 'userVsWithdrawals',
44
+ inputs: [
45
+ { internalType: 'address', name: 'staker', type: 'address' },
46
+ { internalType: 'int256', name: 'id', type: 'int256' },
47
+ ],
48
+ outputs: [
49
+ {
50
+ internalType: 'uint256',
51
+ name: 'amount',
52
+ type: 'uint256',
53
+ },
54
+ {
55
+ internalType: 'uint256',
56
+ name: 'releaseTime',
57
+ type: 'uint256',
58
+ },
59
+ {
60
+ internalType: 'uint8',
61
+ name: 'status',
62
+ type: 'uint8',
63
+ },
64
+ ],
65
+ stateMutability: 'view',
66
+ type: 'function',
67
+ },
68
+ ];
69
+ //# sourceMappingURL=abis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abis.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/paraswap/abis.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACtE,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE;YACP,EAAE,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE;YACxE,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE;YAClE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE;SACtE;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEE,QAAA,kBAAkB,GAAG;IAChC;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACtE,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAA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