@pendle/core-v2 5.4.2 → 5.4.4-beta-okx-1
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/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +462 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +251 -0
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +0 -40
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.json +407 -0
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.json +214 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -55
- package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +117 -0
- package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +33 -0
- package/contracts/router/swap-aggregator/IPSwapAggregator.sol +0 -2
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +215 -0
- package/contracts/router/swap-aggregator/OneInchScaleHelper.sol +120 -0
- package/contracts/router/swap-aggregator/PendleSwap.sol +24 -7
- package/deployments/1-core.json +2 -1
- package/deployments/10-core.json +2 -1
- package/deployments/42161-core.json +2 -1
- package/deployments/5000-core.json +2 -1
- package/deployments/56-core.json +2 -1
- package/deployments/8453-core.json +2 -1
- package/package.json +1 -1
- package/typechain-types/I1inchAggregationRouterV6.ts +337 -0
- package/typechain-types/IPMultiTokenMerkleDistributor.ts +363 -0
- package/typechain-types/IPSwapAggregator.ts +0 -39
- package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
- package/typechain-types/PendleSwap.ts +0 -60
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/I1inchAggregationRouterV6__factory.ts +233 -0
- package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +270 -0
- package/typechain-types/factories/IPSwapAggregator__factory.ts +0 -40
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +523 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -54
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +36 -9
- package/typechain-types/index.ts +8 -2
|
@@ -0,0 +1,233 @@
|
|
|
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
|
+
I1inchAggregationRouterV6,
|
|
9
|
+
I1inchAggregationRouterV6Interface,
|
|
10
|
+
} from "../I1inchAggregationRouterV6";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "executor",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
components: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "contract IERC20",
|
|
24
|
+
name: "srcToken",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "contract IERC20",
|
|
29
|
+
name: "dstToken",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "address payable",
|
|
34
|
+
name: "srcReceiver",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "address payable",
|
|
39
|
+
name: "dstReceiver",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
name: "amount",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "minReturnAmount",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint256",
|
|
54
|
+
name: "flags",
|
|
55
|
+
type: "uint256",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
internalType: "struct I1inchAggregationRouterV6.SwapDescription",
|
|
59
|
+
name: "desc",
|
|
60
|
+
type: "tuple",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: "bytes",
|
|
64
|
+
name: "data",
|
|
65
|
+
type: "bytes",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "swap",
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "returnAmount",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "spentAmount",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
stateMutability: "payable",
|
|
82
|
+
type: "function",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "I1inchCommonType.Address256",
|
|
88
|
+
name: "to",
|
|
89
|
+
type: "uint256",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "I1inchCommonType.Address256",
|
|
93
|
+
name: "token",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "amount",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "minReturn",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "I1inchCommonType.Address256",
|
|
108
|
+
name: "dex",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
name: "unoswapTo",
|
|
113
|
+
outputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint256",
|
|
116
|
+
name: "returnAmount",
|
|
117
|
+
type: "uint256",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
stateMutability: "nonpayable",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
internalType: "I1inchCommonType.Address256",
|
|
127
|
+
name: "to",
|
|
128
|
+
type: "uint256",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
internalType: "I1inchCommonType.Address256",
|
|
132
|
+
name: "token",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "amount",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "minReturn",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
internalType: "I1inchCommonType.Address256",
|
|
147
|
+
name: "dex",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "I1inchCommonType.Address256",
|
|
152
|
+
name: "dex2",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
name: "unoswapTo2",
|
|
157
|
+
outputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "returnAmount",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
stateMutability: "nonpayable",
|
|
165
|
+
type: "function",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "I1inchCommonType.Address256",
|
|
171
|
+
name: "to",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
internalType: "I1inchCommonType.Address256",
|
|
176
|
+
name: "token",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "amount",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "minReturn",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "I1inchCommonType.Address256",
|
|
191
|
+
name: "dex",
|
|
192
|
+
type: "uint256",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
internalType: "I1inchCommonType.Address256",
|
|
196
|
+
name: "dex2",
|
|
197
|
+
type: "uint256",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "I1inchCommonType.Address256",
|
|
201
|
+
name: "dex3",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "unoswapTo3",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "returnAmount",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
stateMutability: "nonpayable",
|
|
214
|
+
type: "function",
|
|
215
|
+
},
|
|
216
|
+
];
|
|
217
|
+
|
|
218
|
+
export class I1inchAggregationRouterV6__factory {
|
|
219
|
+
static readonly abi = _abi;
|
|
220
|
+
static createInterface(): I1inchAggregationRouterV6Interface {
|
|
221
|
+
return new utils.Interface(_abi) as I1inchAggregationRouterV6Interface;
|
|
222
|
+
}
|
|
223
|
+
static connect(
|
|
224
|
+
address: string,
|
|
225
|
+
signerOrProvider: Signer | Provider
|
|
226
|
+
): I1inchAggregationRouterV6 {
|
|
227
|
+
return new Contract(
|
|
228
|
+
address,
|
|
229
|
+
_abi,
|
|
230
|
+
signerOrProvider
|
|
231
|
+
) as I1inchAggregationRouterV6;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -80,46 +80,6 @@ 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
|
-
},
|
|
123
83
|
];
|
|
124
84
|
|
|
125
85
|
export class IPSwapAggregator__factory {
|