Socket
Socket
Sign inDemoInstall

@solana/spl-governance

Package Overview
Dependencies
Maintainers
14
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/spl-governance - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

2

lib/governance/accounts.d.ts

@@ -224,2 +224,4 @@ import { PublicKey } from '@solana/web3.js';

}
export declare class GovernanceConfigArgs extends GovernanceConfig {
}
export declare class Governance {

@@ -226,0 +228,0 @@ accountType: GovernanceAccountType;

9

lib/governance/accounts.js

@@ -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.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.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;
const web3_js_1 = require("@solana/web3.js");

@@ -243,3 +243,4 @@ const bn_js_1 = __importDefault(require("bn.js"));

this.useCommunityVoterWeightAddin = !!args.useCommunityVoterWeightAddin;
this.useMaxCommunityVoterWeightAddin = !!args.useMaxCommunityVoterWeightAddin;
this.useMaxCommunityVoterWeightAddin =
!!args.useMaxCommunityVoterWeightAddin;
this.reserved = args.reserved;

@@ -322,2 +323,6 @@ }

exports.GovernanceConfig = GovernanceConfig;
/// GovernanceConfig struct used for instruction args
class GovernanceConfigArgs extends GovernanceConfig {
}
exports.GovernanceConfigArgs = GovernanceConfigArgs;
class Governance {

@@ -324,0 +329,0 @@ constructor(args) {

import { PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
import { RealmConfigArgs, GovernanceConfig, InstructionData, VoteType } from './accounts';
import { RealmConfigArgs, InstructionData, VoteType, GovernanceConfigArgs } from './accounts';
export declare enum GovernanceInstruction {

@@ -54,5 +54,5 @@ CreateRealm = 0,

instruction: GovernanceInstruction;
config: GovernanceConfig;
config: GovernanceConfigArgs;
constructor(args: {
config: GovernanceConfig;
config: GovernanceConfigArgs;
});

@@ -62,6 +62,6 @@ }

instruction: GovernanceInstruction;
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferUpgradeAuthority: boolean;
constructor(args: {
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferUpgradeAuthority: boolean;

@@ -72,6 +72,6 @@ });

instruction: GovernanceInstruction;
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferMintAuthorities: boolean;
constructor(args: {
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferMintAuthorities: boolean;

@@ -82,6 +82,6 @@ });

instruction: GovernanceInstruction;
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferTokenOwner: boolean;
constructor(args: {
config: GovernanceConfig;
config: GovernanceConfigArgs;
transferTokenOwner: boolean;

@@ -92,5 +92,5 @@ });

instruction: GovernanceInstruction;
config: GovernanceConfig;
config: GovernanceConfigArgs;
constructor(args: {
config: GovernanceConfig;
config: GovernanceConfigArgs;
});

@@ -97,0 +97,0 @@ }

@@ -256,3 +256,3 @@ "use strict";

['instruction', 'u8'],
['config', accounts_1.GovernanceConfig],
['config', accounts_1.GovernanceConfigArgs],
],

@@ -267,3 +267,3 @@ },

['instruction', 'u8'],
['config', accounts_1.GovernanceConfig],
['config', accounts_1.GovernanceConfigArgs],
['transferUpgradeAuthority', 'u8'],

@@ -279,3 +279,3 @@ ],

['instruction', 'u8'],
['config', accounts_1.GovernanceConfig],
['config', accounts_1.GovernanceConfigArgs],
['transferMintAuthorities', 'u8'],

@@ -291,3 +291,3 @@ ],

['instruction', 'u8'],
['config', accounts_1.GovernanceConfig],
['config', accounts_1.GovernanceConfigArgs],
['transferTokenOwner', 'u8'],

@@ -303,3 +303,3 @@ ],

['instruction', 'u8'],
['config', accounts_1.GovernanceConfig],
['config', accounts_1.GovernanceConfigArgs],
],

@@ -583,2 +583,3 @@ },

['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

@@ -594,2 +595,25 @@ ? [

[
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
? [
['councilVoteTipping', 'u8'],
['communityVetoVoteThreshold', 'VoteThreshold'],
]
: []),
],
},
],
[
accounts_1.TokenOwnerRecord,

@@ -596,0 +620,0 @@ {

{
"name": "@solana/spl-governance",
"version": "0.3.10",
"version": "0.3.11",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc