@solana/spl-governance
Advanced tools
Comparing version 0.3.11 to 0.3.12
@@ -224,4 +224,2 @@ import { PublicKey } from '@solana/web3.js'; | ||
} | ||
export declare class GovernanceConfigArgs extends GovernanceConfig { | ||
} | ||
export declare class Governance { | ||
@@ -228,0 +226,0 @@ accountType: GovernanceAccountType; |
@@ -15,3 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGoverningTokenHoldingAddress = exports.getNativeTreasuryAddress = exports.getProgramMetadataAddress = exports.ProgramMetadata = exports.getProposalTransactionAddress = exports.ProposalTransaction = exports.InstructionData = exports.AccountMetaData = exports.getVoteRecordAddress = exports.VoteRecord = exports.VoteWeight = exports.getSignatoryRecordAddress = exports.SignatoryRecord = exports.Proposal = exports.ProposalOption = exports.OptionVoteResult = exports.ProposalState = exports.getTokenOwnerRecordAddress = exports.TokenOwnerRecord = exports.Governance = exports.GovernanceConfigArgs = exports.GovernanceConfig = exports.getRealmConfigAddress = exports.RealmConfigAccount = exports.GoverningTokenConfig = exports.getTokenHoldingAddress = exports.Realm = exports.RealmConfig = exports.GoverningTokenConfigAccountArgs = exports.GoverningTokenConfigArgs = exports.GoverningTokenType = exports.RealmConfigArgs = exports.VoteType = exports.VoteTypeKind = exports.MintMaxVoteWeightSource = exports.MintMaxVoteWeightSourceType = exports.InstructionExecutionFlags = exports.InstructionExecutionStatus = exports.VoteTipping = exports.VoteThreshold = exports.VoteThresholdType = exports.getAccountProgramVersion = exports.getAccountTypes = exports.GovernanceAccountType = exports.GOVERNANCE_PROGRAM_SEED = void 0; | ||
exports.getGoverningTokenHoldingAddress = exports.getNativeTreasuryAddress = exports.getProgramMetadataAddress = exports.ProgramMetadata = exports.getProposalTransactionAddress = exports.ProposalTransaction = exports.InstructionData = exports.AccountMetaData = exports.getVoteRecordAddress = exports.VoteRecord = exports.VoteWeight = exports.getSignatoryRecordAddress = exports.SignatoryRecord = exports.Proposal = exports.ProposalOption = exports.OptionVoteResult = exports.ProposalState = exports.getTokenOwnerRecordAddress = exports.TokenOwnerRecord = exports.Governance = exports.GovernanceConfig = exports.getRealmConfigAddress = exports.RealmConfigAccount = exports.GoverningTokenConfig = exports.getTokenHoldingAddress = exports.Realm = exports.RealmConfig = exports.GoverningTokenConfigAccountArgs = exports.GoverningTokenConfigArgs = exports.GoverningTokenType = exports.RealmConfigArgs = exports.VoteType = exports.VoteTypeKind = exports.MintMaxVoteWeightSource = exports.MintMaxVoteWeightSourceType = exports.InstructionExecutionFlags = exports.InstructionExecutionStatus = exports.VoteTipping = exports.VoteThreshold = exports.VoteThresholdType = exports.getAccountProgramVersion = exports.getAccountTypes = exports.GovernanceAccountType = exports.GOVERNANCE_PROGRAM_SEED = void 0; | ||
const web3_js_1 = require("@solana/web3.js"); | ||
@@ -243,4 +243,3 @@ const bn_js_1 = __importDefault(require("bn.js")); | ||
this.useCommunityVoterWeightAddin = !!args.useCommunityVoterWeightAddin; | ||
this.useMaxCommunityVoterWeightAddin = | ||
!!args.useMaxCommunityVoterWeightAddin; | ||
this.useMaxCommunityVoterWeightAddin = !!args.useMaxCommunityVoterWeightAddin; | ||
this.reserved = args.reserved; | ||
@@ -323,6 +322,2 @@ } | ||
exports.GovernanceConfig = GovernanceConfig; | ||
/// GovernanceConfig struct used for instruction args | ||
class GovernanceConfigArgs extends GovernanceConfig { | ||
} | ||
exports.GovernanceConfigArgs = GovernanceConfigArgs; | ||
class Governance { | ||
@@ -329,0 +324,0 @@ constructor(args) { |
import { PublicKey } from '@solana/web3.js'; | ||
import BN from 'bn.js'; | ||
import { RealmConfigArgs, InstructionData, VoteType, GovernanceConfigArgs } from './accounts'; | ||
import { RealmConfigArgs, GovernanceConfig, InstructionData, VoteType } from './accounts'; | ||
export declare enum GovernanceInstruction { | ||
@@ -54,5 +54,5 @@ CreateRealm = 0, | ||
instruction: GovernanceInstruction; | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
constructor(args: { | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
}); | ||
@@ -62,6 +62,6 @@ } | ||
instruction: GovernanceInstruction; | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferUpgradeAuthority: boolean; | ||
constructor(args: { | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferUpgradeAuthority: boolean; | ||
@@ -72,6 +72,6 @@ }); | ||
instruction: GovernanceInstruction; | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferMintAuthorities: boolean; | ||
constructor(args: { | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferMintAuthorities: boolean; | ||
@@ -82,6 +82,6 @@ }); | ||
instruction: GovernanceInstruction; | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferTokenOwner: boolean; | ||
constructor(args: { | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
transferTokenOwner: boolean; | ||
@@ -92,5 +92,5 @@ }); | ||
instruction: GovernanceInstruction; | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
constructor(args: { | ||
config: GovernanceConfigArgs; | ||
config: GovernanceConfig; | ||
}); | ||
@@ -97,0 +97,0 @@ } |
@@ -256,3 +256,3 @@ "use strict"; | ||
['instruction', 'u8'], | ||
['config', accounts_1.GovernanceConfigArgs], | ||
['config', accounts_1.GovernanceConfig], | ||
], | ||
@@ -267,3 +267,3 @@ }, | ||
['instruction', 'u8'], | ||
['config', accounts_1.GovernanceConfigArgs], | ||
['config', accounts_1.GovernanceConfig], | ||
['transferUpgradeAuthority', 'u8'], | ||
@@ -279,3 +279,3 @@ ], | ||
['instruction', 'u8'], | ||
['config', accounts_1.GovernanceConfigArgs], | ||
['config', accounts_1.GovernanceConfig], | ||
['transferMintAuthorities', 'u8'], | ||
@@ -291,3 +291,3 @@ ], | ||
['instruction', 'u8'], | ||
['config', accounts_1.GovernanceConfigArgs], | ||
['config', accounts_1.GovernanceConfig], | ||
['transferTokenOwner', 'u8'], | ||
@@ -303,3 +303,3 @@ ], | ||
['instruction', 'u8'], | ||
['config', accounts_1.GovernanceConfigArgs], | ||
['config', accounts_1.GovernanceConfig], | ||
], | ||
@@ -583,26 +583,2 @@ }, | ||
['minCouncilTokensToCreateProposal', 'u64'], | ||
// For Args the additional params can only be passed for >= V3 to not override transferAuhtority parameters in V2 | ||
...(programVersion >= constants_1.PROGRAM_VERSION_V2 | ||
? [ | ||
['councilVoteTipping', 'u8'], | ||
['communityVetoVoteThreshold', 'VoteThreshold'], | ||
] | ||
: []), | ||
], | ||
}, | ||
], | ||
[ | ||
accounts_1.GovernanceConfigArgs, | ||
{ | ||
kind: 'struct', | ||
fields: [ | ||
['communityVoteThreshold', 'VoteThreshold'], | ||
['minCommunityTokensToCreateProposal', 'u64'], | ||
['minInstructionHoldUpTime', 'u32'], | ||
['maxVotingTime', 'u32'], | ||
['communityVoteTipping', 'u8'], | ||
['councilVoteThreshold', 'VoteThreshold'], | ||
['councilVetoVoteThreshold', 'VoteThreshold'], | ||
['minCouncilTokensToCreateProposal', 'u64'], | ||
// For Args the additional params can only be passed for >= V3 to not override transferAuhtority parameters in V2 | ||
...(programVersion >= constants_1.PROGRAM_VERSION_V3 | ||
@@ -609,0 +585,0 @@ ? [ |
{ | ||
"name": "@solana/spl-governance", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"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
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
488152
6906