@orionprotocol/contracts
Version:
Orion Protocol contracts typings
1,280 lines (1,279 loc) • 30.9 kB
JavaScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface } from "ethers";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "address",
name: "veORN_",
type: "address",
},
{
internalType: "address[]",
name: "_rewardTokens",
type: "address[]",
},
{
internalType: "address[]",
name: "_rewardManagers",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_rewardRatesManual",
type: "uint256[]",
},
{
internalType: "address[]",
name: "_gaugeControllers",
type: "address[]",
},
{
internalType: "address[]",
name: "_rewardDistributors",
type: "address[]",
},
{
internalType: "address",
name: "_stakingToken",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "LockedAdditional",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "new_secs",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "new_start_ts",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "new_end_ts",
type: "uint256",
},
],
name: "LockedLonger",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "oldOwner",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnerChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnerNominated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "token_address",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "destination_address",
type: "address",
},
],
name: "RewardPaid",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "secs",
type: "uint256",
},
{
indexed: false,
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
indexed: false,
internalType: "address",
name: "source_address",
type: "address",
},
],
name: "StakeLocked",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "liquidity",
type: "uint256",
},
{
indexed: false,
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
indexed: false,
internalType: "address",
name: "destination_address",
type: "address",
},
],
name: "WithdrawLocked",
type: "event",
},
{
inputs: [],
name: "acceptOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "calcCurCombinedWeight",
outputs: [
{
internalType: "uint256",
name: "old_combined_weight",
type: "uint256",
},
{
internalType: "uint256",
name: "new_veorn_multiplier",
type: "uint256",
},
{
internalType: "uint256",
name: "new_combined_weight",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
{
internalType: "uint256",
name: "stake_idx",
type: "uint256",
},
],
name: "calcCurrLockMultiplier",
outputs: [
{
internalType: "uint256",
name: "midpoint_lock_multiplier",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "reward_token_address",
type: "address",
},
{
internalType: "address",
name: "new_manager_address",
type: "address",
},
],
name: "changeTokenManager",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "combinedWeightOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "earned",
outputs: [
{
internalType: "uint256[]",
name: "new_earned",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "fraxPerLPStored",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getAllRewardTokens",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "addr",
type: "address",
},
],
name: "getProxyFor",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "destination_address",
type: "address",
},
],
name: "getReward",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "destination_address",
type: "address",
},
{
internalType: "bool",
name: "claim_extra_too",
type: "bool",
},
],
name: "getReward2",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "destination_address",
type: "address",
},
],
name: "getRewardExtraLogic",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getRewardForDuration",
outputs: [
{
internalType: "uint256[]",
name: "rewards_per_duration_arr",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "caller_addr",
type: "address",
},
{
internalType: "address",
name: "reward_token_addr",
type: "address",
},
],
name: "isTokenManagerFor",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "lastRewardClaimTime",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lastUpdateTime",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
internalType: "uint256",
name: "addl_liq",
type: "uint256",
},
],
name: "lockAdditional",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
internalType: "uint256",
name: "new_ending_ts",
type: "uint256",
},
],
name: "lockLonger",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "secs",
type: "uint256",
},
],
name: "lockMultiplier",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lock_max_multiplier",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lock_time_for_max_multiplier",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lock_time_min",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "lockedLiquidityOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "lockedStakes",
outputs: [
{
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
internalType: "uint256",
name: "start_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "liquidity",
type: "uint256",
},
{
internalType: "uint256",
name: "ending_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "lock_multiplier",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "lockedStakesOf",
outputs: [
{
components: [
{
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
internalType: "uint256",
name: "start_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "liquidity",
type: "uint256",
},
{
internalType: "uint256",
name: "ending_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "lock_multiplier",
type: "uint256",
},
],
internalType: "struct OrionUnifiedFarm_ERC20.LockedStake[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "lockedStakesOfLength",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "stakeAmount",
type: "uint256",
},
],
name: "minVeORNForMaxBoost",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "nominateNewOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "nominatedOwner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "periodFinish",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "staker_address",
type: "address",
},
],
name: "proxyToggleStaker",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "proxy_lp_balances",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "tokenAddress",
type: "address",
},
{
internalType: "uint256",
name: "tokenAmount",
type: "uint256",
},
],
name: "recoverERC20",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "rewardManagers",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "token_idx",
type: "uint256",
},
],
name: "rewardRates",
outputs: [
{
internalType: "uint256",
name: "rwd_rate",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "rewardTokenAddrToIdx",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rewardsDuration",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rewardsPerToken",
outputs: [
{
internalType: "uint256[]",
name: "newRewardsPerTokenStored",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[5]",
name: "_misc_vars",
type: "uint256[5]",
},
],
name: "setMiscVariables",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "_stakingPaused",
type: "bool",
},
{
internalType: "bool",
name: "_withdrawalsPaused",
type: "bool",
},
{
internalType: "bool",
name: "_rewardsCollectionPaused",
type: "bool",
},
],
name: "setPauses",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "reward_token_address",
type: "address",
},
{
internalType: "uint256",
name: "_new_rate",
type: "uint256",
},
{
internalType: "address",
name: "_gauge_controller_address",
type: "address",
},
{
internalType: "address",
name: "_rewards_distributor_address",
type: "address",
},
],
name: "setRewardVars",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "liquidity",
type: "uint256",
},
{
internalType: "uint256",
name: "secs",
type: "uint256",
},
],
name: "stakeLocked",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "proxy_address",
type: "address",
},
],
name: "stakerSetVeORNProxy",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "staker_designated_proxies",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "stakesUnlocked",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "stakingToken",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "sync",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "force_update",
type: "bool",
},
],
name: "sync_gauge_weights",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_proxy_addr",
type: "address",
},
],
name: "toggleValidVeORNProxy",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "totalCombinedWeight",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalLiquidityLocked",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "unlockStakes",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
{
internalType: "bool",
name: "sync_too",
type: "bool",
},
],
name: "updateRewardAndBalance",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "veORN",
outputs: [
{
internalType: "contract IveToken",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "veORNMultiplier",
outputs: [
{
internalType: "uint256",
name: "veorn_multiplier",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "veorn_boost_scale_factor",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "veorn_max_multiplier",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "kek_id",
type: "bytes32",
},
{
internalType: "address",
name: "destination_address",
type: "address",
},
],
name: "withdrawLocked",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
class OrionUnifiedFarm_ERC20__factory {
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
}
OrionUnifiedFarm_ERC20__factory.abi = _abi;
export { OrionUnifiedFarm_ERC20__factory };