Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.6 to 0.3.7

2

lib/governance/api.d.ts

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

export declare function getRealms(connection: Connection, programId: PublicKey): Promise<ProgramAccount<Realm>[]>;
export declare function tryGetRealmConfig(connection: Connection, programId: PublicKey, realmPk: PublicKey): Promise<ProgramAccount<RealmConfigAccount>>;
export declare function tryGetRealmConfig(connection: Connection, programId: PublicKey, realmPk: PublicKey): Promise<ProgramAccount<RealmConfigAccount> | undefined>;
export declare function getRealmConfig(connection: Connection, realmConfigPk: PublicKey): Promise<ProgramAccount<RealmConfigAccount>>;

@@ -10,0 +10,0 @@ export declare function getVoteRecord(connection: Connection, voteRecordPk: PublicKey): Promise<ProgramAccount<VoteRecord>>;

@@ -32,4 +32,9 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const realmConfigPk = yield (0, accounts_1.getRealmConfigAddress)(programId, realmPk);
return getGovernanceAccount(connection, realmConfigPk, accounts_1.RealmConfigAccount);
try {
const realmConfigPk = yield (0, accounts_1.getRealmConfigAddress)(programId, realmPk);
return getGovernanceAccount(connection, realmConfigPk, accounts_1.RealmConfigAccount);
}
catch (_a) {
// RealmConfigAccount didn't exist in V1 and was optional in V2 and hence it doesn't have to exist
}
});

@@ -36,0 +41,0 @@ }

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

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