@pendle/core-v2 2.8.2-mainnet → 2.8.3-mainnet
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/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.json +26 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +89 -0
- package/package.json +1 -1
- package/typechain-types/PendleAuraBalancerStableLPSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethAnkrethSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethRocketEthSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethStafiEthSY.ts +55 -0
- package/typechain-types/PendleAuraWethWstethSYV2.ts +55 -0
- package/typechain-types/PendleMulticallV1.ts +162 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSYV2__factory.ts +26 -0
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +27 -1
- package/typechain-types/factories/PendleMulticallV1__factory.ts +142 -0
- package/typechain-types/hardhat.d.ts +9 -0
- package/typechain-types/index.ts +2 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.json +0 -63
- package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.json +0 -716
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.json +0 -647
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +0 -47
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
PendleMulticallV1,
|
|
8
|
+
PendleMulticallV1Interface,
|
|
9
|
+
} from "../PendleMulticallV1";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
components: [
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "target",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "bytes",
|
|
23
|
+
name: "callData",
|
|
24
|
+
type: "bytes",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
internalType: "struct PendleMulticallV1.Call[]",
|
|
28
|
+
name: "calls",
|
|
29
|
+
type: "tuple[]",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "aggregate",
|
|
33
|
+
outputs: [],
|
|
34
|
+
stateMutability: "payable",
|
|
35
|
+
type: "function",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
inputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "bool",
|
|
41
|
+
name: "requireSuccess",
|
|
42
|
+
type: "bool",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "gasLimit",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
components: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "target",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "bytes",
|
|
58
|
+
name: "callData",
|
|
59
|
+
type: "bytes",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
internalType: "struct PendleMulticallV1.Call[]",
|
|
63
|
+
name: "calls",
|
|
64
|
+
type: "tuple[]",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "tryAggregate",
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
components: [
|
|
71
|
+
{
|
|
72
|
+
internalType: "bool",
|
|
73
|
+
name: "success",
|
|
74
|
+
type: "bool",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "bytes",
|
|
78
|
+
name: "returnData",
|
|
79
|
+
type: "bytes",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
internalType: "struct PendleMulticallV1.Result[]",
|
|
83
|
+
name: "returnData",
|
|
84
|
+
type: "tuple[]",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
stateMutability: "payable",
|
|
88
|
+
type: "function",
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
const _bytecode =
|
|
93
|
+
"0x608060405234801561001057600080fd5b50610571806100206000396000f3fe6080604052600436106100295760003560e01c806315855fb91461002e578063252dba4214610057575b600080fd5b61004161003c36600461031c565b61006c565b60405161004e919061037c565b60405180910390f35b61006a610065366004610428565b610205565b005b606081806001600160401b0381111561008757610087610469565b6040519080825280602002602001820160405280156100cd57816020015b6040805180820190915260008152606060208201528152602001906001900390816100a55790505b5091503660005b828110156101fa578585828181106100ee576100ee61047f565b90506020028101906101009190610495565b915060008061011260208501856104b5565b6001600160a01b03168989898681811061012e5761012e61047f565b90506020028101906101409190610495565b61014e9060208101906104e5565b60405161015c92919061052b565b60006040518083038160008787f1925050503d806000811461019a576040519150601f19603f3d011682016040523d82523d6000602084013e61019f565b606091505b5091509150811580156101af5750895b156101bc57805181602001fd5b60405180604001604052808315158152602001828152508684815181106101e5576101e561047f565b602090810291909101015250506001016100d4565b505050949350505050565b803660005b828110156102ca578484828181106102245761022461047f565b90506020028101906102369190610495565b915060008061024860208501856104b5565b6001600160a01b031661025e60208601866104e5565b60405161026c92919061052b565b6000604051808303816000865af19150503d80600081146102a9576040519150601f19603f3d011682016040523d82523d6000602084013e6102ae565b606091505b5091509150816102c057805181602001fd5b505060010161020a565b5050505050565b60008083601f8401126102e357600080fd5b5081356001600160401b038111156102fa57600080fd5b6020830191508360208260051b850101111561031557600080fd5b9250929050565b6000806000806060858703121561033257600080fd5b8435801515811461034257600080fd5b93506020850135925060408501356001600160401b0381111561036457600080fd5b610370878288016102d1565b95989497509550505050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561041957898403603f1901865282518051151585528801518885018890528051888601819052835b818110156103ec578281018b0151878201606001528a016103d0565b508581016060908101859052978a0197601f909101601f19169095019094019350918701916001016103a4565b50919998505050505050505050565b6000806020838503121561043b57600080fd5b82356001600160401b0381111561045157600080fd5b61045d858286016102d1565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126104ab57600080fd5b9190910192915050565b6000602082840312156104c757600080fd5b81356001600160a01b03811681146104de57600080fd5b9392505050565b6000808335601e198436030181126104fc57600080fd5b8301803591506001600160401b0382111561051657600080fd5b60200191503681900382131561031557600080fd5b818382376000910190815291905056fea2646970667358221220668d04fb53fc01a5e21ff3b500b791259d4b94f727ec09a49cf411d43e1205f964736f6c63430008110033";
|
|
94
|
+
|
|
95
|
+
type PendleMulticallV1ConstructorParams =
|
|
96
|
+
| [signer?: Signer]
|
|
97
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
98
|
+
|
|
99
|
+
const isSuperArgs = (
|
|
100
|
+
xs: PendleMulticallV1ConstructorParams
|
|
101
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
102
|
+
|
|
103
|
+
export class PendleMulticallV1__factory extends ContractFactory {
|
|
104
|
+
constructor(...args: PendleMulticallV1ConstructorParams) {
|
|
105
|
+
if (isSuperArgs(args)) {
|
|
106
|
+
super(...args);
|
|
107
|
+
} else {
|
|
108
|
+
super(_abi, _bytecode, args[0]);
|
|
109
|
+
}
|
|
110
|
+
this.contractName = "PendleMulticallV1";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
deploy(
|
|
114
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
115
|
+
): Promise<PendleMulticallV1> {
|
|
116
|
+
return super.deploy(overrides || {}) as Promise<PendleMulticallV1>;
|
|
117
|
+
}
|
|
118
|
+
getDeployTransaction(
|
|
119
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
120
|
+
): TransactionRequest {
|
|
121
|
+
return super.getDeployTransaction(overrides || {});
|
|
122
|
+
}
|
|
123
|
+
attach(address: string): PendleMulticallV1 {
|
|
124
|
+
return super.attach(address) as PendleMulticallV1;
|
|
125
|
+
}
|
|
126
|
+
connect(signer: Signer): PendleMulticallV1__factory {
|
|
127
|
+
return super.connect(signer) as PendleMulticallV1__factory;
|
|
128
|
+
}
|
|
129
|
+
static readonly contractName: "PendleMulticallV1";
|
|
130
|
+
public readonly contractName: "PendleMulticallV1";
|
|
131
|
+
static readonly bytecode = _bytecode;
|
|
132
|
+
static readonly abi = _abi;
|
|
133
|
+
static createInterface(): PendleMulticallV1Interface {
|
|
134
|
+
return new utils.Interface(_abi) as PendleMulticallV1Interface;
|
|
135
|
+
}
|
|
136
|
+
static connect(
|
|
137
|
+
address: string,
|
|
138
|
+
signerOrProvider: Signer | Provider
|
|
139
|
+
): PendleMulticallV1 {
|
|
140
|
+
return new Contract(address, _abi, signerOrProvider) as PendleMulticallV1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -664,6 +664,10 @@ declare module "hardhat/types/runtime" {
|
|
|
664
664
|
name: "PendleMulticall",
|
|
665
665
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
666
666
|
): Promise<Contracts.PendleMulticall__factory>;
|
|
667
|
+
getContractFactory(
|
|
668
|
+
name: "PendleMulticallV1",
|
|
669
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
670
|
+
): Promise<Contracts.PendleMulticallV1__factory>;
|
|
667
671
|
getContractFactory(
|
|
668
672
|
name: "ActionInfoStatic",
|
|
669
673
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1592,6 +1596,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1592
1596
|
address: string,
|
|
1593
1597
|
signer?: ethers.Signer
|
|
1594
1598
|
): Promise<Contracts.PendleMulticall>;
|
|
1599
|
+
getContractAt(
|
|
1600
|
+
name: "PendleMulticallV1",
|
|
1601
|
+
address: string,
|
|
1602
|
+
signer?: ethers.Signer
|
|
1603
|
+
): Promise<Contracts.PendleMulticallV1>;
|
|
1595
1604
|
getContractAt(
|
|
1596
1605
|
name: "ActionInfoStatic",
|
|
1597
1606
|
address: string,
|
package/typechain-types/index.ts
CHANGED
|
@@ -164,6 +164,7 @@ export type { Broadcaster } from "./Broadcaster";
|
|
|
164
164
|
export type { BulkSellerOffchain } from "./BulkSellerOffchain";
|
|
165
165
|
export type { Multicall2 } from "./Multicall2";
|
|
166
166
|
export type { PendleMulticall } from "./PendleMulticall";
|
|
167
|
+
export type { PendleMulticallV1 } from "./PendleMulticallV1";
|
|
167
168
|
export type { ActionInfoStatic } from "./ActionInfoStatic";
|
|
168
169
|
export type { ActionMarketAuxStatic } from "./ActionMarketAuxStatic";
|
|
169
170
|
export type { ActionMarketCoreStatic } from "./ActionMarketCoreStatic";
|
|
@@ -353,6 +354,7 @@ export { Broadcaster__factory } from "./factories/Broadcaster__factory";
|
|
|
353
354
|
export { BulkSellerOffchain__factory } from "./factories/BulkSellerOffchain__factory";
|
|
354
355
|
export { Multicall2__factory } from "./factories/Multicall2__factory";
|
|
355
356
|
export { PendleMulticall__factory } from "./factories/PendleMulticall__factory";
|
|
357
|
+
export { PendleMulticallV1__factory } from "./factories/PendleMulticallV1__factory";
|
|
356
358
|
export { ActionInfoStatic__factory } from "./factories/ActionInfoStatic__factory";
|
|
357
359
|
export { ActionMarketAuxStatic__factory } from "./factories/ActionMarketAuxStatic__factory";
|
|
358
360
|
export { ActionMarketCoreStatic__factory } from "./factories/ActionMarketCoreStatic__factory";
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "PendleCamelotV1Base",
|
|
4
|
-
"sourceName": "contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [],
|
|
8
|
-
"name": "pair",
|
|
9
|
-
"outputs": [
|
|
10
|
-
{
|
|
11
|
-
"internalType": "address",
|
|
12
|
-
"name": "",
|
|
13
|
-
"type": "address"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"stateMutability": "view",
|
|
17
|
-
"type": "function"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"inputs": [],
|
|
21
|
-
"name": "router",
|
|
22
|
-
"outputs": [
|
|
23
|
-
{
|
|
24
|
-
"internalType": "address",
|
|
25
|
-
"name": "",
|
|
26
|
-
"type": "address"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"stateMutability": "view",
|
|
30
|
-
"type": "function"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"inputs": [],
|
|
34
|
-
"name": "tokenA",
|
|
35
|
-
"outputs": [
|
|
36
|
-
{
|
|
37
|
-
"internalType": "address",
|
|
38
|
-
"name": "",
|
|
39
|
-
"type": "address"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"stateMutability": "view",
|
|
43
|
-
"type": "function"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"inputs": [],
|
|
47
|
-
"name": "tokenB",
|
|
48
|
-
"outputs": [
|
|
49
|
-
{
|
|
50
|
-
"internalType": "address",
|
|
51
|
-
"name": "",
|
|
52
|
-
"type": "address"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"stateMutability": "view",
|
|
56
|
-
"type": "function"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"bytecode": "0x",
|
|
60
|
-
"deployedBytecode": "0x",
|
|
61
|
-
"linkReferences": {},
|
|
62
|
-
"deployedLinkReferences": {}
|
|
63
|
-
}
|