@pendle/core-v2 5.4.2 → 5.4.4

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 (60) hide show
  1. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +4 -0
  2. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +462 -0
  3. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +4 -0
  19. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +251 -0
  20. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  32. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  33. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  34. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  35. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  36. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  37. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  39. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  41. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  44. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  46. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +117 -0
  47. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +33 -0
  48. package/deployments/1-core.json +1 -0
  49. package/deployments/10-core.json +1 -0
  50. package/deployments/42161-core.json +1 -0
  51. package/deployments/5000-core.json +1 -0
  52. package/deployments/56-core.json +1 -0
  53. package/deployments/8453-core.json +1 -0
  54. package/package.json +1 -1
  55. package/typechain-types/IPMultiTokenMerkleDistributor.ts +363 -0
  56. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
  57. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +270 -0
  58. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +523 -0
  59. package/typechain-types/hardhat.d.ts +18 -9
  60. package/typechain-types/index.ts +4 -2
@@ -0,0 +1,270 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPMultiTokenMerkleDistributor,
9
+ IPMultiTokenMerkleDistributorInterface,
10
+ } from "../IPMultiTokenMerkleDistributor";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "InvalidMerkleProof",
16
+ type: "error",
17
+ },
18
+ {
19
+ anonymous: false,
20
+ inputs: [
21
+ {
22
+ indexed: true,
23
+ internalType: "address",
24
+ name: "token",
25
+ type: "address",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "user",
31
+ type: "address",
32
+ },
33
+ {
34
+ indexed: true,
35
+ internalType: "address",
36
+ name: "receiver",
37
+ type: "address",
38
+ },
39
+ {
40
+ indexed: false,
41
+ internalType: "uint256",
42
+ name: "amount",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "Claimed",
47
+ type: "event",
48
+ },
49
+ {
50
+ anonymous: false,
51
+ inputs: [
52
+ {
53
+ indexed: false,
54
+ internalType: "address[]",
55
+ name: "defaultTokenList",
56
+ type: "address[]",
57
+ },
58
+ ],
59
+ name: "SetDefaultTokenList",
60
+ type: "event",
61
+ },
62
+ {
63
+ anonymous: false,
64
+ inputs: [
65
+ {
66
+ indexed: true,
67
+ internalType: "bytes32",
68
+ name: "merkleRoot",
69
+ type: "bytes32",
70
+ },
71
+ ],
72
+ name: "SetMerkleRoot",
73
+ type: "event",
74
+ },
75
+ {
76
+ anonymous: false,
77
+ inputs: [
78
+ {
79
+ indexed: true,
80
+ internalType: "address",
81
+ name: "token",
82
+ type: "address",
83
+ },
84
+ {
85
+ indexed: true,
86
+ internalType: "address",
87
+ name: "user",
88
+ type: "address",
89
+ },
90
+ {
91
+ indexed: false,
92
+ internalType: "uint256",
93
+ name: "amountClaimable",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ name: "Verified",
98
+ type: "event",
99
+ },
100
+ {
101
+ inputs: [
102
+ {
103
+ internalType: "address",
104
+ name: "receiver",
105
+ type: "address",
106
+ },
107
+ {
108
+ internalType: "address[]",
109
+ name: "tokens",
110
+ type: "address[]",
111
+ },
112
+ {
113
+ internalType: "uint256[]",
114
+ name: "totalAccrueds",
115
+ type: "uint256[]",
116
+ },
117
+ {
118
+ internalType: "bytes32[][]",
119
+ name: "proofs",
120
+ type: "bytes32[][]",
121
+ },
122
+ ],
123
+ name: "claim",
124
+ outputs: [
125
+ {
126
+ internalType: "uint256[]",
127
+ name: "amountOuts",
128
+ type: "uint256[]",
129
+ },
130
+ ],
131
+ stateMutability: "nonpayable",
132
+ type: "function",
133
+ },
134
+ {
135
+ inputs: [
136
+ {
137
+ internalType: "address",
138
+ name: "receiver",
139
+ type: "address",
140
+ },
141
+ {
142
+ internalType: "address[]",
143
+ name: "tokens",
144
+ type: "address[]",
145
+ },
146
+ ],
147
+ name: "claimVerified",
148
+ outputs: [
149
+ {
150
+ internalType: "uint256[]",
151
+ name: "amountOuts",
152
+ type: "uint256[]",
153
+ },
154
+ ],
155
+ stateMutability: "nonpayable",
156
+ type: "function",
157
+ },
158
+ {
159
+ inputs: [
160
+ {
161
+ internalType: "address",
162
+ name: "token",
163
+ type: "address",
164
+ },
165
+ {
166
+ internalType: "address",
167
+ name: "user",
168
+ type: "address",
169
+ },
170
+ ],
171
+ name: "claimed",
172
+ outputs: [
173
+ {
174
+ internalType: "uint256",
175
+ name: "",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ stateMutability: "view",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [],
184
+ name: "merkleRoot",
185
+ outputs: [
186
+ {
187
+ internalType: "bytes32",
188
+ name: "",
189
+ type: "bytes32",
190
+ },
191
+ ],
192
+ stateMutability: "view",
193
+ type: "function",
194
+ },
195
+ {
196
+ inputs: [
197
+ {
198
+ internalType: "address",
199
+ name: "token",
200
+ type: "address",
201
+ },
202
+ {
203
+ internalType: "address",
204
+ name: "user",
205
+ type: "address",
206
+ },
207
+ ],
208
+ name: "verified",
209
+ outputs: [
210
+ {
211
+ internalType: "uint256",
212
+ name: "",
213
+ type: "uint256",
214
+ },
215
+ ],
216
+ stateMutability: "view",
217
+ type: "function",
218
+ },
219
+ {
220
+ inputs: [
221
+ {
222
+ internalType: "address",
223
+ name: "user",
224
+ type: "address",
225
+ },
226
+ {
227
+ internalType: "address[]",
228
+ name: "tokens",
229
+ type: "address[]",
230
+ },
231
+ {
232
+ internalType: "uint256[]",
233
+ name: "totalAccrueds",
234
+ type: "uint256[]",
235
+ },
236
+ {
237
+ internalType: "bytes32[][]",
238
+ name: "proofs",
239
+ type: "bytes32[][]",
240
+ },
241
+ ],
242
+ name: "verify",
243
+ outputs: [
244
+ {
245
+ internalType: "uint256[]",
246
+ name: "amountClaimable",
247
+ type: "uint256[]",
248
+ },
249
+ ],
250
+ stateMutability: "nonpayable",
251
+ type: "function",
252
+ },
253
+ ];
254
+
255
+ export class IPMultiTokenMerkleDistributor__factory {
256
+ static readonly abi = _abi;
257
+ static createInterface(): IPMultiTokenMerkleDistributorInterface {
258
+ return new utils.Interface(_abi) as IPMultiTokenMerkleDistributorInterface;
259
+ }
260
+ static connect(
261
+ address: string,
262
+ signerOrProvider: Signer | Provider
263
+ ): IPMultiTokenMerkleDistributor {
264
+ return new Contract(
265
+ address,
266
+ _abi,
267
+ signerOrProvider
268
+ ) as IPMultiTokenMerkleDistributor;
269
+ }
270
+ }