Overview
Namespaces
Section titled “Namespaces”Enumerations
Section titled “Enumerations”CanisterAction
Section titled “CanisterAction”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:173
Enumeration Members
Section titled “Enumeration Members”Start:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:178
Stop:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:176
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:174
CanisterInstallMode
Section titled “CanisterInstallMode”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:189
Enumeration Members
Section titled “Enumeration Members”Install
Section titled “Install”Install:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:191
Reinstall
Section titled “Reinstall”Reinstall:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:192
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:190
Upgrade
Section titled “Upgrade”Upgrade:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:193
LogVisibility
Section titled “LogVisibility”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:164
Enumeration Members
Section titled “Enumeration Members”Controllers
Section titled “Controllers”Controllers:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:167
Public
Section titled “Public”Public:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:169
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:165
NeuronState
Section titled “NeuronState”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:7
Enumeration Members
Section titled “Enumeration Members”Dissolved
Section titled “Dissolved”Dissolved:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:11
Dissolving
Section titled “Dissolving”Dissolving:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:10
Locked
Section titled “Locked”Locked:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:9
Spawning
Section titled “Spawning”Spawning:
4
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:12
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:8
NeuronType
Section titled “NeuronType”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:151
Enumeration Members
Section titled “Enumeration Members”Ect:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:160
Seed:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:157
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:154
NeuronVisibility
Section titled “NeuronVisibility”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:182
Enumeration Members
Section titled “Enumeration Members”Private
Section titled “Private”Private:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:184
Public
Section titled “Public”Public:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:185
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:183
NnsFunction
Section titled “NnsFunction”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:88
Enumeration Members
Section titled “Enumeration Members”AddApiBoundaryNodes
Section titled “AddApiBoundaryNodes”AddApiBoundaryNodes:
43
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:132
AddFirewallRules
Section titled “AddFirewallRules”AddFirewallRules:
25
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:114
AddNodeToSubnet
Section titled “AddNodeToSubnet”AddNodeToSubnet:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:91
AddOrRemoveDataCenters
Section titled “AddOrRemoveDataCenters”AddOrRemoveDataCenters:
21
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:110
AddSnsWasm
Section titled “AddSnsWasm”AddSnsWasm:
30
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:119
AssignNoid
Section titled “AssignNoid”AssignNoid:
8
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:97
BitcoinSetConfig
Section titled “BitcoinSetConfig”BitcoinSetConfig:
39
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:128
BlessReplicaVersion
Section titled “BlessReplicaVersion”BlessReplicaVersion:
5
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:94
ChangeSubnetMembership
Section titled “ChangeSubnetMembership”ChangeSubnetMembership:
31
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:120
ChangeSubnetTypeAssignment
Section titled “ChangeSubnetTypeAssignment”ChangeSubnetTypeAssignment:
33
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:122
ClearProvisionalWhitelist
Section titled “ClearProvisionalWhitelist”ClearProvisionalWhitelist:
12
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:101
CompleteCanisterMigration
Section titled “CompleteCanisterMigration”CompleteCanisterMigration:
29
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:118
CreateSubnet
Section titled “CreateSubnet”CreateSubnet:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:90
DeployGuestosToAllSubnetNodes
Section titled “DeployGuestosToAllSubnetNodes”DeployGuestosToAllSubnetNodes:
11
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:100
DeployGuestosToAllUnassignedNodes
Section titled “DeployGuestosToAllUnassignedNodes”DeployGuestosToAllUnassignedNodes:
48
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:140
DeployGuestosToSomeApiBoundaryNodes
Section titled “DeployGuestosToSomeApiBoundaryNodes”DeployGuestosToSomeApiBoundaryNodes:
47
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:139
DeployHostosToSomeNodes
Section titled “DeployHostosToSomeNodes”DeployHostosToSomeNodes:
51
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:143
HardResetNnsRootToVersion
Section titled “HardResetNnsRootToVersion”HardResetNnsRootToVersion:
42
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:131
IcpXdrConversionRate
Section titled “IcpXdrConversionRate”IcpXdrConversionRate:
10
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:99
InsertSnsWasmUpgradePathEntries
Section titled “InsertSnsWasmUpgradePathEntries”InsertSnsWasmUpgradePathEntries:
37
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:126
NnsCanisterInstall
Section titled “NnsCanisterInstall”NnsCanisterInstall:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:92
NnsCanisterUpgrade
Section titled “NnsCanisterUpgrade”NnsCanisterUpgrade:
4
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:93
NnsRootUpgrade
Section titled “NnsRootUpgrade”NnsRootUpgrade:
9
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:98
PauseCanisterMigrations
Section titled “PauseCanisterMigrations”PauseCanisterMigrations:
53
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:145
PrepareCanisterMigration
Section titled “PrepareCanisterMigration”PrepareCanisterMigration:
28
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:117
RecoverSubnet
Section titled “RecoverSubnet”RecoverSubnet:
6
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:95
RemoveApiBoundaryNodes
Section titled “RemoveApiBoundaryNodes”RemoveApiBoundaryNodes:
44
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:133
RemoveFirewallRules
Section titled “RemoveFirewallRules”RemoveFirewallRules:
26
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:115
RemoveNodeOperators
Section titled “RemoveNodeOperators”RemoveNodeOperators:
23
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:112
RemoveNodes
Section titled “RemoveNodes”RemoveNodes:
18
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:107
RemoveNodesFromSubnet
Section titled “RemoveNodesFromSubnet”RemoveNodesFromSubnet:
13
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:102
RerouteCanisterRanges
Section titled “RerouteCanisterRanges”RerouteCanisterRanges:
24
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:113
RetireReplicaVersion
Section titled “RetireReplicaVersion”RetireReplicaVersion:
36
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:125
ReviseElectedGuestosVersions
Section titled “ReviseElectedGuestosVersions”ReviseElectedGuestosVersions:
38
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:127
ReviseElectedHostosVersions
Section titled “ReviseElectedHostosVersions”ReviseElectedHostosVersions:
50
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:142
SetAuthorizedSubnetworks
Section titled “SetAuthorizedSubnetworks”SetAuthorizedSubnetworks:
14
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:103
SetFirewallConfig
Section titled “SetFirewallConfig”SetFirewallConfig:
15
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:104
SetSubnetOperationalLevel
Section titled “SetSubnetOperationalLevel”SetSubnetOperationalLevel:
55
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:147
StopOrStartNnsCanister
Section titled “StopOrStartNnsCanister”StopOrStartNnsCanister:
17
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:106
SubnetRentalRequest
Section titled “SubnetRentalRequest”SubnetRentalRequest:
52
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:144
UninstallCode
Section titled “UninstallCode”UninstallCode:
19
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:108
UnpauseCanisterMigrations
Section titled “UnpauseCanisterMigrations”UnpauseCanisterMigrations:
54
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:146
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:89
UpdateAllowedPrincipals
Section titled “UpdateAllowedPrincipals”UpdateAllowedPrincipals:
35
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:124
UpdateApiBoundaryNodeDomain
Section titled “UpdateApiBoundaryNodeDomain”UpdateApiBoundaryNodeDomain:
45
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:137
Deprecated
Section titled “Deprecated”UpdateApiBoundaryNodesVersion
Section titled “UpdateApiBoundaryNodesVersion”UpdateApiBoundaryNodesVersion:
46
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:138
UpdateConfigOfSubnet
Section titled “UpdateConfigOfSubnet”UpdateConfigOfSubnet:
7
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:96
UpdateElectedHostosVersions
Section titled “UpdateElectedHostosVersions”UpdateElectedHostosVersions:
40
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:129
UpdateFirewallRules
Section titled “UpdateFirewallRules”UpdateFirewallRules:
27
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:116
UpdateNodeOperatorConfig
Section titled “UpdateNodeOperatorConfig”UpdateNodeOperatorConfig:
16
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:105
UpdateNodeRewardsTable
Section titled “UpdateNodeRewardsTable”UpdateNodeRewardsTable:
20
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:109
UpdateNodesHostosVersion
Section titled “UpdateNodesHostosVersion”UpdateNodesHostosVersion:
41
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:130
UpdateSnsWasmSnsSubnetIds
Section titled “UpdateSnsWasmSnsSubnetIds”UpdateSnsWasmSnsSubnetIds:
34
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:123
UpdateSshReadOnlyAccessForAllUnassignedNodes
Section titled “UpdateSshReadOnlyAccessForAllUnassignedNodes”UpdateSshReadOnlyAccessForAllUnassignedNodes:
49
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:141
UpdateSubnetType
Section titled “UpdateSubnetType”UpdateSubnetType:
32
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:121
UpdateUnassignedNodesConfig
Section titled “UpdateUnassignedNodesConfig”UpdateUnassignedNodesConfig:
22
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:111
ProposalRewardStatus
Section titled “ProposalRewardStatus”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:42
Enumeration Members
Section titled “Enumeration Members”AcceptVotes
Section titled “AcceptVotes”AcceptVotes:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:47
Ineligible
Section titled “Ineligible”Ineligible:
4
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:57
ReadyToSettle
Section titled “ReadyToSettle”ReadyToSettle:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:51
Settled
Section titled “Settled”Settled:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:54
Unknown
Section titled “Unknown”Unknown:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:43
ProposalStatus
Section titled “ProposalStatus”Defined in: packages/canisters/src/nns/enums/governance.enums.ts:62
Enumeration Members
Section titled “Enumeration Members”Accepted
Section titled “Accepted”Accepted:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:73
Executed
Section titled “Executed”Executed:
4
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:76
Failed
Section titled “Failed”Failed:
5
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:79
Open:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:66
Rejected
Section titled “Rejected”Rejected:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:69
Unknown
Section titled “Unknown”Unknown:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:63
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:15
Enumeration Members
Section titled “Enumeration Members”ApiBoundaryNodeManagement
Section titled “ApiBoundaryNodeManagement”ApiBoundaryNodeManagement:
15
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:34
ExchangeRate
Section titled “ExchangeRate”ExchangeRate:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:18
Governance
Section titled “Governance”Governance:
4
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:20
IcOsVersionDeployment
Section titled “IcOsVersionDeployment”IcOsVersionDeployment:
12
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:31
IcOsVersionElection
Section titled “IcOsVersionElection”IcOsVersionElection:
13
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:32
Kyc:
9
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:25
NetworkCanisterManagement
Section titled “NetworkCanisterManagement”NetworkCanisterManagement:
8
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:24
NetworkEconomics
Section titled “NetworkEconomics”NetworkEconomics:
3
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:19
NeuronManagement
Section titled “NeuronManagement”NeuronManagement:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:17
NodeAdmin
Section titled “NodeAdmin”NodeAdmin:
5
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:21
NodeProviderRewards
Section titled “NodeProviderRewards”NodeProviderRewards:
10
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:26
ParticipantManagement
Section titled “ParticipantManagement”ParticipantManagement:
6
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:22
ProtocolCanisterManagement
Section titled “ProtocolCanisterManagement”ProtocolCanisterManagement:
17
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:36
ServiceNervousSystemManagement
Section titled “ServiceNervousSystemManagement”ServiceNervousSystemManagement:
18
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:37
SnsAndCommunityFund
Section titled “SnsAndCommunityFund”SnsAndCommunityFund:
14
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:33
SnsDecentralizationSale
Section titled “SnsDecentralizationSale”SnsDecentralizationSale:
11
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:30
Deprecated
Section titled “Deprecated”SubnetManagement
Section titled “SubnetManagement”SubnetManagement:
7
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:23
SubnetRental
Section titled “SubnetRental”SubnetRental:
16
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:35
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:16
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:82
Enumeration Members
Section titled “Enumeration Members”No:
2
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:85
Unspecified
Section titled “Unspecified”Unspecified:
0
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:83
Yes:
1
Defined in: packages/canisters/src/nns/enums/governance.enums.ts:84
Classes
Section titled “Classes”CouldNotClaimNeuronError
Section titled “CouldNotClaimNeuronError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:5
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CouldNotClaimNeuronError(
message?):CouldNotClaimNeuronError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Constructor
Section titled “Constructor”new CouldNotClaimNeuronError(
message?,options?):CouldNotClaimNeuronError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”StakeNeuronError.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”StakeNeuronError.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”StakeNeuronError.prepareStackTrace
GovernanceError
Section titled “GovernanceError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:14
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GovernanceError(
detail):GovernanceError
Defined in: packages/canisters/src/nns/errors/governance.errors.ts:15
Parameters
Section titled “Parameters”detail
Section titled “detail”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
detail
Section titled “detail”
readonlydetail:GovernanceError
Defined in: packages/canisters/src/nns/errors/governance.errors.ts:15
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
InsufficientAmountError
Section titled “InsufficientAmountError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:7
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InsufficientAmountError(
minimumAmount):InsufficientAmountError
Defined in: packages/canisters/src/nns/errors/governance.errors.ts:8
Parameters
Section titled “Parameters”minimumAmount
Section titled “minimumAmount”bigint
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”minimumAmount
Section titled “minimumAmount”
readonlyminimumAmount:bigint
Defined in: packages/canisters/src/nns/errors/governance.errors.ts:8
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”StakeNeuronError.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”StakeNeuronError.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”StakeNeuronError.prepareStackTrace
NnsGenesisTokenCanister
Section titled “NnsGenesisTokenCanister”Defined in: packages/canisters/src/nns/genesis_token.canister.ts:11
Methods
Section titled “Methods”claimNeurons()
Section titled “claimNeurons()”claimNeurons(
__namedParameters):Promise<bigint[]>
Defined in: packages/canisters/src/nns/genesis_token.canister.ts:29
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”hexPubKey
Section titled “hexPubKey”string
Returns
Section titled “Returns”Promise<bigint[]>
create()
Section titled “create()”
staticcreate(options):NnsGenesisTokenCanister
Defined in: packages/canisters/src/nns/genesis_token.canister.ts:16
Parameters
Section titled “Parameters”options
Section titled “options”CanisterOptions<_SERVICE> = {}
Returns
Section titled “Returns”NnsGovernanceCanister
Section titled “NnsGovernanceCanister”Defined in: packages/canisters/src/nns/governance.canister.ts:95
Methods
Section titled “Methods”addHotkey()
Section titled “addHotkey()”addHotkey(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:915
Add hotkey to neuron
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
principal
Section titled “principal”Principal
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”autoStakeMaturity()
Section titled “autoStakeMaturity()”autoStakeMaturity(
params):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:506
Changes auto-stake maturity for this Neuron. While on, auto-stake maturity will cause all the maturity generated by voting rewards to this neuron to be automatically staked and contribute to the voting power of the neuron.
Parameters
Section titled “Parameters”params
Section titled “params”autoStake
Section titled “autoStake”boolean
neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”claimOrRefreshNeuron()
Section titled “claimOrRefreshNeuron()”claimOrRefreshNeuron(
request):Promise<bigint|undefined>
Defined in: packages/canisters/src/nns/governance.canister.ts:984
Refreshes neuron and returns neuronId when successful Uses query call only.
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Promise<bigint | undefined>
Throws
Section titled “Throws”claimOrRefreshNeuronFromAccount()
Section titled “claimOrRefreshNeuronFromAccount()”claimOrRefreshNeuronFromAccount(
__namedParameters):Promise<bigint|undefined>
Defined in: packages/canisters/src/nns/governance.canister.ts:953
Gets the NeuronID of a newly created neuron.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”controller?
Section titled “controller?”Principal
bigint
Returns
Section titled “Returns”Promise<bigint | undefined>
disburse()
Section titled “disburse()”disburse(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:759
Disburse neuron on Account
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”amount?
Section titled “amount?”bigint
neuronId
Section titled “neuronId”bigint
toAccountId?
Section titled “toAccountId?”string
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”Throws
Section titled “Throws”InvalidAccountIDError
disburseMaturity()
Section titled “disburseMaturity()”disburseMaturity(
params):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:1059
Disburses a neuron’s maturity (always certified). Reference: https://github.com/dfinity/ic/blob/ca2be53acf413bb92478ee7694ac0fb92af07030/rs/sns/governance/src/governance.rs#L1614
Parameters
Section titled “Parameters”params
Section titled “params”neuronId
Section titled “neuronId”bigint
The id of the neuron for which to disburse maturity
percentageToDisburse
Section titled “percentageToDisburse”number
The percentage of the neuron’s maturity to disburse, between 1 and 100 (inclusive).
toAccount?
Section titled “toAccount?”Optional. The ICRC account to which the maturity will be disbursed. If not provided, the maturity will be disbursed to the caller’s Main account.
toAccountIdentifier?
Section titled “toAccountIdentifier?”string
Optional. The account identifier to which the maturity will be disbursed. If not provided, the maturity will be disbursed to the caller’s Main account.
Returns
Section titled “Returns”Promise<void>
Preconditions
Section titled “Preconditions”- The neuron exists
- The caller is authorized to perform this neuron operation (NeuronPermissionType::DisburseMaturity)
- The given percentage_to_merge is between 1 and 100 (inclusive)
- The neuron’s id is not yet in the list of neurons with ongoing operations
- The e8s equivalent of the amount of maturity to disburse is more than the transaction fee.
getLatestRewardEvent()
Section titled “getLatestRewardEvent()”getLatestRewardEvent(
certified):Promise<RewardEvent>
Defined in: packages/canisters/src/nns/governance.canister.ts:316
Returns the latest reward event.
If certified is true, the request is fetched as an update call, otherwise
it’s fetched using a query call.
Parameters
Section titled “Parameters”certified
Section titled “certified”boolean = true
Returns
Section titled “Returns”Promise<RewardEvent>
getMetrics()
Section titled “getMetrics()”getMetrics(
__namedParameters):Promise<GovernanceCachedMetrics>
Defined in: packages/canisters/src/nns/governance.canister.ts:1105
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified
Section titled “certified”boolean = true
Returns
Section titled “Returns”Promise<GovernanceCachedMetrics>
getNetworkEconomicsParameters()
Section titled “getNetworkEconomicsParameters()”getNetworkEconomicsParameters(
__namedParameters):Promise<NetworkEconomics>
Defined in: packages/canisters/src/nns/governance.canister.ts:1030
Return the Network Economics.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified
Section titled “certified”boolean = true
Returns
Section titled “Returns”Promise<NetworkEconomics>
getNeuron()
Section titled “getNeuron()”getNeuron(
__namedParameters):Promise<NeuronInfo|undefined>
Defined in: packages/canisters/src/nns/governance.canister.ts:1009
Return the data of the neuron provided as id.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified
Section titled “certified”boolean = true
neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<NeuronInfo | undefined>
getProposal()
Section titled “getProposal()”getProposal(
__namedParameters):Promise<ProposalInfo|undefined>
Defined in: packages/canisters/src/nns/governance.canister.ts:681
Returns single proposal info
If certified is true (default), the request is fetched as an update call, otherwise
it is fetched using a query call.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified?
Section titled “certified?”boolean = true
proposalId
Section titled “proposalId”bigint
Returns
Section titled “Returns”Promise<ProposalInfo | undefined>
increaseDissolveDelay()
Section titled “increaseDissolveDelay()”increaseDissolveDelay(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:411
Increases dissolve delay of a neuron
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”additionalDissolveDelaySeconds
Section titled “additionalDissolveDelaySeconds”number
neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”joinCommunityFund()
Section titled “joinCommunityFund()”joinCommunityFund(
neuronId):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:488
Neuron joins the community fund
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”leaveCommunityFund()
Section titled “leaveCommunityFund()”leaveCommunityFund(
neuronId):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:521
Neuron leaves the community fund
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”listKnownNeurons()
Section titled “listKnownNeurons()”listKnownNeurons(
certified):Promise<KnownNeuron[]>
Defined in: packages/canisters/src/nns/governance.canister.ts:289
Returns the list of neurons who have been approved by the community to appear as the default followee options.
If certified is true, the request is fetched as an update call, otherwise
it is fetched using a query call.
Parameters
Section titled “Parameters”certified
Section titled “certified”boolean = true
Returns
Section titled “Returns”Promise<KnownNeuron[]>
listNeurons()
Section titled “listNeurons()”listNeurons(
__namedParameters):Promise<NeuronInfo[]>
Defined in: packages/canisters/src/nns/governance.canister.ts:156
Returns the list of neurons controlled by the caller.
If an array of neuron IDs is provided, precisely those neurons will be fetched.
If certified is true, the request is fetched as an update call, otherwise
it is fetched using a query call.
The backend treats includeEmptyNeurons as false if absent.
The response from the canister might be paginated. In this case, all pages will be fetched in parallel and combined into a single return value.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified
Section titled “certified”boolean = true
includeEmptyNeurons?
Section titled “includeEmptyNeurons?”boolean
includePublicNeurons?
Section titled “includePublicNeurons?”boolean
neuronIds?
Section titled “neuronIds?”bigint[]
neuronSubaccounts?
Section titled “neuronSubaccounts?”Returns
Section titled “Returns”Promise<NeuronInfo[]>
listProposals()
Section titled “listProposals()”listProposals(
request):Promise<ListProposalsResponse>
Defined in: packages/canisters/src/nns/governance.canister.ts:331
Returns the list of proposals made for the community to vote on, paginated and filtered by the request.
If certified is true (default), the request is fetched as an update call, otherwise
it is fetched using a query call.
Parameters
Section titled “Parameters”request
Section titled “request”the options to list the proposals (limit number of results, topics to search for, etc.)
certified?
Section titled “certified?”boolean = true
request
Section titled “request”Returns
Section titled “Returns”Promise<ListProposalsResponse>
makeProposal()
Section titled “makeProposal()”makeProposal(
request):Promise<bigint|undefined>
Defined in: packages/canisters/src/nns/governance.canister.ts:701
Create new proposal
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Promise<bigint | undefined>
The newly created proposal ID or undefined if the success response returned by the Governance canister does not provide such information.
Throws
Section titled “Throws”mergeMaturity()
Section titled “mergeMaturity()”mergeMaturity(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:817
Merge Maturity of a neuron
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
percentageToMerge
Section titled “percentageToMerge”number
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”Throws
Section titled “Throws”InvalidPercentageError
mergeNeurons()
Section titled “mergeNeurons()”mergeNeurons(
request):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:576
Merge two neurons
Parameters
Section titled “Parameters”request
Section titled “request”sourceNeuronId
Section titled “sourceNeuronId”bigint
targetNeuronId
Section titled “targetNeuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”refreshVotingPower()
Section titled “refreshVotingPower()”refreshVotingPower(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:795
Refreshes voting power of a neuron
(Resets the votingPowerRefreshedTimestampSeconds
parameter of the neuron to the current time).
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”registerVote()
Section titled “registerVote()”registerVote(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:722
Registers vote for a proposal from the neuron passed.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
proposalId
Section titled “proposalId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”removeHotkey()
Section titled “removeHotkey()”removeHotkey(
__namedParameters):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:935
Remove hotkey to neuron
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
principal
Section titled “principal”Principal
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”setDissolveDelay()
Section titled “setDissolveDelay()”setDissolveDelay(
neuronId):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:437
Sets dissolve delay of a neuron. The new date is now + dissolveDelaySeconds.
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”dissolveDelaySeconds
Section titled “dissolveDelaySeconds”number
neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”setFollowees()
Section titled “setFollowees()”setFollowees(
followRequest):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:744
Edit neuron followees per topic
Parameters
Section titled “Parameters”followRequest
Section titled “followRequest”Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”setFollowing()
Section titled “setFollowing()”setFollowing(
params):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:1090
Set the following topics for a neuron.
Parameters
Section titled “Parameters”params
Section titled “params”neuronId
Section titled “neuronId”bigint
The id of the neuron for which to set the following topics
topicFollowing
Section titled “topicFollowing”The topics and the followees for each topic that the neuron should follow.
Returns
Section titled “Returns”Promise<void>
setNodeProviderAccount()
Section titled “setNodeProviderAccount()”setNodeProviderAccount(
accountIdentifier):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:556
Sets node provider reward account. Where the reward is paid to.
Parameters
Section titled “Parameters”accountIdentifier
Section titled “accountIdentifier”string
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”Throws
Section titled “Throws”InvalidAccountIDError
setVisibility()
Section titled “setVisibility()”setVisibility(
neuronId,visibility):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:536
Set visibility of a neuron
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”bigint
visibility
Section titled “visibility”Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”simulateMergeNeurons()
Section titled “simulateMergeNeurons()”simulateMergeNeurons(
request):Promise<NeuronInfo>
Defined in: packages/canisters/src/nns/governance.canister.ts:593
Simulate merging two neurons
Parameters
Section titled “Parameters”request
Section titled “request”sourceNeuronId
Section titled “sourceNeuronId”bigint
targetNeuronId
Section titled “targetNeuronId”bigint
Returns
Section titled “Returns”Promise<NeuronInfo>
Throws
Section titled “Throws”spawnNeuron()
Section titled “spawnNeuron()”spawnNeuron(
__namedParameters):Promise<bigint>
Defined in: packages/canisters/src/nns/governance.canister.ts:868
Merge Maturity of a neuron
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”neuronId
Section titled “neuronId”bigint
newController?
Section titled “newController?”Principal
nonce?
Section titled “nonce?”bigint
percentageToSpawn?
Section titled “percentageToSpawn?”number
Returns
Section titled “Returns”Promise<bigint>
Throws
Section titled “Throws”Throws
Section titled “Throws”InvalidPercentageError
splitNeuron()
Section titled “splitNeuron()”splitNeuron(
__namedParameters):Promise<bigint>
Defined in: packages/canisters/src/nns/governance.canister.ts:638
Splits a neuron creating a new one
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”amount
Section titled “amount”bigint
bigint
neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<bigint>
newNeuronId
Throws
Section titled “Throws”stakeMaturity()
Section titled “stakeMaturity()”stakeMaturity(
params):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:846
Stake the maturity of a neuron.
Parameters
Section titled “Parameters”params
Section titled “params”neuronId
Section titled “neuronId”bigint
percentageToStake?
Section titled “percentageToStake?”number
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”Throws
Section titled “Throws”InvalidPercentageError
stakeNeuron()
Section titled “stakeNeuron()”stakeNeuron(
__namedParameters):Promise<bigint>
Defined in: packages/canisters/src/nns/governance.canister.ts:350
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”createdAt?
Section titled “createdAt?”bigint
bigint
fromSubAccount?
Section titled “fromSubAccount?”number[]
ledgerCanister
Section titled “ledgerCanister”principal
Section titled “principal”Principal
bigint
Returns
Section titled “Returns”Promise<bigint>
Throws
Section titled “Throws”Throws
Section titled “Throws”StakeNeuronTransferError
Throws
Section titled “Throws”Throws
Section titled “Throws”TransferError
startDissolving()
Section titled “startDissolving()”startDissolving(
neuronId):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:460
Start dissolving process of a neuron
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”stopDissolving()
Section titled “stopDissolving()”stopDissolving(
neuronId):Promise<void>
Defined in: packages/canisters/src/nns/governance.canister.ts:474
Stop dissolving process of a neuron
Parameters
Section titled “Parameters”neuronId
Section titled “neuronId”bigint
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”create()
Section titled “create()”
staticcreate(options):NnsGovernanceCanister
Defined in: packages/canisters/src/nns/governance.canister.ts:110
Parameters
Section titled “Parameters”options
Section titled “options”NnsGovernanceCanisterOptions = {}
Returns
Section titled “Returns”NnsGovernanceTestCanister
Section titled “NnsGovernanceTestCanister”Defined in: packages/canisters/src/nns/governance_test.canister.ts:19
Methods
Section titled “Methods”updateNeuron()
Section titled “updateNeuron()”updateNeuron(
neuron):Promise<[] | [GovernanceError]>
Defined in: packages/canisters/src/nns/governance_test.canister.ts:51
Test method to update fields of a neuron.
Only available in the governance test canister.
Parameters
Section titled “Parameters”neuron
Section titled “neuron”Returns
Section titled “Returns”Promise<[] | [GovernanceError]>
create()
Section titled “create()”
staticcreate(options):NnsGovernanceTestCanister
Defined in: packages/canisters/src/nns/governance_test.canister.ts:28
Parameters
Section titled “Parameters”options
Section titled “options”CanisterOptions<_SERVICE> = {}
Returns
Section titled “Returns”SnsWasmCanister
Section titled “SnsWasmCanister”Defined in: packages/canisters/src/nns/sns_wasm.canister.ts:10
Methods
Section titled “Methods”listSnses()
Section titled “listSnses()”listSnses(
__namedParameters):Promise<DeployedSns[]>
Defined in: packages/canisters/src/nns/sns_wasm.canister.ts:29
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”certified?
Section titled “certified?”boolean = true
Returns
Section titled “Returns”Promise<DeployedSns[]>
create()
Section titled “create()”
staticcreate(options):SnsWasmCanister
Defined in: packages/canisters/src/nns/sns_wasm.canister.ts:16
Parameters
Section titled “Parameters”options
Section titled “options”CanisterOptions<_SERVICE> = {}
Returns
Section titled “Returns”abstract StakeNeuronError
Section titled “abstract StakeNeuronError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:3
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StakeNeuronError(
message?):StakeNeuronError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new StakeNeuronError(
message?,options?):StakeNeuronError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
UnrecognizedTypeError
Section titled “UnrecognizedTypeError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:13
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnrecognizedTypeError(
message?):UnrecognizedTypeError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new UnrecognizedTypeError(
message?,options?):UnrecognizedTypeError
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
UnsupportedValueError
Section titled “UnsupportedValueError”Defined in: packages/canisters/src/nns/errors/governance.errors.ts:23
An error used to ensure at compile-time that it’s never reached.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnsupportedValueError(
value):UnsupportedValueError
Defined in: packages/canisters/src/nns/errors/governance.errors.ts:24
Parameters
Section titled “Parameters”never
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
Interfaces
Section titled “Interfaces”Account
Section titled “Account”Defined in: packages/canisters/src/nns/types/governance_converters.ts:186
Properties
Section titled “Properties”owner:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:187
subaccount
Section titled “subaccount”subaccount:
Option<number[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:188
AddHotKey
Section titled “AddHotKey”Defined in: packages/canisters/src/nns/types/governance_converters.ts:70
Properties
Section titled “Properties”newHotKey
Section titled “newHotKey”newHotKey:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:71
AddHotKeyRequest
Section titled “AddHotKeyRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:605
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:606
principal
Section titled “principal”principal:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:607
AddOrRemoveNodeProvider
Section titled “AddOrRemoveNodeProvider”Defined in: packages/canisters/src/nns/types/governance_converters.ts:73
Properties
Section titled “Properties”change
Section titled “change”Defined in: packages/canisters/src/nns/types/governance_converters.ts:74
ApproveGenesisKyc
Section titled “ApproveGenesisKyc”Defined in: packages/canisters/src/nns/types/governance_converters.ts:76
Properties
Section titled “Properties”principals
Section titled “principals”principals:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:77
Ballot
Section titled “Ballot”Defined in: packages/canisters/src/nns/types/governance_converters.ts:82
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:83
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:84
votingPower
Section titled “votingPower”votingPower:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:85
BallotInfo
Section titled “BallotInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:87
Properties
Section titled “Properties”proposalId
Section titled “proposalId”proposalId:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:89
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:88
BlessAlternativeGuestOsVersion
Section titled “BlessAlternativeGuestOsVersion”Defined in: packages/canisters/src/nns/types/governance_converters.ts:337
Properties
Section titled “Properties”baseGuestLaunchMeasurements
Section titled “baseGuestLaunchMeasurements”baseGuestLaunchMeasurements:
Option<GuestLaunchMeasurements>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:340
chipIds
Section titled “chipIds”chipIds:
Option<Uint8Array<ArrayBufferLike>[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:339
rootfsHash
Section titled “rootfsHash”rootfsHash:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:338
CanisterAuthzInfo
Section titled “CanisterAuthzInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:95
Properties
Section titled “Properties”methodsAuthz
Section titled “methodsAuthz”methodsAuthz:
MethodAuthzInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:96
CanisterSettings
Section titled “CanisterSettings”Defined in: packages/canisters/src/nns/types/governance_converters.ts:304
Properties
Section titled “Properties”computeAllocation
Section titled “computeAllocation”computeAllocation:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:311
controllers
Section titled “controllers”controllers:
Option<string[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:306
freezingThreshold
Section titled “freezingThreshold”freezingThreshold:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:305
logVisibility
Section titled “logVisibility”logVisibility:
Option<LogVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:307
memoryAllocation
Section titled “memoryAllocation”memoryAllocation:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:310
snapshotVisibility
Section titled “snapshotVisibility”snapshotVisibility:
Option<number>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:308
wasmMemoryLimit
Section titled “wasmMemoryLimit”wasmMemoryLimit:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:309
wasmMemoryThreshold
Section titled “wasmMemoryThreshold”wasmMemoryThreshold:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:312
ChangeAutoStakeMaturity
Section titled “ChangeAutoStakeMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:220
Properties
Section titled “Properties”requestedSettingForAutoStakeMaturity
Section titled “requestedSettingForAutoStakeMaturity”requestedSettingForAutoStakeMaturity:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:221
ClaimNeuronRequest
Section titled “ClaimNeuronRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:575
Properties
Section titled “Properties”dissolveDelayInSecs
Section titled “dissolveDelayInSecs”dissolveDelayInSecs:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:578
nonce:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:577
publicKey
Section titled “publicKey”publicKey:
DerEncodedPublicKey
Defined in: packages/canisters/src/nns/types/governance_converters.ts:576
ClaimOrRefresh
Section titled “ClaimOrRefresh”Defined in: packages/canisters/src/nns/types/governance_converters.ts:99
Properties
Section titled “Properties”Defined in: packages/canisters/src/nns/types/governance_converters.ts:100
ClaimOrRefreshNeuronFromAccount
Section titled “ClaimOrRefreshNeuronFromAccount”Defined in: packages/canisters/src/nns/types/governance_converters.ts:102
Properties
Section titled “Properties”controller
Section titled “controller”controller:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:103
memo:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:104
ClaimOrRefreshNeuronRequest
Section titled “ClaimOrRefreshNeuronRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:106
Properties
Section titled “Properties”Defined in: packages/canisters/src/nns/types/governance_converters.ts:108
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:107
Configure
Section titled “Configure”Defined in: packages/canisters/src/nns/types/governance_converters.ts:142
Properties
Section titled “Properties”operation
Section titled “operation”Defined in: packages/canisters/src/nns/types/governance_converters.ts:143
Countries
Section titled “Countries”Defined in: packages/canisters/src/nns/types/governance_converters.ts:737
Properties
Section titled “Properties”isoCodes
Section titled “isoCodes”isoCodes:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:738
CreateCanisterAndInstallCode
Section titled “CreateCanisterAndInstallCode”Defined in: packages/canisters/src/nns/types/governance_converters.ts:353
Properties
Section titled “Properties”canisterSettings
Section titled “canisterSettings”canisterSettings:
Option<CanisterSettings>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:355
hostSubnetId
Section titled “hostSubnetId”hostSubnetId:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:357
installArgHash
Section titled “installArgHash”installArgHash:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:356
wasmModuleHash
Section titled “wasmModuleHash”wasmModuleHash:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:354
CreateServiceNervousSystem
Section titled “CreateServiceNervousSystem”Defined in: packages/canisters/src/nns/types/governance_converters.ts:823
Properties
Section titled “Properties”dappCanisters
Section titled “dappCanisters”dappCanisters:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:831
description
Section titled “description”description:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:830
fallbackControllerPrincipalIds
Section titled “fallbackControllerPrincipalIds”fallbackControllerPrincipalIds:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:826
governanceParameters
Section titled “governanceParameters”governanceParameters:
Option<GovernanceParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:825
initialTokenDistribution
Section titled “initialTokenDistribution”initialTokenDistribution:
Option<InitialTokenDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:833
ledgerParameters
Section titled “ledgerParameters”ledgerParameters:
Option<LedgerParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:829
Defined in: packages/canisters/src/nns/types/governance_converters.ts:827
name:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:828
swapParameters
Section titled “swapParameters”swapParameters:
Option<SwapParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:832
url:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:824
CustomProposalCriticality
Section titled “CustomProposalCriticality”Defined in: packages/canisters/src/nns/types/governance_converters.ts:776
Properties
Section titled “Properties”additionalCriticalNativeActionIds
Section titled “additionalCriticalNativeActionIds”additionalCriticalNativeActionIds:
Option<bigint[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:777
Decimal
Section titled “Decimal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:452
Properties
Section titled “Properties”humanReadable
Section titled “humanReadable”humanReadable:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:453
DeregisterKnownNeuron
Section titled “DeregisterKnownNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:214
Properties
Section titled “Properties”id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:215
DeveloperDistribution
Section titled “DeveloperDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:813
Properties
Section titled “Properties”developerNeurons
Section titled “developerNeurons”developerNeurons:
NeuronDistribution[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:814
Disburse
Section titled “Disburse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:149
Properties
Section titled “Properties”amount
Section titled “amount”amount:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:151
toAccountId
Section titled “toAccountId”toAccountId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:150
DisburseMaturity
Section titled “DisburseMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:190
Properties
Section titled “Properties”percentageToDisburse
Section titled “percentageToDisburse”percentageToDisburse:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:193
toAccount
Section titled “toAccount”Defined in: packages/canisters/src/nns/types/governance_converters.ts:191
toAccountIdentifier
Section titled “toAccountIdentifier”toAccountIdentifier:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:192
DisburseRequest
Section titled “DisburseRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:651
Properties
Section titled “Properties”amount?
Section titled “amount?”
optionalamount:bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:654
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:652
toAccountId?
Section titled “toAccountId?”
optionaltoAccountId:string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:653
DisburseResponse
Section titled “DisburseResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:153
Properties
Section titled “Properties”transferBlockHeight
Section titled “transferBlockHeight”transferBlockHeight:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:154
DisburseToNeuron
Section titled “DisburseToNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:156
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:159
dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:157
kycVerified
Section titled “kycVerified”kycVerified:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:158
newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:160
nonce:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:161
DisburseToNeuronRequest
Section titled “DisburseToNeuronRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:657
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:661
dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:659
kycVerified
Section titled “kycVerified”kycVerified:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:660
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:658
newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:662
nonce:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:663
Duration
Section titled “Duration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:729
Properties
Section titled “Properties”seconds
Section titled “seconds”seconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:730
ExecuteNnsFunction
Section titled “ExecuteNnsFunction”Defined in: packages/canisters/src/nns/types/governance_converters.ts:173
Properties
Section titled “Properties”nnsFunctionId
Section titled “nnsFunctionId”nnsFunctionId:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:174
payloadBytes?
Section titled “payloadBytes?”
optionalpayloadBytes:ArrayBuffer
Defined in: packages/canisters/src/nns/types/governance_converters.ts:175
Follow
Section titled “Follow”Defined in: packages/canisters/src/nns/types/governance_converters.ts:177
Properties
Section titled “Properties”followees
Section titled “followees”followees:
bigint[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:179
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:178
Followees
Section titled “Followees”Defined in: packages/canisters/src/nns/types/governance_converters.ts:181
Properties
Section titled “Properties”followees
Section titled “followees”followees:
bigint[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:183
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:182
FolloweesForTopic
Section titled “FolloweesForTopic”Defined in: packages/canisters/src/nns/types/governance_converters.ts:163
Properties
Section titled “Properties”followees
Section titled “followees”followees:
bigint[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:165
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:164
FollowRequest
Section titled “FollowRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:628
Properties
Section titled “Properties”followees
Section titled “followees”followees:
bigint[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:631
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:629
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:630
FulfillSubnetRentalRequest
Section titled “FulfillSubnetRentalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:318
Properties
Section titled “Properties”nodeIds
Section titled “nodeIds”nodeIds:
Principal[] |undefined
Defined in: packages/canisters/src/nns/types/governance_converters.ts:321
replicaVersionId
Section titled “replicaVersionId”replicaVersionId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:320
user:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:319
GlobalTimeOfDay
Section titled “GlobalTimeOfDay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:733
Properties
Section titled “Properties”secondsAfterUtcMidnight
Section titled “secondsAfterUtcMidnight”secondsAfterUtcMidnight:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:734
GovernanceCachedMetrics
Section titled “GovernanceCachedMetrics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:853
Properties
Section titled “Properties”communityFundTotalMaturityE8sEquivalent
Section titled “communityFundTotalMaturityE8sEquivalent”communityFundTotalMaturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:865
communityFundTotalStakedE8s
Section titled “communityFundTotalStakedE8s”communityFundTotalStakedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:893
decliningVotingPowerNeuronSubsetMetrics
Section titled “decliningVotingPowerNeuronSubsetMetrics”decliningVotingPowerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:877
dissolvedNeuronsCount
Section titled “dissolvedNeuronsCount”dissolvedNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:864
dissolvedNeuronsE8s
Section titled “dissolvedNeuronsE8s”dissolvedNeuronsE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:880
dissolvingNeuronsCount
Section titled “dissolvingNeuronsCount”dissolvingNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:890
dissolvingNeuronsCountBuckets
Section titled “dissolvingNeuronsCountBuckets”dissolvingNeuronsCountBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:887
dissolvingNeuronsE8sBuckets
Section titled “dissolvingNeuronsE8sBuckets”dissolvingNeuronsE8sBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:891
dissolvingNeuronsE8sBucketsEct
Section titled “dissolvingNeuronsE8sBucketsEct”dissolvingNeuronsE8sBucketsEct: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:888
dissolvingNeuronsE8sBucketsSeed
Section titled “dissolvingNeuronsE8sBucketsSeed”dissolvingNeuronsE8sBucketsSeed: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:882
dissolvingNeuronsStakedMaturityE8sEquivalentBuckets
Section titled “dissolvingNeuronsStakedMaturityE8sEquivalentBuckets”dissolvingNeuronsStakedMaturityE8sEquivalentBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:858
dissolvingNeuronsStakedMaturityE8sEquivalentSum
Section titled “dissolvingNeuronsStakedMaturityE8sEquivalentSum”dissolvingNeuronsStakedMaturityE8sEquivalentSum:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:856
ectNeuronCount
Section titled “ectNeuronCount”ectNeuronCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:861
fullyLostVotingPowerNeuronSubsetMetrics
Section titled “fullyLostVotingPowerNeuronSubsetMetrics”fullyLostVotingPowerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:869
garbageCollectableNeuronsCount
Section titled “garbageCollectableNeuronsCount”garbageCollectableNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:857
neuronsFundTotalActiveNeurons
Section titled “neuronsFundTotalActiveNeurons”neuronsFundTotalActiveNeurons:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:872
neuronsWithInvalidStakeCount
Section titled “neuronsWithInvalidStakeCount”neuronsWithInvalidStakeCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:859
neuronsWithLessThan6MonthsDissolveDelayCount
Section titled “neuronsWithLessThan6MonthsDissolveDelayCount”neuronsWithLessThan6MonthsDissolveDelayCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:863
neuronsWithLessThan6MonthsDissolveDelayE8s
Section titled “neuronsWithLessThan6MonthsDissolveDelayE8s”neuronsWithLessThan6MonthsDissolveDelayE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:883
nonSelfAuthenticatingControllerNeuronSubsetMetrics
Section titled “nonSelfAuthenticatingControllerNeuronSubsetMetrics”nonSelfAuthenticatingControllerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:889
notDissolvingNeuronsCount
Section titled “notDissolvingNeuronsCount”notDissolvingNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:870
notDissolvingNeuronsCountBuckets
Section titled “notDissolvingNeuronsCountBuckets”notDissolvingNeuronsCountBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:860
notDissolvingNeuronsE8sBuckets
Section titled “notDissolvingNeuronsE8sBuckets”notDissolvingNeuronsE8sBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:855
notDissolvingNeuronsE8sBucketsEct
Section titled “notDissolvingNeuronsE8sBucketsEct”notDissolvingNeuronsE8sBucketsEct: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:875
notDissolvingNeuronsE8sBucketsSeed
Section titled “notDissolvingNeuronsE8sBucketsSeed”notDissolvingNeuronsE8sBucketsSeed: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:894
notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets
Section titled “notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets”notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:884
notDissolvingNeuronsStakedMaturityE8sEquivalentSum
Section titled “notDissolvingNeuronsStakedMaturityE8sEquivalentSum”notDissolvingNeuronsStakedMaturityE8sEquivalentSum:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:879
publicNeuronSubsetMetrics
Section titled “publicNeuronSubsetMetrics”publicNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:895
seedNeuronCount
Section titled “seedNeuronCount”seedNeuronCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:897
spawningNeuronsCount
Section titled “spawningNeuronsCount”spawningNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:876
timestampSeconds
Section titled “timestampSeconds”timestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:896
totalLockedE8s
Section titled “totalLockedE8s”totalLockedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:871
totalMaturityDisbursementsInProgressE8sEquivalent
Section titled “totalMaturityDisbursementsInProgressE8sEquivalent”totalMaturityDisbursementsInProgressE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:904
SDK DIVERGENCE: optional here even though the backend declares the
underlying Candid field as required, so the SDK can decode responses from
canister versions that predate the field (e.g. bundled dfx wasms,
rolling-release mainnet). See the comment on governance.did.
totalMaturityE8sEquivalent
Section titled “totalMaturityE8sEquivalent”totalMaturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:854
totalStakedE8s
Section titled “totalStakedE8s”totalStakedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:868
totalStakedE8sEct
Section titled “totalStakedE8sEct”totalStakedE8sEct:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:878
totalStakedE8sNonSelfAuthenticatingController
Section titled “totalStakedE8sNonSelfAuthenticatingController”totalStakedE8sNonSelfAuthenticatingController:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:881
totalStakedE8sSeed
Section titled “totalStakedE8sSeed”totalStakedE8sSeed:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:866
totalStakedMaturityE8sEquivalent
Section titled “totalStakedMaturityE8sEquivalent”totalStakedMaturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:874
totalStakedMaturityE8sEquivalentEct
Section titled “totalStakedMaturityE8sEquivalentEct”totalStakedMaturityE8sEquivalentEct:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:867
totalStakedMaturityE8sEquivalentSeed
Section titled “totalStakedMaturityE8sEquivalentSeed”totalStakedMaturityE8sEquivalentSeed:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:892
totalSupplyIcp
Section titled “totalSupplyIcp”totalSupplyIcp:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:862
totalVotingPowerNonSelfAuthenticatingController
Section titled “totalVotingPowerNonSelfAuthenticatingController”totalVotingPowerNonSelfAuthenticatingController:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:873
GovernanceParameters
Section titled “GovernanceParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:762
Properties
Section titled “Properties”customProposalCriticality
Section titled “customProposalCriticality”customProposalCriticality:
Option<CustomProposalCriticality>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:773
neuronMaximumAgeBonus
Section titled “neuronMaximumAgeBonus”neuronMaximumAgeBonus:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:767
neuronMaximumAgeForAgeBonus
Section titled “neuronMaximumAgeForAgeBonus”Defined in: packages/canisters/src/nns/types/governance_converters.ts:764
neuronMaximumDissolveDelay
Section titled “neuronMaximumDissolveDelay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:765
neuronMaximumDissolveDelayBonus
Section titled “neuronMaximumDissolveDelayBonus”neuronMaximumDissolveDelayBonus:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:763
neuronMinimumDissolveDelayToVote
Section titled “neuronMinimumDissolveDelayToVote”Defined in: packages/canisters/src/nns/types/governance_converters.ts:766
neuronMinimumStake
Section titled “neuronMinimumStake”Defined in: packages/canisters/src/nns/types/governance_converters.ts:768
proposalInitialVotingPeriod
Section titled “proposalInitialVotingPeriod”Defined in: packages/canisters/src/nns/types/governance_converters.ts:770
proposalRejectionFee
Section titled “proposalRejectionFee”Defined in: packages/canisters/src/nns/types/governance_converters.ts:771
proposalWaitForQuietDeadlineIncrease
Section titled “proposalWaitForQuietDeadlineIncrease”Defined in: packages/canisters/src/nns/types/governance_converters.ts:769
votingRewardParameters
Section titled “votingRewardParameters”votingRewardParameters:
Option<VotingRewardParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:772
GuestLaunchMeasurement
Section titled “GuestLaunchMeasurement”Defined in: packages/canisters/src/nns/types/governance_converters.ts:327
Properties
Section titled “Properties”measurement
Section titled “measurement”measurement:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:332
SEV-SNP measurement (48 bytes).
metadata
Section titled “metadata”metadata:
Option<GuestLaunchMeasurementMetadata>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:328
GuestLaunchMeasurementMetadata
Section titled “GuestLaunchMeasurementMetadata”Defined in: packages/canisters/src/nns/types/governance_converters.ts:323
Properties
Section titled “Properties”kernelCmdline
Section titled “kernelCmdline”kernelCmdline:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:324
vcpuType
Section titled “vcpuType”vcpuType:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:325
GuestLaunchMeasurements
Section titled “GuestLaunchMeasurements”Defined in: packages/canisters/src/nns/types/governance_converters.ts:334
Properties
Section titled “Properties”guestLaunchMeasurements
Section titled “guestLaunchMeasurements”guestLaunchMeasurements:
Option<GuestLaunchMeasurement[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:335
Defined in: packages/canisters/src/nns/types/governance_converters.ts:745
Properties
Section titled “Properties”base64Encoding
Section titled “base64Encoding”base64Encoding:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:746
IncreaseDissolveDelay
Section titled “IncreaseDissolveDelay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:204
Properties
Section titled “Properties”additionalDissolveDelaySeconds
Section titled “additionalDissolveDelaySeconds”additionalDissolveDelaySeconds:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:205
IncreaseDissolveDelayRequest
Section titled “IncreaseDissolveDelayRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:623
Properties
Section titled “Properties”additionalDissolveDelaySeconds
Section titled “additionalDissolveDelaySeconds”additionalDissolveDelaySeconds:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:625
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:624
InitialTokenDistribution
Section titled “InitialTokenDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:817
Properties
Section titled “Properties”developerDistribution
Section titled “developerDistribution”developerDistribution:
Option<DeveloperDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:819
swapDistribution
Section titled “swapDistribution”swapDistribution:
Option<SwapDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:820
treasuryDistribution
Section titled “treasuryDistribution”treasuryDistribution:
Option<SwapDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:818
InstallCode
Section titled “InstallCode”Defined in: packages/canisters/src/nns/types/governance_converters.ts:286
Properties
Section titled “Properties”argHash
Section titled “argHash”argHash:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:287
canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:290
installMode
Section titled “installMode”installMode:
Option<CanisterInstallMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:291
skipStoppingBeforeInstalling
Section titled “skipStoppingBeforeInstalling”skipStoppingBeforeInstalling:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:289
wasmModuleHash
Section titled “wasmModuleHash”wasmModuleHash:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:288
InstallCodeRequest
Section titled “InstallCodeRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:293
Properties
Section titled “Properties”arg:
ArrayBuffer
Defined in: packages/canisters/src/nns/types/governance_converters.ts:294
canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:297
installMode
Section titled “installMode”installMode:
Option<CanisterInstallMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:298
skipStoppingBeforeInstalling
Section titled “skipStoppingBeforeInstalling”skipStoppingBeforeInstalling:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:296
wasmModule
Section titled “wasmModule”wasmModule:
ArrayBuffer
Defined in: packages/canisters/src/nns/types/governance_converters.ts:295
JoinCommunityFundRequest
Section titled “JoinCommunityFundRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:666
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:667
KnownNeuron
Section titled “KnownNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:207
Properties
Section titled “Properties”committed_topics
Section titled “committed_topics”committed_topics:
Option<([] | [TopicToFollow])[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:212
description
Section titled “description”description:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:210
id:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:208
links:
Option<string[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:211
name:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:209
LedgerParameters
Section titled “LedgerParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:749
Properties
Section titled “Properties”tokenLogo
Section titled “tokenLogo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:752
tokenName
Section titled “tokenName”tokenName:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:753
tokenSymbol
Section titled “tokenSymbol”tokenSymbol:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:751
transactionFee
Section titled “transactionFee”Defined in: packages/canisters/src/nns/types/governance_converters.ts:750
ListNodeProvidersResponse
Section titled “ListNodeProvidersResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:721
Properties
Section titled “Properties”nodeProviders
Section titled “nodeProviders”nodeProviders:
NodeProvider[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:722
ListProposalsRequest
Section titled “ListProposalsRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:226
Properties
Section titled “Properties”beforeProposal
Section titled “beforeProposal”beforeProposal:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:235
excludeTopic
Section titled “excludeTopic”excludeTopic:
Topic[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:249
includeAllManageNeuronProposals
Section titled “includeAllManageNeuronProposals”includeAllManageNeuronProposals:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:254
includeRewardStatus
Section titled “includeRewardStatus”includeRewardStatus:
ProposalRewardStatus[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:243
includeStatus
Section titled “includeStatus”includeStatus:
ProposalStatus[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:259
limit:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:230
omitLargeFields?
Section titled “omitLargeFields?”
optionalomitLargeFields:boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:265
returnSelfDescribingAction?
Section titled “returnSelfDescribingAction?”
optionalreturnSelfDescribingAction:boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:268
ListProposalsResponse
Section titled “ListProposalsResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:270
Properties
Section titled “Properties”proposals
Section titled “proposals”proposals:
ProposalInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:271
LoadCanisterSnapshot
Section titled “LoadCanisterSnapshot”Defined in: packages/canisters/src/nns/types/governance_converters.ts:348
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:349
snapshotId
Section titled “snapshotId”snapshotId:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:350
MakeExecuteNnsFunctionProposalRequest
Section titled “MakeExecuteNnsFunctionProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:712
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:713
nnsFunction
Section titled “nnsFunction”nnsFunction:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:717
payload
Section titled “payload”payload:
ArrayBuffer
Defined in: packages/canisters/src/nns/types/governance_converters.ts:718
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:715
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:714
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:716
MakeMotionProposalRequest
Section titled “MakeMotionProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:678
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:679
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:683
text:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:682
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:680
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:681
MakeNetworkEconomicsProposalRequest
Section titled “MakeNetworkEconomicsProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:686
Properties
Section titled “Properties”networkEconomics
Section titled “networkEconomics”networkEconomics:
NetworkEconomics
Defined in: packages/canisters/src/nns/types/governance_converters.ts:691
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:687
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:689
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:688
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:690
MakeProposalRequest
Section titled “MakeProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:670
Properties
Section titled “Properties”action
Section titled “action”action:
ProposalActionRequest
Defined in: packages/canisters/src/nns/types/governance_converters.ts:675
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:671
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:674
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:672
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:673
MakeProposalResponse
Section titled “MakeProposalResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:273
Properties
Section titled “Properties”proposalId
Section titled “proposalId”proposalId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:274
MakeRewardNodeProviderProposalRequest
Section titled “MakeRewardNodeProviderProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:694
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:700
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:695
nodeProvider
Section titled “nodeProvider”nodeProvider:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:699
rewardMode
Section titled “rewardMode”rewardMode:
Option<RewardMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:701
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:697
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:696
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:698
MakeSetDefaultFolloweesProposalRequest
Section titled “MakeSetDefaultFolloweesProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:704
Properties
Section titled “Properties”followees
Section titled “followees”followees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:709
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:705
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:707
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:706
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:708
ManageNeuron
Section titled “ManageNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:276
Properties
Section titled “Properties”command
Section titled “command”Defined in: packages/canisters/src/nns/types/governance_converters.ts:278
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:277
neuronIdOrSubaccount
Section titled “neuronIdOrSubaccount”neuronIdOrSubaccount:
Option<NeuronIdOrSubaccount>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:279
ManageNeuronRequest
Section titled “ManageNeuronRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:281
Properties
Section titled “Properties”command
Section titled “command”command:
Option<ManageNeuronCommandRequest>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:283
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:282
neuronIdOrSubaccount
Section titled “neuronIdOrSubaccount”neuronIdOrSubaccount:
Option<NeuronIdOrSubaccount>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:284
MaturityDisbursement
Section titled “MaturityDisbursement”Defined in: packages/canisters/src/nns/types/governance_converters.ts:196
Properties
Section titled “Properties”accountIdentifierToDisburseTo
Section titled “accountIdentifierToDisburseTo”accountIdentifierToDisburseTo:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:200
accountToDisburseTo
Section titled “accountToDisburseTo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:199
amountE8s
Section titled “amountE8s”amountE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:198
finalizeDisbursementTimestampSeconds
Section titled “finalizeDisbursementTimestampSeconds”finalizeDisbursementTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:201
timestampOfDisbursementSeconds
Section titled “timestampOfDisbursementSeconds”timestampOfDisbursementSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:197
Defined in: packages/canisters/src/nns/types/governance_converters.ts:360
Properties
Section titled “Properties”sourceNeuronId
Section titled “sourceNeuronId”sourceNeuronId:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:361
MergeMaturity
Section titled “MergeMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:370
Properties
Section titled “Properties”percentageToMerge
Section titled “percentageToMerge”percentageToMerge:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:371
MergeMaturityRequest
Section titled “MergeMaturityRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:373
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:374
percentageToMerge
Section titled “percentageToMerge”percentageToMerge:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:375
MergeMaturityResponse
Section titled “MergeMaturityResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:377
Properties
Section titled “Properties”mergedMaturityE8s
Section titled “mergedMaturityE8s”mergedMaturityE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:378
newStakeE8s
Section titled “newStakeE8s”newStakeE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:379
MergeRequest
Section titled “MergeRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:363
Properties
Section titled “Properties”sourceNeuronId
Section titled “sourceNeuronId”sourceNeuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:364
targetNeuronId
Section titled “targetNeuronId”targetNeuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:365
MethodAuthzChange
Section titled “MethodAuthzChange”Defined in: packages/canisters/src/nns/types/governance_converters.ts:381
Properties
Section titled “Properties”canister
Section titled “canister”canister:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:384
methodName
Section titled “methodName”methodName:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:383
operation
Section titled “operation”operation:
AuthzChangeOp
Defined in: packages/canisters/src/nns/types/governance_converters.ts:385
principal
Section titled “principal”principal:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:382
MethodAuthzInfo
Section titled “MethodAuthzInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:387
Properties
Section titled “Properties”methodName
Section titled “methodName”methodName:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:388
principalIds
Section titled “principalIds”principalIds:
ArrayBuffer[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:389
Motion
Section titled “Motion”Defined in: packages/canisters/src/nns/types/governance_converters.ts:391
Properties
Section titled “Properties”motionText
Section titled “motionText”motionText:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:392
NetworkEconomics
Section titled “NetworkEconomics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:424
Properties
Section titled “Properties”maximumNodeProviderRewards
Section titled “maximumNodeProviderRewards”maximumNodeProviderRewards:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:432
maxProposalsToKeepPerTopic
Section titled “maxProposalsToKeepPerTopic”maxProposalsToKeepPerTopic:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:426
minimumIcpXdrRate
Section titled “minimumIcpXdrRate”minimumIcpXdrRate:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:431
neuronManagementFeePerProposal
Section titled “neuronManagementFeePerProposal”neuronManagementFeePerProposal:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:427
neuronMinimumStake
Section titled “neuronMinimumStake”neuronMinimumStake:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:425
neuronsFundEconomics
Section titled “neuronsFundEconomics”neuronsFundEconomics:
Option<NeuronsFundEconomics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:433
neuronSpawnDissolveDelaySeconds
Section titled “neuronSpawnDissolveDelaySeconds”neuronSpawnDissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:430
rejectCost
Section titled “rejectCost”rejectCost:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:428
transactionFee
Section titled “transactionFee”transactionFee:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:429
votingPowerEconomics
Section titled “votingPowerEconomics”votingPowerEconomics:
Option<VotingPowerEconomics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:434
Neuron
Section titled “Neuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:455
Properties
Section titled “Properties”accountIdentifier
Section titled “accountIdentifier”accountIdentifier:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:471
agingSinceTimestampSeconds
Section titled “agingSinceTimestampSeconds”agingSinceTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:467
autoStakeMaturity
Section titled “autoStakeMaturity”autoStakeMaturity:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:465
cachedNeuronStake
Section titled “cachedNeuronStake”cachedNeuronStake:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:463
controller
Section titled “controller”controller:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:459
createdTimestampSeconds
Section titled “createdTimestampSeconds”createdTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:464
decidingVotingPower
Section titled “decidingVotingPower”decidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:479
dissolveState
Section titled “dissolveState”dissolveState:
Option<DissolveState>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:474
eightYearGangBonusBaseE8s
Section titled “eightYearGangBonusBaseE8s”eightYearGangBonusBaseE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:480
followees
Section titled “followees”followees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:475
hotKeys
Section titled “hotKeys”hotKeys:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:470
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:456
joinedCommunityFundTimestampSeconds
Section titled “joinedCommunityFundTimestampSeconds”joinedCommunityFundTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:472
kycVerified
Section titled “kycVerified”kycVerified:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:461
maturityDisbursementsInProgress
Section titled “maturityDisbursementsInProgress”maturityDisbursementsInProgress:
Option<MaturityDisbursement[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:473
maturityE8sEquivalent
Section titled “maturityE8sEquivalent”maturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:466
neuronFees
Section titled “neuronFees”neuronFees:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:469
neuronType
Section titled “neuronType”neuronType:
Option<NeuronType>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:457
notForProfit
Section titled “notForProfit”notForProfit:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:462
potentialVotingPower
Section titled “potentialVotingPower”potentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:478
recentBallots
Section titled “recentBallots”recentBallots:
BallotInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:460
spawnAtTimesSeconds
Section titled “spawnAtTimesSeconds”spawnAtTimesSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:468
stakedMaturityE8sEquivalent
Section titled “stakedMaturityE8sEquivalent”stakedMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:458
visibility
Section titled “visibility”visibility:
Option<NeuronVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:476
votingPowerRefreshedTimestampSeconds
Section titled “votingPowerRefreshedTimestampSeconds”votingPowerRefreshedTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:477
NeuronBasketConstructionParameters
Section titled “NeuronBasketConstructionParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:780
Properties
Section titled “Properties”count:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:782
dissolveDelayInterval
Section titled “dissolveDelayInterval”Defined in: packages/canisters/src/nns/types/governance_converters.ts:781
NeuronDistribution
Section titled “NeuronDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:805
Properties
Section titled “Properties”controller
Section titled “controller”controller:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:806
dissolveDelay
Section titled “dissolveDelay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:807
memo:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:808
Defined in: packages/canisters/src/nns/types/governance_converters.ts:810
vestingPeriod
Section titled “vestingPeriod”Defined in: packages/canisters/src/nns/types/governance_converters.ts:809
NeuronInfo
Section titled “NeuronInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:485
Properties
Section titled “Properties”ageSeconds
Section titled “ageSeconds”ageSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:499
createdTimestampSeconds
Section titled “createdTimestampSeconds”createdTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:490
decidingVotingPower
Section titled “decidingVotingPower”decidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:496
dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:487
eightYearGangBonusBaseE8s
Section titled “eightYearGangBonusBaseE8s”eightYearGangBonusBaseE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:498
fullNeuron
Section titled “fullNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:500
joinedCommunityFundTimestampSeconds
Section titled “joinedCommunityFundTimestampSeconds”joinedCommunityFundTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:492
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:486
neuronType
Section titled “neuronType”neuronType:
Option<NeuronType>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:489
potentialVotingPower
Section titled “potentialVotingPower”potentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:497
recentBallots
Section titled “recentBallots”recentBallots:
BallotInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:488
retrievedAtTimestampSeconds
Section titled “retrievedAtTimestampSeconds”retrievedAtTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:493
state:
NeuronState
Defined in: packages/canisters/src/nns/types/governance_converters.ts:491
visibility
Section titled “visibility”visibility:
Option<NeuronVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:501
votingPower
Section titled “votingPower”votingPower:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:494
votingPowerRefreshedTimestampSeconds
Section titled “votingPowerRefreshedTimestampSeconds”votingPowerRefreshedTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:495
NeuronsFundEconomics
Section titled “NeuronsFundEconomics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:441
Properties
Section titled “Properties”maximumIcpXdrRate
Section titled “maximumIcpXdrRate”maximumIcpXdrRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:442
maxTheoreticalNeuronsFundParticipationAmountXdr
Section titled “maxTheoreticalNeuronsFundParticipationAmountXdr”maxTheoreticalNeuronsFundParticipationAmountXdr:
Option<Decimal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:444
minimumIcpXdrRate
Section titled “minimumIcpXdrRate”minimumIcpXdrRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:445
neuronsFundMatchedFundingCurveCoefficients
Section titled “neuronsFundMatchedFundingCurveCoefficients”neuronsFundMatchedFundingCurveCoefficients:
Option<NeuronsFundMatchedFundingCurveCoefficients>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:443
NeuronsFundMatchedFundingCurveCoefficients
Section titled “NeuronsFundMatchedFundingCurveCoefficients”Defined in: packages/canisters/src/nns/types/governance_converters.ts:447
Properties
Section titled “Properties”contributionThresholdXdr
Section titled “contributionThresholdXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:448
fullParticipationMilestoneXdr
Section titled “fullParticipationMilestoneXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:450
oneThirdParticipationMilestoneXdr
Section titled “oneThirdParticipationMilestoneXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:449
NeuronSubsetMetrics
Section titled “NeuronSubsetMetrics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:836
Properties
Section titled “Properties”count:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:841
countBuckets
Section titled “countBuckets”countBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:850
decidingVotingPowerBuckets
Section titled “decidingVotingPowerBuckets”decidingVotingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:842
maturityE8sEquivalentBuckets
Section titled “maturityE8sEquivalentBuckets”maturityE8sEquivalentBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:838
potentialVotingPowerBuckets
Section titled “potentialVotingPowerBuckets”potentialVotingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:849
stakedE8sBuckets
Section titled “stakedE8sBuckets”stakedE8sBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:847
stakedMaturityE8sEquivalentBuckets
Section titled “stakedMaturityE8sEquivalentBuckets”stakedMaturityE8sEquivalentBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:846
totalDecidingVotingPower
Section titled “totalDecidingVotingPower”totalDecidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:845
totalMaturityE8sEquivalent
Section titled “totalMaturityE8sEquivalent”totalMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:837
totalPotentialVotingPower
Section titled “totalPotentialVotingPower”totalPotentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:844
totalStakedE8s
Section titled “totalStakedE8s”totalStakedE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:840
totalStakedMaturityE8sEquivalent
Section titled “totalStakedMaturityE8sEquivalent”totalStakedMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:843
totalVotingPower
Section titled “totalVotingPower”totalVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:848
votingPowerBuckets
Section titled “votingPowerBuckets”votingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:839
NnsGovernanceCanisterOptions
Section titled “NnsGovernanceCanisterOptions”Defined in: packages/canisters/src/nns/types/governance.options.ts:5
Extends
Section titled “Extends”CanisterOptions<_SERVICE>
Properties
Section titled “Properties”agent?
Section titled “agent?”
optionalagent:Agent
Defined in: packages/utils/dist/types/canister.options.d.ts:4
Inherited from
Section titled “Inherited from”CanisterOptions.agent
canisterId?
Section titled “canisterId?”
optionalcanisterId:Principal
Defined in: packages/utils/dist/types/canister.options.d.ts:5
Inherited from
Section titled “Inherited from”CanisterOptions.canisterId
certifiedServiceOverride?
Section titled “certifiedServiceOverride?”
optionalcertifiedServiceOverride:ActorSubclass<_SERVICE>
Defined in: packages/utils/dist/types/canister.options.d.ts:7
Inherited from
Section titled “Inherited from”CanisterOptions.certifiedServiceOverride
hardwareWallet?
Section titled “hardwareWallet?”
optionalhardwareWallet:boolean
Defined in: packages/canisters/src/nns/types/governance.options.ts:8
oldListNeuronsServiceOverride?
Section titled “oldListNeuronsServiceOverride?”
optionaloldListNeuronsServiceOverride:ActorSubclass<_SERVICE>
Defined in: packages/canisters/src/nns/types/governance.options.ts:9
serviceOverride?
Section titled “serviceOverride?”
optionalserviceOverride:ActorSubclass<_SERVICE>
Defined in: packages/utils/dist/types/canister.options.d.ts:6
Inherited from
Section titled “Inherited from”CanisterOptions.serviceOverride
NodeProvider
Section titled “NodeProvider”Defined in: packages/canisters/src/nns/types/governance_converters.ts:504
Properties
Section titled “Properties”id:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:505
rewardAccount
Section titled “rewardAccount”rewardAccount:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:506
OpenSnsTokenSwap
Section titled “OpenSnsTokenSwap”Defined in: packages/canisters/src/nns/types/governance_converters.ts:394
Properties
Section titled “Properties”communityFundInvestmentE8s
Section titled “communityFundInvestmentE8s”communityFundInvestmentE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:395
params
Section titled “params”params:
Option<{maxDirectParticipationIcpE8s:Option<bigint>;maxIcpE8s:bigint;maxParticipantIcpE8s:bigint;minDirectParticipationIcpE8s:Option<bigint>;minIcpE8s:bigint;minParticipantIcpE8s:bigint;minParticipants:number;neuronBasketConstructionParameters:Option<{count:bigint;dissolve_delay_interval_seconds:bigint; }>;saleDelaySeconds:Option<bigint>;snsTokenE8s:bigint;swapDueTimestampSeconds:bigint; }>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:397
targetSwapCanisterId
Section titled “targetSwapCanisterId”targetSwapCanisterId:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:396
Percentage
Section titled “Percentage”Defined in: packages/canisters/src/nns/types/governance_converters.ts:725
Properties
Section titled “Properties”basisPoints
Section titled “basisPoints”basisPoints:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:726
Proposal
Section titled “Proposal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:526
Properties
Section titled “Properties”action
Section titled “action”Defined in: packages/canisters/src/nns/types/governance_converters.ts:529
selfDescribingAction
Section titled “selfDescribingAction”selfDescribingAction:
Option<SelfDescribingProposalAction>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:531
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:530
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:527
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:528
ProposalInfo
Section titled “ProposalInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:535
Properties
Section titled “Properties”ballots
Section titled “ballots”ballots:
Ballot[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:537
deadlineTimestampSeconds
Section titled “deadlineTimestampSeconds”deadlineTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:543
decidedTimestampSeconds
Section titled “decidedTimestampSeconds”decidedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:542
executedTimestampSeconds
Section titled “executedTimestampSeconds”executedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:547
failedTimestampSeconds
Section titled “failedTimestampSeconds”failedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:541
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:536
latestTally
Section titled “latestTally”Defined in: packages/canisters/src/nns/types/governance_converters.ts:544
proposal
Section titled “proposal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:545
proposalTimestampSeconds
Section titled “proposalTimestampSeconds”proposalTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:539
proposer
Section titled “proposer”proposer:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:546
rejectCost
Section titled “rejectCost”rejectCost:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:538
rewardEventRound
Section titled “rewardEventRound”rewardEventRound:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:540
rewardStatus
Section titled “rewardStatus”rewardStatus:
ProposalRewardStatus
Defined in: packages/canisters/src/nns/types/governance_converters.ts:550
status
Section titled “status”status:
ProposalStatus
Defined in: packages/canisters/src/nns/types/governance_converters.ts:549
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:548
totalPotentialVotingPower
Section titled “totalPotentialVotingPower”totalPotentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:551
RefreshVotingPower
Section titled “RefreshVotingPower”Defined in: packages/canisters/src/nns/types/governance_converters.ts:146
RegisterVote
Section titled “RegisterVote”Defined in: packages/canisters/src/nns/types/governance_converters.ts:554
Properties
Section titled “Properties”proposal
Section titled “proposal”proposal:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:556
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:555
RegisterVoteRequest
Section titled “RegisterVoteRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:634
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:635
proposal
Section titled “proposal”proposal:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:637
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:636
RemoveHotKey
Section titled “RemoveHotKey”Defined in: packages/canisters/src/nns/types/governance_converters.ts:558
Properties
Section titled “Properties”hotKeyToRemove
Section titled “hotKeyToRemove”hotKeyToRemove:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:559
RemoveHotKeyRequest
Section titled “RemoveHotKeyRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:610
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:611
principal
Section titled “principal”principal:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:612
RewardNodeProvider
Section titled “RewardNodeProvider”Defined in: packages/canisters/src/nns/types/governance_converters.ts:581
Properties
Section titled “Properties”amountE8s
Section titled “amountE8s”amountE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:584
nodeProvider
Section titled “nodeProvider”nodeProvider:
Option<NodeProvider>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:582
rewardMode
Section titled “rewardMode”rewardMode:
Option<RewardMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:583
RewardNodeProviders
Section titled “RewardNodeProviders”Defined in: packages/canisters/src/nns/types/governance_converters.ts:564
Properties
Section titled “Properties”rewards
Section titled “rewards”rewards:
RewardNodeProvider[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:566
useRegistryDerivedRewards
Section titled “useRegistryDerivedRewards”useRegistryDerivedRewards:
boolean|undefined
Defined in: packages/canisters/src/nns/types/governance_converters.ts:565
RewardToAccount
Section titled “RewardToAccount”Defined in: packages/canisters/src/nns/types/governance_converters.ts:568
Properties
Section titled “Properties”toAccount
Section titled “toAccount”toAccount:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:569
RewardToNeuron
Section titled “RewardToNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:571
Properties
Section titled “Properties”dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:572
SelfDescribingProposalAction
Section titled “SelfDescribingProposalAction”Defined in: packages/canisters/src/nns/types/governance_converters.ts:520
Properties
Section titled “Properties”typeDescription
Section titled “typeDescription”typeDescription:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:521
typeName
Section titled “typeName”typeName:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:522
value:
Option<SelfDescribingValue>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:523
SetDefaultFollowees
Section titled “SetDefaultFollowees”Defined in: packages/canisters/src/nns/types/governance_converters.ts:586
Properties
Section titled “Properties”defaultFollowees
Section titled “defaultFollowees”defaultFollowees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:587
SetDissolveTimestamp
Section titled “SetDissolveTimestamp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:217
Properties
Section titled “Properties”dissolveTimestampSeconds
Section titled “dissolveTimestampSeconds”dissolveTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:218
SetFollowing
Section titled “SetFollowing”Defined in: packages/canisters/src/nns/types/governance_converters.ts:167
Properties
Section titled “Properties”topicFollowing
Section titled “topicFollowing”topicFollowing:
FolloweesForTopic[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:168
SetSnsTokenSwapOpenTimeWindow
Section titled “SetSnsTokenSwapOpenTimeWindow”Defined in: packages/canisters/src/nns/types/governance_converters.ts:415
Properties
Section titled “Properties”request
Section titled “request”request:
Option<{openTimeWindow:Option<{endTimestampSeconds:bigint;startTimestampSeconds:bigint; }>; }>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:416
swapCanisterId
Section titled “swapCanisterId”swapCanisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:422
SetVisibility
Section titled “SetVisibility”Defined in: packages/canisters/src/nns/types/governance_converters.ts:223
Properties
Section titled “Properties”visibility
Section titled “visibility”visibility:
Option<NeuronVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:224
Defined in: packages/canisters/src/nns/types/governance_converters.ts:589
Properties
Section titled “Properties”newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:590
percentageToSpawn
Section titled “percentageToSpawn”percentageToSpawn:
number|undefined
Defined in: packages/canisters/src/nns/types/governance_converters.ts:591
SpawnRequest
Section titled “SpawnRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:640
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:641
newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:642
percentageToSpawn?
Section titled “percentageToSpawn?”
optionalpercentageToSpawn:number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:643
Defined in: packages/canisters/src/nns/types/governance_converters.ts:594
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:595
memo:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:596
SplitRequest
Section titled “SplitRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:646
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:648
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:647
StakeMaturity
Section titled “StakeMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:367
Properties
Section titled “Properties”percentageToStake
Section titled “percentageToStake”percentageToStake:
Option<number>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:368
StartDissolvingRequest
Section titled “StartDissolvingRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:615
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:616
StopDissolvingRequest
Section titled “StopDissolvingRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:619
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:620
StopOrStartCanister
Section titled “StopOrStartCanister”Defined in: packages/canisters/src/nns/types/governance_converters.ts:300
Properties
Section titled “Properties”action
Section titled “action”action:
Option<CanisterAction>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:302
canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:301
SwapDistribution
Section titled “SwapDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:801
Properties
Section titled “Properties”Defined in: packages/canisters/src/nns/types/governance_converters.ts:802
SwapParameters
Section titled “SwapParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:784
Properties
Section titled “Properties”confirmationText
Section titled “confirmationText”confirmationText:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:788
duration
Section titled “duration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:786
maxDirectParticipationIcp
Section titled “maxDirectParticipationIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:796
maximumIcp
Section titled “maximumIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:794
maximumParticipantIcp
Section titled “maximumParticipantIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:789
minDirectParticipationIcp
Section titled “minDirectParticipationIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:797
minimumIcp
Section titled “minimumIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:791
minimumParticipantIcp
Section titled “minimumParticipantIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:792
minimumParticipants
Section titled “minimumParticipants”minimumParticipants:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:785
neuronBasketConstructionParameters
Section titled “neuronBasketConstructionParameters”neuronBasketConstructionParameters:
Option<NeuronBasketConstructionParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:787
neuronsFundInvestmentIcp
Section titled “neuronsFundInvestmentIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:790
neuronsFundParticipation
Section titled “neuronsFundParticipation”neuronsFundParticipation:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:798
restrictedCountries
Section titled “restrictedCountries”Defined in: packages/canisters/src/nns/types/governance_converters.ts:795
startTime
Section titled “startTime”startTime:
Option<GlobalTimeOfDay>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:793
TakeCanisterSnapshot
Section titled “TakeCanisterSnapshot”Defined in: packages/canisters/src/nns/types/governance_converters.ts:343
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:345
replaceSnapshot
Section titled “replaceSnapshot”replaceSnapshot:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:344
Defined in: packages/canisters/src/nns/types/governance_converters.ts:598
Properties
Section titled “Properties”no:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:599
timestampSeconds
Section titled “timestampSeconds”timestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:602
total:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:601
yes:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:600
Tokens
Section titled “Tokens”Defined in: packages/canisters/src/nns/types/governance_converters.ts:741
Properties
Section titled “Properties”e8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:742
UpdateCanisterSettings
Section titled “UpdateCanisterSettings”Defined in: packages/canisters/src/nns/types/governance_converters.ts:314
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:315
settings
Section titled “settings”settings:
Option<CanisterSettings>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:316
VotingPowerEconomics
Section titled “VotingPowerEconomics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:436
Properties
Section titled “Properties”clearFollowingAfterSeconds
Section titled “clearFollowingAfterSeconds”clearFollowingAfterSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:439
neuronMinimumDissolveDelayToVoteSeconds
Section titled “neuronMinimumDissolveDelayToVoteSeconds”neuronMinimumDissolveDelayToVoteSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:438
startReducingVotingPowerAfterSeconds
Section titled “startReducingVotingPowerAfterSeconds”startReducingVotingPowerAfterSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:437
VotingRewardParameters
Section titled “VotingRewardParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:756
Properties
Section titled “Properties”finalRewardRate
Section titled “finalRewardRate”finalRewardRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:759
initialRewardRate
Section titled “initialRewardRate”initialRewardRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:758
rewardRateTransitionDuration
Section titled “rewardRateTransitionDuration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:757
Type Aliases
Section titled “Type Aliases”Action
Section titled “Action”Action = {
RegisterKnownNeuron:KnownNeuron; } | {DeregisterKnownNeuron:DeregisterKnownNeuron; } | {ExecuteNnsFunction:ExecuteNnsFunction; } | {CreateServiceNervousSystem:CreateServiceNervousSystem; } | {ManageNeuron:ManageNeuron; } | {InstallCode:InstallCode; } | {StopOrStartCanister:StopOrStartCanister; } | {UpdateCanisterSettings:UpdateCanisterSettings; } | {FulfillSubnetRentalRequest:FulfillSubnetRentalRequest; } | {BlessAlternativeGuestOsVersion:BlessAlternativeGuestOsVersion; } | {ApproveGenesisKyc:ApproveGenesisKyc; } | {ManageNetworkEconomics:NetworkEconomics; } | {RewardNodeProvider:RewardNodeProvider; } | {RewardNodeProviders:RewardNodeProviders; } | {AddOrRemoveNodeProvider:AddOrRemoveNodeProvider; } | {SetDefaultFollowees:SetDefaultFollowees; } | {Motion:Motion; } | {SetSnsTokenSwapOpenTimeWindow:SetSnsTokenSwapOpenTimeWindow; } | {OpenSnsTokenSwap:OpenSnsTokenSwap; } | {TakeCanisterSnapshot:TakeCanisterSnapshot; } | {LoadCanisterSnapshot:LoadCanisterSnapshot; } | {CreateCanisterAndInstallCode:CreateCanisterAndInstallCode; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:25
AuthzChangeOp
Section titled “AuthzChangeOp”AuthzChangeOp = {
Authorize: {addSelf:boolean; }; } | {Deauthorize:null; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:79
By = {
NeuronIdOrSubaccount:Record<string,never>; } | {MemoAndController:ClaimOrRefreshNeuronFromAccount; } | {Memo:bigint; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:91
CanisterIdString
Section titled “CanisterIdString”CanisterIdString =
string
Defined in: packages/canisters/src/nns/types/common.ts:1
Change
Section titled “Change”Change = {
ToRemove:NodeProvider; } | {ToAdd:NodeProvider; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:98
Command
Section titled “Command”Command = {
Spawn:Spawn; } | {Split:Split; } | {Follow:Follow; } | {ClaimOrRefresh:ClaimOrRefresh; } | {Configure:Configure; } | {RegisterVote:RegisterVote; } | {Merge:Merge; } | {DisburseToNeuron:DisburseToNeuron; } | {SetFollowing:SetFollowing; } | {MergeMaturity:MergeMaturity; } | {StakeMaturity:StakeMaturity; } | {MakeProposal:Proposal; } | {Disburse:Disburse; } | {RefreshVotingPower:RefreshVotingPower; } | {DisburseMaturity:DisburseMaturity; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:110
DissolveState
Section titled “DissolveState”DissolveState = {
DissolveDelaySeconds:bigint; } | {WhenDissolvedTimestampSeconds:bigint; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:170
E8s =
bigint
Defined in: packages/canisters/src/nns/types/common.ts:3
ManageNeuronCommandRequest
Section titled “ManageNeuronCommandRequest”ManageNeuronCommandRequest = {
Spawn:Spawn; } | {Split:Split; } | {Follow:Follow; } | {ClaimOrRefresh:ClaimOrRefresh; } | {Configure:Configure; } | {RegisterVote:RegisterVote; } | {Merge:Merge; } | {DisburseToNeuron:DisburseToNeuron; } | {SetFollowing:SetFollowing; } | {MergeMaturity:MergeMaturity; } | {StakeMaturity:StakeMaturity; } | {MakeProposal:MakeProposalRequest; } | {Disburse:Disburse; } | {DisburseMaturity:DisburseMaturity; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:127
Memo =
bigint
Defined in: packages/canisters/src/nns/types/common.ts:4
NeuronId
Section titled “NeuronId”NeuronId =
bigint
Defined in: packages/canisters/src/nns/types/common.ts:2
NeuronIdOrSubaccount
Section titled “NeuronIdOrSubaccount”NeuronIdOrSubaccount = {
Subaccount:number[]; } | {NeuronId:NeuronId; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:482
Operation
Section titled “Operation”Operation = {
RemoveHotKey:RemoveHotKey; } | {AddHotKey:AddHotKey; } | {StopDissolving:Record<string,never>; } | {StartDissolving:Record<string,never>; } | {IncreaseDissolveDelay:IncreaseDissolveDelay; } | {JoinCommunityFund:Record<string,never>; } | {LeaveCommunityFund:Record<string,never>; } | {SetDissolveTimestamp:SetDissolveTimestamp; } | {ChangeAutoStakeMaturity:ChangeAutoStakeMaturity; } | {SetVisibility:SetVisibility; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:508
Option
Section titled “Option”Option<
T> =T|undefined
Defined in: packages/canisters/src/nns/types/common.ts:7
Type Parameters
Section titled “Type Parameters”T
PrincipalString
Section titled “PrincipalString”PrincipalString =
string
Defined in: packages/canisters/src/nns/types/common.ts:5
ProposalActionRequest
Section titled “ProposalActionRequest”ProposalActionRequest = {
RegisterKnownNeuron:KnownNeuron; } | {DeregisterKnownNeuron:DeregisterKnownNeuron; } | {ExecuteNnsFunction:ExecuteNnsFunction; } | {CreateServiceNervousSystem:CreateServiceNervousSystem; } | {ManageNeuron:ManageNeuronRequest; } | {InstallCode:InstallCodeRequest; } | {StopOrStartCanister:StopOrStartCanister; } | {UpdateCanisterSettings:UpdateCanisterSettings; } | {BlessAlternativeGuestOsVersion:BlessAlternativeGuestOsVersion; } | {ApproveGenesisKyc:ApproveGenesisKyc; } | {ManageNetworkEconomics:NetworkEconomics; } | {RewardNodeProvider:RewardNodeProvider; } | {RewardNodeProviders:RewardNodeProviders; } | {AddOrRemoveNodeProvider:AddOrRemoveNodeProvider; } | {Motion:Motion; } | {TakeCanisterSnapshot:TakeCanisterSnapshot; } | {LoadCanisterSnapshot:LoadCanisterSnapshot; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:50
ProposalId
Section titled “ProposalId”ProposalId =
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:533
RewardMode
Section titled “RewardMode”RewardMode = {
RewardToNeuron:RewardToNeuron; } | {RewardToAccount:RewardToAccount; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:561
SnsWasmCanisterOptions
Section titled “SnsWasmCanisterOptions”SnsWasmCanisterOptions =
CanisterOptions<_SERVICE>
Defined in: packages/canisters/src/nns/types/sns_wasm.options.ts:4
Functions
Section titled “Functions”accountIdentifierFromBytes()
Section titled “accountIdentifierFromBytes()”accountIdentifierFromBytes(
accountIdentifier):string
Defined in: packages/canisters/src/nns/utils/account_identifier.utils.ts:19
Parameters
Section titled “Parameters”accountIdentifier
Section titled “accountIdentifier”Uint8Array
Returns
Section titled “Returns”string
accountIdentifierToBytes()
Section titled “accountIdentifierToBytes()”accountIdentifierToBytes(
accountIdentifier):Uint8Array
Defined in: packages/canisters/src/nns/utils/account_identifier.utils.ts:15
Parameters
Section titled “Parameters”accountIdentifier
Section titled “accountIdentifier”string
Returns
Section titled “Returns”Uint8Array
ineligibleNeurons()
Section titled “ineligibleNeurons()”ineligibleNeurons(
params):NeuronInfo[]
Defined in: packages/canisters/src/nns/utils/neurons.utils.ts:37
Filter the neurons that are ineligible to vote to a proposal.
This feature needs the ballots of the proposal to contains accurate data. If the proposal has settled, as the ballots of the proposal are emptied for archive purpose, the function might return a list of ineligible neurons that are actually neurons that have not voted but would have been eligible.
Long story short, check the status of the proposal before using this function.
Parameters
Section titled “Parameters”params
Section titled “params”neurons
Section titled “neurons”The neurons to filter.
proposal
Section titled “proposal”The proposal to match against the selected neurons.
Returns
Section titled “Returns”memoToNeuronAccountIdentifier()
Section titled “memoToNeuronAccountIdentifier()”memoToNeuronAccountIdentifier(
__namedParameters):AccountIdentifier
Defined in: packages/canisters/src/nns/utils/neurons.utils.ts:122
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”controller
Section titled “controller”Principal
governanceCanisterId
Section titled “governanceCanisterId”Principal
bigint
Returns
Section titled “Returns”memoToNeuronSubaccount()
Section titled “memoToNeuronSubaccount()”memoToNeuronSubaccount(
__namedParameters):SubAccount
Defined in: packages/canisters/src/nns/utils/neurons.utils.ts:101
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”controller
Section titled “controller”Principal
bigint
Returns
Section titled “Returns”principalToAccountIdentifier()
Section titled “principalToAccountIdentifier()”principalToAccountIdentifier(
principal,subAccount?):string
Defined in: packages/canisters/src/nns/utils/account_identifier.utils.ts:24
Parameters
Section titled “Parameters”principal
Section titled “principal”Principal
subAccount?
Section titled “subAccount?”Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”string
votableNeurons()
Section titled “votableNeurons()”votableNeurons(
params):NeuronInfo[]
Defined in: packages/canisters/src/nns/utils/neurons.utils.ts:66
Filter the neurons that can vote for a proposal - i.e. the neurons that have not voted yet and are eligible
Parameters
Section titled “Parameters”params
Section titled “params”neurons
Section titled “neurons”The neurons to filter.
proposal
Section titled “proposal”The proposal to match against the selected neurons.
Returns
Section titled “Returns”votedNeurons()
Section titled “votedNeurons()”votedNeurons(
params):NeuronInfo[]
Defined in: packages/canisters/src/nns/utils/neurons.utils.ts:89
Filter the neurons that have voted for a proposal.
Parameters
Section titled “Parameters”params
Section titled “params”neurons
Section titled “neurons”The neurons to filter.
proposal
Section titled “proposal”The proposal for which some neurons might have already voted.