@pendle/core-v2 5.2.5-beta → 5.3.0

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 (32) hide show
  1. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +394 -0
  3. package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.json +370 -0
  5. package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.json +246 -0
  7. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +4 -0
  8. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.json +24 -0
  9. package/contracts/core/erc20/PendleERC20Permit.sol +80 -0
  10. package/contracts/core/erc20/PendleERC20PermitUpg.sol +82 -0
  11. package/contracts/core/erc20/PendleERC20Upg.sol +334 -0
  12. package/contracts/interfaces/IPOracleForSy.sol +7 -0
  13. package/package.json +5 -1
  14. package/typechain-types/EIP712.ts +135 -0
  15. package/typechain-types/ERC20Permit.ts +586 -0
  16. package/typechain-types/IERC5267.ts +135 -0
  17. package/typechain-types/IPOracleForSy.ts +87 -0
  18. package/typechain-types/PendleERC20Permit.ts +508 -0
  19. package/typechain-types/PendleERC20PermitUpg.ts +517 -0
  20. package/typechain-types/PendleERC20Upg.ts +348 -0
  21. package/typechain-types/ShortStrings.ts +57 -0
  22. package/typechain-types/common.ts +44 -0
  23. package/typechain-types/factories/EIP712__factory.ts +85 -0
  24. package/typechain-types/factories/ERC20Permit__factory.ts +433 -0
  25. package/typechain-types/factories/IERC5267__factory.ts +72 -0
  26. package/typechain-types/factories/IPOracleForSy__factory.ts +36 -0
  27. package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +389 -0
  28. package/typechain-types/factories/PendleERC20Permit__factory.ts +470 -0
  29. package/typechain-types/factories/PendleERC20Upg__factory.ts +261 -0
  30. package/typechain-types/factories/ShortStrings__factory.ts +77 -0
  31. package/typechain-types/hardhat.d.ts +1725 -0
  32. package/typechain-types/index.ts +380 -0
