@pendle/core-v2 6.1.4 → 6.2.0-beta

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 (57) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  7. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  8. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  12. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  13. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  14. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  15. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  16. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  17. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -13
  19. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  20. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -13
  21. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  22. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -13
  23. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  24. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -13
  25. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  26. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -13
  27. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  28. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  29. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  30. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +3 -15
  31. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +4 -0
  32. package/contracts/cross-chain/FixedPricePTAMM.sol +2 -2
  33. package/contracts/router/ActionAddRemoveLiqV3.sol +0 -2
  34. package/contracts/router/ActionMiscV3.sol +0 -2
  35. package/contracts/router/ActionSimple.sol +0 -2
  36. package/contracts/router/ActionSwapPTV3.sol +0 -2
  37. package/contracts/router/ActionSwapYTV3.sol +0 -2
  38. package/contracts/router/base/ActionBase.sol +8 -16
  39. package/contracts/router/base/ActionDelegateBase.sol +0 -2
  40. package/deployments/9745-core.json +54 -0
  41. package/deployments/9745-offchain-helper.json +8 -0
  42. package/package.json +1 -1
  43. package/typechain-types/ActionCrossChain.ts +161 -0
  44. package/typechain-types/IPActionCrossChain.ts +161 -0
  45. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +3 -19
  46. package/typechain-types/factories/ActionCrossChain__factory.ts +152 -0
  47. package/typechain-types/factories/ActionMiscV3__factory.ts +3 -19
  48. package/typechain-types/factories/ActionSimple__factory.ts +3 -19
  49. package/typechain-types/factories/ActionSwapPTV3__factory.ts +3 -19
  50. package/typechain-types/factories/ActionSwapYTV3__factory.ts +3 -19
  51. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  52. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  53. package/typechain-types/factories/IPActionCrossChain__factory.ts +114 -0
  54. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  55. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  56. package/typechain-types/hardhat.d.ts +18 -9
  57. package/typechain-types/index.ts +4 -2
@@ -0,0 +1,54 @@
1
+ {
2
+ "deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
3
+ "network": {
4
+ "chainId": 9745,
5
+ "treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
6
+ "governance": "0x7877adfaded756f3248a0ebfe8ac2e2ef87b75ac",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
+ "pendle": "0x17bac5f906c9a0282ac06a59958d85796c831f24",
9
+ "lzEndpoint": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
10
+ "wrappedNative": "0x6100E367285b01F48D07953803A2d8dCA5D19873",
11
+ "initialRewardFee": "30000000000000000",
12
+ "initialInterestFee": "30000000000000000",
13
+ "initialReserveFeePercent": "80",
14
+ "safeWaitTime": 15000,
15
+ "hardwareDeployer": "0xeea6F790F18563E91b18DF00B89d9f79b2E6761F"
16
+ },
17
+ "baseCodeSplitter": "0x6f41855CdF6861a1F8A017e8bB0F90927582cCf6",
18
+ "PENDLE": "0x17bac5f906c9a0282ac06a59958d85796c831f24",
19
+ "governanceProxy": "0x2aD631F72fB16d91c4953A7f4260A97C2fE2f31e",
20
+ "router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
21
+ "routerFacets": {
22
+ "ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
23
+ "ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
24
+ "ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
25
+ "ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
26
+ "ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
27
+ "ActionCallbackV3": "0x7b78F36aBf6cF3C6C0dd54716dFeF0607ae17846",
28
+ "ActionStorageV4": "0xdED51dca2ECED7a0BAab3D9711A87f214769Da0f"
29
+ },
30
+ "routerStatic": "0x6813d43782395A1F2AAb42f39aeEDE03ac655e09",
31
+ "pendleSwap": "0xd4F480965D2347d421F1bEC7F545682E5Ec2151D",
32
+ "pyYtLpOracle": "0x9a9fa8338dd5e5b2188006f1cd2ef26d921650c2",
33
+ "yieldContractFactoryV5": "0xED0dC8C074255c277BC704D6b096167D7a6E4311",
34
+ "marketFactoryV5": "0x28dE02Ac3c3F5ef427e55c321F73fDc7F192e8E4",
35
+ "poolDeployHelperV2": "0x5E9a7E1A15ab0eAaBD2D78fa36A87158752A1346",
36
+ "limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
37
+ "proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64",
38
+ "reflector": "0x73d5DBF81A4f3bFa7b335e6a2d4638D6017a4fA8",
39
+ "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
40
+ "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
41
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
42
+ "vePendleAirdropDistributor": "0x42c706eab26aA8FAcFa4B3f32902bA872AaA10aC",
43
+ "externalRewardsDistributor": "0x1Cb446fAE25Ae19878f9f71189902e2a6A6A749c",
44
+ "beta": {
45
+ "PendleChainlinkOracleFactory": "0xAcD67f36183c8bA6b80Cfa60375510Ce17D0dd26"
46
+ },
47
+ "receiverEndpoint": "0x5C3DdC827c40964728336229808E27C6374F07Bf",
48
+ "vePendle": "0x0d7432A9f5C51fdd2407332D90D9b814827982Bf",
49
+ "gaugeController": "0x7e500c6efBb00FD3227888256E477171a1304721",
50
+ "lpWrapperFactory": "0x1fBaCedf510dAA79dfD9B41227A7ba192d5D548D",
51
+ "decimalsFactory": "0x992EC6A490A4B7f256bd59E63746951D98B29Be9",
52
+ "externalCapGate": "0x65E04a3b2af7716B7f0765dE62Fa2f1B3290C23F",
53
+ "lpLinearDiscountOracleFactory": "0x44fb16d078e9c39b65d6c15e78ede9736a9f2df5"
54
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "pendleMulticallV2": "0x1ca3352a55A3D69cA8e5aB06006e08aaF2bD09f1",
3
+ "implicitSwapfeeContract": "0x82Fae57b2A79D893D88488A7D8BdF2AC6bd2C463",
4
+ "simulateHelper": "0xc23Dd2807e51dd1D317e1321CBeEb9ace98531EE",
5
+ "supplyCapReader": "0x251CfB4E84CefecA6c1e6a4D8a0cb9c524e7484f",
6
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
7
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
8
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/core-v2",
3
3
  "description": "Core smart contracts of Pendle Protocol.",
4
4
  "license": "BUSL-1.1",
5
- "version": "6.1.4",
5
+ "version": "6.2.0-beta",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",
@@ -0,0 +1,161 @@
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 } 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 TokenOutputStruct = {
40
+ tokenOut: string;
41
+ minTokenOut: BigNumberish;
42
+ tokenRedeemSy: string;
43
+ pendleSwap: string;
44
+ swapData: SwapDataStruct;
45
+ };
46
+
47
+ export type TokenOutputStructOutput = [
48
+ string,
49
+ BigNumber,
50
+ string,
51
+ string,
52
+ SwapDataStructOutput
53
+ ] & {
54
+ tokenOut: string;
55
+ minTokenOut: BigNumber;
56
+ tokenRedeemSy: string;
57
+ pendleSwap: string;
58
+ swapData: SwapDataStructOutput;
59
+ };
60
+
61
+ export interface ActionCrossChainInterface extends utils.Interface {
62
+ contractName: "ActionCrossChain";
63
+ functions: {
64
+ "fixedPricePTAMMSwap(address,address,address,uint256,(address,uint256,address,address,(uint8,address,bytes,bool)))": FunctionFragment;
65
+ };
66
+
67
+ encodeFunctionData(
68
+ functionFragment: "fixedPricePTAMMSwap",
69
+ values: [string, string, string, BigNumberish, TokenOutputStruct]
70
+ ): string;
71
+
72
+ decodeFunctionResult(
73
+ functionFragment: "fixedPricePTAMMSwap",
74
+ data: BytesLike
75
+ ): Result;
76
+
77
+ events: {};
78
+ }
79
+
80
+ export interface ActionCrossChain extends BaseContract {
81
+ contractName: "ActionCrossChain";
82
+ connect(signerOrProvider: Signer | Provider | string): this;
83
+ attach(addressOrName: string): this;
84
+ deployed(): Promise<this>;
85
+
86
+ interface: ActionCrossChainInterface;
87
+
88
+ queryFilter<TEvent extends TypedEvent>(
89
+ event: TypedEventFilter<TEvent>,
90
+ fromBlockOrBlockhash?: string | number | undefined,
91
+ toBlock?: string | number | undefined
92
+ ): Promise<Array<TEvent>>;
93
+
94
+ listeners<TEvent extends TypedEvent>(
95
+ eventFilter?: TypedEventFilter<TEvent>
96
+ ): Array<TypedListener<TEvent>>;
97
+ listeners(eventName?: string): Array<Listener>;
98
+ removeAllListeners<TEvent extends TypedEvent>(
99
+ eventFilter: TypedEventFilter<TEvent>
100
+ ): this;
101
+ removeAllListeners(eventName?: string): this;
102
+ off: OnEvent<this>;
103
+ on: OnEvent<this>;
104
+ once: OnEvent<this>;
105
+ removeListener: OnEvent<this>;
106
+
107
+ functions: {
108
+ fixedPricePTAMMSwap(
109
+ receiver: string,
110
+ fixedPricePTAMM: string,
111
+ PT: string,
112
+ exactPtIn: BigNumberish,
113
+ out: TokenOutputStruct,
114
+ overrides?: Overrides & { from?: string | Promise<string> }
115
+ ): Promise<ContractTransaction>;
116
+ };
117
+
118
+ fixedPricePTAMMSwap(
119
+ receiver: string,
120
+ fixedPricePTAMM: string,
121
+ PT: string,
122
+ exactPtIn: BigNumberish,
123
+ out: TokenOutputStruct,
124
+ overrides?: Overrides & { from?: string | Promise<string> }
125
+ ): Promise<ContractTransaction>;
126
+
127
+ callStatic: {
128
+ fixedPricePTAMMSwap(
129
+ receiver: string,
130
+ fixedPricePTAMM: string,
131
+ PT: string,
132
+ exactPtIn: BigNumberish,
133
+ out: TokenOutputStruct,
134
+ overrides?: CallOverrides
135
+ ): Promise<BigNumber>;
136
+ };
137
+
138
+ filters: {};
139
+
140
+ estimateGas: {
141
+ fixedPricePTAMMSwap(
142
+ receiver: string,
143
+ fixedPricePTAMM: string,
144
+ PT: string,
145
+ exactPtIn: BigNumberish,
146
+ out: TokenOutputStruct,
147
+ overrides?: Overrides & { from?: string | Promise<string> }
148
+ ): Promise<BigNumber>;
149
+ };
150
+
151
+ populateTransaction: {
152
+ fixedPricePTAMMSwap(
153
+ receiver: string,
154
+ fixedPricePTAMM: string,
155
+ PT: string,
156
+ exactPtIn: BigNumberish,
157
+ out: TokenOutputStruct,
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): Promise<PopulatedTransaction>;
160
+ };
161
+ }
@@ -0,0 +1,161 @@
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 } 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 TokenOutputStruct = {
40
+ tokenOut: string;
41
+ minTokenOut: BigNumberish;
42
+ tokenRedeemSy: string;
43
+ pendleSwap: string;
44
+ swapData: SwapDataStruct;
45
+ };
46
+
47
+ export type TokenOutputStructOutput = [
48
+ string,
49
+ BigNumber,
50
+ string,
51
+ string,
52
+ SwapDataStructOutput
53
+ ] & {
54
+ tokenOut: string;
55
+ minTokenOut: BigNumber;
56
+ tokenRedeemSy: string;
57
+ pendleSwap: string;
58
+ swapData: SwapDataStructOutput;
59
+ };
60
+
61
+ export interface IPActionCrossChainInterface extends utils.Interface {
62
+ contractName: "IPActionCrossChain";
63
+ functions: {
64
+ "fixedPricePTAMMSwap(address,address,address,uint256,(address,uint256,address,address,(uint8,address,bytes,bool)))": FunctionFragment;
65
+ };
66
+
67
+ encodeFunctionData(
68
+ functionFragment: "fixedPricePTAMMSwap",
69
+ values: [string, string, string, BigNumberish, TokenOutputStruct]
70
+ ): string;
71
+
72
+ decodeFunctionResult(
73
+ functionFragment: "fixedPricePTAMMSwap",
74
+ data: BytesLike
75
+ ): Result;
76
+
77
+ events: {};
78
+ }
79
+
80
+ export interface IPActionCrossChain extends BaseContract {
81
+ contractName: "IPActionCrossChain";
82
+ connect(signerOrProvider: Signer | Provider | string): this;
83
+ attach(addressOrName: string): this;
84
+ deployed(): Promise<this>;
85
+
86
+ interface: IPActionCrossChainInterface;
87
+
88
+ queryFilter<TEvent extends TypedEvent>(
89
+ event: TypedEventFilter<TEvent>,
90
+ fromBlockOrBlockhash?: string | number | undefined,
91
+ toBlock?: string | number | undefined
92
+ ): Promise<Array<TEvent>>;
93
+
94
+ listeners<TEvent extends TypedEvent>(
95
+ eventFilter?: TypedEventFilter<TEvent>
96
+ ): Array<TypedListener<TEvent>>;
97
+ listeners(eventName?: string): Array<Listener>;
98
+ removeAllListeners<TEvent extends TypedEvent>(
99
+ eventFilter: TypedEventFilter<TEvent>
100
+ ): this;
101
+ removeAllListeners(eventName?: string): this;
102
+ off: OnEvent<this>;
103
+ on: OnEvent<this>;
104
+ once: OnEvent<this>;
105
+ removeListener: OnEvent<this>;
106
+
107
+ functions: {
108
+ fixedPricePTAMMSwap(
109
+ receiver: string,
110
+ fixedPricePTAMM: string,
111
+ PT: string,
112
+ exactPtIn: BigNumberish,
113
+ out: TokenOutputStruct,
114
+ overrides?: Overrides & { from?: string | Promise<string> }
115
+ ): Promise<ContractTransaction>;
116
+ };
117
+
118
+ fixedPricePTAMMSwap(
119
+ receiver: string,
120
+ fixedPricePTAMM: string,
121
+ PT: string,
122
+ exactPtIn: BigNumberish,
123
+ out: TokenOutputStruct,
124
+ overrides?: Overrides & { from?: string | Promise<string> }
125
+ ): Promise<ContractTransaction>;
126
+
127
+ callStatic: {
128
+ fixedPricePTAMMSwap(
129
+ receiver: string,
130
+ fixedPricePTAMM: string,
131
+ PT: string,
132
+ exactPtIn: BigNumberish,
133
+ out: TokenOutputStruct,
134
+ overrides?: CallOverrides
135
+ ): Promise<BigNumber>;
136
+ };
137
+
138
+ filters: {};
139
+
140
+ estimateGas: {
141
+ fixedPricePTAMMSwap(
142
+ receiver: string,
143
+ fixedPricePTAMM: string,
144
+ PT: string,
145
+ exactPtIn: BigNumberish,
146
+ out: TokenOutputStruct,
147
+ overrides?: Overrides & { from?: string | Promise<string> }
148
+ ): Promise<BigNumber>;
149
+ };
150
+
151
+ populateTransaction: {
152
+ fixedPricePTAMMSwap(
153
+ receiver: string,
154
+ fixedPricePTAMM: string,
155
+ PT: string,
156
+ exactPtIn: BigNumberish,
157
+ out: TokenOutputStruct,
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): Promise<PopulatedTransaction>;
160
+ };
161
+ }