@pendle/core-v2 5.8.2 → 5.8.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/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/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.json +34 -0
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +320 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +75 -3
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- 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/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- 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/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- 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/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- 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/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- 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/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- 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/contracts/interfaces/IPCommonSYFactory.sol +7 -0
- package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +55 -0
- package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +36 -1
- package/package.json +1 -1
- package/typechain-types/ERC1967Proxy.ts +97 -0
- package/typechain-types/IPCommonSYFactory.ts +49 -0
- package/typechain-types/ITransparentUpgradeableProxy.ts +235 -0
- package/typechain-types/MarketSwapNSeed.ts +222 -0
- package/typechain-types/PendleCommonPoolDeployHelperV2.ts +267 -0
- package/typechain-types/PendleCommonSYFactory.ts +96 -0
- package/typechain-types/TransparentUpgradeableProxy.ts +97 -0
- package/typechain-types/factories/ERC1967Proxy__factory.ts +145 -0
- package/typechain-types/factories/IPCommonSYFactory__factory.ts +34 -0
- package/typechain-types/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
- package/typechain-types/factories/MarketSwapNSeed__factory.ts +287 -0
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +319 -1
- package/typechain-types/factories/PendleCommonSYFactory__factory.ts +81 -4
- package/typechain-types/factories/TransparentUpgradeableProxy__factory.ts +160 -0
- package/typechain-types/hardhat.d.ts +45 -0
- package/typechain-types/index.ts +10 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { BaseContract, Signer, utils } from "ethers";
|
|
5
|
+
import { EventFragment } from "@ethersproject/abi";
|
|
6
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
} from "./common";
|
|
13
|
+
|
|
14
|
+
export interface ERC1967ProxyInterface extends utils.Interface {
|
|
15
|
+
contractName: "ERC1967Proxy";
|
|
16
|
+
functions: {};
|
|
17
|
+
|
|
18
|
+
events: {
|
|
19
|
+
"AdminChanged(address,address)": EventFragment;
|
|
20
|
+
"BeaconUpgraded(address)": EventFragment;
|
|
21
|
+
"Upgraded(address)": EventFragment;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
|
|
25
|
+
getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
|
|
26
|
+
getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type AdminChangedEvent = TypedEvent<
|
|
30
|
+
[string, string],
|
|
31
|
+
{ previousAdmin: string; newAdmin: string }
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
|
|
35
|
+
|
|
36
|
+
export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
|
|
37
|
+
|
|
38
|
+
export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
|
|
39
|
+
|
|
40
|
+
export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
|
|
41
|
+
|
|
42
|
+
export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
|
|
43
|
+
|
|
44
|
+
export interface ERC1967Proxy extends BaseContract {
|
|
45
|
+
contractName: "ERC1967Proxy";
|
|
46
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
47
|
+
attach(addressOrName: string): this;
|
|
48
|
+
deployed(): Promise<this>;
|
|
49
|
+
|
|
50
|
+
interface: ERC1967ProxyInterface;
|
|
51
|
+
|
|
52
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
53
|
+
event: TypedEventFilter<TEvent>,
|
|
54
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
55
|
+
toBlock?: string | number | undefined
|
|
56
|
+
): Promise<Array<TEvent>>;
|
|
57
|
+
|
|
58
|
+
listeners<TEvent extends TypedEvent>(
|
|
59
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
60
|
+
): Array<TypedListener<TEvent>>;
|
|
61
|
+
listeners(eventName?: string): Array<Listener>;
|
|
62
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
63
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
64
|
+
): this;
|
|
65
|
+
removeAllListeners(eventName?: string): this;
|
|
66
|
+
off: OnEvent<this>;
|
|
67
|
+
on: OnEvent<this>;
|
|
68
|
+
once: OnEvent<this>;
|
|
69
|
+
removeListener: OnEvent<this>;
|
|
70
|
+
|
|
71
|
+
functions: {};
|
|
72
|
+
|
|
73
|
+
callStatic: {};
|
|
74
|
+
|
|
75
|
+
filters: {
|
|
76
|
+
"AdminChanged(address,address)"(
|
|
77
|
+
previousAdmin?: null,
|
|
78
|
+
newAdmin?: null
|
|
79
|
+
): AdminChangedEventFilter;
|
|
80
|
+
AdminChanged(
|
|
81
|
+
previousAdmin?: null,
|
|
82
|
+
newAdmin?: null
|
|
83
|
+
): AdminChangedEventFilter;
|
|
84
|
+
|
|
85
|
+
"BeaconUpgraded(address)"(
|
|
86
|
+
beacon?: string | null
|
|
87
|
+
): BeaconUpgradedEventFilter;
|
|
88
|
+
BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
|
|
89
|
+
|
|
90
|
+
"Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
|
|
91
|
+
Upgraded(implementation?: string | null): UpgradedEventFilter;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
estimateGas: {};
|
|
95
|
+
|
|
96
|
+
populateTransaction: {};
|
|
97
|
+
}
|
|
@@ -25,14 +25,23 @@ export interface IPCommonSYFactoryInterface extends utils.Interface {
|
|
|
25
25
|
contractName: "IPCommonSYFactory";
|
|
26
26
|
functions: {
|
|
27
27
|
"deploySY(bytes32,bytes,address)": FunctionFragment;
|
|
28
|
+
"deployUpgradableSY(bytes32,bytes,bytes,address)": FunctionFragment;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
encodeFunctionData(
|
|
31
32
|
functionFragment: "deploySY",
|
|
32
33
|
values: [BytesLike, BytesLike, string]
|
|
33
34
|
): string;
|
|
35
|
+
encodeFunctionData(
|
|
36
|
+
functionFragment: "deployUpgradableSY",
|
|
37
|
+
values: [BytesLike, BytesLike, BytesLike, string]
|
|
38
|
+
): string;
|
|
34
39
|
|
|
35
40
|
decodeFunctionResult(functionFragment: "deploySY", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(
|
|
42
|
+
functionFragment: "deployUpgradableSY",
|
|
43
|
+
data: BytesLike
|
|
44
|
+
): Result;
|
|
36
45
|
|
|
37
46
|
events: {};
|
|
38
47
|
}
|
|
@@ -71,6 +80,14 @@ export interface IPCommonSYFactory extends BaseContract {
|
|
|
71
80
|
syOwner: string,
|
|
72
81
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
73
82
|
): Promise<ContractTransaction>;
|
|
83
|
+
|
|
84
|
+
deployUpgradableSY(
|
|
85
|
+
id: BytesLike,
|
|
86
|
+
constructorParams: BytesLike,
|
|
87
|
+
initData: BytesLike,
|
|
88
|
+
syOwner: string,
|
|
89
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
90
|
+
): Promise<ContractTransaction>;
|
|
74
91
|
};
|
|
75
92
|
|
|
76
93
|
deploySY(
|
|
@@ -80,6 +97,14 @@ export interface IPCommonSYFactory extends BaseContract {
|
|
|
80
97
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
81
98
|
): Promise<ContractTransaction>;
|
|
82
99
|
|
|
100
|
+
deployUpgradableSY(
|
|
101
|
+
id: BytesLike,
|
|
102
|
+
constructorParams: BytesLike,
|
|
103
|
+
initData: BytesLike,
|
|
104
|
+
syOwner: string,
|
|
105
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
106
|
+
): Promise<ContractTransaction>;
|
|
107
|
+
|
|
83
108
|
callStatic: {
|
|
84
109
|
deploySY(
|
|
85
110
|
id: BytesLike,
|
|
@@ -87,6 +112,14 @@ export interface IPCommonSYFactory extends BaseContract {
|
|
|
87
112
|
syOwner: string,
|
|
88
113
|
overrides?: CallOverrides
|
|
89
114
|
): Promise<string>;
|
|
115
|
+
|
|
116
|
+
deployUpgradableSY(
|
|
117
|
+
id: BytesLike,
|
|
118
|
+
constructorParams: BytesLike,
|
|
119
|
+
initData: BytesLike,
|
|
120
|
+
syOwner: string,
|
|
121
|
+
overrides?: CallOverrides
|
|
122
|
+
): Promise<string>;
|
|
90
123
|
};
|
|
91
124
|
|
|
92
125
|
filters: {};
|
|
@@ -98,6 +131,14 @@ export interface IPCommonSYFactory extends BaseContract {
|
|
|
98
131
|
syOwner: string,
|
|
99
132
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
100
133
|
): Promise<BigNumber>;
|
|
134
|
+
|
|
135
|
+
deployUpgradableSY(
|
|
136
|
+
id: BytesLike,
|
|
137
|
+
constructorParams: BytesLike,
|
|
138
|
+
initData: BytesLike,
|
|
139
|
+
syOwner: string,
|
|
140
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
141
|
+
): Promise<BigNumber>;
|
|
101
142
|
};
|
|
102
143
|
|
|
103
144
|
populateTransaction: {
|
|
@@ -107,5 +148,13 @@ export interface IPCommonSYFactory extends BaseContract {
|
|
|
107
148
|
syOwner: string,
|
|
108
149
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
109
150
|
): Promise<PopulatedTransaction>;
|
|
151
|
+
|
|
152
|
+
deployUpgradableSY(
|
|
153
|
+
id: BytesLike,
|
|
154
|
+
constructorParams: BytesLike,
|
|
155
|
+
initData: BytesLike,
|
|
156
|
+
syOwner: string,
|
|
157
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
158
|
+
): Promise<PopulatedTransaction>;
|
|
110
159
|
};
|
|
111
160
|
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
ContractTransaction,
|
|
10
|
+
Overrides,
|
|
11
|
+
PayableOverrides,
|
|
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 ITransparentUpgradeableProxyInterface extends utils.Interface {
|
|
26
|
+
contractName: "ITransparentUpgradeableProxy";
|
|
27
|
+
functions: {
|
|
28
|
+
"admin()": FunctionFragment;
|
|
29
|
+
"changeAdmin(address)": FunctionFragment;
|
|
30
|
+
"implementation()": FunctionFragment;
|
|
31
|
+
"upgradeTo(address)": FunctionFragment;
|
|
32
|
+
"upgradeToAndCall(address,bytes)": FunctionFragment;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "changeAdmin", values: [string]): string;
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "implementation",
|
|
39
|
+
values?: undefined
|
|
40
|
+
): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
|
|
42
|
+
encodeFunctionData(
|
|
43
|
+
functionFragment: "upgradeToAndCall",
|
|
44
|
+
values: [string, BytesLike]
|
|
45
|
+
): string;
|
|
46
|
+
|
|
47
|
+
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(
|
|
49
|
+
functionFragment: "changeAdmin",
|
|
50
|
+
data: BytesLike
|
|
51
|
+
): Result;
|
|
52
|
+
decodeFunctionResult(
|
|
53
|
+
functionFragment: "implementation",
|
|
54
|
+
data: BytesLike
|
|
55
|
+
): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(
|
|
58
|
+
functionFragment: "upgradeToAndCall",
|
|
59
|
+
data: BytesLike
|
|
60
|
+
): Result;
|
|
61
|
+
|
|
62
|
+
events: {
|
|
63
|
+
"AdminChanged(address,address)": EventFragment;
|
|
64
|
+
"BeaconUpgraded(address)": EventFragment;
|
|
65
|
+
"Upgraded(address)": EventFragment;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
|
|
69
|
+
getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
|
|
70
|
+
getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type AdminChangedEvent = TypedEvent<
|
|
74
|
+
[string, string],
|
|
75
|
+
{ previousAdmin: string; newAdmin: string }
|
|
76
|
+
>;
|
|
77
|
+
|
|
78
|
+
export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
|
|
79
|
+
|
|
80
|
+
export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
|
|
81
|
+
|
|
82
|
+
export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
|
|
83
|
+
|
|
84
|
+
export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
|
|
85
|
+
|
|
86
|
+
export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
|
|
87
|
+
|
|
88
|
+
export interface ITransparentUpgradeableProxy extends BaseContract {
|
|
89
|
+
contractName: "ITransparentUpgradeableProxy";
|
|
90
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
91
|
+
attach(addressOrName: string): this;
|
|
92
|
+
deployed(): Promise<this>;
|
|
93
|
+
|
|
94
|
+
interface: ITransparentUpgradeableProxyInterface;
|
|
95
|
+
|
|
96
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
97
|
+
event: TypedEventFilter<TEvent>,
|
|
98
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
99
|
+
toBlock?: string | number | undefined
|
|
100
|
+
): Promise<Array<TEvent>>;
|
|
101
|
+
|
|
102
|
+
listeners<TEvent extends TypedEvent>(
|
|
103
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
104
|
+
): Array<TypedListener<TEvent>>;
|
|
105
|
+
listeners(eventName?: string): Array<Listener>;
|
|
106
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
107
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
108
|
+
): this;
|
|
109
|
+
removeAllListeners(eventName?: string): this;
|
|
110
|
+
off: OnEvent<this>;
|
|
111
|
+
on: OnEvent<this>;
|
|
112
|
+
once: OnEvent<this>;
|
|
113
|
+
removeListener: OnEvent<this>;
|
|
114
|
+
|
|
115
|
+
functions: {
|
|
116
|
+
admin(overrides?: CallOverrides): Promise<[string]>;
|
|
117
|
+
|
|
118
|
+
changeAdmin(
|
|
119
|
+
arg0: string,
|
|
120
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
121
|
+
): Promise<ContractTransaction>;
|
|
122
|
+
|
|
123
|
+
implementation(overrides?: CallOverrides): Promise<[string]>;
|
|
124
|
+
|
|
125
|
+
upgradeTo(
|
|
126
|
+
arg0: string,
|
|
127
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
128
|
+
): Promise<ContractTransaction>;
|
|
129
|
+
|
|
130
|
+
upgradeToAndCall(
|
|
131
|
+
arg0: string,
|
|
132
|
+
arg1: BytesLike,
|
|
133
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
134
|
+
): Promise<ContractTransaction>;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
admin(overrides?: CallOverrides): Promise<string>;
|
|
138
|
+
|
|
139
|
+
changeAdmin(
|
|
140
|
+
arg0: string,
|
|
141
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
142
|
+
): Promise<ContractTransaction>;
|
|
143
|
+
|
|
144
|
+
implementation(overrides?: CallOverrides): Promise<string>;
|
|
145
|
+
|
|
146
|
+
upgradeTo(
|
|
147
|
+
arg0: string,
|
|
148
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
149
|
+
): Promise<ContractTransaction>;
|
|
150
|
+
|
|
151
|
+
upgradeToAndCall(
|
|
152
|
+
arg0: string,
|
|
153
|
+
arg1: BytesLike,
|
|
154
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
155
|
+
): Promise<ContractTransaction>;
|
|
156
|
+
|
|
157
|
+
callStatic: {
|
|
158
|
+
admin(overrides?: CallOverrides): Promise<string>;
|
|
159
|
+
|
|
160
|
+
changeAdmin(arg0: string, overrides?: CallOverrides): Promise<void>;
|
|
161
|
+
|
|
162
|
+
implementation(overrides?: CallOverrides): Promise<string>;
|
|
163
|
+
|
|
164
|
+
upgradeTo(arg0: string, overrides?: CallOverrides): Promise<void>;
|
|
165
|
+
|
|
166
|
+
upgradeToAndCall(
|
|
167
|
+
arg0: string,
|
|
168
|
+
arg1: BytesLike,
|
|
169
|
+
overrides?: CallOverrides
|
|
170
|
+
): Promise<void>;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
filters: {
|
|
174
|
+
"AdminChanged(address,address)"(
|
|
175
|
+
previousAdmin?: null,
|
|
176
|
+
newAdmin?: null
|
|
177
|
+
): AdminChangedEventFilter;
|
|
178
|
+
AdminChanged(
|
|
179
|
+
previousAdmin?: null,
|
|
180
|
+
newAdmin?: null
|
|
181
|
+
): AdminChangedEventFilter;
|
|
182
|
+
|
|
183
|
+
"BeaconUpgraded(address)"(
|
|
184
|
+
beacon?: string | null
|
|
185
|
+
): BeaconUpgradedEventFilter;
|
|
186
|
+
BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
|
|
187
|
+
|
|
188
|
+
"Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
|
|
189
|
+
Upgraded(implementation?: string | null): UpgradedEventFilter;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
estimateGas: {
|
|
193
|
+
admin(overrides?: CallOverrides): Promise<BigNumber>;
|
|
194
|
+
|
|
195
|
+
changeAdmin(
|
|
196
|
+
arg0: string,
|
|
197
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
198
|
+
): Promise<BigNumber>;
|
|
199
|
+
|
|
200
|
+
implementation(overrides?: CallOverrides): Promise<BigNumber>;
|
|
201
|
+
|
|
202
|
+
upgradeTo(
|
|
203
|
+
arg0: string,
|
|
204
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
205
|
+
): Promise<BigNumber>;
|
|
206
|
+
|
|
207
|
+
upgradeToAndCall(
|
|
208
|
+
arg0: string,
|
|
209
|
+
arg1: BytesLike,
|
|
210
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
211
|
+
): Promise<BigNumber>;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
populateTransaction: {
|
|
215
|
+
admin(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
216
|
+
|
|
217
|
+
changeAdmin(
|
|
218
|
+
arg0: string,
|
|
219
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
220
|
+
): Promise<PopulatedTransaction>;
|
|
221
|
+
|
|
222
|
+
implementation(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
223
|
+
|
|
224
|
+
upgradeTo(
|
|
225
|
+
arg0: string,
|
|
226
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
|
+
): Promise<PopulatedTransaction>;
|
|
228
|
+
|
|
229
|
+
upgradeToAndCall(
|
|
230
|
+
arg0: string,
|
|
231
|
+
arg1: BytesLike,
|
|
232
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
233
|
+
): Promise<PopulatedTransaction>;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
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
|
+
PayableOverrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result } 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 type SwapDataStruct = {
|
|
26
|
+
swapType: BigNumberish;
|
|
27
|
+
extRouter: string;
|
|
28
|
+
extCalldata: BytesLike;
|
|
29
|
+
needScale: boolean;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type SwapDataStructOutput = [number, string, string, boolean] & {
|
|
33
|
+
swapType: number;
|
|
34
|
+
extRouter: string;
|
|
35
|
+
extCalldata: string;
|
|
36
|
+
needScale: boolean;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type TokenInputStruct = {
|
|
40
|
+
tokenIn: string;
|
|
41
|
+
netTokenIn: BigNumberish;
|
|
42
|
+
tokenMintSy: string;
|
|
43
|
+
pendleSwap: string;
|
|
44
|
+
swapData: SwapDataStruct;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type TokenInputStructOutput = [
|
|
48
|
+
string,
|
|
49
|
+
BigNumber,
|
|
50
|
+
string,
|
|
51
|
+
string,
|
|
52
|
+
SwapDataStructOutput
|
|
53
|
+
] & {
|
|
54
|
+
tokenIn: string;
|
|
55
|
+
netTokenIn: BigNumber;
|
|
56
|
+
tokenMintSy: string;
|
|
57
|
+
pendleSwap: string;
|
|
58
|
+
swapData: SwapDataStructOutput;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare namespace IPMarketSwapNSeed {
|
|
62
|
+
export type SwapNSeedDataStruct = {
|
|
63
|
+
targetLnImpliedRate: BigNumberish;
|
|
64
|
+
maxPtToSwap: BigNumberish;
|
|
65
|
+
eps: BigNumberish;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type SwapNSeedDataStructOutput = [BigNumber, BigNumber, BigNumber] & {
|
|
69
|
+
targetLnImpliedRate: BigNumber;
|
|
70
|
+
maxPtToSwap: BigNumber;
|
|
71
|
+
eps: BigNumber;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface MarketSwapNSeedInterface extends utils.Interface {
|
|
76
|
+
contractName: "MarketSwapNSeed";
|
|
77
|
+
functions: {
|
|
78
|
+
"MAX_ITERATIONS()": FunctionFragment;
|
|
79
|
+
"router()": FunctionFragment;
|
|
80
|
+
"swapNSeed(address,address,uint256,uint256,(address,uint256,address,address,(uint8,address,bytes,bool)),(uint256,uint256,uint256))": FunctionFragment;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
encodeFunctionData(
|
|
84
|
+
functionFragment: "MAX_ITERATIONS",
|
|
85
|
+
values?: undefined
|
|
86
|
+
): string;
|
|
87
|
+
encodeFunctionData(functionFragment: "router", values?: undefined): string;
|
|
88
|
+
encodeFunctionData(
|
|
89
|
+
functionFragment: "swapNSeed",
|
|
90
|
+
values: [
|
|
91
|
+
string,
|
|
92
|
+
string,
|
|
93
|
+
BigNumberish,
|
|
94
|
+
BigNumberish,
|
|
95
|
+
TokenInputStruct,
|
|
96
|
+
IPMarketSwapNSeed.SwapNSeedDataStruct
|
|
97
|
+
]
|
|
98
|
+
): string;
|
|
99
|
+
|
|
100
|
+
decodeFunctionResult(
|
|
101
|
+
functionFragment: "MAX_ITERATIONS",
|
|
102
|
+
data: BytesLike
|
|
103
|
+
): Result;
|
|
104
|
+
decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "swapNSeed", data: BytesLike): Result;
|
|
106
|
+
|
|
107
|
+
events: {};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface MarketSwapNSeed extends BaseContract {
|
|
111
|
+
contractName: "MarketSwapNSeed";
|
|
112
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
113
|
+
attach(addressOrName: string): this;
|
|
114
|
+
deployed(): Promise<this>;
|
|
115
|
+
|
|
116
|
+
interface: MarketSwapNSeedInterface;
|
|
117
|
+
|
|
118
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
119
|
+
event: TypedEventFilter<TEvent>,
|
|
120
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
121
|
+
toBlock?: string | number | undefined
|
|
122
|
+
): Promise<Array<TEvent>>;
|
|
123
|
+
|
|
124
|
+
listeners<TEvent extends TypedEvent>(
|
|
125
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
126
|
+
): Array<TypedListener<TEvent>>;
|
|
127
|
+
listeners(eventName?: string): Array<Listener>;
|
|
128
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
129
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
130
|
+
): this;
|
|
131
|
+
removeAllListeners(eventName?: string): this;
|
|
132
|
+
off: OnEvent<this>;
|
|
133
|
+
on: OnEvent<this>;
|
|
134
|
+
once: OnEvent<this>;
|
|
135
|
+
removeListener: OnEvent<this>;
|
|
136
|
+
|
|
137
|
+
functions: {
|
|
138
|
+
MAX_ITERATIONS(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
139
|
+
|
|
140
|
+
router(overrides?: CallOverrides): Promise<[string]>;
|
|
141
|
+
|
|
142
|
+
swapNSeed(
|
|
143
|
+
receiver: string,
|
|
144
|
+
market: string,
|
|
145
|
+
minLpOut: BigNumberish,
|
|
146
|
+
minYtOut: BigNumberish,
|
|
147
|
+
input: TokenInputStruct,
|
|
148
|
+
snsData: IPMarketSwapNSeed.SwapNSeedDataStruct,
|
|
149
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
150
|
+
): Promise<ContractTransaction>;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
MAX_ITERATIONS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
154
|
+
|
|
155
|
+
router(overrides?: CallOverrides): Promise<string>;
|
|
156
|
+
|
|
157
|
+
swapNSeed(
|
|
158
|
+
receiver: string,
|
|
159
|
+
market: string,
|
|
160
|
+
minLpOut: BigNumberish,
|
|
161
|
+
minYtOut: BigNumberish,
|
|
162
|
+
input: TokenInputStruct,
|
|
163
|
+
snsData: IPMarketSwapNSeed.SwapNSeedDataStruct,
|
|
164
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
165
|
+
): Promise<ContractTransaction>;
|
|
166
|
+
|
|
167
|
+
callStatic: {
|
|
168
|
+
MAX_ITERATIONS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
169
|
+
|
|
170
|
+
router(overrides?: CallOverrides): Promise<string>;
|
|
171
|
+
|
|
172
|
+
swapNSeed(
|
|
173
|
+
receiver: string,
|
|
174
|
+
market: string,
|
|
175
|
+
minLpOut: BigNumberish,
|
|
176
|
+
minYtOut: BigNumberish,
|
|
177
|
+
input: TokenInputStruct,
|
|
178
|
+
snsData: IPMarketSwapNSeed.SwapNSeedDataStruct,
|
|
179
|
+
overrides?: CallOverrides
|
|
180
|
+
): Promise<
|
|
181
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
182
|
+
amountPYToAccount: BigNumber;
|
|
183
|
+
netLpOut: BigNumber;
|
|
184
|
+
netYtOut: BigNumber;
|
|
185
|
+
}
|
|
186
|
+
>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
filters: {};
|
|
190
|
+
|
|
191
|
+
estimateGas: {
|
|
192
|
+
MAX_ITERATIONS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
193
|
+
|
|
194
|
+
router(overrides?: CallOverrides): Promise<BigNumber>;
|
|
195
|
+
|
|
196
|
+
swapNSeed(
|
|
197
|
+
receiver: string,
|
|
198
|
+
market: string,
|
|
199
|
+
minLpOut: BigNumberish,
|
|
200
|
+
minYtOut: BigNumberish,
|
|
201
|
+
input: TokenInputStruct,
|
|
202
|
+
snsData: IPMarketSwapNSeed.SwapNSeedDataStruct,
|
|
203
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
204
|
+
): Promise<BigNumber>;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
populateTransaction: {
|
|
208
|
+
MAX_ITERATIONS(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
209
|
+
|
|
210
|
+
router(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
211
|
+
|
|
212
|
+
swapNSeed(
|
|
213
|
+
receiver: string,
|
|
214
|
+
market: string,
|
|
215
|
+
minLpOut: BigNumberish,
|
|
216
|
+
minYtOut: BigNumberish,
|
|
217
|
+
input: TokenInputStruct,
|
|
218
|
+
snsData: IPMarketSwapNSeed.SwapNSeedDataStruct,
|
|
219
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
220
|
+
): Promise<PopulatedTransaction>;
|
|
221
|
+
};
|
|
222
|
+
}
|