diff --git a/package.json b/package.json index 415ad0c..7c85b6e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.0.1", "name": "@script3/soroban-governor-sdk", "description": "Javascript SDK for the Soroban Governor", "type": "module", diff --git a/src/contract_error.ts b/src/contract_error.ts index cddf8ac..e9af61f 100644 --- a/src/contract_error.ts +++ b/src/contract_error.ts @@ -59,13 +59,18 @@ export enum ContractErrorType { // Governor Errors InvalidSettingsError = 200, NonExistentProposalError = 201, - ProposalNotActiveError = 202, + ProposalClosedError = 202, InvalidProposalSupportError = 203, VotePeriodNotFinishedError = 204, - ProposalNotQueuedError = 205, + ProposalNotExecutableError = 205, TimelockNotMetError = 206, - CancelActiveProposalError = 207, + ProposalVotePeriodStartedError = 207, InsufficientVotingUnitsError = 208, + AlreadyVotedError = 209, + InvalidProposalType = 210, + ProposalAlreadyOpenError = 211, + OutsideOfVotePeriodError = 212, + InvalidProposalActionError = 213, } export function parseError(