Skip to content

Commit

Permalink
Revert "chore: commend out toAction:CreateServiceNervousSystem relate…
Browse files Browse the repository at this point in the history
…d code"

This reverts commit 56789ed.
  • Loading branch information
mstrasinskis committed Jun 30, 2023
1 parent 56789ed commit 37ee692
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions packages/nns/src/canisters/governance/request.converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,29 @@ import type {
By as RawBy,
Change as RawChange,
Command as RawCommand,
CreateServiceNervousSystem as RawCreateServiceNervousSystem,
DeveloperDistribution as RawDeveloperDistribution,
Duration as RawDuration,
Followees as RawFollowees,
GovernanceParameters as RawGovernanceParameters,
Image as RawImage,
InitialTokenDistribution as RawInitialTokenDistribution,
LedgerParameters as RawLedgerParameters,
ListNeurons as RawListNeurons,
ListProposalInfo,
ManageNeuron as RawManageNeuron,
NeuronBasketConstructionParameters as RawNeuronBasketConstructionParameters,
NeuronDistribution as RawNeuronDistribution,
NeuronId as RawNeuronId,
NeuronIdOrSubaccount as RawNeuronIdOrSubaccount,
NodeProvider as RawNodeProvider,
Operation as RawOperation,
Percentage as RawPercentage,
RewardMode as RawRewardMode,
SwapDistribution as RawSwapDistribution,
SwapParameters as RawSwapParameters,
Tokens as RawTokens,
VotingRewardParameters as RawVotingRewardParameters,
} from "../../../candid/governance";
import type { AccountIdentifier as AccountIdentifierClass } from "../../account_identifier";
import type { Vote } from "../../enums/governance.enums";
Expand All @@ -27,16 +41,30 @@ import type {
Change,
ClaimOrRefreshNeuronRequest,
Command,
CreateServiceNervousSystem,
DeveloperDistribution,
DisburseToNeuronRequest,
Duration,
FollowRequest,
GovernanceParameters,
Image,
InitialTokenDistribution,
LedgerParameters,
ListProposalsRequest,
MakeProposalRequest,
ManageNeuron,
NeuronBasketConstructionParameters,
NeuronDistribution,
NeuronIdOrSubaccount,
NodeProvider,
Operation,
Percentage,
ProposalId,
RewardMode,
SwapDistribution,
SwapParameters,
Tokens,
VotingRewardParameters,
} from "../../types/governance_converters";
import { accountIdentifierToBytes } from "../../utils/account_identifier.utils";

Expand Down Expand Up @@ -64,7 +92,6 @@ const fromNeuronIdOrSubaccount = (
throw new UnsupportedValueError(neuronIdOrSubaccount);
};

/*
const fromPercentage = (percentage: Percentage): RawPercentage =>
percentage.basisPoints !== undefined
? { basis_points: [percentage.basisPoints] }
Expand Down Expand Up @@ -333,7 +360,6 @@ const fromCreateServiceNervousSystem = (
]
: [],
});
*/

const fromAction = (action: Action): RawAction => {
if ("ExecuteNnsFunction" in action) {
Expand Down

0 comments on commit 37ee692

Please sign in to comment.