@@ -0,0 +1,261 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ PendleERC20Upg,
9
+ PendleERC20UpgInterface,
10
+ } from "../PendleERC20Upg";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "owner",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "spender",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "value",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "Approval",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: false,
43
+ internalType: "uint8",
44
+ name: "version",
45
+ type: "uint8",
46
+ },
47
+ ],
48
+ name: "Initialized",
49
+ type: "event",
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "from",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: true,
62
+ internalType: "address",
63
+ name: "to",
64
+ type: "address",
65
+ },
66
+ {
67
+ indexed: false,
68
+ internalType: "uint256",
69
+ name: "value",
70
+ type: "uint256",
71
+ },
72
+ ],
73
+ name: "Transfer",
74
+ type: "event",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "owner",
81
+ type: "address",
82
+ },
83
+ {
84
+ internalType: "address",
85
+ name: "spender",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "allowance",
90
+ outputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ stateMutability: "view",
98
+ type: "function",
99
+ },
100
+ {
101
+ inputs: [
102
+ {
103
+ internalType: "address",
104
+ name: "spender",
105
+ type: "address",
106
+ },
107
+ {
108
+ internalType: "uint256",
109
+ name: "amount",
110
+ type: "uint256",
111
+ },
112
+ ],
113
+ name: "approve",
114
+ outputs: [
115
+ {
116
+ internalType: "bool",
117
+ name: "",
118
+ type: "bool",
119
+ },
120
+ ],
121
+ stateMutability: "nonpayable",
122
+ type: "function",
123
+ },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "address",
128
+ name: "account",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "balanceOf",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "view",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: "decimals",
146
+ outputs: [
147
+ {
148
+ internalType: "uint8",
149
+ name: "",
150
+ type: "uint8",
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [],
158
+ name: "name",
159
+ outputs: [
160
+ {
161
+ internalType: "string",
162
+ name: "",
163
+ type: "string",
164
+ },
165
+ ],
166
+ stateMutability: "view",
167
+ type: "function",
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: "symbol",
172
+ outputs: [
173
+ {
174
+ internalType: "string",
175
+ name: "",
176
+ type: "string",
177
+ },
178
+ ],
179
+ stateMutability: "view",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [],
184
+ name: "totalSupply",
185
+ outputs: [
186
+ {
187
+ internalType: "uint256",
188
+ name: "",
189
+ type: "uint256",
190
+ },
191
+ ],
192
+ stateMutability: "view",
193
+ type: "function",
194
+ },
195
+ {
196
+ inputs: [
197
+ {
198
+ internalType: "address",
199
+ name: "to",
200
+ type: "address",
201
+ },
202
+ {
203
+ internalType: "uint256",
204
+ name: "amount",
205
+ type: "uint256",
206
+ },
207
+ ],
208
+ name: "transfer",
209
+ outputs: [
210
+ {
211
+ internalType: "bool",
212
+ name: "",
213
+ type: "bool",
214
+ },
215
+ ],
216
+ stateMutability: "nonpayable",
217
+ type: "function",
218
+ },
219
+ {
220
+ inputs: [
221
+ {
222
+ internalType: "address",
223
+ name: "from",
224
+ type: "address",
225
+ },
226
+ {
227
+ internalType: "address",
228
+ name: "to",
229
+ type: "address",
230
+ },
231
+ {
232
+ internalType: "uint256",
233
+ name: "amount",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ name: "transferFrom",
238
+ outputs: [
239
+ {
240
+ internalType: "bool",
241
+ name: "",
242
+ type: "bool",
243
+ },
244
+ ],
245
+ stateMutability: "nonpayable",
246
+ type: "function",
247
+ },
248
+ ];
249
+
250
+ export class PendleERC20Upg__factory {
251
+ static readonly abi = _abi;
252
+ static createInterface(): PendleERC20UpgInterface {
253
+ return new utils.Interface(_abi) as PendleERC20UpgInterface;
254
+ }
255
+ static connect(
256
+ address: string,
257
+ signerOrProvider: Signer | Provider
258
+ ): PendleERC20Upg {
259
+ return new Contract(address, _abi, signerOrProvider) as PendleERC20Upg;
260
+ }
261
+ }
@@ -0,0 +1,77 @@
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 { ShortStrings, ShortStringsInterface } from "../ShortStrings";
7
+
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "InvalidShortString",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "string",
18
+ name: "str",
19
+ type: "string",
20
+ },
21
+ ],
22
+ name: "StringTooLong",
23
+ type: "error",
24
+ },
25
+ ];
26
+
27
+ const _bytecode =
28
+ "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206b22c4f70451dac26f0425e9113a8a7fce20156039762189b46f8ce7faf188b064736f6c63430008170033";
29
+
30
+ type ShortStringsConstructorParams =
31
+ | [signer?: Signer]
32
+ | ConstructorParameters<typeof ContractFactory>;
33
+
34
+ const isSuperArgs = (
35
+ xs: ShortStringsConstructorParams
36
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
37
+
38
+ export class ShortStrings__factory extends ContractFactory {
39
+ constructor(...args: ShortStringsConstructorParams) {
40
+ if (isSuperArgs(args)) {
41
+ super(...args);
42
+ } else {
43
+ super(_abi, _bytecode, args[0]);
44
+ }
45
+ this.contractName = "ShortStrings";
46
+ }
47
+
48
+ deploy(
49
+ overrides?: Overrides & { from?: string | Promise<string> }
50
+ ): Promise<ShortStrings> {
51
+ return super.deploy(overrides || {}) as Promise<ShortStrings>;
52
+ }
53
+ getDeployTransaction(
54
+ overrides?: Overrides & { from?: string | Promise<string> }
55
+ ): TransactionRequest {
56
+ return super.getDeployTransaction(overrides || {});
57
+ }
58
+ attach(address: string): ShortStrings {
59
+ return super.attach(address) as ShortStrings;
60
+ }
61
+ connect(signer: Signer): ShortStrings__factory {
62
+ return super.connect(signer) as ShortStrings__factory;
63
+ }
64
+ static readonly contractName: "ShortStrings";
65
+ public readonly contractName: "ShortStrings";
66
+ static readonly bytecode = _bytecode;
67
+ static readonly abi = _abi;
68
+ static createInterface(): ShortStringsInterface {
69
+ return new utils.Interface(_abi) as ShortStringsInterface;
70
+ }
71
+ static connect(
72
+ address: string,
73
+ signerOrProvider: Signer | Provider
74
+ ): ShortStrings {
75
+ return new Contract(address, _abi, signerOrProvider) as ShortStrings;
76
+ }
77
+ }