@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.
- 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 +190 -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 +40 -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 +55 -2
- package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +117 -0
- package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +27 -0
- package/contracts/router/swap-aggregator/IPSwapAggregator.sol +2 -0
- package/contracts/router/swap-aggregator/PendleSwap.sol +6 -213
- package/deployments/1-core.json +2 -1
- package/deployments/10-core.json +7 -6
- package/deployments/42161-core.json +7 -6
- package/deployments/5000-core.json +7 -6
- package/deployments/56-core.json +7 -6
- package/deployments/8453-core.json +7 -6
- package/package.json +1 -1
- package/typechain-types/IPMultiTokenMerkleDistributor.ts +275 -0
- package/typechain-types/IPSwapAggregator.ts +39 -0
- package/typechain-types/PendleMultiTokenMerkleDistributor.ts +677 -0
- package/typechain-types/PendleSwap.ts +60 -0
- 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/IPMultiTokenMerkleDistributor__factory.ts +209 -0
- package/typechain-types/factories/IPSwapAggregator__factory.ts +40 -0
- 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 +54 -1
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +18 -0
- package/typechain-types/index.ts +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOKXDexRouter.json +0 -407
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export interface IPMultiTokenMerkleDistributorInterface
|
|
26
|
+
extends utils.Interface {
|
|
27
|
+
contractName: "IPMultiTokenMerkleDistributor";
|
|
28
|
+
functions: {
|
|
29
|
+
"claim(address,address[],uint256[],bytes32[][])": FunctionFragment;
|
|
30
|
+
"claimVerified(address,address[])": FunctionFragment;
|
|
31
|
+
"verify(address,address[],uint256[],bytes32[][])": FunctionFragment;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "claim",
|
|
36
|
+
values: [string, string[], BigNumberish[], BytesLike[][]]
|
|
37
|
+
): string;
|
|
38
|
+
encodeFunctionData(
|
|
39
|
+
functionFragment: "claimVerified",
|
|
40
|
+
values: [string, string[]]
|
|
41
|
+
): string;
|
|
42
|
+
encodeFunctionData(
|
|
43
|
+
functionFragment: "verify",
|
|
44
|
+
values: [string, string[], BigNumberish[], BytesLike[][]]
|
|
45
|
+
): string;
|
|
46
|
+
|
|
47
|
+
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(
|
|
49
|
+
functionFragment: "claimVerified",
|
|
50
|
+
data: BytesLike
|
|
51
|
+
): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
|
|
53
|
+
|
|
54
|
+
events: {
|
|
55
|
+
"Claimed(address,address,address,uint256)": EventFragment;
|
|
56
|
+
"SetDefaultTokenList(address[])": EventFragment;
|
|
57
|
+
"SetMerkleRoot(bytes32)": EventFragment;
|
|
58
|
+
"Verified(address,address,uint256)": EventFragment;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment;
|
|
62
|
+
getEvent(nameOrSignatureOrTopic: "SetDefaultTokenList"): EventFragment;
|
|
63
|
+
getEvent(nameOrSignatureOrTopic: "SetMerkleRoot"): EventFragment;
|
|
64
|
+
getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ClaimedEvent = TypedEvent<
|
|
68
|
+
[string, string, string, BigNumber],
|
|
69
|
+
{ token: string; user: string; receiver: string; amount: BigNumber }
|
|
70
|
+
>;
|
|
71
|
+
|
|
72
|
+
export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
|
|
73
|
+
|
|
74
|
+
export type SetDefaultTokenListEvent = TypedEvent<
|
|
75
|
+
[string[]],
|
|
76
|
+
{ defaultTokenList: string[] }
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
export type SetDefaultTokenListEventFilter =
|
|
80
|
+
TypedEventFilter<SetDefaultTokenListEvent>;
|
|
81
|
+
|
|
82
|
+
export type SetMerkleRootEvent = TypedEvent<[string], { merkleRoot: string }>;
|
|
83
|
+
|
|
84
|
+
export type SetMerkleRootEventFilter = TypedEventFilter<SetMerkleRootEvent>;
|
|
85
|
+
|
|
86
|
+
export type VerifiedEvent = TypedEvent<
|
|
87
|
+
[string, string, BigNumber],
|
|
88
|
+
{ token: string; user: string; amountClaimable: BigNumber }
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
export type VerifiedEventFilter = TypedEventFilter<VerifiedEvent>;
|
|
92
|
+
|
|
93
|
+
export interface IPMultiTokenMerkleDistributor extends BaseContract {
|
|
94
|
+
contractName: "IPMultiTokenMerkleDistributor";
|
|
95
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
96
|
+
attach(addressOrName: string): this;
|
|
97
|
+
deployed(): Promise<this>;
|
|
98
|
+
|
|
99
|
+
interface: IPMultiTokenMerkleDistributorInterface;
|
|
100
|
+
|
|
101
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
102
|
+
event: TypedEventFilter<TEvent>,
|
|
103
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
104
|
+
toBlock?: string | number | undefined
|
|
105
|
+
): Promise<Array<TEvent>>;
|
|
106
|
+
|
|
107
|
+
listeners<TEvent extends TypedEvent>(
|
|
108
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
109
|
+
): Array<TypedListener<TEvent>>;
|
|
110
|
+
listeners(eventName?: string): Array<Listener>;
|
|
111
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
112
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
113
|
+
): this;
|
|
114
|
+
removeAllListeners(eventName?: string): this;
|
|
115
|
+
off: OnEvent<this>;
|
|
116
|
+
on: OnEvent<this>;
|
|
117
|
+
once: OnEvent<this>;
|
|
118
|
+
removeListener: OnEvent<this>;
|
|
119
|
+
|
|
120
|
+
functions: {
|
|
121
|
+
claim(
|
|
122
|
+
receiver: string,
|
|
123
|
+
tokens: string[],
|
|
124
|
+
totalAccrueds: BigNumberish[],
|
|
125
|
+
proofs: BytesLike[][],
|
|
126
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
127
|
+
): Promise<ContractTransaction>;
|
|
128
|
+
|
|
129
|
+
claimVerified(
|
|
130
|
+
receiver: string,
|
|
131
|
+
tokens: string[],
|
|
132
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
133
|
+
): Promise<ContractTransaction>;
|
|
134
|
+
|
|
135
|
+
verify(
|
|
136
|
+
user: string,
|
|
137
|
+
tokens: string[],
|
|
138
|
+
totalAccrueds: BigNumberish[],
|
|
139
|
+
proofs: BytesLike[][],
|
|
140
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
141
|
+
): Promise<ContractTransaction>;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
claim(
|
|
145
|
+
receiver: string,
|
|
146
|
+
tokens: string[],
|
|
147
|
+
totalAccrueds: BigNumberish[],
|
|
148
|
+
proofs: BytesLike[][],
|
|
149
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
150
|
+
): Promise<ContractTransaction>;
|
|
151
|
+
|
|
152
|
+
claimVerified(
|
|
153
|
+
receiver: string,
|
|
154
|
+
tokens: string[],
|
|
155
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
156
|
+
): Promise<ContractTransaction>;
|
|
157
|
+
|
|
158
|
+
verify(
|
|
159
|
+
user: string,
|
|
160
|
+
tokens: string[],
|
|
161
|
+
totalAccrueds: BigNumberish[],
|
|
162
|
+
proofs: BytesLike[][],
|
|
163
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
164
|
+
): Promise<ContractTransaction>;
|
|
165
|
+
|
|
166
|
+
callStatic: {
|
|
167
|
+
claim(
|
|
168
|
+
receiver: string,
|
|
169
|
+
tokens: string[],
|
|
170
|
+
totalAccrueds: BigNumberish[],
|
|
171
|
+
proofs: BytesLike[][],
|
|
172
|
+
overrides?: CallOverrides
|
|
173
|
+
): Promise<BigNumber[]>;
|
|
174
|
+
|
|
175
|
+
claimVerified(
|
|
176
|
+
receiver: string,
|
|
177
|
+
tokens: string[],
|
|
178
|
+
overrides?: CallOverrides
|
|
179
|
+
): Promise<BigNumber[]>;
|
|
180
|
+
|
|
181
|
+
verify(
|
|
182
|
+
user: string,
|
|
183
|
+
tokens: string[],
|
|
184
|
+
totalAccrueds: BigNumberish[],
|
|
185
|
+
proofs: BytesLike[][],
|
|
186
|
+
overrides?: CallOverrides
|
|
187
|
+
): Promise<BigNumber[]>;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
filters: {
|
|
191
|
+
"Claimed(address,address,address,uint256)"(
|
|
192
|
+
token?: string | null,
|
|
193
|
+
user?: string | null,
|
|
194
|
+
receiver?: string | null,
|
|
195
|
+
amount?: null
|
|
196
|
+
): ClaimedEventFilter;
|
|
197
|
+
Claimed(
|
|
198
|
+
token?: string | null,
|
|
199
|
+
user?: string | null,
|
|
200
|
+
receiver?: string | null,
|
|
201
|
+
amount?: null
|
|
202
|
+
): ClaimedEventFilter;
|
|
203
|
+
|
|
204
|
+
"SetDefaultTokenList(address[])"(
|
|
205
|
+
defaultTokenList?: null
|
|
206
|
+
): SetDefaultTokenListEventFilter;
|
|
207
|
+
SetDefaultTokenList(
|
|
208
|
+
defaultTokenList?: null
|
|
209
|
+
): SetDefaultTokenListEventFilter;
|
|
210
|
+
|
|
211
|
+
"SetMerkleRoot(bytes32)"(
|
|
212
|
+
merkleRoot?: BytesLike | null
|
|
213
|
+
): SetMerkleRootEventFilter;
|
|
214
|
+
SetMerkleRoot(merkleRoot?: BytesLike | null): SetMerkleRootEventFilter;
|
|
215
|
+
|
|
216
|
+
"Verified(address,address,uint256)"(
|
|
217
|
+
token?: string | null,
|
|
218
|
+
user?: string | null,
|
|
219
|
+
amountClaimable?: null
|
|
220
|
+
): VerifiedEventFilter;
|
|
221
|
+
Verified(
|
|
222
|
+
token?: string | null,
|
|
223
|
+
user?: string | null,
|
|
224
|
+
amountClaimable?: null
|
|
225
|
+
): VerifiedEventFilter;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
estimateGas: {
|
|
229
|
+
claim(
|
|
230
|
+
receiver: string,
|
|
231
|
+
tokens: string[],
|
|
232
|
+
totalAccrueds: BigNumberish[],
|
|
233
|
+
proofs: BytesLike[][],
|
|
234
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
235
|
+
): Promise<BigNumber>;
|
|
236
|
+
|
|
237
|
+
claimVerified(
|
|
238
|
+
receiver: string,
|
|
239
|
+
tokens: string[],
|
|
240
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
241
|
+
): Promise<BigNumber>;
|
|
242
|
+
|
|
243
|
+
verify(
|
|
244
|
+
user: string,
|
|
245
|
+
tokens: string[],
|
|
246
|
+
totalAccrueds: BigNumberish[],
|
|
247
|
+
proofs: BytesLike[][],
|
|
248
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
249
|
+
): Promise<BigNumber>;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
populateTransaction: {
|
|
253
|
+
claim(
|
|
254
|
+
receiver: string,
|
|
255
|
+
tokens: string[],
|
|
256
|
+
totalAccrueds: BigNumberish[],
|
|
257
|
+
proofs: BytesLike[][],
|
|
258
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
259
|
+
): Promise<PopulatedTransaction>;
|
|
260
|
+
|
|
261
|
+
claimVerified(
|
|
262
|
+
receiver: string,
|
|
263
|
+
tokens: string[],
|
|
264
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
265
|
+
): Promise<PopulatedTransaction>;
|
|
266
|
+
|
|
267
|
+
verify(
|
|
268
|
+
user: string,
|
|
269
|
+
tokens: string[],
|
|
270
|
+
totalAccrueds: BigNumberish[],
|
|
271
|
+
proofs: BytesLike[][],
|
|
272
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
273
|
+
): Promise<PopulatedTransaction>;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
@@ -40,14 +40,23 @@ export interface IPSwapAggregatorInterface extends utils.Interface {
|
|
|
40
40
|
contractName: "IPSwapAggregator";
|
|
41
41
|
functions: {
|
|
42
42
|
"swap(address,uint256,(uint8,address,bytes,bool))": FunctionFragment;
|
|
43
|
+
"swapMultiOdos(address[],(uint8,address,bytes,bool))": FunctionFragment;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
encodeFunctionData(
|
|
46
47
|
functionFragment: "swap",
|
|
47
48
|
values: [string, BigNumberish, SwapDataStruct]
|
|
48
49
|
): string;
|
|
50
|
+
encodeFunctionData(
|
|
51
|
+
functionFragment: "swapMultiOdos",
|
|
52
|
+
values: [string[], SwapDataStruct]
|
|
53
|
+
): string;
|
|
49
54
|
|
|
50
55
|
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(
|
|
57
|
+
functionFragment: "swapMultiOdos",
|
|
58
|
+
data: BytesLike
|
|
59
|
+
): Result;
|
|
51
60
|
|
|
52
61
|
events: {
|
|
53
62
|
"SwapSingle(uint8,address,uint256)": EventFragment;
|
|
@@ -97,6 +106,12 @@ export interface IPSwapAggregator extends BaseContract {
|
|
|
97
106
|
swapData: SwapDataStruct,
|
|
98
107
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
99
108
|
): Promise<ContractTransaction>;
|
|
109
|
+
|
|
110
|
+
swapMultiOdos(
|
|
111
|
+
tokensIn: string[],
|
|
112
|
+
swapData: SwapDataStruct,
|
|
113
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
114
|
+
): Promise<ContractTransaction>;
|
|
100
115
|
};
|
|
101
116
|
|
|
102
117
|
swap(
|
|
@@ -106,6 +121,12 @@ export interface IPSwapAggregator extends BaseContract {
|
|
|
106
121
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
107
122
|
): Promise<ContractTransaction>;
|
|
108
123
|
|
|
124
|
+
swapMultiOdos(
|
|
125
|
+
tokensIn: string[],
|
|
126
|
+
swapData: SwapDataStruct,
|
|
127
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
128
|
+
): Promise<ContractTransaction>;
|
|
129
|
+
|
|
109
130
|
callStatic: {
|
|
110
131
|
swap(
|
|
111
132
|
tokenIn: string,
|
|
@@ -113,6 +134,12 @@ export interface IPSwapAggregator extends BaseContract {
|
|
|
113
134
|
swapData: SwapDataStruct,
|
|
114
135
|
overrides?: CallOverrides
|
|
115
136
|
): Promise<void>;
|
|
137
|
+
|
|
138
|
+
swapMultiOdos(
|
|
139
|
+
tokensIn: string[],
|
|
140
|
+
swapData: SwapDataStruct,
|
|
141
|
+
overrides?: CallOverrides
|
|
142
|
+
): Promise<void>;
|
|
116
143
|
};
|
|
117
144
|
|
|
118
145
|
filters: {
|
|
@@ -135,6 +162,12 @@ export interface IPSwapAggregator extends BaseContract {
|
|
|
135
162
|
swapData: SwapDataStruct,
|
|
136
163
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
137
164
|
): Promise<BigNumber>;
|
|
165
|
+
|
|
166
|
+
swapMultiOdos(
|
|
167
|
+
tokensIn: string[],
|
|
168
|
+
swapData: SwapDataStruct,
|
|
169
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
170
|
+
): Promise<BigNumber>;
|
|
138
171
|
};
|
|
139
172
|
|
|
140
173
|
populateTransaction: {
|
|
@@ -144,5 +177,11 @@ export interface IPSwapAggregator extends BaseContract {
|
|
|
144
177
|
swapData: SwapDataStruct,
|
|
145
178
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
146
179
|
): Promise<PopulatedTransaction>;
|
|
180
|
+
|
|
181
|
+
swapMultiOdos(
|
|
182
|
+
tokensIn: string[],
|
|
183
|
+
swapData: SwapDataStruct,
|
|
184
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
185
|
+
): Promise<PopulatedTransaction>;
|
|
147
186
|
};
|
|
148
187
|
}
|