ic-admin
seems to have an option for local development called test-neuron-proposer
.
What’s the value of that test-neuron-proposer and is it available per default in the NNS Governance canister or should it be set on installation?
ic-admin
seems to have an option for local development called test-neuron-proposer
.
What’s the value of that test-neuron-proposer and is it available per default in the NNS Governance canister or should it be set on installation?
Actually, I don’t care. I spun up my governance canister with a neuron computed from the principal I use to deploy the canisters.
Btw. if anyone is ever interested, with protobuf-mumbo-jumbo:
import {neuronSubaccount} from '@dfinity/sns';
const prepareNeuron = ({identity}: {identity: Identity}): Neuron => {
const id = new NeuronId();
id.setId(NEURON_ID);
const subAccount = neuronSubaccount({
index: 0,
controller: identity.getPrincipal()
}) as Uint8Array;
const principalId = new PrincipalId();
principalId.setSerializedId(identity.getPrincipal().toUint8Array());
const neuron = new Neuron();
neuron.setId(id);
neuron.setAccount(subAccount);
neuron.setController(principalId);
neuron.setHotKeysList([principalId]);
neuron.setCachedNeuronStakeE8s(1_000_000 * 100_000_000); // 1M ICP
neuron.setCreatedTimestampSeconds(0);
neuron.setAgingSinceTimestampSeconds(0);
neuron.setKycVerified(true);
neuron.setMaturityE8sEquivalent(0);
neuron.setNotForProfit(true);
neuron.setDissolveDelaySeconds(24 * 60 * 60 * 365 * 8); // 8 * 365 days
return neuron;
};