@solana/spl-governance
Advanced tools
Comparing version 0.3.25 to 0.3.26
@@ -205,3 +205,3 @@ import { PublicKey } from '@solana/web3.js'; | ||
minInstructionHoldUpTime: number; | ||
maxVotingTime: number; | ||
baseVotingTime: number; | ||
communityVoteTipping: VoteTipping; | ||
@@ -219,3 +219,3 @@ minCouncilTokensToCreateProposal: BN; | ||
minInstructionHoldUpTime: number; | ||
maxVotingTime: number; | ||
baseVotingTime: number; | ||
communityVoteTipping?: VoteTipping; | ||
@@ -222,0 +222,0 @@ minCouncilTokensToCreateProposal: BN; |
@@ -383,3 +383,3 @@ "use strict"; | ||
this.minInstructionHoldUpTime = args.minInstructionHoldUpTime; | ||
this.maxVotingTime = args.maxVotingTime; | ||
this.baseVotingTime = args.baseVotingTime; | ||
this.communityVoteTipping = (_a = args.communityVoteTipping) !== null && _a !== void 0 ? _a : VoteTipping.Strict; | ||
@@ -637,7 +637,8 @@ this.minCouncilTokensToCreateProposal = | ||
var unixTimestampInSeconds = Date.now() / 1000; | ||
return this.isPreVotingState() | ||
? governance.config.maxVotingTime | ||
var baseVotingTime = this.isPreVotingState() | ||
? governance.config.baseVotingTime | ||
: ((_b = (_a = this.votingAt) === null || _a === void 0 ? void 0 : _a.toNumber()) !== null && _b !== void 0 ? _b : 0) + | ||
governance.config.maxVotingTime - | ||
governance.config.baseVotingTime - | ||
unixTimestampInSeconds; | ||
return baseVotingTime + governance.config.votingCoolOffTime; | ||
}; | ||
@@ -644,0 +645,0 @@ Proposal.prototype.hasVoteTimeEnded = function (governance) { |
@@ -244,3 +244,3 @@ "use strict"; | ||
['minInstructionHoldUpTime', 'u32'], | ||
['maxVotingTime', 'u32'], | ||
['baseVotingTime', 'u32'], | ||
['communityVoteTipping', 'u8'], | ||
@@ -247,0 +247,0 @@ ['councilVoteThreshold', 'VoteThreshold'], |
{ | ||
"name": "@solana/spl-governance", | ||
"version": "0.3.25", | ||
"version": "0.3.26", | ||
"description": "SPL Governance Client API", | ||
@@ -5,0 +5,0 @@ "author": "Solana Maintainers <maintainers@solana.foundation>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
645543
9306