@stake-dao/reader 0.2.16 → 0.2.18

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 (42) hide show
  1. package/dist/esm/abis/angleVaultsMulticall.js +85 -0
  2. package/dist/esm/abis/angleVaultsMulticall.js.map +1 -0
  3. package/dist/esm/abis/lockersMulticall.js +296 -0
  4. package/dist/esm/abis/lockersMulticall.js.map +1 -0
  5. package/dist/esm/abis/pendleVaultsMulticall.js +105 -0
  6. package/dist/esm/abis/pendleVaultsMulticall.js.map +1 -0
  7. package/dist/esm/abis/yearnVaultsMulticall.js +109 -0
  8. package/dist/esm/abis/yearnVaultsMulticall.js.map +1 -0
  9. package/dist/esm/lockers/fetch/index.js +1 -1
  10. package/dist/esm/lockers/fetch/index.js.map +1 -1
  11. package/dist/esm/strategies/angle/fetch.js +1 -1
  12. package/dist/esm/strategies/angle/fetch.js.map +1 -1
  13. package/dist/esm/strategies/pendle/fetch.js +1 -1
  14. package/dist/esm/strategies/pendle/fetch.js.map +1 -1
  15. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js +1 -1
  16. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js.map +1 -1
  17. package/dist/esm/strategies/yearn/fetch/index.js +1 -1
  18. package/dist/esm/strategies/yearn/fetch/index.js.map +1 -1
  19. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  20. package/dist/types/abis/angleVaultsMulticall.d.ts +42 -0
  21. package/dist/types/abis/angleVaultsMulticall.d.ts.map +1 -0
  22. package/dist/types/abis/lockersMulticall.d.ts +52 -0
  23. package/dist/types/abis/lockersMulticall.d.ts.map +1 -0
  24. package/dist/types/abis/pendleVaultsMulticall.d.ts +31 -0
  25. package/dist/types/abis/pendleVaultsMulticall.d.ts.map +1 -0
  26. package/dist/types/abis/yearnVaultsMulticall.d.ts +46 -0
  27. package/dist/types/abis/yearnVaultsMulticall.d.ts.map +1 -0
  28. package/dist/types/strategies/pendle/fetch.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/abis/angleVaultsMulticall.ts +85 -0
  31. package/src/abis/lockersMulticall.ts +296 -0
  32. package/src/abis/pendleVaultsMulticall.ts +105 -0
  33. package/src/abis/yearnVaultsMulticall.ts +109 -0
  34. package/src/lockers/fetch/index.ts +1 -1
  35. package/src/strategies/angle/fetch.ts +1 -1
  36. package/src/strategies/pendle/fetch.ts +1 -1
  37. package/src/strategies/yearn/fetch/fetchAllYearnGauges.ts +1 -1
  38. package/src/strategies/yearn/fetch/index.ts +1 -1
  39. package/dist/esm/abis/MulticallAngleVaults.json +0 -83
  40. package/dist/esm/lockers/abis/MulticallLockers.json +0 -591
  41. package/dist/esm/strategies/pendle/abis/MulticallPendleStratsAbi.json +0 -103
  42. package/dist/esm/strategies/utils/abis/MulticallYearnStratsAbi.json +0 -107
