@pendle/core-v2 6.2.0 → 6.2.2-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 (38) hide show
  1. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  2. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  3. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +4 -0
  4. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.json +81 -0
  5. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +4 -0
  6. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +121 -0
  7. package/contracts/offchain-helpers/LimitBackendHelperV2.sol +6 -1
  8. package/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol +29 -0
  9. package/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol +30 -0
  10. package/deployments/1-core.json +3 -2
  11. package/deployments/1-offchain-helper.json +1 -1
  12. package/deployments/10-core.json +3 -2
  13. package/deployments/10-offchain-helper.json +1 -1
  14. package/deployments/146-core.json +3 -2
  15. package/deployments/146-offchain-helper.json +1 -1
  16. package/deployments/42161-core.json +3 -2
  17. package/deployments/42161-offchain-helper.json +1 -1
  18. package/deployments/43114-core.json +19 -2
  19. package/deployments/5000-core.json +3 -2
  20. package/deployments/5000-offchain-helper.json +1 -1
  21. package/deployments/56-core.json +3 -2
  22. package/deployments/56-offchain-helper.json +1 -1
  23. package/deployments/80094-core.json +3 -2
  24. package/deployments/80094-offchain-helper.json +1 -1
  25. package/deployments/8453-core.json +3 -2
  26. package/deployments/8453-offchain-helper.json +1 -1
  27. package/deployments/9745-core.json +3 -2
  28. package/deployments/9745-offchain-helper.json +1 -1
  29. package/deployments/999-core.json +3 -2
  30. package/deployments/999-offchain-helper.json +1 -1
  31. package/package.json +1 -1
  32. package/typechain-types/PendleLinearDiscountOracleWrapper.ts +150 -0
  33. package/typechain-types/PendleSparkLinearDiscountOracleFactoryWrapper.ts +216 -0
  34. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  35. package/typechain-types/factories/PendleLinearDiscountOracleWrapper__factory.ts +145 -0
  36. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +193 -0
  37. package/typechain-types/hardhat.d.ts +18 -18
  38. package/typechain-types/index.ts +4 -4
