@dydxfoundation/governance
Version:
dYdX governance smart contracts
78 lines (77 loc) • 3.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Stake = exports.GovernanceVote = exports.ProtocolAction = exports.eEthereumTxType = exports.ChainId = exports.Network = exports.Market = exports.InterestRate = exports.UserCooldownStatus = exports.DelegationType = void 0;
var DelegationType;
(function (DelegationType) {
DelegationType[DelegationType["VOTING_POWER"] = 0] = "VOTING_POWER";
DelegationType[DelegationType["PROPOSITION_POWER"] = 1] = "PROPOSITION_POWER";
})(DelegationType = exports.DelegationType || (exports.DelegationType = {}));
var UserCooldownStatus;
(function (UserCooldownStatus) {
// cooldown was not initiated for user's current staked funds
UserCooldownStatus[UserCooldownStatus["COOLDOWN_NOT_INITIATED"] = 0] = "COOLDOWN_NOT_INITIATED";
// cooldown was initiated for user's current staked funds, but before
// start of unstake window
UserCooldownStatus[UserCooldownStatus["COOLDOWN_INITIATED"] = 1] = "COOLDOWN_INITIATED";
// within unstake window, user can unstake funds that went through cooldown
UserCooldownStatus[UserCooldownStatus["WITHIN_UNSTAKE_WINDOW"] = 2] = "WITHIN_UNSTAKE_WINDOW";
// after unstake window, user cannot unstake funds and must re-initiate cooldown
UserCooldownStatus[UserCooldownStatus["AFTER_UNSTAKE_WINDOW"] = 3] = "AFTER_UNSTAKE_WINDOW";
})(UserCooldownStatus = exports.UserCooldownStatus || (exports.UserCooldownStatus = {}));
/** InterestRate options */
var InterestRate;
(function (InterestRate) {
InterestRate["None"] = "None";
InterestRate["Stable"] = "Stable";
InterestRate["Variable"] = "Variable";
})(InterestRate = exports.InterestRate || (exports.InterestRate = {}));
var Market;
(function (Market) {
Market["Proto"] = "proto";
Market["AMM"] = "amm";
})(Market = exports.Market || (exports.Market = {}));
var Network;
(function (Network) {
Network["main"] = "main";
Network["ropsten"] = "ropsten";
Network["hardhat"] = "hardhat";
})(Network = exports.Network || (exports.Network = {}));
var ChainId;
(function (ChainId) {
ChainId[ChainId["main"] = 1] = "main";
ChainId[ChainId["ropsten"] = 3] = "ropsten";
ChainId[ChainId["hardhat"] = 31337] = "hardhat";
})(ChainId = exports.ChainId || (exports.ChainId = {}));
var eEthereumTxType;
(function (eEthereumTxType) {
eEthereumTxType["ERC20_APPROVAL"] = "ERC20_APPROVAL";
eEthereumTxType["GOVERNANCE_ACTION"] = "GOVERNANCE_ACTION";
eEthereumTxType["GOV_DELEGATION_ACTION"] = "GOV_DELEGATION_ACTION";
eEthereumTxType["LIQUIDITY_MODULE_ACTION"] = "LIQUIDITY_MODULE_ACTION";
eEthereumTxType["SAFETY_MODULE_ACTION"] = "SAFETY_MODULE_ACTION";
eEthereumTxType["MERKLE_DISTRIBUTOR_ACTION"] = "MERKLE_DISTRIBUTOR_ACTION";
eEthereumTxType["CLAIMS_PROXY_ACTION"] = "CLAIMS_PROXY_ACTION";
})(eEthereumTxType = exports.eEthereumTxType || (exports.eEthereumTxType = {}));
var ProtocolAction;
(function (ProtocolAction) {
ProtocolAction["default"] = "default";
ProtocolAction["withdraw"] = "withdraw";
ProtocolAction["deposit"] = "deposit";
ProtocolAction["liquidationCall"] = "liquidationCall";
ProtocolAction["liquidationFlash"] = "liquidationFlash";
ProtocolAction["repay"] = "repay";
ProtocolAction["swapCollateral"] = "swapCollateral";
ProtocolAction["repayCollateral"] = "repayCollateral";
ProtocolAction["withdrawETH"] = "withdrawETH";
ProtocolAction["borrowETH"] = "borrwoETH";
})(ProtocolAction = exports.ProtocolAction || (exports.ProtocolAction = {}));
var GovernanceVote;
(function (GovernanceVote) {
GovernanceVote[GovernanceVote["Abstain"] = 0] = "Abstain";
GovernanceVote[GovernanceVote["Yes"] = 1] = "Yes";
GovernanceVote[GovernanceVote["No"] = 2] = "No";
})(GovernanceVote = exports.GovernanceVote || (exports.GovernanceVote = {}));
var Stake;
(function (Stake) {
Stake["Dydx"] = "Dydx";
})(Stake = exports.Stake || (exports.Stake = {}));