@@ -0,0 +1,42 @@
1
+ declare const angleVaultsMulticall: ({
2
+ inputs: never[];
3
+ name: string;
4
+ outputs: {
5
+ internalType: string;
6
+ name: string;
7
+ type: string;
8
+ }[];
9
+ payable: boolean;
10
+ stateMutability: string;
11
+ type: string;
12
+ } | {
13
+ inputs: {
14
+ name: string;
15
+ type: string;
16
+ }[];
17
+ name: string;
18
+ outputs: {
19
+ name: string;
20
+ type: string;
21
+ }[];
22
+ stateMutability: string;
23
+ type: string;
24
+ payable?: undefined;
25
+ } | {
26
+ inputs: {
27
+ internalType: string;
28
+ name: string;
29
+ type: string;
30
+ }[];
31
+ name: string;
32
+ outputs: {
33
+ internalType: string;
34
+ name: string;
35
+ type: string;
36
+ }[];
37
+ stateMutability: string;
38
+ type: string;
39
+ payable?: undefined;
40
+ })[];
41
+ export default angleVaultsMulticall;
42
+ //# sourceMappingURL=angleVaultsMulticall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angleVaultsMulticall.d.ts","sourceRoot":"","sources":["../../../src/abis/angleVaultsMulticall.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkFzB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,52 @@
1
+ declare const lockersMulticallAbi: ({
2
+ name: string;
3
+ outputs: {
4
+ type: string;
5
+ name: string;
6
+ }[];
7
+ inputs: {
8
+ type: string;
9
+ name: string;
10
+ }[];
11
+ stateMutability: string;
12
+ type: string;
13
+ payable?: undefined;
14
+ } | {
15
+ inputs: ({
16
+ internalType: string;
17
+ name: string;
18
+ type: string;
19
+ components?: undefined;
20
+ } | {
21
+ components: {
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ internalType: string;
27
+ name: string;
28
+ type: string;
29
+ })[];
30
+ name: string;
31
+ outputs: {
32
+ internalType: string;
33
+ name: string;
34
+ type: string;
35
+ }[];
36
+ stateMutability: string;
37
+ type: string;
38
+ payable?: undefined;
39
+ } | {
40
+ inputs: never[];
41
+ name: string;
42
+ outputs: {
43
+ internalType: string;
44
+ name: string;
45
+ type: string;
46
+ }[];
47
+ payable: boolean;
48
+ stateMutability: string;
49
+ type: string;
50
+ })[];
51
+ export default lockersMulticallAbi;
52
+ //# sourceMappingURL=lockersMulticall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockersMulticall.d.ts","sourceRoot":"","sources":["../../../src/abis/lockersMulticall.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqSxB,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,31 @@
1
+ declare const pendleVaultsMulticall: ({
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ outputs: {
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ payable: boolean;
14
+ stateMutability: string;
15
+ type: string;
16
+ } | {
17
+ stateMutability: string;
18
+ type: string;
19
+ name: string;
20
+ inputs: {
21
+ name: string;
22
+ type: string;
23
+ }[];
24
+ outputs: {
25
+ name: string;
26
+ type: string;
27
+ }[];
28
+ payable?: undefined;
29
+ })[];
30
+ export default pendleVaultsMulticall;
31
+ //# sourceMappingURL=pendleVaultsMulticall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pendleVaultsMulticall.d.ts","sourceRoot":"","sources":["../../../src/abis/pendleVaultsMulticall.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsG1B,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,46 @@
1
+ declare const yearnVaultsMulticall: ({
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ outputs: {
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ payable: boolean;
14
+ stateMutability: string;
15
+ type: string;
16
+ } | {
17
+ inputs: {
18
+ internalType: string;
19
+ name: string;
20
+ type: string;
21
+ }[];
22
+ name: string;
23
+ outputs: {
24
+ internalType: string;
25
+ name: string;
26
+ type: string;
27
+ }[];
28
+ stateMutability: string;
29
+ type: string;
30
+ payable?: undefined;
31
+ } | {
32
+ stateMutability: string;
33
+ type: string;
34
+ name: string;
35
+ inputs: {
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ outputs: {
40
+ name: string;
41
+ type: string;
42
+ }[];
43
+ payable?: undefined;
44
+ })[];
45
+ export default yearnVaultsMulticall;
46
+ //# sourceMappingURL=yearnVaultsMulticall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yearnVaultsMulticall.d.ts","sourceRoot":"","sources":["../../../src/abis/yearnVaultsMulticall.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0GzB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/strategies/pendle/fetch.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAU,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAsBnF,UAAU,YAAY;IACpB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,GAAG,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,aAAa,CAAA;IACvB,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,eAAO,MAAM,WAAW,iEAAwE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgU3G,CAAA"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/strategies/pendle/fetch.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAU,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAqBnF,UAAU,YAAY;IACpB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,GAAG,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,aAAa,CAAA;IACvB,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,eAAO,MAAM,WAAW,iEAAwE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgU3G,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stake-dao/reader",
3
3
  "description": "",
4
- "version": "0.2.16",
4
+ "version": "0.2.18",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
7
7
  "type": "git",
@@ -0,0 +1,85 @@
1
+ const angleVaultsMulticall = [
2
+ {
3
+ inputs: [],
4
+ name: 'totalSupply',
5
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
+ payable: false,
7
+ stateMutability: 'view',
8
+ type: 'function',
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: 'working_supply',
13
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
14
+ payable: false,
15
+ stateMutability: 'view',
16
+ type: 'function',
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: 'getUnderlyingBalances',
21
+ outputs: [
22
+ { internalType: 'uint256', name: '', type: 'uint256' },
23
+ { internalType: 'uint256', name: '', type: 'uint256' },
24
+ ],
25
+ payable: false,
26
+ stateMutability: 'view',
27
+ type: 'function',
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: 'getTotalAmounts',
32
+ outputs: [
33
+ { internalType: 'uint256', name: '', type: 'uint256' },
34
+ { internalType: 'uint256', name: '', type: 'uint256' },
35
+ ],
36
+ payable: false,
37
+ stateMutability: 'view',
38
+ type: 'function',
39
+ },
40
+ {
41
+ inputs: [],
42
+ name: 'getTotalAmounts',
43
+ outputs: [
44
+ { internalType: 'uint256', name: '', type: 'uint256' },
45
+ { internalType: 'uint256', name: '', type: 'uint256' },
46
+ ],
47
+ payable: false,
48
+ stateMutability: 'view',
49
+ type: 'function',
50
+ },
51
+ {
52
+ inputs: [{ name: 'arg0', type: 'address' }],
53
+ name: 'reward_data',
54
+ outputs: [
55
+ { name: 'token', type: 'address' },
56
+ { name: 'distributor', type: 'address' },
57
+ { name: 'period_finish', type: 'uint256' },
58
+ { name: 'rate', type: 'uint256' },
59
+ { name: 'last_update', type: 'uint256' },
60
+ { name: 'integral', type: 'uint256' },
61
+ ],
62
+ stateMutability: 'view',
63
+ type: 'function',
64
+ },
65
+ {
66
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
67
+ name: 'rewardData',
68
+ outputs: [
69
+ { internalType: 'address', name: 'rewardsDistributor', type: 'address' },
70
+ { internalType: 'uint256', name: 'rewardsDuration', type: 'uint256' },
71
+ { internalType: 'uint256', name: 'periodFinish', type: 'uint256' },
72
+ { internalType: 'uint256', name: 'rewardRate', type: 'uint256' },
73
+ { internalType: 'uint256', name: 'lastUpdateTime', type: 'uint256' },
74
+ {
75
+ internalType: 'uint256',
76
+ name: 'rewardPerTokenStored',
77
+ type: 'uint256',
78
+ },
79
+ ],
80
+ stateMutability: 'view',
81
+ type: 'function',
82
+ },
83
+ ]
84
+
85
+ export default angleVaultsMulticall
@@ -0,0 +1,296 @@
1
+ const lockersMulticallAbi = [
2
+ {
3
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
4
+ name: 'balanceOf',
5
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
+ stateMutability: 'view',
7
+ type: 'function',
8
+ },
9
+ {
10
+ inputs: [],
11
+ name: 'totalSupply',
12
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
13
+ stateMutability: 'view',
14
+ type: 'function',
15
+ },
16
+ {
17
+ name: 'locked',
18
+ outputs: [
19
+ { type: 'int128', name: 'amount' },
20
+ { type: 'uint256', name: 'end' },
21
+ ],
22
+ inputs: [{ type: 'address', name: 'arg0' }],
23
+ stateMutability: 'view',
24
+ type: 'function',
25
+ },
26
+ {
27
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
28
+ name: 'locks',
29
+ outputs: [
30
+ { internalType: 'int128', name: 'amount', type: 'int128' },
31
+ { internalType: 'uint256', name: 'end', type: 'uint256' },
32
+ ],
33
+ stateMutability: 'view',
34
+ type: 'function',
35
+ },
36
+ {
37
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
38
+ name: 'positionData',
39
+ outputs: [
40
+ { internalType: 'uint128', name: 'amount', type: 'uint128' },
41
+ { internalType: 'uint128', name: 'expiry', type: 'uint128' },
42
+ ],
43
+ stateMutability: 'view',
44
+ type: 'function',
45
+ },
46
+ {
47
+ inputs: [],
48
+ name: 'totalSupplyStored',
49
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
50
+ stateMutability: 'view',
51
+ type: 'function',
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: 'working_supply',
56
+ outputs: [{ name: '', type: 'uint256' }],
57
+ stateMutability: 'view',
58
+ type: 'function',
59
+ },
60
+ {
61
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
62
+ name: 'working_balances',
63
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
64
+ stateMutability: 'view',
65
+ type: 'function',
66
+ },
67
+ {
68
+ name: 'supply',
69
+ outputs: [{ type: 'uint256', name: '' }],
70
+ inputs: [],
71
+ stateMutability: 'view',
72
+ type: 'function',
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: 'incentiveToken',
77
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
78
+ stateMutability: 'view',
79
+ type: 'function',
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: 'lockIncentive',
84
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
85
+ stateMutability: 'view',
86
+ type: 'function',
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: 'lockIncentivePercent',
91
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
92
+ stateMutability: 'view',
93
+ type: 'function',
94
+ },
95
+ {
96
+ inputs: [],
97
+ name: 'FEE_DENOMINATOR',
98
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
99
+ stateMutability: 'view',
100
+ type: 'function',
101
+ },
102
+ {
103
+ stateMutability: 'view',
104
+ type: 'function',
105
+ name: 'gauge_relative_weight',
106
+ inputs: [{ name: 'addr', type: 'address' }],
107
+ outputs: [{ name: '', type: 'uint256' }],
108
+ },
109
+ {
110
+ stateMutability: 'view',
111
+ type: 'function',
112
+ name: 'get_gauge_weight',
113
+ inputs: [{ name: 'addr', type: 'address' }],
114
+ outputs: [{ name: '', type: 'uint256' }],
115
+ },
116
+ {
117
+ stateMutability: 'view',
118
+ type: 'function',
119
+ name: 'get_total_weight',
120
+ inputs: [],
121
+ outputs: [{ name: '', type: 'uint256' }],
122
+ },
123
+ {
124
+ stateMutability: 'view',
125
+ type: 'function',
126
+ name: 'time_total',
127
+ inputs: [],
128
+ outputs: [{ name: '', type: 'uint256' }],
129
+ },
130
+ {
131
+ inputs: [
132
+ { internalType: 'address', name: '', type: 'address' },
133
+ { internalType: 'uint256', name: '', type: 'uint256' },
134
+ ],
135
+ name: 'lockups',
136
+ outputs: [
137
+ { internalType: 'uint128', name: 'amount', type: 'uint128' },
138
+ { internalType: 'uint128', name: 'end', type: 'uint128' },
139
+ { internalType: 'uint256', name: 'points', type: 'uint256' },
140
+ ],
141
+ stateMutability: 'view',
142
+ type: 'function',
143
+ },
144
+ {
145
+ stateMutability: 'view',
146
+ type: 'function',
147
+ name: 'get_dy',
148
+ inputs: [
149
+ { name: 'i', type: 'int128' },
150
+ { name: 'j', type: 'int128' },
151
+ { name: 'dx', type: 'uint256' },
152
+ ],
153
+ outputs: [{ name: '', type: 'uint256' }],
154
+ },
155
+ {
156
+ inputs: [
157
+ { internalType: 'enum IVault.SwapKind', name: 'kind', type: 'uint8' },
158
+ {
159
+ components: [
160
+ { internalType: 'bytes32', name: 'poolId', type: 'bytes32' },
161
+ { internalType: 'uint256', name: 'assetInIndex', type: 'uint256' },
162
+ { internalType: 'uint256', name: 'assetOutIndex', type: 'uint256' },
163
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
164
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
165
+ ],
166
+ internalType: 'struct IVault.BatchSwapStep[]',
167
+ name: 'swaps',
168
+ type: 'tuple[]',
169
+ },
170
+ { internalType: 'contract IAsset[]', name: 'assets', type: 'address[]' },
171
+ {
172
+ components: [
173
+ { internalType: 'address', name: 'sender', type: 'address' },
174
+ { internalType: 'bool', name: 'fromInternalBalance', type: 'bool' },
175
+ { internalType: 'address payable', name: 'recipient', type: 'address' },
176
+ { internalType: 'bool', name: 'toInternalBalance', type: 'bool' },
177
+ ],
178
+ internalType: 'struct IVault.FundManagement',
179
+ name: 'funds',
180
+ type: 'tuple',
181
+ },
182
+ ],
183
+ name: 'queryBatchSwap',
184
+ outputs: [{ internalType: 'int256[]', name: '', type: 'int256[]' }],
185
+ stateMutability: 'view',
186
+ type: 'function',
187
+ },
188
+ {
189
+ inputs: [
190
+ { internalType: 'contract IPool', name: 'pool', type: 'address' },
191
+ { internalType: 'uint128', name: 'amount', type: 'uint128' },
192
+ { internalType: 'bool', name: 'tokenAIn', type: 'bool' },
193
+ { internalType: 'bool', name: 'exactOutput', type: 'bool' },
194
+ { internalType: 'uint256', name: 'sqrtPriceLimit', type: 'uint256' },
195
+ ],
196
+ name: 'calculateSwap',
197
+ outputs: [{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' }],
198
+ stateMutability: 'view',
199
+ type: 'function',
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: 'claimerFee',
204
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
205
+ payable: false,
206
+ stateMutability: 'view',
207
+ type: 'function',
208
+ },
209
+ {
210
+ inputs: [],
211
+ name: 'daoFee',
212
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
213
+ payable: false,
214
+ stateMutability: 'view',
215
+ type: 'function',
216
+ },
217
+ {
218
+ inputs: [],
219
+ name: 'liquidityFee',
220
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
221
+ payable: false,
222
+ stateMutability: 'view',
223
+ type: 'function',
224
+ },
225
+ {
226
+ inputs: [],
227
+ name: 'bountyFee',
228
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
229
+ payable: false,
230
+ stateMutability: 'view',
231
+ type: 'function',
232
+ },
233
+ {
234
+ inputs: [],
235
+ name: 'bribeFee',
236
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
237
+ payable: false,
238
+ stateMutability: 'view',
239
+ type: 'function',
240
+ },
241
+ {
242
+ inputs: [],
243
+ name: 'lockerFee',
244
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
245
+ payable: false,
246
+ stateMutability: 'view',
247
+ type: 'function',
248
+ },
249
+ {
250
+ inputs: [
251
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
252
+ { internalType: 'uint256', name: 'duration', type: 'uint256' },
253
+ ],
254
+ name: 'previewPoints',
255
+ outputs: [
256
+ { internalType: 'uint256', name: '', type: 'uint256' },
257
+ { internalType: 'uint256', name: '', type: 'uint256' },
258
+ ],
259
+ stateMutability: 'view',
260
+ type: 'function',
261
+ },
262
+ {
263
+ inputs: [
264
+ {
265
+ components: [
266
+ { internalType: 'address', name: 'tokenIn', type: 'address' },
267
+ { internalType: 'address', name: 'tokenOut', type: 'address' },
268
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
269
+ { internalType: 'uint24', name: 'fee', type: 'uint24' },
270
+ { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' },
271
+ ],
272
+ internalType: 'struct IQuoterV2.QuoteExactInputSingleParams',
273
+ name: 'params',
274
+ type: 'tuple',
275
+ },
276
+ ],
277
+ name: 'quoteExactInputSingle',
278
+ outputs: [
279
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
280
+ { internalType: 'uint160', name: 'sqrtPriceX96After', type: 'uint160' },
281
+ { internalType: 'uint32', name: 'initializedTicksCrossed', type: 'uint32' },
282
+ { internalType: 'uint256', name: 'gasEstimate', type: 'uint256' },
283
+ ],
284
+ stateMutability: 'view',
285
+ type: 'function',
286
+ },
287
+ {
288
+ inputs: [{ internalType: 'address', name: '_addr', type: 'address' }],
289
+ name: 'balanceOfLockedFxs',
290
+ outputs: [{ internalType: 'uint256', name: '_balanceOfLockedFxs', type: 'uint256' }],
291
+ stateMutability: 'view',
292
+ type: 'function',
293
+ },
294
+ ]
295
+
296
+ export default lockersMulticallAbi
@@ -0,0 +1,105 @@
1
+ const pendleVaultsMulticall = [
2
+ {
3
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
4
+ name: 'balanceOf',
5
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
+ payable: false,
7
+ stateMutability: 'view',
8
+ type: 'function',
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: 'totalSupply',
13
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
14
+ payable: false,
15
+ stateMutability: 'view',
16
+ type: 'function',
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: 'veSdtFeeFee',
21
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
22
+ payable: false,
23
+ stateMutability: 'view',
24
+ type: 'function',
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: 'daoFee',
29
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
30
+ payable: false,
31
+ stateMutability: 'view',
32
+ type: 'function',
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: 'accFee',
37
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
38
+ payable: false,
39
+ stateMutability: 'view',
40
+ type: 'function',
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: 'claimerFee',
45
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
46
+ payable: false,
47
+ stateMutability: 'view',
48
+ type: 'function',
49
+ },
50
+ {
51
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
52
+ name: 'activeBalance',
53
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
54
+ payable: false,
55
+ stateMutability: 'view',
56
+ type: 'function',
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: 'working_supply',
61
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
62
+ payable: false,
63
+ stateMutability: 'view',
64
+ type: 'function',
65
+ },
66
+ {
67
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
68
+ name: 'redeemRewards',
69
+ outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }],
70
+ payable: false,
71
+ stateMutability: 'view',
72
+ type: 'function',
73
+ },
74
+ {
75
+ stateMutability: 'view',
76
+ type: 'function',
77
+ name: 'gauge_relative_weight',
78
+ inputs: [{ name: 'addr', type: 'address' }],
79
+ outputs: [{ name: '', type: 'uint256' }],
80
+ },
81
+ {
82
+ stateMutability: 'view',
83
+ type: 'function',
84
+ name: 'get_gauge_weight',
85
+ inputs: [{ name: 'addr', type: 'address' }],
86
+ outputs: [{ name: '', type: 'uint256' }],
87
+ },
88
+ {
89
+ stateMutability: 'view',
90
+ type: 'function',
91
+ name: 'get_total_weight',
92
+ inputs: [],
93
+ outputs: [{ name: '', type: 'uint256' }],
94
+ },
95
+ {
96
+ inputs: [],
97
+ name: 'expiry',
98
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
99
+ payable: false,
100
+ stateMutability: 'view',
101
+ type: 'function',
102
+ },
103
+ ]
104
+
105
+ export default pendleVaultsMulticall