UNPKG

@swaptoshi/governance-module

Version:

Klayr governance on-chain module

54 lines 1.97 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultConfig = exports.DEFAULT_MAX_BOOST_DURATION_DAY = exports.DEFAULT_VOTE_DURATION_DAY = void 0; const cryptography = require("@klayr/cryptography"); const types_1 = require("../types"); const address_1 = require("./address"); exports.DEFAULT_VOTE_DURATION_DAY = 28; exports.DEFAULT_MAX_BOOST_DURATION_DAY = 720; const BLOCK_TIME = 3; const DEFAULT_VOTE_DURATION = (exports.DEFAULT_VOTE_DURATION_DAY * 24 * 3600) / BLOCK_TIME; const MAX_BOOST_DURATION = (exports.DEFAULT_MAX_BOOST_DURATION_DAY * 24 * 3600) / BLOCK_TIME; const TREASURY_ADDRESS = cryptography.address.getKlayr32AddressFromAddress(address_1.DEFAULT_TREASURY_ADDRESS); exports.defaultConfig = { governGovernanceConfig: true, proposalCreationMinBalance: (10000 * 10 ** 8).toString(), proposalCreationDeposit: (1000 * 10 ** 8).toString(), maxProposalActions: -1, votingDelayDuration: 0, voteDuration: DEFAULT_VOTE_DURATION, quorumDuration: DEFAULT_VOTE_DURATION, executionDuration: DEFAULT_VOTE_DURATION, quorumTreshold: '5%', quorumMode: types_1.QuorumMode.FOR_AGAINST_ABSTAIN, depositPoolAddress: TREASURY_ADDRESS, enableTurnoutBias: false, enableBoosting: false, maxBoostDuration: MAX_BOOST_DURATION, boostFactor: 200, treasuryAddress: TREASURY_ADDRESS, treasuryReward: { tokenID: '', offset: 1, distance: 1, blockRewardTaxBracket: [], mintBracket: [], }, minTransactionFee: { createProposal: '0', vote: '0', boostVote: '0', delegateVote: '0', revokeDelegatedVote: '0', setProposalAttributes: '0', }, baseFee: { createProposal: (10 * 10 ** 8).toString(), vote: '0', boostVote: '0', delegateVote: '0', revokeDelegatedVote: '0', setProposalAttributes: '0', }, }; //# sourceMappingURL=config.js.map