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:604
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:605
principal
Section titled “principal”principal:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:606
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:336
Properties
Section titled “Properties”baseGuestLaunchMeasurements
Section titled “baseGuestLaunchMeasurements”baseGuestLaunchMeasurements:
Option<GuestLaunchMeasurements>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:339
chipIds
Section titled “chipIds”chipIds:
Option<Uint8Array<ArrayBufferLike>[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:338
rootfsHash
Section titled “rootfsHash”rootfsHash:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:337
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:574
Properties
Section titled “Properties”dissolveDelayInSecs
Section titled “dissolveDelayInSecs”dissolveDelayInSecs:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:577
nonce:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:576
publicKey
Section titled “publicKey”publicKey:
DerEncodedPublicKey
Defined in: packages/canisters/src/nns/types/governance_converters.ts:575
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:736
Properties
Section titled “Properties”isoCodes
Section titled “isoCodes”isoCodes:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:737
CreateCanisterAndInstallCode
Section titled “CreateCanisterAndInstallCode”Defined in: packages/canisters/src/nns/types/governance_converters.ts:352
Properties
Section titled “Properties”canisterSettings
Section titled “canisterSettings”canisterSettings:
Option<CanisterSettings>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:354
hostSubnetId
Section titled “hostSubnetId”hostSubnetId:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:356
installArgHash
Section titled “installArgHash”installArgHash:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:355
wasmModuleHash
Section titled “wasmModuleHash”wasmModuleHash:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:353
CreateServiceNervousSystem
Section titled “CreateServiceNervousSystem”Defined in: packages/canisters/src/nns/types/governance_converters.ts:822
Properties
Section titled “Properties”dappCanisters
Section titled “dappCanisters”dappCanisters:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:830
description
Section titled “description”description:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:829
fallbackControllerPrincipalIds
Section titled “fallbackControllerPrincipalIds”fallbackControllerPrincipalIds:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:825
governanceParameters
Section titled “governanceParameters”governanceParameters:
Option<GovernanceParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:824
initialTokenDistribution
Section titled “initialTokenDistribution”initialTokenDistribution:
Option<InitialTokenDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:832
ledgerParameters
Section titled “ledgerParameters”ledgerParameters:
Option<LedgerParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:828
Defined in: packages/canisters/src/nns/types/governance_converters.ts:826
name:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:827
swapParameters
Section titled “swapParameters”swapParameters:
Option<SwapParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:831
url:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:823
CustomProposalCriticality
Section titled “CustomProposalCriticality”Defined in: packages/canisters/src/nns/types/governance_converters.ts:775
Properties
Section titled “Properties”additionalCriticalNativeActionIds
Section titled “additionalCriticalNativeActionIds”additionalCriticalNativeActionIds:
Option<bigint[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:776
Decimal
Section titled “Decimal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:451
Properties
Section titled “Properties”humanReadable
Section titled “humanReadable”humanReadable:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:452
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:812
Properties
Section titled “Properties”developerNeurons
Section titled “developerNeurons”developerNeurons:
NeuronDistribution[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:813
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:650
Properties
Section titled “Properties”amount?
Section titled “amount?”
optionalamount:bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:653
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:651
toAccountId?
Section titled “toAccountId?”
optionaltoAccountId:string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:652
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:656
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:660
dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:658
kycVerified
Section titled “kycVerified”kycVerified:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:659
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:657
newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:661
nonce:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:662
Duration
Section titled “Duration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:728
Properties
Section titled “Properties”seconds
Section titled “seconds”seconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:729
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:627
Properties
Section titled “Properties”followees
Section titled “followees”followees:
bigint[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:630
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:628
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:629
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:732
Properties
Section titled “Properties”secondsAfterUtcMidnight
Section titled “secondsAfterUtcMidnight”secondsAfterUtcMidnight:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:733
GovernanceCachedMetrics
Section titled “GovernanceCachedMetrics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:852
Properties
Section titled “Properties”communityFundTotalMaturityE8sEquivalent
Section titled “communityFundTotalMaturityE8sEquivalent”communityFundTotalMaturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:864
communityFundTotalStakedE8s
Section titled “communityFundTotalStakedE8s”communityFundTotalStakedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:892
decliningVotingPowerNeuronSubsetMetrics
Section titled “decliningVotingPowerNeuronSubsetMetrics”decliningVotingPowerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:876
dissolvedNeuronsCount
Section titled “dissolvedNeuronsCount”dissolvedNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:863
dissolvedNeuronsE8s
Section titled “dissolvedNeuronsE8s”dissolvedNeuronsE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:879
dissolvingNeuronsCount
Section titled “dissolvingNeuronsCount”dissolvingNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:889
dissolvingNeuronsCountBuckets
Section titled “dissolvingNeuronsCountBuckets”dissolvingNeuronsCountBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:886
dissolvingNeuronsE8sBuckets
Section titled “dissolvingNeuronsE8sBuckets”dissolvingNeuronsE8sBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:890
dissolvingNeuronsE8sBucketsEct
Section titled “dissolvingNeuronsE8sBucketsEct”dissolvingNeuronsE8sBucketsEct: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:887
dissolvingNeuronsE8sBucketsSeed
Section titled “dissolvingNeuronsE8sBucketsSeed”dissolvingNeuronsE8sBucketsSeed: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:881
dissolvingNeuronsStakedMaturityE8sEquivalentBuckets
Section titled “dissolvingNeuronsStakedMaturityE8sEquivalentBuckets”dissolvingNeuronsStakedMaturityE8sEquivalentBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:857
dissolvingNeuronsStakedMaturityE8sEquivalentSum
Section titled “dissolvingNeuronsStakedMaturityE8sEquivalentSum”dissolvingNeuronsStakedMaturityE8sEquivalentSum:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:855
ectNeuronCount
Section titled “ectNeuronCount”ectNeuronCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:860
fullyLostVotingPowerNeuronSubsetMetrics
Section titled “fullyLostVotingPowerNeuronSubsetMetrics”fullyLostVotingPowerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:868
garbageCollectableNeuronsCount
Section titled “garbageCollectableNeuronsCount”garbageCollectableNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:856
neuronsFundTotalActiveNeurons
Section titled “neuronsFundTotalActiveNeurons”neuronsFundTotalActiveNeurons:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:871
neuronsWithInvalidStakeCount
Section titled “neuronsWithInvalidStakeCount”neuronsWithInvalidStakeCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:858
neuronsWithLessThan6MonthsDissolveDelayCount
Section titled “neuronsWithLessThan6MonthsDissolveDelayCount”neuronsWithLessThan6MonthsDissolveDelayCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:862
neuronsWithLessThan6MonthsDissolveDelayE8s
Section titled “neuronsWithLessThan6MonthsDissolveDelayE8s”neuronsWithLessThan6MonthsDissolveDelayE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:882
nonSelfAuthenticatingControllerNeuronSubsetMetrics
Section titled “nonSelfAuthenticatingControllerNeuronSubsetMetrics”nonSelfAuthenticatingControllerNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:888
notDissolvingNeuronsCount
Section titled “notDissolvingNeuronsCount”notDissolvingNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:869
notDissolvingNeuronsCountBuckets
Section titled “notDissolvingNeuronsCountBuckets”notDissolvingNeuronsCountBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:859
notDissolvingNeuronsE8sBuckets
Section titled “notDissolvingNeuronsE8sBuckets”notDissolvingNeuronsE8sBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:854
notDissolvingNeuronsE8sBucketsEct
Section titled “notDissolvingNeuronsE8sBucketsEct”notDissolvingNeuronsE8sBucketsEct: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:874
notDissolvingNeuronsE8sBucketsSeed
Section titled “notDissolvingNeuronsE8sBucketsSeed”notDissolvingNeuronsE8sBucketsSeed: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:893
notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets
Section titled “notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets”notDissolvingNeuronsStakedMaturityE8sEquivalentBuckets: [
bigint,number][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:883
notDissolvingNeuronsStakedMaturityE8sEquivalentSum
Section titled “notDissolvingNeuronsStakedMaturityE8sEquivalentSum”notDissolvingNeuronsStakedMaturityE8sEquivalentSum:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:878
publicNeuronSubsetMetrics
Section titled “publicNeuronSubsetMetrics”publicNeuronSubsetMetrics:
Option<NeuronSubsetMetrics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:894
seedNeuronCount
Section titled “seedNeuronCount”seedNeuronCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:896
spawningNeuronsCount
Section titled “spawningNeuronsCount”spawningNeuronsCount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:875
timestampSeconds
Section titled “timestampSeconds”timestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:895
totalLockedE8s
Section titled “totalLockedE8s”totalLockedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:870
totalMaturityDisbursementsInProgressE8sEquivalent
Section titled “totalMaturityDisbursementsInProgressE8sEquivalent”totalMaturityDisbursementsInProgressE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:903
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:853
totalStakedE8s
Section titled “totalStakedE8s”totalStakedE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:867
totalStakedE8sEct
Section titled “totalStakedE8sEct”totalStakedE8sEct:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:877
totalStakedE8sNonSelfAuthenticatingController
Section titled “totalStakedE8sNonSelfAuthenticatingController”totalStakedE8sNonSelfAuthenticatingController:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:880
totalStakedE8sSeed
Section titled “totalStakedE8sSeed”totalStakedE8sSeed:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:865
totalStakedMaturityE8sEquivalent
Section titled “totalStakedMaturityE8sEquivalent”totalStakedMaturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:873
totalStakedMaturityE8sEquivalentEct
Section titled “totalStakedMaturityE8sEquivalentEct”totalStakedMaturityE8sEquivalentEct:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:866
totalStakedMaturityE8sEquivalentSeed
Section titled “totalStakedMaturityE8sEquivalentSeed”totalStakedMaturityE8sEquivalentSeed:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:891
totalSupplyIcp
Section titled “totalSupplyIcp”totalSupplyIcp:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:861
totalVotingPowerNonSelfAuthenticatingController
Section titled “totalVotingPowerNonSelfAuthenticatingController”totalVotingPowerNonSelfAuthenticatingController:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:872
GovernanceParameters
Section titled “GovernanceParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:761
Properties
Section titled “Properties”customProposalCriticality
Section titled “customProposalCriticality”customProposalCriticality:
Option<CustomProposalCriticality>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:772
neuronMaximumAgeBonus
Section titled “neuronMaximumAgeBonus”neuronMaximumAgeBonus:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:766
neuronMaximumAgeForAgeBonus
Section titled “neuronMaximumAgeForAgeBonus”Defined in: packages/canisters/src/nns/types/governance_converters.ts:763
neuronMaximumDissolveDelay
Section titled “neuronMaximumDissolveDelay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:764
neuronMaximumDissolveDelayBonus
Section titled “neuronMaximumDissolveDelayBonus”neuronMaximumDissolveDelayBonus:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:762
neuronMinimumDissolveDelayToVote
Section titled “neuronMinimumDissolveDelayToVote”Defined in: packages/canisters/src/nns/types/governance_converters.ts:765
neuronMinimumStake
Section titled “neuronMinimumStake”Defined in: packages/canisters/src/nns/types/governance_converters.ts:767
proposalInitialVotingPeriod
Section titled “proposalInitialVotingPeriod”Defined in: packages/canisters/src/nns/types/governance_converters.ts:769
proposalRejectionFee
Section titled “proposalRejectionFee”Defined in: packages/canisters/src/nns/types/governance_converters.ts:770
proposalWaitForQuietDeadlineIncrease
Section titled “proposalWaitForQuietDeadlineIncrease”Defined in: packages/canisters/src/nns/types/governance_converters.ts:768
votingRewardParameters
Section titled “votingRewardParameters”votingRewardParameters:
Option<VotingRewardParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:771
GuestLaunchMeasurement
Section titled “GuestLaunchMeasurement”Defined in: packages/canisters/src/nns/types/governance_converters.ts:326
Properties
Section titled “Properties”measurement
Section titled “measurement”measurement:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:331
SEV-SNP measurement (48 bytes).
metadata
Section titled “metadata”metadata:
Option<GuestLaunchMeasurementMetadata>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:327
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
GuestLaunchMeasurements
Section titled “GuestLaunchMeasurements”Defined in: packages/canisters/src/nns/types/governance_converters.ts:333
Properties
Section titled “Properties”guestLaunchMeasurements
Section titled “guestLaunchMeasurements”guestLaunchMeasurements:
Option<GuestLaunchMeasurement[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:334
Defined in: packages/canisters/src/nns/types/governance_converters.ts:744
Properties
Section titled “Properties”base64Encoding
Section titled “base64Encoding”base64Encoding:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:745
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:622
Properties
Section titled “Properties”additionalDissolveDelaySeconds
Section titled “additionalDissolveDelaySeconds”additionalDissolveDelaySeconds:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:624
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:623
InitialTokenDistribution
Section titled “InitialTokenDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:816
Properties
Section titled “Properties”developerDistribution
Section titled “developerDistribution”developerDistribution:
Option<DeveloperDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:818
swapDistribution
Section titled “swapDistribution”swapDistribution:
Option<SwapDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:819
treasuryDistribution
Section titled “treasuryDistribution”treasuryDistribution:
Option<SwapDistribution>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:817
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:665
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:666
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:748
Properties
Section titled “Properties”tokenLogo
Section titled “tokenLogo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:751
tokenName
Section titled “tokenName”tokenName:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:752
tokenSymbol
Section titled “tokenSymbol”tokenSymbol:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:750
transactionFee
Section titled “transactionFee”Defined in: packages/canisters/src/nns/types/governance_converters.ts:749
ListNodeProvidersResponse
Section titled “ListNodeProvidersResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:720
Properties
Section titled “Properties”nodeProviders
Section titled “nodeProviders”nodeProviders:
NodeProvider[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:721
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:347
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:348
snapshotId
Section titled “snapshotId”snapshotId:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:349
MakeExecuteNnsFunctionProposalRequest
Section titled “MakeExecuteNnsFunctionProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:711
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:712
nnsFunction
Section titled “nnsFunction”nnsFunction:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:716
payload
Section titled “payload”payload:
ArrayBuffer
Defined in: packages/canisters/src/nns/types/governance_converters.ts:717
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:714
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:713
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:715
MakeMotionProposalRequest
Section titled “MakeMotionProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:677
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:678
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:682
text:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:681
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:679
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:680
MakeNetworkEconomicsProposalRequest
Section titled “MakeNetworkEconomicsProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:685
Properties
Section titled “Properties”networkEconomics
Section titled “networkEconomics”networkEconomics:
NetworkEconomics
Defined in: packages/canisters/src/nns/types/governance_converters.ts:690
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:686
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:688
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:687
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:689
MakeProposalRequest
Section titled “MakeProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:669
Properties
Section titled “Properties”action
Section titled “action”action:
ProposalActionRequest
Defined in: packages/canisters/src/nns/types/governance_converters.ts:674
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:670
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:673
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:671
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:672
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:693
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:699
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:694
nodeProvider
Section titled “nodeProvider”nodeProvider:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:698
rewardMode
Section titled “rewardMode”rewardMode:
Option<RewardMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:700
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:696
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:695
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:697
MakeSetDefaultFolloweesProposalRequest
Section titled “MakeSetDefaultFolloweesProposalRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:703
Properties
Section titled “Properties”followees
Section titled “followees”followees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:708
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:704
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:706
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:705
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:707
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:359
Properties
Section titled “Properties”sourceNeuronId
Section titled “sourceNeuronId”sourceNeuronId:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:360
MergeMaturity
Section titled “MergeMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:369
Properties
Section titled “Properties”percentageToMerge
Section titled “percentageToMerge”percentageToMerge:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:370
MergeMaturityRequest
Section titled “MergeMaturityRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:372
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:373
percentageToMerge
Section titled “percentageToMerge”percentageToMerge:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:374
MergeMaturityResponse
Section titled “MergeMaturityResponse”Defined in: packages/canisters/src/nns/types/governance_converters.ts:376
Properties
Section titled “Properties”mergedMaturityE8s
Section titled “mergedMaturityE8s”mergedMaturityE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:377
newStakeE8s
Section titled “newStakeE8s”newStakeE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:378
MergeRequest
Section titled “MergeRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:362
Properties
Section titled “Properties”sourceNeuronId
Section titled “sourceNeuronId”sourceNeuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:363
targetNeuronId
Section titled “targetNeuronId”targetNeuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:364
MethodAuthzChange
Section titled “MethodAuthzChange”Defined in: packages/canisters/src/nns/types/governance_converters.ts:380
Properties
Section titled “Properties”canister
Section titled “canister”canister:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:383
methodName
Section titled “methodName”methodName:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:382
operation
Section titled “operation”operation:
AuthzChangeOp
Defined in: packages/canisters/src/nns/types/governance_converters.ts:384
principal
Section titled “principal”principal:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:381
MethodAuthzInfo
Section titled “MethodAuthzInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:386
Properties
Section titled “Properties”methodName
Section titled “methodName”methodName:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:387
principalIds
Section titled “principalIds”principalIds:
ArrayBuffer[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:388
Motion
Section titled “Motion”Defined in: packages/canisters/src/nns/types/governance_converters.ts:390
Properties
Section titled “Properties”motionText
Section titled “motionText”motionText:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:391
NetworkEconomics
Section titled “NetworkEconomics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:423
Properties
Section titled “Properties”maximumNodeProviderRewards
Section titled “maximumNodeProviderRewards”maximumNodeProviderRewards:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:431
maxProposalsToKeepPerTopic
Section titled “maxProposalsToKeepPerTopic”maxProposalsToKeepPerTopic:
number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:425
minimumIcpXdrRate
Section titled “minimumIcpXdrRate”minimumIcpXdrRate:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:430
neuronManagementFeePerProposal
Section titled “neuronManagementFeePerProposal”neuronManagementFeePerProposal:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:426
neuronMinimumStake
Section titled “neuronMinimumStake”neuronMinimumStake:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:424
neuronsFundEconomics
Section titled “neuronsFundEconomics”neuronsFundEconomics:
Option<NeuronsFundEconomics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:432
neuronSpawnDissolveDelaySeconds
Section titled “neuronSpawnDissolveDelaySeconds”neuronSpawnDissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:429
rejectCost
Section titled “rejectCost”rejectCost:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:427
transactionFee
Section titled “transactionFee”transactionFee:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:428
votingPowerEconomics
Section titled “votingPowerEconomics”votingPowerEconomics:
Option<VotingPowerEconomics>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:433
Neuron
Section titled “Neuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:454
Properties
Section titled “Properties”accountIdentifier
Section titled “accountIdentifier”accountIdentifier:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:470
agingSinceTimestampSeconds
Section titled “agingSinceTimestampSeconds”agingSinceTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:466
autoStakeMaturity
Section titled “autoStakeMaturity”autoStakeMaturity:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:464
cachedNeuronStake
Section titled “cachedNeuronStake”cachedNeuronStake:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:462
controller
Section titled “controller”controller:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:458
createdTimestampSeconds
Section titled “createdTimestampSeconds”createdTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:463
decidingVotingPower
Section titled “decidingVotingPower”decidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:478
dissolveState
Section titled “dissolveState”dissolveState:
Option<DissolveState>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:473
eightYearGangBonusBaseE8s
Section titled “eightYearGangBonusBaseE8s”eightYearGangBonusBaseE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:479
followees
Section titled “followees”followees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:474
hotKeys
Section titled “hotKeys”hotKeys:
string[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:469
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:455
joinedCommunityFundTimestampSeconds
Section titled “joinedCommunityFundTimestampSeconds”joinedCommunityFundTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:471
kycVerified
Section titled “kycVerified”kycVerified:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:460
maturityDisbursementsInProgress
Section titled “maturityDisbursementsInProgress”maturityDisbursementsInProgress:
Option<MaturityDisbursement[]>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:472
maturityE8sEquivalent
Section titled “maturityE8sEquivalent”maturityE8sEquivalent:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:465
neuronFees
Section titled “neuronFees”neuronFees:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:468
neuronType
Section titled “neuronType”neuronType:
Option<NeuronType>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:456
notForProfit
Section titled “notForProfit”notForProfit:
boolean
Defined in: packages/canisters/src/nns/types/governance_converters.ts:461
potentialVotingPower
Section titled “potentialVotingPower”potentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:477
recentBallots
Section titled “recentBallots”recentBallots:
BallotInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:459
spawnAtTimesSeconds
Section titled “spawnAtTimesSeconds”spawnAtTimesSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:467
stakedMaturityE8sEquivalent
Section titled “stakedMaturityE8sEquivalent”stakedMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:457
visibility
Section titled “visibility”visibility:
Option<NeuronVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:475
votingPowerRefreshedTimestampSeconds
Section titled “votingPowerRefreshedTimestampSeconds”votingPowerRefreshedTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:476
NeuronBasketConstructionParameters
Section titled “NeuronBasketConstructionParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:779
Properties
Section titled “Properties”count:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:781
dissolveDelayInterval
Section titled “dissolveDelayInterval”Defined in: packages/canisters/src/nns/types/governance_converters.ts:780
NeuronDistribution
Section titled “NeuronDistribution”Defined in: packages/canisters/src/nns/types/governance_converters.ts:804
Properties
Section titled “Properties”controller
Section titled “controller”controller:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:805
dissolveDelay
Section titled “dissolveDelay”Defined in: packages/canisters/src/nns/types/governance_converters.ts:806
memo:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:807
Defined in: packages/canisters/src/nns/types/governance_converters.ts:809
vestingPeriod
Section titled “vestingPeriod”Defined in: packages/canisters/src/nns/types/governance_converters.ts:808
NeuronInfo
Section titled “NeuronInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:484
Properties
Section titled “Properties”ageSeconds
Section titled “ageSeconds”ageSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:498
createdTimestampSeconds
Section titled “createdTimestampSeconds”createdTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:489
decidingVotingPower
Section titled “decidingVotingPower”decidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:495
dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:486
eightYearGangBonusBaseE8s
Section titled “eightYearGangBonusBaseE8s”eightYearGangBonusBaseE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:497
fullNeuron
Section titled “fullNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:499
joinedCommunityFundTimestampSeconds
Section titled “joinedCommunityFundTimestampSeconds”joinedCommunityFundTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:491
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:485
neuronType
Section titled “neuronType”neuronType:
Option<NeuronType>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:488
potentialVotingPower
Section titled “potentialVotingPower”potentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:496
recentBallots
Section titled “recentBallots”recentBallots:
BallotInfo[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:487
retrievedAtTimestampSeconds
Section titled “retrievedAtTimestampSeconds”retrievedAtTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:492
state:
NeuronState
Defined in: packages/canisters/src/nns/types/governance_converters.ts:490
visibility
Section titled “visibility”visibility:
Option<NeuronVisibility>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:500
votingPower
Section titled “votingPower”votingPower:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:493
votingPowerRefreshedTimestampSeconds
Section titled “votingPowerRefreshedTimestampSeconds”votingPowerRefreshedTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:494
NeuronsFundEconomics
Section titled “NeuronsFundEconomics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:440
Properties
Section titled “Properties”maximumIcpXdrRate
Section titled “maximumIcpXdrRate”maximumIcpXdrRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:441
maxTheoreticalNeuronsFundParticipationAmountXdr
Section titled “maxTheoreticalNeuronsFundParticipationAmountXdr”maxTheoreticalNeuronsFundParticipationAmountXdr:
Option<Decimal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:443
minimumIcpXdrRate
Section titled “minimumIcpXdrRate”minimumIcpXdrRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:444
neuronsFundMatchedFundingCurveCoefficients
Section titled “neuronsFundMatchedFundingCurveCoefficients”neuronsFundMatchedFundingCurveCoefficients:
Option<NeuronsFundMatchedFundingCurveCoefficients>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:442
NeuronsFundMatchedFundingCurveCoefficients
Section titled “NeuronsFundMatchedFundingCurveCoefficients”Defined in: packages/canisters/src/nns/types/governance_converters.ts:446
Properties
Section titled “Properties”contributionThresholdXdr
Section titled “contributionThresholdXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:447
fullParticipationMilestoneXdr
Section titled “fullParticipationMilestoneXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:449
oneThirdParticipationMilestoneXdr
Section titled “oneThirdParticipationMilestoneXdr”Defined in: packages/canisters/src/nns/types/governance_converters.ts:448
NeuronSubsetMetrics
Section titled “NeuronSubsetMetrics”Defined in: packages/canisters/src/nns/types/governance_converters.ts:835
Properties
Section titled “Properties”count:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:840
countBuckets
Section titled “countBuckets”countBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:849
decidingVotingPowerBuckets
Section titled “decidingVotingPowerBuckets”decidingVotingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:841
maturityE8sEquivalentBuckets
Section titled “maturityE8sEquivalentBuckets”maturityE8sEquivalentBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:837
potentialVotingPowerBuckets
Section titled “potentialVotingPowerBuckets”potentialVotingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:848
stakedE8sBuckets
Section titled “stakedE8sBuckets”stakedE8sBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:846
stakedMaturityE8sEquivalentBuckets
Section titled “stakedMaturityE8sEquivalentBuckets”stakedMaturityE8sEquivalentBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:845
totalDecidingVotingPower
Section titled “totalDecidingVotingPower”totalDecidingVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:844
totalMaturityE8sEquivalent
Section titled “totalMaturityE8sEquivalent”totalMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:836
totalPotentialVotingPower
Section titled “totalPotentialVotingPower”totalPotentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:843
totalStakedE8s
Section titled “totalStakedE8s”totalStakedE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:839
totalStakedMaturityE8sEquivalent
Section titled “totalStakedMaturityE8sEquivalent”totalStakedMaturityE8sEquivalent:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:842
totalVotingPower
Section titled “totalVotingPower”totalVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:847
votingPowerBuckets
Section titled “votingPowerBuckets”votingPowerBuckets: [
bigint,bigint][]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:838
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:503
Properties
Section titled “Properties”id:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:504
rewardAccount
Section titled “rewardAccount”rewardAccount:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:505
OpenSnsTokenSwap
Section titled “OpenSnsTokenSwap”Defined in: packages/canisters/src/nns/types/governance_converters.ts:393
Properties
Section titled “Properties”communityFundInvestmentE8s
Section titled “communityFundInvestmentE8s”communityFundInvestmentE8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:394
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:396
targetSwapCanisterId
Section titled “targetSwapCanisterId”targetSwapCanisterId:
Option<Principal>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:395
Percentage
Section titled “Percentage”Defined in: packages/canisters/src/nns/types/governance_converters.ts:724
Properties
Section titled “Properties”basisPoints
Section titled “basisPoints”basisPoints:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:725
Proposal
Section titled “Proposal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:525
Properties
Section titled “Properties”action
Section titled “action”Defined in: packages/canisters/src/nns/types/governance_converters.ts:528
selfDescribingAction
Section titled “selfDescribingAction”selfDescribingAction:
Option<SelfDescribingProposalAction>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:530
summary
Section titled “summary”summary:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:529
title:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:526
url:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:527
ProposalInfo
Section titled “ProposalInfo”Defined in: packages/canisters/src/nns/types/governance_converters.ts:534
Properties
Section titled “Properties”ballots
Section titled “ballots”ballots:
Ballot[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:536
deadlineTimestampSeconds
Section titled “deadlineTimestampSeconds”deadlineTimestampSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:542
decidedTimestampSeconds
Section titled “decidedTimestampSeconds”decidedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:541
executedTimestampSeconds
Section titled “executedTimestampSeconds”executedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:546
failedTimestampSeconds
Section titled “failedTimestampSeconds”failedTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:540
id:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:535
latestTally
Section titled “latestTally”Defined in: packages/canisters/src/nns/types/governance_converters.ts:543
proposal
Section titled “proposal”Defined in: packages/canisters/src/nns/types/governance_converters.ts:544
proposalTimestampSeconds
Section titled “proposalTimestampSeconds”proposalTimestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:538
proposer
Section titled “proposer”proposer:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:545
rejectCost
Section titled “rejectCost”rejectCost:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:537
rewardEventRound
Section titled “rewardEventRound”rewardEventRound:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:539
rewardStatus
Section titled “rewardStatus”rewardStatus:
ProposalRewardStatus
Defined in: packages/canisters/src/nns/types/governance_converters.ts:549
status
Section titled “status”status:
ProposalStatus
Defined in: packages/canisters/src/nns/types/governance_converters.ts:548
topic:
Topic
Defined in: packages/canisters/src/nns/types/governance_converters.ts:547
totalPotentialVotingPower
Section titled “totalPotentialVotingPower”totalPotentialVotingPower:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:550
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:553
Properties
Section titled “Properties”proposal
Section titled “proposal”proposal:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:555
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:554
RegisterVoteRequest
Section titled “RegisterVoteRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:633
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:634
proposal
Section titled “proposal”proposal:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:636
vote:
Vote
Defined in: packages/canisters/src/nns/types/governance_converters.ts:635
RemoveHotKey
Section titled “RemoveHotKey”Defined in: packages/canisters/src/nns/types/governance_converters.ts:557
Properties
Section titled “Properties”hotKeyToRemove
Section titled “hotKeyToRemove”hotKeyToRemove:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:558
RemoveHotKeyRequest
Section titled “RemoveHotKeyRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:609
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:610
principal
Section titled “principal”principal:
string
Defined in: packages/canisters/src/nns/types/governance_converters.ts:611
RewardNodeProvider
Section titled “RewardNodeProvider”Defined in: packages/canisters/src/nns/types/governance_converters.ts:580
Properties
Section titled “Properties”amountE8s
Section titled “amountE8s”amountE8s:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:583
nodeProvider
Section titled “nodeProvider”nodeProvider:
Option<NodeProvider>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:581
rewardMode
Section titled “rewardMode”rewardMode:
Option<RewardMode>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:582
RewardNodeProviders
Section titled “RewardNodeProviders”Defined in: packages/canisters/src/nns/types/governance_converters.ts:563
Properties
Section titled “Properties”rewards
Section titled “rewards”rewards:
RewardNodeProvider[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:565
useRegistryDerivedRewards
Section titled “useRegistryDerivedRewards”useRegistryDerivedRewards:
boolean|undefined
Defined in: packages/canisters/src/nns/types/governance_converters.ts:564
RewardToAccount
Section titled “RewardToAccount”Defined in: packages/canisters/src/nns/types/governance_converters.ts:567
Properties
Section titled “Properties”toAccount
Section titled “toAccount”toAccount:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:568
RewardToNeuron
Section titled “RewardToNeuron”Defined in: packages/canisters/src/nns/types/governance_converters.ts:570
Properties
Section titled “Properties”dissolveDelaySeconds
Section titled “dissolveDelaySeconds”dissolveDelaySeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:571
SelfDescribingProposalAction
Section titled “SelfDescribingProposalAction”Defined in: packages/canisters/src/nns/types/governance_converters.ts:519
Properties
Section titled “Properties”typeDescription
Section titled “typeDescription”typeDescription:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:520
typeName
Section titled “typeName”typeName:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:521
value:
Option<SelfDescribingValue>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:522
SetDefaultFollowees
Section titled “SetDefaultFollowees”Defined in: packages/canisters/src/nns/types/governance_converters.ts:585
Properties
Section titled “Properties”defaultFollowees
Section titled “defaultFollowees”defaultFollowees:
Followees[]
Defined in: packages/canisters/src/nns/types/governance_converters.ts:586
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:414
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:415
swapCanisterId
Section titled “swapCanisterId”swapCanisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:421
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:588
Properties
Section titled “Properties”newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:589
percentageToSpawn
Section titled “percentageToSpawn”percentageToSpawn:
number|undefined
Defined in: packages/canisters/src/nns/types/governance_converters.ts:590
SpawnRequest
Section titled “SpawnRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:639
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:640
newController
Section titled “newController”newController:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:641
percentageToSpawn?
Section titled “percentageToSpawn?”
optionalpercentageToSpawn:number
Defined in: packages/canisters/src/nns/types/governance_converters.ts:642
Defined in: packages/canisters/src/nns/types/governance_converters.ts:593
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:594
memo:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:595
SplitRequest
Section titled “SplitRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:645
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:647
neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:646
StakeMaturity
Section titled “StakeMaturity”Defined in: packages/canisters/src/nns/types/governance_converters.ts:366
Properties
Section titled “Properties”percentageToStake
Section titled “percentageToStake”percentageToStake:
Option<number>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:367
StartDissolvingRequest
Section titled “StartDissolvingRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:614
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:615
StopDissolvingRequest
Section titled “StopDissolvingRequest”Defined in: packages/canisters/src/nns/types/governance_converters.ts:618
Properties
Section titled “Properties”neuronId
Section titled “neuronId”neuronId:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:619
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:800
Properties
Section titled “Properties”Defined in: packages/canisters/src/nns/types/governance_converters.ts:801
SwapParameters
Section titled “SwapParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:783
Properties
Section titled “Properties”confirmationText
Section titled “confirmationText”confirmationText:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:787
duration
Section titled “duration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:785
maxDirectParticipationIcp
Section titled “maxDirectParticipationIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:795
maximumIcp
Section titled “maximumIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:793
maximumParticipantIcp
Section titled “maximumParticipantIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:788
minDirectParticipationIcp
Section titled “minDirectParticipationIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:796
minimumIcp
Section titled “minimumIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:790
minimumParticipantIcp
Section titled “minimumParticipantIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:791
minimumParticipants
Section titled “minimumParticipants”minimumParticipants:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:784
neuronBasketConstructionParameters
Section titled “neuronBasketConstructionParameters”neuronBasketConstructionParameters:
Option<NeuronBasketConstructionParameters>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:786
neuronsFundInvestmentIcp
Section titled “neuronsFundInvestmentIcp”Defined in: packages/canisters/src/nns/types/governance_converters.ts:789
neuronsFundParticipation
Section titled “neuronsFundParticipation”neuronsFundParticipation:
Option<boolean>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:797
restrictedCountries
Section titled “restrictedCountries”Defined in: packages/canisters/src/nns/types/governance_converters.ts:794
startTime
Section titled “startTime”startTime:
Option<GlobalTimeOfDay>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:792
TakeCanisterSnapshot
Section titled “TakeCanisterSnapshot”Defined in: packages/canisters/src/nns/types/governance_converters.ts:342
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Option<string>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:344
replaceSnapshot
Section titled “replaceSnapshot”replaceSnapshot:
Option<Uint8Array<ArrayBufferLike>>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:343
Defined in: packages/canisters/src/nns/types/governance_converters.ts:597
Properties
Section titled “Properties”no:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:598
timestampSeconds
Section titled “timestampSeconds”timestampSeconds:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:601
total:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:600
yes:
bigint
Defined in: packages/canisters/src/nns/types/governance_converters.ts:599
Tokens
Section titled “Tokens”Defined in: packages/canisters/src/nns/types/governance_converters.ts:740
Properties
Section titled “Properties”e8s:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:741
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:435
Properties
Section titled “Properties”clearFollowingAfterSeconds
Section titled “clearFollowingAfterSeconds”clearFollowingAfterSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:438
neuronMinimumDissolveDelayToVoteSeconds
Section titled “neuronMinimumDissolveDelayToVoteSeconds”neuronMinimumDissolveDelayToVoteSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:437
startReducingVotingPowerAfterSeconds
Section titled “startReducingVotingPowerAfterSeconds”startReducingVotingPowerAfterSeconds:
Option<bigint>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:436
VotingRewardParameters
Section titled “VotingRewardParameters”Defined in: packages/canisters/src/nns/types/governance_converters.ts:755
Properties
Section titled “Properties”finalRewardRate
Section titled “finalRewardRate”finalRewardRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:758
initialRewardRate
Section titled “initialRewardRate”initialRewardRate:
Option<Percentage>
Defined in: packages/canisters/src/nns/types/governance_converters.ts:757
rewardRateTransitionDuration
Section titled “rewardRateTransitionDuration”Defined in: packages/canisters/src/nns/types/governance_converters.ts:756
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:481
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:507
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:532
RewardMode
Section titled “RewardMode”RewardMode = {
RewardToNeuron:RewardToNeuron; } | {RewardToAccount:RewardToAccount; }
Defined in: packages/canisters/src/nns/types/governance_converters.ts:560
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.