@dydxfoundation/governance
Version:
dYdX governance smart contracts
25 lines (24 loc) • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DIP_6_IPFS_HASH = exports.SM_ROLE_HASHES = exports.LS_SHORTFALL_INDEX_BASE = exports.SM_EXCHANGE_RATE_BASE = exports.USDC_TOKEN_DECIMALS = exports.MAX_UINT_AMOUNT = exports.ZERO_ADDRESS = exports.ONE_ADDRESS = exports.ONE_DAY_BLOCKS = exports.ONE_DAY_SECONDS = void 0;
const types_1 = require("../types");
const util_1 = require("./util");
exports.ONE_DAY_SECONDS = 60 * 60 * 24;
exports.ONE_DAY_BLOCKS = 6570; // Assume 13s per block
exports.ONE_ADDRESS = '0x0000000000000000000000000000000000000001';
exports.ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
exports.MAX_UINT_AMOUNT = ('115792089237316195423570985008687907853269984665640564039457584007913129639935');
exports.USDC_TOKEN_DECIMALS = 6;
exports.SM_EXCHANGE_RATE_BASE = 1e18;
exports.LS_SHORTFALL_INDEX_BASE = 1e36;
exports.SM_ROLE_HASHES = [
types_1.Role.OWNER_ROLE,
types_1.Role.SLASHER_ROLE,
types_1.Role.EPOCH_PARAMETERS_ROLE,
types_1.Role.REWARDS_RATE_ROLE,
types_1.Role.CLAIM_OPERATOR_ROLE,
types_1.Role.STAKE_OPERATOR_ROLE,
].map(util_1.getRole);
// DIP_6_IPFS_HASH taken from the link below:
// https://github.com/dydxfoundation/dip/blob/master/content/ipfs-dips/DIP-6-Ipfs-hashes.json
exports.DIP_6_IPFS_HASH = '0xb659e2db02977540be8821312b75aa2e18d9e8ab60a2708b3d64e7fd5bc7c9bd';