@pendle/core-v2 5.4.2-beta-okx-2 → 5.4.3

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 (115) 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 +190 -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/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  44. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  46. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  47. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  48. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  50. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  52. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  54. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  56. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  58. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  60. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  61. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  63. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  65. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  67. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  69. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  71. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +40 -0
  73. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  75. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +55 -2
  77. package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +117 -0
  78. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +27 -0
  79. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +2 -0
  80. package/contracts/router/swap-aggregator/PendleSwap.sol +6 -213
  81. package/deployments/1-core.json +2 -1
  82. package/deployments/10-core.json +7 -6
  83. package/deployments/42161-core.json +7 -6
  84. package/deployments/5000-core.json +7 -6
  85. package/deployments/56-core.json +7 -6
  86. package/deployments/8453-core.json +7 -6
  87. package/package.json +1 -1
  88. package/typechain-types/IPMultiTokenMerkleDistributor.ts +275 -0
  89. package/typechain-types/IPSwapAggregator.ts +39 -0
  90. package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
  91. package/typechain-types/PendleSwap.ts +60 -0
  92. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  93. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  94. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  95. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  96. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  97. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  98. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  99. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  100. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  101. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  102. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  103. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  104. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +209 -0
  105. package/typechain-types/factories/IPSwapAggregator__factory.ts +40 -0
  106. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +523 -0
  107. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  108. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  109. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  110. package/typechain-types/factories/PendleSwap__factory.ts +54 -1
  111. package/typechain-types/factories/Reflector__factory.ts +1 -1
  112. package/typechain-types/hardhat.d.ts +18 -0
  113. package/typechain-types/index.ts +4 -0
  114. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.dbg.json +0 -4
  115. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.json +0 -407
@@ -0,0 +1,209 @@
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: "user",
163
+ type: "address",
164
+ },
165
+ {
166
+ internalType: "address[]",
167
+ name: "tokens",
168
+ type: "address[]",
169
+ },
170
+ {
171
+ internalType: "uint256[]",
172
+ name: "totalAccrueds",
173
+ type: "uint256[]",
174
+ },
175
+ {
176
+ internalType: "bytes32[][]",
177
+ name: "proofs",
178
+ type: "bytes32[][]",
179
+ },
180
+ ],
181
+ name: "verify",
182
+ outputs: [
183
+ {
184
+ internalType: "uint256[]",
185
+ name: "amountClaimable",
186
+ type: "uint256[]",
187
+ },
188
+ ],
189
+ stateMutability: "nonpayable",
190
+ type: "function",
191
+ },
192
+ ];
193
+
194
+ export class IPMultiTokenMerkleDistributor__factory {
195
+ static readonly abi = _abi;
196
+ static createInterface(): IPMultiTokenMerkleDistributorInterface {
197
+ return new utils.Interface(_abi) as IPMultiTokenMerkleDistributorInterface;
198
+ }
199
+ static connect(
200
+ address: string,
201
+ signerOrProvider: Signer | Provider
202
+ ): IPMultiTokenMerkleDistributor {
203
+ return new Contract(
204
+ address,
205
+ _abi,
206
+ signerOrProvider
207
+ ) as IPMultiTokenMerkleDistributor;
208
+ }
209
+ }
@@ -80,6 +80,46 @@ const _abi = [
80
80
  stateMutability: "payable",
81
81
  type: "function",
82
82
  },
83
+ {
84
+ inputs: [
85
+ {
86
+ internalType: "address[]",
87
+ name: "tokensIn",
88
+ type: "address[]",
89
+ },
90
+ {
91
+ components: [
92
+ {
93
+ internalType: "enum SwapType",
94
+ name: "swapType",
95
+ type: "uint8",
96
+ },
97
+ {
98
+ internalType: "address",
99
+ name: "extRouter",
100
+ type: "address",
101
+ },
102
+ {
103
+ internalType: "bytes",
104
+ name: "extCalldata",
105
+ type: "bytes",
106
+ },
107
+ {
108
+ internalType: "bool",
109
+ name: "needScale",
110
+ type: "bool",
111
+ },
112
+ ],
113
+ internalType: "struct SwapData",
114
+ name: "swapData",
115
+ type: "tuple",
116
+ },
117
+ ],
118
+ name: "swapMultiOdos",
119
+ outputs: [],
120
+ stateMutability: "payable",
121
+ type: "function",
122
+ },
83
123
  ];
84
124
 
85
125
  export class IPSwapAggregator__factory {