@pendle/core-v2 0.6.7 → 0.6.9
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/IPGauge.sol/IPGauge.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +113 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +43 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +167 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/IPVotingEscrowController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/IPVotingEscrowController.json +61 -0
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.dbg.json +1 -1
- package/contracts/interfaces/IPGauge.sol +32 -0
- package/contracts/interfaces/IPVeToken.sol +14 -0
- package/contracts/interfaces/IPVotingEscrow.sol +32 -0
- package/contracts/interfaces/IPVotingEscrowController.sol +14 -0
- package/package.json +1 -1
- package/typechain-types/ActionSCYAndYOBase.ts +223 -0
- package/typechain-types/AggregatorV2V3Interface.ts +380 -0
- package/typechain-types/BenqiChainlinkOracle.ts +362 -0
- package/typechain-types/BoringOwnable.ts +194 -0
- package/typechain-types/BoringOwnableData.ts +100 -0
- package/typechain-types/BoringOwnableUpg.ts +194 -0
- package/typechain-types/BoringOwnableUpgData.ts +100 -0
- package/typechain-types/Comptroller.ts +2860 -0
- package/typechain-types/ComptrollerErrorReporter.ts +70 -0
- package/typechain-types/ComptrollerInterface.ts +881 -0
- package/typechain-types/ComptrollerVXStorage.ts +781 -0
- package/typechain-types/CrosschainContract.ts +113 -0
- package/typechain-types/CrosschainReceiver.ts +347 -0
- package/typechain-types/CrosschainSender.ts +210 -0
- package/typechain-types/EIP20Interface.ts +337 -0
- package/typechain-types/EIP20NonStandardInterface.ts +298 -0
- package/typechain-types/ERC20Burnable.ts +473 -0
- package/typechain-types/ERC20Locker.ts +91 -0
- package/typechain-types/ERC20Premined.ts +473 -0
- package/typechain-types/ERC20PresetFixedSupply.ts +473 -0
- package/typechain-types/EpochController.ts +195 -0
- package/typechain-types/FundKeeper.ts +347 -0
- package/typechain-types/GaugeTypeControllerAbstract.ts +546 -0
- package/typechain-types/GaugeTypeControllerCrosschain.ts +733 -0
- package/typechain-types/GaugeTypeControllerMainchain.ts +604 -0
- package/typechain-types/IGaugeController.ts +99 -0
- package/typechain-types/ILiquidYieldToken.ts +639 -0
- package/typechain-types/ILiquidYieldTokenWrap.ts +790 -0
- package/typechain-types/IMessageBus.ts +543 -0
- package/typechain-types/IMessageReceiverApp.ts +110 -0
- package/typechain-types/IPFlashCallback.ts +115 -0
- package/typechain-types/IPGauge.ts +241 -0
- package/typechain-types/IPLiquidYieldToken.ts +641 -0
- package/typechain-types/IPMarketCallback.ts +107 -0
- package/typechain-types/IPOwnershipToken.ts +488 -0
- package/typechain-types/IPRouterCore.ts +769 -0
- package/typechain-types/IPRouterRedeem.ts +155 -0
- package/typechain-types/IPRouterYT.ts +489 -0
- package/typechain-types/IPVeToken.ts +103 -0
- package/typechain-types/IPVotingEscrow.ts +297 -0
- package/typechain-types/IPVotingEscrowController.ts +154 -0
- package/typechain-types/IPermissionsV2.ts +87 -0
- package/typechain-types/IRainbowBridge.ts +91 -0
- package/typechain-types/ISCYRewardIndex.ts +695 -0
- package/typechain-types/IVEPendleToken.ts +121 -0
- package/typechain-types/IXPendle.ts +114 -0
- package/typechain-types/InterestRateModel.ts +178 -0
- package/typechain-types/JumpRateModel.ts +347 -0
- package/typechain-types/LYTBase.ts +721 -0
- package/typechain-types/LYTBaseWithRewards.ts +806 -0
- package/typechain-types/LYTWrap.ts +872 -0
- package/typechain-types/LYTWrapWithRewards.ts +979 -0
- package/typechain-types/LiquidityMining.ts +468 -0
- package/typechain-types/Maximillion.ts +145 -0
- package/typechain-types/Ownable.ts +160 -0
- package/typechain-types/PendleAaveV3LYT.ts +808 -0
- package/typechain-types/PendleBenQiErc20LYT.ts +901 -0
- package/typechain-types/PendleBenqiLiquidYieldToken.ts +1013 -0
- package/typechain-types/PendleBtrflyLYT.ts +781 -0
- package/typechain-types/PendleGauge.ts +469 -0
- package/typechain-types/PendleJoeSwapHelper.ts +92 -0
- package/typechain-types/PendleLYTMockYT.ts +894 -0
- package/typechain-types/PendleLiquidYieldToken.ts +814 -0
- package/typechain-types/PendleLiquidYieldTokenBase.ts +941 -0
- package/typechain-types/PendleOwnershipToken.ts +598 -0
- package/typechain-types/PendleRouter01.ts +184 -0
- package/typechain-types/PendleRouter02.ts +564 -0
- package/typechain-types/PendleRouter03.ts +224 -0
- package/typechain-types/PendleRouterBase.ts +126 -0
- package/typechain-types/PendleRouterCore.ts +328 -0
- package/typechain-types/PendleRouterCoreUpg.ts +798 -0
- package/typechain-types/PendleRouterLytAndForge.ts +331 -0
- package/typechain-types/PendleRouterMarketBase.ts +82 -0
- package/typechain-types/PendleRouterOT.ts +463 -0
- package/typechain-types/PendleRouterProxy.ts +335 -0
- package/typechain-types/PendleRouterRawTokenOT.ts +865 -0
- package/typechain-types/PendleRouterRawTokenYT.ts +520 -0
- package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
- package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +98 -0
- package/typechain-types/PendleRouterStaticUpg.ts +399 -0
- package/typechain-types/PendleRouterYT.ts +227 -0
- package/typechain-types/PendleRouterYTBaseUpg.ts +134 -0
- package/typechain-types/PendleRouterYTUpg.ts +537 -0
- package/typechain-types/PendleYTLYTBenqi.ts +863 -0
- package/typechain-types/PendleYearnVaultLYT.ts +723 -0
- package/typechain-types/PermissionsV2.ts +87 -0
- package/typechain-types/PermlessAbstract.ts +57 -0
- package/typechain-types/PglStakingContract.ts +662 -0
- package/typechain-types/PglStakingContractProxy.ts +256 -0
- package/typechain-types/PglStakingContractProxyStorage.ts +136 -0
- package/typechain-types/PglStakingContractStorage.ts +397 -0
- package/typechain-types/PriceOracle.ts +116 -0
- package/typechain-types/ProtocolFakeUser.ts +105 -0
- package/typechain-types/Qi.ts +760 -0
- package/typechain-types/QiAvax.ts +1720 -0
- package/typechain-types/QiDelegateInterface.ts +145 -0
- package/typechain-types/QiDelegationStorage.ts +82 -0
- package/typechain-types/QiDelegatorInterface.ts +149 -0
- package/typechain-types/QiErc20.ts +1846 -0
- package/typechain-types/QiErc20Delegate.ts +1926 -0
- package/typechain-types/QiErc20Delegator.ts +1885 -0
- package/typechain-types/QiErc20Interface.ts +382 -0
- package/typechain-types/QiErc20Storage.ts +79 -0
- package/typechain-types/QiToken.ts +1475 -0
- package/typechain-types/QiTokenInterface.ts +1419 -0
- package/typechain-types/QiTokenSaleDistributor.ts +771 -0
- package/typechain-types/QiTokenSaleDistributorProxy.ts +256 -0
- package/typechain-types/QiTokenSaleDistributorProxyStorage.ts +136 -0
- package/typechain-types/QiTokenSaleDistributorStorage.ts +401 -0
- package/typechain-types/QiTokenStorage.ts +311 -0
- package/typechain-types/ReentrancyGuard.ts +52 -0
- package/typechain-types/SingleGaugeTypeController.ts +478 -0
- package/typechain-types/TokenErrorReporter.ts +70 -0
- package/typechain-types/Unitroller.ts +356 -0
- package/typechain-types/UnitrollerAdminStorage.ts +143 -0
- package/typechain-types/VePendle.ts +1156 -0
- package/typechain-types/VePendleCrosschain.ts +969 -0
- package/typechain-types/VePendleToken.ts +688 -0
- package/typechain-types/VotingController.ts +883 -0
- package/typechain-types/WETH9.ts +414 -0
- package/typechain-types/WhitePaperInterestRateModel.ts +304 -0
- package/typechain-types/XPendle.ts +618 -0
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +200 -0
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +288 -0
- package/typechain-types/factories/BenqiChainlinkOracle__factory.ts +311 -0
- package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +94 -0
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +139 -0
- package/typechain-types/factories/BoringOwnable__factory.ts +149 -0
- package/typechain-types/factories/ComptrollerErrorReporter__factory.ts +93 -0
- package/typechain-types/factories/ComptrollerInterface__factory.ts +595 -0
- package/typechain-types/factories/ComptrollerVXStorage__factory.ts +610 -0
- package/typechain-types/factories/Comptroller__factory.ts +2189 -0
- package/typechain-types/factories/CrosschainContract__factory.ts +52 -0
- package/typechain-types/factories/CrosschainReceiver__factory.ts +187 -0
- package/typechain-types/factories/CrosschainSender__factory.ts +104 -0
- package/typechain-types/factories/EIP20Interface__factory.ts +248 -0
- package/typechain-types/factories/EIP20NonStandardInterface__factory.ts +213 -0
- package/typechain-types/factories/ERC20Burnable__factory.ts +324 -0
- package/typechain-types/factories/ERC20Locker__factory.ts +73 -0
- package/typechain-types/factories/ERC20Premined__factory.ts +393 -0
- package/typechain-types/factories/ERC20PresetFixedSupply__factory.ts +422 -0
- package/typechain-types/factories/EpochController__factory.ts +170 -0
- package/typechain-types/factories/FundKeeper__factory.ts +212 -0
- package/typechain-types/factories/GaugeTypeControllerAbstract__factory.ts +387 -0
- package/typechain-types/factories/GaugeTypeControllerCrosschain__factory.ts +522 -0
- package/typechain-types/factories/GaugeTypeControllerMainchain__factory.ts +431 -0
- package/typechain-types/factories/IGaugeController__factory.ts +45 -0
- package/typechain-types/factories/ILiquidYieldTokenWrap__factory.ts +533 -0
- package/typechain-types/factories/ILiquidYieldToken__factory.ts +429 -0
- package/typechain-types/factories/IMessageBus__factory.ts +396 -0
- package/typechain-types/factories/IMessageReceiverApp__factory.ts +55 -0
- package/typechain-types/factories/IPFlashCallback__factory.ts +49 -0
- package/typechain-types/factories/IPGauge__factory.ts +125 -0
- package/typechain-types/factories/IPLiquidYieldToken__factory.ts +433 -0
- package/typechain-types/factories/IPMarketCallback__factory.ts +55 -0
- package/typechain-types/factories/IPOwnershipToken__factory.ts +349 -0
- package/typechain-types/factories/IPRouterCore__factory.ts +531 -0
- package/typechain-types/factories/IPRouterRedeem__factory.ts +72 -0
- package/typechain-types/factories/IPRouterYT__factory.ts +305 -0
- package/typechain-types/factories/IPVeToken__factory.ts +55 -0
- package/typechain-types/factories/IPVotingEscrowController__factory.ts +80 -0
- package/typechain-types/factories/IPVotingEscrow__factory.ts +182 -0
- package/typechain-types/factories/IPermissionsV2__factory.ts +39 -0
- package/typechain-types/factories/IRainbowBridge__factory.ts +76 -0
- package/typechain-types/factories/ISCYRewardIndex__factory.ts +465 -0
- package/typechain-types/factories/IVEPendleToken__factory.ts +71 -0
- package/typechain-types/factories/IXPendle__factory.ts +61 -0
- package/typechain-types/factories/InterestRateModel__factory.ts +108 -0
- package/typechain-types/factories/JumpRateModel__factory.ts +334 -0
- package/typechain-types/factories/LYTBaseWithRewards__factory.ts +530 -0
- package/typechain-types/factories/LYTBase__factory.ts +474 -0
- package/typechain-types/factories/LYTWrapWithRewards__factory.ts +643 -0
- package/typechain-types/factories/LYTWrap__factory.ts +574 -0
- package/typechain-types/factories/LiquidityMining__factory.ts +367 -0
- package/typechain-types/factories/Maximillion__factory.ts +125 -0
- package/typechain-types/factories/Ownable__factory.ts +75 -0
- package/typechain-types/factories/PendleAaveV3LYT__factory.ts +657 -0
- package/typechain-types/factories/PendleBenQiErc20LYT__factory.ts +748 -0
- package/typechain-types/factories/PendleBenqiLiquidYieldToken__factory.ts +785 -0
- package/typechain-types/factories/PendleBtrflyLYT__factory.ts +647 -0
- package/typechain-types/factories/PendleGauge__factory.ts +383 -0
- package/typechain-types/factories/PendleJoeSwapHelper__factory.ts +52 -0
- package/typechain-types/factories/PendleLYTMockYT__factory.ts +732 -0
- package/typechain-types/factories/PendleLiquidYieldTokenBase__factory.ts +603 -0
- package/typechain-types/factories/PendleLiquidYieldToken__factory.ts +510 -0
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +527 -0
- package/typechain-types/factories/PendleRouter01__factory.ts +152 -0
- package/typechain-types/factories/PendleRouter02__factory.ts +438 -0
- package/typechain-types/factories/PendleRouter03__factory.ts +190 -0
- package/typechain-types/factories/PendleRouterBase__factory.ts +68 -0
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +635 -0
- package/typechain-types/factories/PendleRouterCore__factory.ts +268 -0
- package/typechain-types/factories/PendleRouterLytAndForge__factory.ts +294 -0
- package/typechain-types/factories/PendleRouterMarketBase__factory.ts +43 -0
- package/typechain-types/factories/PendleRouterOT__factory.ts +372 -0
- package/typechain-types/factories/PendleRouterProxy__factory.ts +285 -0
- package/typechain-types/factories/PendleRouterRawTokenOT__factory.ts +697 -0
- package/typechain-types/factories/PendleRouterRawTokenYT__factory.ts +431 -0
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
- package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +56 -0
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +315 -0
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +66 -0
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +422 -0
- package/typechain-types/factories/PendleRouterYT__factory.ts +184 -0
- package/typechain-types/factories/PendleYTLYTBenqi__factory.ts +713 -0
- package/typechain-types/factories/PendleYearnVaultLYT__factory.ts +586 -0
- package/typechain-types/factories/PermissionsV2__factory.ts +36 -0
- package/typechain-types/factories/PermlessAbstract__factory.ts +30 -0
- package/typechain-types/factories/PglStakingContractProxyStorage__factory.ts +130 -0
- package/typechain-types/factories/PglStakingContractProxy__factory.ts +187 -0
- package/typechain-types/factories/PglStakingContractStorage__factory.ts +309 -0
- package/typechain-types/factories/PglStakingContract__factory.ts +446 -0
- package/typechain-types/factories/PriceOracle__factory.ts +59 -0
- package/typechain-types/factories/ProtocolFakeUser__factory.ts +87 -0
- package/typechain-types/factories/QiAvax__factory.ts +1471 -0
- package/typechain-types/factories/QiDelegateInterface__factory.ts +65 -0
- package/typechain-types/factories/QiDelegationStorage__factory.ts +79 -0
- package/typechain-types/factories/QiDelegatorInterface__factory.ts +89 -0
- package/typechain-types/factories/QiErc20Delegate__factory.ts +1563 -0
- package/typechain-types/factories/QiErc20Delegator__factory.ts +1648 -0
- package/typechain-types/factories/QiErc20Interface__factory.ts +239 -0
- package/typechain-types/factories/QiErc20Storage__factory.ts +79 -0
- package/typechain-types/factories/QiErc20__factory.ts +1515 -0
- package/typechain-types/factories/QiTokenInterface__factory.ts +1182 -0
- package/typechain-types/factories/QiTokenSaleDistributorProxyStorage__factory.ts +124 -0
- package/typechain-types/factories/QiTokenSaleDistributorProxy__factory.ts +171 -0
- package/typechain-types/factories/QiTokenSaleDistributorStorage__factory.ts +289 -0
- package/typechain-types/factories/QiTokenSaleDistributor__factory.ts +480 -0
- package/typechain-types/factories/QiTokenStorage__factory.ts +274 -0
- package/typechain-types/factories/QiToken__factory.ts +1219 -0
- package/typechain-types/factories/Qi__factory.ts +648 -0
- package/typechain-types/factories/ReentrancyGuard__factory.ts +69 -0
- package/typechain-types/factories/SingleGaugeTypeController__factory.ts +341 -0
- package/typechain-types/factories/TokenErrorReporter__factory.ts +89 -0
- package/typechain-types/factories/UnitrollerAdminStorage__factory.ts +128 -0
- package/typechain-types/factories/Unitroller__factory.ts +305 -0
- package/typechain-types/factories/VePendleCrosschain__factory.ts +727 -0
- package/typechain-types/factories/VePendleToken__factory.ts +494 -0
- package/typechain-types/factories/VePendle__factory.ts +800 -0
- package/typechain-types/factories/VotingController__factory.ts +610 -0
- package/typechain-types/factories/WETH9__factory.ts +342 -0
- package/typechain-types/factories/WhitePaperInterestRateModel__factory.ts +281 -0
- package/typechain-types/factories/XPendle__factory.ts +473 -0
- package/typechain-types/hardhat.d.ts +72 -0
- package/typechain-types/index.ts +16 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
VotingController,
|
|
15
|
+
VotingControllerInterface,
|
|
16
|
+
} from "../VotingController";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "contract vePendle",
|
|
23
|
+
name: "_votingPendle",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "_mainchainId",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint256",
|
|
33
|
+
name: "_startTime",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
stateMutability: "nonpayable",
|
|
38
|
+
type: "constructor",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
anonymous: false,
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "previousOwner",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: true,
|
|
51
|
+
internalType: "address",
|
|
52
|
+
name: "newOwner",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "OwnershipTransferred",
|
|
57
|
+
type: "event",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "EPOCH_DURATION",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "uint256",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "uint256",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "VOTING_PRECISION",
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
stateMutability: "view",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "chainId",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "address",
|
|
94
|
+
name: "gauge",
|
|
95
|
+
type: "address",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "addNewGauge",
|
|
99
|
+
outputs: [],
|
|
100
|
+
stateMutability: "nonpayable",
|
|
101
|
+
type: "function",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
inputs: [],
|
|
105
|
+
name: "broadcastVotingResults",
|
|
106
|
+
outputs: [],
|
|
107
|
+
stateMutability: "payable",
|
|
108
|
+
type: "function",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "chains",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "addr",
|
|
123
|
+
type: "address",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "uint256",
|
|
127
|
+
name: "chainId",
|
|
128
|
+
type: "uint256",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
stateMutability: "view",
|
|
132
|
+
type: "function",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
internalType: "address",
|
|
138
|
+
name: "",
|
|
139
|
+
type: "address",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "uint256",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "uint256",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
name: "expiredVotes",
|
|
148
|
+
outputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
stateMutability: "view",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [],
|
|
160
|
+
name: "gaugeControllerMainchain",
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
stateMutability: "view",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
internalType: "uint256",
|
|
180
|
+
name: "",
|
|
181
|
+
type: "uint256",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
name: "gaugeInChains",
|
|
185
|
+
outputs: [
|
|
186
|
+
{
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
stateMutability: "view",
|
|
193
|
+
type: "function",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "address",
|
|
199
|
+
name: "",
|
|
200
|
+
type: "address",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
name: "gaugeLines",
|
|
204
|
+
outputs: [
|
|
205
|
+
{
|
|
206
|
+
internalType: "uint256",
|
|
207
|
+
name: "slope",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint256",
|
|
212
|
+
name: "bias",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
stateMutability: "view",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "uint256",
|
|
223
|
+
name: "epochId",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "getEpochEndingTimestamp",
|
|
228
|
+
outputs: [
|
|
229
|
+
{
|
|
230
|
+
internalType: "uint256",
|
|
231
|
+
name: "",
|
|
232
|
+
type: "uint256",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
stateMutability: "view",
|
|
236
|
+
type: "function",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
inputs: [
|
|
240
|
+
{
|
|
241
|
+
internalType: "uint256",
|
|
242
|
+
name: "timestamp",
|
|
243
|
+
type: "uint256",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
name: "getEpochId",
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
internalType: "uint256",
|
|
250
|
+
name: "",
|
|
251
|
+
type: "uint256",
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
stateMutability: "view",
|
|
255
|
+
type: "function",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
internalType: "uint256",
|
|
261
|
+
name: "epochId",
|
|
262
|
+
type: "uint256",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
name: "getEpochStartingTimestamp",
|
|
266
|
+
outputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "uint256",
|
|
269
|
+
name: "",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
stateMutability: "view",
|
|
274
|
+
type: "function",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
inputs: [
|
|
278
|
+
{
|
|
279
|
+
internalType: "address",
|
|
280
|
+
name: "",
|
|
281
|
+
type: "address",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
name: "lastGaugeEpoch",
|
|
285
|
+
outputs: [
|
|
286
|
+
{
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
stateMutability: "view",
|
|
293
|
+
type: "function",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
inputs: [],
|
|
297
|
+
name: "mainchainId",
|
|
298
|
+
outputs: [
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint256",
|
|
301
|
+
name: "",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "view",
|
|
306
|
+
type: "function",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
inputs: [],
|
|
310
|
+
name: "messageBus",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "contract IMessageBus",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
stateMutability: "view",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [],
|
|
323
|
+
name: "owner",
|
|
324
|
+
outputs: [
|
|
325
|
+
{
|
|
326
|
+
internalType: "address",
|
|
327
|
+
name: "",
|
|
328
|
+
type: "address",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
stateMutability: "view",
|
|
332
|
+
type: "function",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
inputs: [],
|
|
336
|
+
name: "renounceOwnership",
|
|
337
|
+
outputs: [],
|
|
338
|
+
stateMutability: "nonpayable",
|
|
339
|
+
type: "function",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
inputs: [
|
|
343
|
+
{
|
|
344
|
+
internalType: "contract IMessageBus",
|
|
345
|
+
name: "_messageBus",
|
|
346
|
+
type: "address",
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
name: "setCelerMessageBus",
|
|
350
|
+
outputs: [],
|
|
351
|
+
stateMutability: "nonpayable",
|
|
352
|
+
type: "function",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
inputs: [
|
|
356
|
+
{
|
|
357
|
+
internalType: "address",
|
|
358
|
+
name: "newController",
|
|
359
|
+
type: "address",
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
name: "setGaugeControllerMainchain",
|
|
363
|
+
outputs: [],
|
|
364
|
+
stateMutability: "nonpayable",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [],
|
|
369
|
+
name: "startTime",
|
|
370
|
+
outputs: [
|
|
371
|
+
{
|
|
372
|
+
internalType: "uint256",
|
|
373
|
+
name: "",
|
|
374
|
+
type: "uint256",
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
stateMutability: "view",
|
|
378
|
+
type: "function",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
inputs: [
|
|
382
|
+
{
|
|
383
|
+
internalType: "uint256",
|
|
384
|
+
name: "chainId",
|
|
385
|
+
type: "uint256",
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
internalType: "address",
|
|
389
|
+
name: "controller",
|
|
390
|
+
type: "address",
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
name: "supportNewChain",
|
|
394
|
+
outputs: [],
|
|
395
|
+
stateMutability: "nonpayable",
|
|
396
|
+
type: "function",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
inputs: [
|
|
400
|
+
{
|
|
401
|
+
internalType: "address",
|
|
402
|
+
name: "newOwner",
|
|
403
|
+
type: "address",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
name: "transferOwnership",
|
|
407
|
+
outputs: [],
|
|
408
|
+
stateMutability: "nonpayable",
|
|
409
|
+
type: "function",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
inputs: [
|
|
413
|
+
{
|
|
414
|
+
internalType: "address",
|
|
415
|
+
name: "gauge",
|
|
416
|
+
type: "address",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
name: "updateGauge",
|
|
420
|
+
outputs: [
|
|
421
|
+
{
|
|
422
|
+
components: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "uint256",
|
|
425
|
+
name: "slope",
|
|
426
|
+
type: "uint256",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
name: "bias",
|
|
431
|
+
type: "uint256",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
internalType: "struct Line",
|
|
435
|
+
name: "gaugeVotes",
|
|
436
|
+
type: "tuple",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
stateMutability: "nonpayable",
|
|
440
|
+
type: "function",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
inputs: [
|
|
444
|
+
{
|
|
445
|
+
internalType: "address",
|
|
446
|
+
name: "",
|
|
447
|
+
type: "address",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
internalType: "address",
|
|
451
|
+
name: "",
|
|
452
|
+
type: "address",
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
name: "userGaugeVotes",
|
|
456
|
+
outputs: [
|
|
457
|
+
{
|
|
458
|
+
components: [
|
|
459
|
+
{
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "slope",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
internalType: "uint256",
|
|
466
|
+
name: "bias",
|
|
467
|
+
type: "uint256",
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
internalType: "struct Line",
|
|
471
|
+
name: "votingLine",
|
|
472
|
+
type: "tuple",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
internalType: "uint256",
|
|
476
|
+
name: "votingWeight",
|
|
477
|
+
type: "uint256",
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
stateMutability: "view",
|
|
481
|
+
type: "function",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
inputs: [
|
|
485
|
+
{
|
|
486
|
+
internalType: "address",
|
|
487
|
+
name: "",
|
|
488
|
+
type: "address",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
name: "userVotedWeight",
|
|
492
|
+
outputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: "uint256",
|
|
495
|
+
name: "",
|
|
496
|
+
type: "uint256",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
stateMutability: "view",
|
|
500
|
+
type: "function",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
inputs: [
|
|
504
|
+
{
|
|
505
|
+
internalType: "address",
|
|
506
|
+
name: "user",
|
|
507
|
+
type: "address",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
internalType: "address",
|
|
511
|
+
name: "gauge",
|
|
512
|
+
type: "address",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
internalType: "uint256",
|
|
516
|
+
name: "newWeight",
|
|
517
|
+
type: "uint256",
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
name: "voteForGauge",
|
|
521
|
+
outputs: [],
|
|
522
|
+
stateMutability: "nonpayable",
|
|
523
|
+
type: "function",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
inputs: [],
|
|
527
|
+
name: "votingPendle",
|
|
528
|
+
outputs: [
|
|
529
|
+
{
|
|
530
|
+
internalType: "contract vePendle",
|
|
531
|
+
name: "",
|
|
532
|
+
type: "address",
|
|
533
|
+
},
|
|
534
|
+
],
|
|
535
|
+
stateMutability: "view",
|
|
536
|
+
type: "function",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
stateMutability: "payable",
|
|
540
|
+
type: "receive",
|
|
541
|
+
},
|
|
542
|
+
];
|
|
543
|
+
|
|
544
|
+
const _bytecode =
|
|
545
|
+
"0x60e060405234801561001057600080fd5b5060405162001ba838038062001ba8833981016040819052610031916100a5565b8061003b33610055565b608052506001600160a01b0390911660a05260c0526100e8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000606084860312156100ba57600080fd5b83516001600160a01b03811681146100d157600080fd5b602085015160409095015190969495509392505050565b60805160a05160c051611a66620001426000396000818161034601526112d50152600081816104460152818161075801526109990152600081816104bc015281816106d401528181610cb50152610d200152611a666000f3fe6080604052600436106101a05760003560e01c806362a2754b116100ec578063914bf7981161008a578063a969180f11610064578063a969180f1461055b578063d29d92f5146105a4578063df2773c3146105dc578063f2fde38b146105fc57600080fd5b8063914bf7981461051c578063a1a227fa14610524578063a70b9f0c1461054457600080fd5b8063715018a6116100c6578063715018a61461049557806378e97925146104aa5780638da5cb5b146104de5780638e7d327d146104fc57600080fd5b806362a2754b146104075780636b23f885146104345780636ecbe38a1461046857600080fd5b806343a3a3971161015957806351f8e47b1161013357806351f8e47b146103685780635303548b14610388578063550325b5146103a85780635dae80f7146103e757600080fd5b806343a3a397146102e75780634b0d7c3c1461030757806351e52ce71461033457600080fd5b8063107a28af146101ac57806323342c38146101d757806327c8e9b6146101f957806330b162a81461021957806334a9efa1146102515780633f841e691461027157600080fd5b366101a757005b600080fd5b3480156101b857600080fd5b506101c4633b9aca0081565b6040519081526020015b60405180910390f35b3480156101e357600080fd5b506101f76101f23660046116a3565b61061c565b005b34801561020557600080fd5b506101c46102143660046116c0565b610671565b34801561022557600080fd5b506102396102343660046116d9565b6106fe565b6040516001600160a01b0390911681526020016101ce565b34801561025d57600080fd5b506101f761026c3660046116fb565b610736565b34801561027d57600080fd5b506102c761028c36600461173c565b600460209081526000928352604080842082529183529181902081518083019092528054825260018101549282019290925260029091015482565b6040805183518152602093840151938101939093528201526060016101ce565b3480156102f357600080fd5b506101c46103023660046116c0565b610b61565b34801561031357600080fd5b506101c46103223660046116a3565b60036020526000908152604090205481565b34801561034057600080fd5b506101c47f000000000000000000000000000000000000000000000000000000000000000081565b34801561037457600080fd5b506101f7610383366004611775565b610bb2565b34801561039457600080fd5b506101c46103a33660046116c0565b610cb1565b3480156103b457600080fd5b506103c86103c33660046116c0565b610d5a565b604080516001600160a01b0390931683526020830191909152016101ce565b3480156103f357600080fd5b506101f7610402366004611775565b610d92565b34801561041357600080fd5b506101c46104223660046116a3565b60066020526000908152604090205481565b34801561044057600080fd5b506102397f000000000000000000000000000000000000000000000000000000000000000081565b34801561047457600080fd5b506104886104833660046116a3565b610ee3565b6040516101ce919061179a565b3480156104a157600080fd5b506101f7611002565b3480156104b657600080fd5b506101c47f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ea57600080fd5b506000546001600160a01b0316610239565b34801561050857600080fd5b50600254610239906001600160a01b031681565b6101f7611038565b34801561053057600080fd5b50600154610239906001600160a01b031681565b34801561055057600080fd5b506101c462093a8081565b34801561056757600080fd5b5061058f6105763660046116a3565b6005602052600090815260409020805460019091015482565b604080519283526020830191909152016101ce565b3480156105b057600080fd5b506101c46105bf3660046117b1565b600760209081526000928352604080842090915290825290205481565b3480156105e857600080fd5b506101f76105f73660046116a3565b611389565b34801561060857600080fd5b506101f76106173660046116a3565b6113d5565b6000546001600160a01b0316331461064f5760405162461bcd60e51b8152600401610646906117dd565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008082116106b55760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610646565b62093a806106c4600184611828565b6106ce919061183f565b6106f8907f000000000000000000000000000000000000000000000000000000000000000061185e565b92915050565b6009602052816000526040600020818154811061071a57600080fd5b6000918252602090912001546001600160a01b03169150829050565b6040516370a0823160e01b81526001600160a01b0384811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b15801561079c57600080fd5b505afa1580156107b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d49190611876565b116108115760405162461bcd60e51b815260206004820152600d60248201526c5a45524f5f564550454e444c4560981b6044820152606401610646565b600061081c83610ee3565b6001600160a01b03808616600090815260046020908152604080832093881683529281528282208351608081018552815494810194855260018201546060820152848152600290910154918101919091529293509061087a90611470565b11156108db57805161088d90839061147c565b8151516001600160a01b0386166000908152600760205260408120845193955091926108b8906114bf565b815260200190815260200160002060008282546108d59190611828565b90915550505b6020808201516001600160a01b03861660009081526003909252604090912054849161090691611828565b610910919061185e565b6001600160a01b0385166000908152600360205260409020819055633b9aca0010156109755760405162461bcd60e51b81526020600482015260146024820152731593d5125391d7d5d15251d21517d15610d1515160621b6044820152606401610646565b604051630ac2f4dd60e31b81526001600160a01b03868116600483015260009182917f00000000000000000000000000000000000000000000000000000000000000001690635617a6e890602401604080518083038186803b1580156109da57600080fd5b505afa1580156109ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a12919061188f565b90925090506000610a2383836118b3565b90506000633b9aca00610a36888661183f565b610a4091906118b3565b9050600060405180604001604052808381526020018484610a61919061183f565b8152509050604051806040016040528082815260200189815250600460008c6001600160a01b03166001600160a01b0316815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000016000820151816000015560208201518160010155505060208201518160020155905050610b0281886114d290919063ffffffff16565b6001600160a01b038a16600090815260056020908152604080832084518155938201516001909401939093558351600782528383208784529091529181208054909190610b5090849061185e565b909155505050505050505050505050565b6000808211610ba55760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610646565b6106ce62093a808361183f565b6000546001600160a01b03163314610bdc5760405162461bcd60e51b8152600401610646906117dd565b6000805b600854811015610c2f578360088281548110610bfe57610bfe6118d5565b9060005260206000209060020201600101541415610c1f5760019150610c2f565b610c28816118eb565b9050610be0565b5080610c715760405162461bcd60e51b81526020600482015260116024820152702aa729aaa82827a92a22a22fa1a420a4a760791b6044820152606401610646565b50600091825260096020908152604083208054600181018255908452922090910180546001600160a01b0319166001600160a01b03909216919091179055565b60007f0000000000000000000000000000000000000000000000000000000000000000821015610d175760405162461bcd60e51b81526020600482015260116024820152700494e56414c49445f54494d455354414d5607c1b6044820152606401610646565b62093a80610d457f000000000000000000000000000000000000000000000000000000000000000084611828565b610d4f91906118b3565b6106f890600161185e565b60088181548110610d6a57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000546001600160a01b03163314610dbc5760405162461bcd60e51b8152600401610646906117dd565b60005b600854811015610e4c578260088281548110610ddd57610ddd6118d5565b9060005260206000209060020201600101541415610e3c578160088281548110610e0957610e096118d5565b6000918252602090912060029091020180546001600160a01b0319166001600160a01b0392909216919091179055505050565b610e45816118eb565b9050610dbf565b50604080518082019091526001600160a01b039182168152602081019283526008805460018101825560009190915290517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600290920291820180546001600160a01b031916919093161790915590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee490910155565b60408051808201909152600080825260208201526000610f0242610cb1565b6001600160a01b038416600081815260056020908152604080832081518083018352815481526001909101548184015293835260069091529020549093509091505b81811015610fb9576000610f5782610b61565b6001600160a01b0386166000908152600760209081526040808320848452825291829020548251808401909352808352929350610fa491908101610f9b858561183f565b9052869061147c565b9450505080610fb2906118eb565b9050610f44565b50610fc5600182611828565b6001600160a01b03909316600090815260066020908152604080832095909555600581529390208251815592820151600190930192909255919050565b6000546001600160a01b0316331461102c5760405162461bcd60e51b8152600401610646906117dd565b611036600061150a565b565b60008061104761030242610cb1565b905060005b6008548110156113845760006008828154811061106b5761106b6118d5565b60009182526020808320604080518082018252600290940290910180546001600160a01b031684526001015483830181905280855260098352818520805483518186028101860190945280845294965090949391929091908301828280156110fc57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110de575b505050505090506000815167ffffffffffffffff81111561111f5761111f611906565b604051908082528060200260200182016040528015611148578160200160208202803683370190505b50905060005b82518110156111e157600083828151811061116b5761116b6118d5565b6020908102919091018101516001600160a01b038116600090815260058352604090819020815180830190925280548252600101549281019290925291506111b3908961155a565b8383815181106111c5576111c56118d5565b6020908102919091010152506111da816118eb565b905061114e565b50600082826040516020016111f792919061191c565b60408051601f198184030181529082905260015463299aee5160e11b83529092506001600160a01b031690635335dca2906112369084906004016119ed565b60206040518083038186803b15801561124e57600080fd5b505afa158015611262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112869190611876565b611290908961185e565b9750873410156112d35760405162461bcd60e51b815260206004820152600e60248201526d4e4f545f454e4f5547485f46454560901b6044820152606401610646565b7f00000000000000000000000000000000000000000000000000000000000000008414611309576113048582611597565b61136e565b600254604051639eb8d23560e01b81526001600160a01b0390911690639eb8d2359061133b908690869060040161191c565b600060405180830381600087803b15801561135557600080fd5b505af1158015611369573d6000803e3d6000fd5b505050505b50505050508061137d906118eb565b905061104c565b505050565b6000546001600160a01b031633146113b35760405162461bcd60e51b8152600401610646906117dd565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113ff5760405162461bcd60e51b8152600401610646906117dd565b6001600160a01b0381166114645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610646565b61146d8161150a565b50565b60006106f8824261155a565b60408051808201909152600080825260208201528151835161149e9190611828565b8152602080830151908401516114b49190611828565b602082015292915050565b805160208201516000916106f8916118b3565b6040805180820190915260008082526020820152815183516114f4919061185e565b8152602080830151908401516114b4919061185e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b815160009061156a90839061183f565b8360200151106106f857825161158190839061183f565b83602001516115909190611828565b9392505050565b60015460405163299aee5160e11b81526000916001600160a01b031690635335dca2906115c89085906004016119ed565b60206040518083038186803b1580156115e057600080fd5b505afa1580156115f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116189190611876565b60015484516020860151604051634f9e72ad60e11b81529394506001600160a01b0390921692639f3ce55a928592611657929091908890600401611a00565b6000604051808303818588803b15801561167057600080fd5b505af1158015611684573d6000803e3d6000fd5b5050505050505050565b6001600160a01b038116811461146d57600080fd5b6000602082840312156116b557600080fd5b81356115908161168e565b6000602082840312156116d257600080fd5b5035919050565b600080604083850312156116ec57600080fd5b50508035926020909101359150565b60008060006060848603121561171057600080fd5b833561171b8161168e565b9250602084013561172b8161168e565b929592945050506040919091013590565b6000806040838503121561174f57600080fd5b823561175a8161168e565b9150602083013561176a8161168e565b809150509250929050565b6000806040838503121561178857600080fd5b82359150602083013561176a8161168e565b8151815260208083015190820152604081016106f8565b600080604083850312156117c457600080fd5b82356117cf8161168e565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561183a5761183a611812565b500390565b600081600019048311821515161561185957611859611812565b500290565b6000821982111561187157611871611812565b500190565b60006020828403121561188857600080fd5b5051919050565b600080604083850312156118a257600080fd5b505080516020909101519092909150565b6000826118d057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156118ff576118ff611812565b5060010190565b634e487b7160e01b600052604160045260246000fd5b604080825283519082018190526000906020906060840190828701845b8281101561195e5781516001600160a01b031684529284019290840190600101611939565b5050508381038285015284518082528583019183019060005b8181101561199357835183529284019291840191600101611977565b5090979650505050505050565b6000815180845260005b818110156119c6576020818501810151868301820152016119aa565b818111156119d8576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061159060208301846119a0565b60018060a01b0384168152826020820152606060408201526000611a2760608301846119a0565b9594505050505056fea2646970667358221220a08677e45f3dbbe1ea460b1e195e2c02dac01d0e71c90597f9034a6815882c5964736f6c63430008090033";
|
|
546
|
+
|
|
547
|
+
type VotingControllerConstructorParams =
|
|
548
|
+
| [signer?: Signer]
|
|
549
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
550
|
+
|
|
551
|
+
const isSuperArgs = (
|
|
552
|
+
xs: VotingControllerConstructorParams
|
|
553
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
554
|
+
|
|
555
|
+
export class VotingController__factory extends ContractFactory {
|
|
556
|
+
constructor(...args: VotingControllerConstructorParams) {
|
|
557
|
+
if (isSuperArgs(args)) {
|
|
558
|
+
super(...args);
|
|
559
|
+
} else {
|
|
560
|
+
super(_abi, _bytecode, args[0]);
|
|
561
|
+
}
|
|
562
|
+
this.contractName = "VotingController";
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
deploy(
|
|
566
|
+
_votingPendle: string,
|
|
567
|
+
_mainchainId: BigNumberish,
|
|
568
|
+
_startTime: BigNumberish,
|
|
569
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
570
|
+
): Promise<VotingController> {
|
|
571
|
+
return super.deploy(
|
|
572
|
+
_votingPendle,
|
|
573
|
+
_mainchainId,
|
|
574
|
+
_startTime,
|
|
575
|
+
overrides || {}
|
|
576
|
+
) as Promise<VotingController>;
|
|
577
|
+
}
|
|
578
|
+
getDeployTransaction(
|
|
579
|
+
_votingPendle: string,
|
|
580
|
+
_mainchainId: BigNumberish,
|
|
581
|
+
_startTime: BigNumberish,
|
|
582
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
583
|
+
): TransactionRequest {
|
|
584
|
+
return super.getDeployTransaction(
|
|
585
|
+
_votingPendle,
|
|
586
|
+
_mainchainId,
|
|
587
|
+
_startTime,
|
|
588
|
+
overrides || {}
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
attach(address: string): VotingController {
|
|
592
|
+
return super.attach(address) as VotingController;
|
|
593
|
+
}
|
|
594
|
+
connect(signer: Signer): VotingController__factory {
|
|
595
|
+
return super.connect(signer) as VotingController__factory;
|
|
596
|
+
}
|
|
597
|
+
static readonly contractName: "VotingController";
|
|
598
|
+
public readonly contractName: "VotingController";
|
|
599
|
+
static readonly bytecode = _bytecode;
|
|
600
|
+
static readonly abi = _abi;
|
|
601
|
+
static createInterface(): VotingControllerInterface {
|
|
602
|
+
return new utils.Interface(_abi) as VotingControllerInterface;
|
|
603
|
+
}
|
|
604
|
+
static connect(
|
|
605
|
+
address: string,
|
|
606
|
+
signerOrProvider: Signer | Provider
|
|
607
|
+
): VotingController {
|
|
608
|
+
return new Contract(address, _abi, signerOrProvider) as VotingController;
|
|
609
|
+
}
|
|
610
|
+
}
|