@solana/spl-governance
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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
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
485920
6885