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.0 to 0.3.1

2

lib/governance/enums.d.ts

@@ -1,2 +0,2 @@

export declare enum GovernananceTokenKind {
export declare enum GovernanceTokenKind {
Community = 0,

@@ -3,0 +3,0 @@ Council = 1

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GovernanceType = exports.GovernananceTokenKind = void 0;
var GovernananceTokenKind;
(function (GovernananceTokenKind) {
GovernananceTokenKind[GovernananceTokenKind["Community"] = 0] = "Community";
GovernananceTokenKind[GovernananceTokenKind["Council"] = 1] = "Council";
})(GovernananceTokenKind = exports.GovernananceTokenKind || (exports.GovernananceTokenKind = {}));
exports.GovernanceType = exports.GovernanceTokenKind = void 0;
var GovernanceTokenKind;
(function (GovernanceTokenKind) {
GovernanceTokenKind[GovernanceTokenKind["Community"] = 0] = "Community";
GovernanceTokenKind[GovernanceTokenKind["Council"] = 1] = "Council";
})(GovernanceTokenKind = exports.GovernanceTokenKind || (exports.GovernanceTokenKind = {}));
var GovernanceType;

@@ -10,0 +10,0 @@ (function (GovernanceType) {

@@ -32,2 +32,3 @@ export * from './accounts';

export * from './withSetRealmAuthority';
export * from './withSetRealmConfig';
export * from './withSetGovernanceDelegate';

@@ -34,0 +35,0 @@ export * from './withSignOffProposal';

@@ -44,2 +44,3 @@ "use strict";

__exportStar(require("./withSetRealmAuthority"), exports);
__exportStar(require("./withSetRealmConfig"), exports);
__exportStar(require("./withSetGovernanceDelegate"), exports);

@@ -46,0 +47,0 @@ __exportStar(require("./withSignOffProposal"), exports);

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

else if (programVersion == constants_1.PROGRAM_VERSION_V2) {
if (tokenKind == enums_1.GovernananceTokenKind.Council) {
if (tokenKind == enums_1.GovernanceTokenKind.Council) {
throw new Error(`Council token config is not supported in version ${programVersion}`);

@@ -34,4 +34,4 @@ }

var _a, _b;
assertValidTokenConfigArgs(programVersion, communityTokenConfig, enums_1.GovernananceTokenKind.Community);
assertValidTokenConfigArgs(programVersion, councilTokenConfig, enums_1.GovernananceTokenKind.Council);
assertValidTokenConfigArgs(programVersion, communityTokenConfig, enums_1.GovernanceTokenKind.Community);
assertValidTokenConfigArgs(programVersion, councilTokenConfig, enums_1.GovernanceTokenKind.Council);
return new accounts_1.RealmConfigArgs({

@@ -38,0 +38,0 @@ useCouncilMint: councilMint !== undefined,

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

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