Socket
Socket
Sign inDemoInstall

@solana/spl-governance

Package Overview
Dependencies
Maintainers
12
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.0.25 to 0.0.26

2

lib/chat/serialisation.js

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

['instruction', 'u8'],
['body', accounts_1.ChatMessageBody]
['body', accounts_1.ChatMessageBody],
],

@@ -42,0 +42,0 @@ },

@@ -35,3 +35,3 @@ import { PublicKey } from '@solana/web3.js';

export declare function getAccountTypes(accountClass: GovernanceAccountClass): GovernanceAccountType[];
export declare function getAccountProgramVersion(accountType: GovernanceAccountType): 1 | 2;
export declare function getAccountProgramVersion(accountType: GovernanceAccountType): 2 | 1;
export declare enum VoteThresholdPercentageType {

@@ -38,0 +38,0 @@ YesVote = 0,

@@ -20,2 +20,3 @@ import { Connection, PublicKey } from '@solana/web3.js';

export declare function getGovernance(connection: Connection, governance: PublicKey): Promise<ProgramAccount<Governance>>;
export declare function getAllGovernances(connection: Connection, programId: PublicKey, realmPk: PublicKey): Promise<ProgramAccount<Governance>[]>;
export declare function getProposal(connection: Connection, proposal: PublicKey): Promise<ProgramAccount<Proposal>>;

@@ -22,0 +23,0 @@ export declare function getGovernanceAccounts<TAccount extends GovernanceAccount>(connection: Connection, programId: PublicKey, accountClass: new (args: any) => TAccount, filters?: MemcmpFilter[]): Promise<ProgramAccount<TAccount>[]>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getGovernanceAccount = exports.getGovernanceAccounts = exports.getProposal = exports.getGovernance = exports.getTokenOwnerRecordsByOwner = exports.getTokenOwnerRecordForRealm = exports.getVoteRecordsByVoter = exports.getRealms = exports.getRealm = void 0;
exports.getGovernanceAccount = exports.getGovernanceAccounts = exports.getProposal = exports.getAllGovernances = exports.getGovernance = exports.getTokenOwnerRecordsByOwner = exports.getTokenOwnerRecordForRealm = exports.getVoteRecordsByVoter = exports.getRealms = exports.getRealm = void 0;
const serialisation_1 = require("./serialisation");

@@ -71,2 +71,10 @@ const accounts_1 = require("./accounts");

exports.getGovernance = getGovernance;
function getAllGovernances(connection, programId, realmPk) {
return __awaiter(this, void 0, void 0, function* () {
return getGovernanceAccounts(connection, programId, accounts_1.Governance, [
(0, api_1.pubkeyFilter)(1, realmPk),
]);
});
}
exports.getAllGovernances = getAllGovernances;
// Proposal

@@ -73,0 +81,0 @@ function getProposal(connection, proposal) {

{
"name": "@solana/spl-governance",
"version": "0.0.25",
"version": "0.0.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

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