@@ -0,0 +1,193 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ PendleSparkLinearDiscountOracleFactoryWrapper,
8
+ PendleSparkLinearDiscountOracleFactoryWrapperInterface,
9
+ } from "../PendleSparkLinearDiscountOracleFactoryWrapper";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_innerFactory",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ {
27
+ indexed: true,
28
+ internalType: "address",
29
+ name: "innerOracle",
30
+ type: "address",
31
+ },
32
+ {
33
+ indexed: true,
34
+ internalType: "address",
35
+ name: "wrapper",
36
+ type: "address",
37
+ },
38
+ ],
39
+ name: "WrapperOracleCreated",
40
+ type: "event",
41
+ },
42
+ {
43
+ inputs: [
44
+ {
45
+ internalType: "address",
46
+ name: "market",
47
+ type: "address",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "baseDiscountPerYear",
52
+ type: "uint256",
53
+ },
54
+ ],
55
+ name: "createWithMarket",
56
+ outputs: [
57
+ {
58
+ internalType: "address",
59
+ name: "wrapper",
60
+ type: "address",
61
+ },
62
+ ],
63
+ stateMutability: "nonpayable",
64
+ type: "function",
65
+ },
66
+ {
67
+ inputs: [
68
+ {
69
+ internalType: "address",
70
+ name: "pt",
71
+ type: "address",
72
+ },
73
+ {
74
+ internalType: "uint256",
75
+ name: "baseDiscountPerYear",
76
+ type: "uint256",
77
+ },
78
+ ],
79
+ name: "createWithPt",
80
+ outputs: [
81
+ {
82
+ internalType: "address",
83
+ name: "wrapper",
84
+ type: "address",
85
+ },
86
+ ],
87
+ stateMutability: "nonpayable",
88
+ type: "function",
89
+ },
90
+ {
91
+ inputs: [],
92
+ name: "innerFactory",
93
+ outputs: [
94
+ {
95
+ internalType: "contract PendleSparkLinearDiscountOracleFactory",
96
+ name: "",
97
+ type: "address",
98
+ },
99
+ ],
100
+ stateMutability: "view",
101
+ type: "function",
102
+ },
103
+ {
104
+ inputs: [
105
+ {
106
+ internalType: "address",
107
+ name: "innerOracle",
108
+ type: "address",
109
+ },
110
+ ],
111
+ name: "wrap",
112
+ outputs: [
113
+ {
114
+ internalType: "address",
115
+ name: "wrapper",
116
+ type: "address",
117
+ },
118
+ ],
119
+ stateMutability: "nonpayable",
120
+ type: "function",
121
+ },
122
+ ];
123
+
124
+ const _bytecode =
125
+ "0x60a0604052348015600e575f5ffd5b506040516106f43803806106f4833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161066961008b5f395f8181607c0152818161014101526101e401526106695ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c8063023276f01461004e57806306d07f0f146100775780633b8863cc1461009e57806380245dad146100b1575b5f5ffd5b61006161005c366004610254565b6100c4565b60405161006e9190610276565b60405180910390f35b6100617f000000000000000000000000000000000000000000000000000000000000000081565b6100616100ac36600461028a565b61013d565b6100616100bf36600461028a565b6101e0565b5f816040516100d290610230565b6100dc9190610276565b604051809103905ff0801580156100f5573d5f5f3e3d5ffd5b509050806001600160a01b0316826001600160a01b03167f56118c465eeed279e6e34bf04325d6db3695f9311dd77ae3db0dd7bcb8bceebd60405160405180910390a3919050565b5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633b8863cc85856040518363ffffffff1660e01b815260040161018d9291906102b4565b6020604051808303815f875af11580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906102cd565b90506101d8816100c4565b949350505050565b5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166380245dad85856040518363ffffffff1660e01b815260040161018d9291906102b4565b61034b806102e983390190565b6001600160a01b0381168114610251575f5ffd5b50565b5f60208284031215610264575f5ffd5b813561026f8161023d565b9392505050565b6001600160a01b0391909116815260200190565b5f5f6040838503121561029b575f5ffd5b82356102a68161023d565b946020939093013593505050565b6001600160a01b03929092168252602082015260400190565b5f602082840312156102dd575f5ffd5b815161026f8161023d56fe60a0604052348015600e575f5ffd5b5060405161034b38038061034b833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b6080516102c161008a5f395f818160670152818160e0015261016a01526102c15ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c8063313ce56714610043578063ea56d3db14610062578063feaf968c146100a1575b5f5ffd5b61004b6100dd565b60405160ff90911681526020015b60405180910390f35b6100897f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610059565b6100a9610163565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610059565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561013a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061015e91906101fb565b905090565b5f5f5f5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156101c4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101e8919061023d565b9399929850909650429550919350915050565b5f6020828403121561020b575f5ffd5b815160ff8116811461021b575f5ffd5b9392505050565b80516001600160501b0381168114610238575f5ffd5b919050565b5f5f5f5f5f60a08688031215610251575f5ffd5b61025a86610222565b6020870151604088015160608901519297509095509350915061027f60808701610222565b9050929550929590935056fea26469706673582212201f58ad8205559fe56c0de10f7f025b05cd87354cb87a5fb723c8bfb1cc29268e64736f6c634300081e0033a26469706673582212209d8f4c874b9b52a849a7312de99a1565a4d22ed4b879503edbcf7f06d1ecabe164736f6c634300081e0033";
126
+
127
+ type PendleSparkLinearDiscountOracleFactoryWrapperConstructorParams =
128
+ | [signer?: Signer]
129
+ | ConstructorParameters<typeof ContractFactory>;
130
+
131
+ const isSuperArgs = (
132
+ xs: PendleSparkLinearDiscountOracleFactoryWrapperConstructorParams
133
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
134
+
135
+ export class PendleSparkLinearDiscountOracleFactoryWrapper__factory extends ContractFactory {
136
+ constructor(
137
+ ...args: PendleSparkLinearDiscountOracleFactoryWrapperConstructorParams
138
+ ) {
139
+ if (isSuperArgs(args)) {
140
+ super(...args);
141
+ } else {
142
+ super(_abi, _bytecode, args[0]);
143
+ }
144
+ this.contractName = "PendleSparkLinearDiscountOracleFactoryWrapper";
145
+ }
146
+
147
+ deploy(
148
+ _innerFactory: string,
149
+ overrides?: Overrides & { from?: string | Promise<string> }
150
+ ): Promise<PendleSparkLinearDiscountOracleFactoryWrapper> {
151
+ return super.deploy(
152
+ _innerFactory,
153
+ overrides || {}
154
+ ) as Promise<PendleSparkLinearDiscountOracleFactoryWrapper>;
155
+ }
156
+ getDeployTransaction(
157
+ _innerFactory: string,
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): TransactionRequest {
160
+ return super.getDeployTransaction(_innerFactory, overrides || {});
161
+ }
162
+ attach(address: string): PendleSparkLinearDiscountOracleFactoryWrapper {
163
+ return super.attach(
164
+ address
165
+ ) as PendleSparkLinearDiscountOracleFactoryWrapper;
166
+ }
167
+ connect(
168
+ signer: Signer
169
+ ): PendleSparkLinearDiscountOracleFactoryWrapper__factory {
170
+ return super.connect(
171
+ signer
172
+ ) as PendleSparkLinearDiscountOracleFactoryWrapper__factory;
173
+ }
174
+ static readonly contractName: "PendleSparkLinearDiscountOracleFactoryWrapper";
175
+ public readonly contractName: "PendleSparkLinearDiscountOracleFactoryWrapper";
176
+ static readonly bytecode = _bytecode;
177
+ static readonly abi = _abi;
178
+ static createInterface(): PendleSparkLinearDiscountOracleFactoryWrapperInterface {
179
+ return new utils.Interface(
180
+ _abi
181
+ ) as PendleSparkLinearDiscountOracleFactoryWrapperInterface;
182
+ }
183
+ static connect(
184
+ address: string,
185
+ signerOrProvider: Signer | Provider
186
+ ): PendleSparkLinearDiscountOracleFactoryWrapper {
187
+ return new Contract(
188
+ address,
189
+ _abi,
190
+ signerOrProvider
191
+ ) as PendleSparkLinearDiscountOracleFactoryWrapper;
192
+ }
193
+ }
@@ -380,10 +380,6 @@ declare module "hardhat/types/runtime" {
380
380
  name: "IPActionCallbackV3",
381
381
  signerOrOptions?: ethers.Signer | FactoryOptions
382
382
  ): Promise<Contracts.IPActionCallbackV3__factory>;
383
- getContractFactory(
384
- name: "IPActionCrossChain",
385
- signerOrOptions?: ethers.Signer | FactoryOptions
386
- ): Promise<Contracts.IPActionCrossChain__factory>;
387
383
  getContractFactory(
388
384
  name: "IPActionInfoStatic",
389
385
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -948,6 +944,14 @@ declare module "hardhat/types/runtime" {
948
944
  name: "BoringPYUsdChainlinkSYOracle",
949
945
  signerOrOptions?: ethers.Signer | FactoryOptions
950
946
  ): Promise<Contracts.BoringPYUsdChainlinkSYOracle__factory>;
947
+ getContractFactory(
948
+ name: "PendleLinearDiscountOracleWrapper",
949
+ signerOrOptions?: ethers.Signer | FactoryOptions
950
+ ): Promise<Contracts.PendleLinearDiscountOracleWrapper__factory>;
951
+ getContractFactory(
952
+ name: "PendleSparkLinearDiscountOracleFactoryWrapper",
953
+ signerOrOptions?: ethers.Signer | FactoryOptions
954
+ ): Promise<Contracts.PendleSparkLinearDiscountOracleFactoryWrapper__factory>;
951
955
  getContractFactory(
952
956
  name: "ActionAddRemoveLiqV3",
953
957
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -956,10 +960,6 @@ declare module "hardhat/types/runtime" {
956
960
  name: "ActionCallbackV3",
957
961
  signerOrOptions?: ethers.Signer | FactoryOptions
958
962
  ): Promise<Contracts.ActionCallbackV3__factory>;
959
- getContractFactory(
960
- name: "ActionCrossChain",
961
- signerOrOptions?: ethers.Signer | FactoryOptions
962
- ): Promise<Contracts.ActionCrossChain__factory>;
963
963
  getContractFactory(
964
964
  name: "ActionMiscV3",
965
965
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -1473,11 +1473,6 @@ declare module "hardhat/types/runtime" {
1473
1473
  address: string,
1474
1474
  signer?: ethers.Signer
1475
1475
  ): Promise<Contracts.IPActionCallbackV3>;
1476
- getContractAt(
1477
- name: "IPActionCrossChain",
1478
- address: string,
1479
- signer?: ethers.Signer
1480
- ): Promise<Contracts.IPActionCrossChain>;
1481
1476
  getContractAt(
1482
1477
  name: "IPActionInfoStatic",
1483
1478
  address: string,
@@ -2183,6 +2178,16 @@ declare module "hardhat/types/runtime" {
2183
2178
  address: string,
2184
2179
  signer?: ethers.Signer
2185
2180
  ): Promise<Contracts.BoringPYUsdChainlinkSYOracle>;
2181
+ getContractAt(
2182
+ name: "PendleLinearDiscountOracleWrapper",
2183
+ address: string,
2184
+ signer?: ethers.Signer
2185
+ ): Promise<Contracts.PendleLinearDiscountOracleWrapper>;
2186
+ getContractAt(
2187
+ name: "PendleSparkLinearDiscountOracleFactoryWrapper",
2188
+ address: string,
2189
+ signer?: ethers.Signer
2190
+ ): Promise<Contracts.PendleSparkLinearDiscountOracleFactoryWrapper>;
2186
2191
  getContractAt(
2187
2192
  name: "ActionAddRemoveLiqV3",
2188
2193
  address: string,
@@ -2193,11 +2198,6 @@ declare module "hardhat/types/runtime" {
2193
2198
  address: string,
2194
2199
  signer?: ethers.Signer
2195
2200
  ): Promise<Contracts.ActionCallbackV3>;
2196
- getContractAt(
2197
- name: "ActionCrossChain",
2198
- address: string,
2199
- signer?: ethers.Signer
2200
- ): Promise<Contracts.ActionCrossChain>;
2201
2201
  getContractAt(
2202
2202
  name: "ActionMiscV3",
2203
2203
  address: string,
@@ -91,7 +91,6 @@ export type { ILPWrapper } from "./ILPWrapper";
91
91
  export type { IOwnable } from "./IOwnable";
92
92
  export type { IPActionAddRemoveLiqV3 } from "./IPActionAddRemoveLiqV3";
93
93
  export type { IPActionCallbackV3 } from "./IPActionCallbackV3";
94
- export type { IPActionCrossChain } from "./IPActionCrossChain";
95
94
  export type { IPActionInfoStatic } from "./IPActionInfoStatic";
96
95
  export type { IPActionMarketAuxStatic } from "./IPActionMarketAuxStatic";
97
96
  export type { IPActionMarketCoreStatic } from "./IPActionMarketCoreStatic";
@@ -233,9 +232,10 @@ export type { PendleChainlinkOracleWithQuote } from "./PendleChainlinkOracleWith
233
232
  export type { PendlePYLpOracle } from "./PendlePYLpOracle";
234
233
  export type { BoringPYUsdChainlinkAssetOracle } from "./BoringPYUsdChainlinkAssetOracle";
235
234
  export type { BoringPYUsdChainlinkSYOracle } from "./BoringPYUsdChainlinkSYOracle";
235
+ export type { PendleLinearDiscountOracleWrapper } from "./PendleLinearDiscountOracleWrapper";
236
+ export type { PendleSparkLinearDiscountOracleFactoryWrapper } from "./PendleSparkLinearDiscountOracleFactoryWrapper";
236
237
  export type { ActionAddRemoveLiqV3 } from "./ActionAddRemoveLiqV3";
237
238
  export type { ActionCallbackV3 } from "./ActionCallbackV3";
238
- export type { ActionCrossChain } from "./ActionCrossChain";
239
239
  export type { ActionMiscV3 } from "./ActionMiscV3";
240
240
  export type { ActionSimple } from "./ActionSimple";
241
241
  export type { ActionStorageV4 } from "./ActionStorageV4";
@@ -340,7 +340,6 @@ export { ILPWrapper__factory } from "./factories/ILPWrapper__factory";
340
340
  export { IOwnable__factory } from "./factories/IOwnable__factory";
341
341
  export { IPActionAddRemoveLiqV3__factory } from "./factories/IPActionAddRemoveLiqV3__factory";
342
342
  export { IPActionCallbackV3__factory } from "./factories/IPActionCallbackV3__factory";
343
- export { IPActionCrossChain__factory } from "./factories/IPActionCrossChain__factory";
344
343
  export { IPActionInfoStatic__factory } from "./factories/IPActionInfoStatic__factory";
345
344
  export { IPActionMarketAuxStatic__factory } from "./factories/IPActionMarketAuxStatic__factory";
346
345
  export { IPActionMarketCoreStatic__factory } from "./factories/IPActionMarketCoreStatic__factory";
@@ -482,9 +481,10 @@ export { PendleChainlinkOracleWithQuote__factory } from "./factories/PendleChain
482
481
  export { PendlePYLpOracle__factory } from "./factories/PendlePYLpOracle__factory";
483
482
  export { BoringPYUsdChainlinkAssetOracle__factory } from "./factories/BoringPYUsdChainlinkAssetOracle__factory";
484
483
  export { BoringPYUsdChainlinkSYOracle__factory } from "./factories/BoringPYUsdChainlinkSYOracle__factory";
484
+ export { PendleLinearDiscountOracleWrapper__factory } from "./factories/PendleLinearDiscountOracleWrapper__factory";
485
+ export { PendleSparkLinearDiscountOracleFactoryWrapper__factory } from "./factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory";
485
486
  export { ActionAddRemoveLiqV3__factory } from "./factories/ActionAddRemoveLiqV3__factory";
486
487
  export { ActionCallbackV3__factory } from "./factories/ActionCallbackV3__factory";
487
- export { ActionCrossChain__factory } from "./factories/ActionCrossChain__factory";
488
488
  export { ActionMiscV3__factory } from "./factories/ActionMiscV3__factory";
489
489
  export { ActionSimple__factory } from "./factories/ActionSimple__factory";
490
490
  export { ActionStorageV4__factory } from "./factories/ActionStorageV4__factory";