@dfinity/sns 2.1.2 → 3.0.0-next-2024-02-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -76
- package/dist/candid/sns_governance.certified.idl.js +19 -0
- package/dist/candid/sns_governance.d.ts +10 -0
- package/dist/candid/sns_governance.did +14 -2
- package/dist/candid/sns_governance.idl.js +19 -0
- package/dist/candid/sns_governance_test.certified.idl.js +19 -0
- package/dist/candid/sns_governance_test.d.ts +10 -0
- package/dist/candid/sns_governance_test.did +14 -2
- package/dist/candid/sns_governance_test.idl.js +19 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/{chunk-K4RKSLVO.js → chunk-HI3EK7WH.js} +2 -2
- package/dist/esm/chunk-HO3ELWLY.js +2 -0
- package/dist/esm/chunk-HO3ELWLY.js.map +7 -0
- package/dist/esm/chunk-WQJQSVHV.js +7 -0
- package/dist/esm/chunk-WQJQSVHV.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/types/governance.canister.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/sns.wrapper.d.ts +2 -2
- package/package.json +7 -7
- package/dist/esm/chunk-BMI3IY3I.js +0 -7
- package/dist/esm/chunk-BMI3IY3I.js.map +0 -7
- package/dist/esm/chunk-VULQZFHD.js +0 -2
- package/dist/esm/chunk-VULQZFHD.js.map +0 -7
- /package/dist/esm/{chunk-K4RKSLVO.js.map → chunk-HI3EK7WH.js.map} +0 -0
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ Lookup for the canister ids of a Sns and initialize the wrapper to access its fe
|
|
|
83
83
|
|
|
84
84
|
### :factory: SnsGovernanceCanister
|
|
85
85
|
|
|
86
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
86
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L63)
|
|
87
87
|
|
|
88
88
|
#### Methods
|
|
89
89
|
|
|
@@ -125,7 +125,7 @@ Parameters:
|
|
|
125
125
|
|
|
126
126
|
- `options`: Miscellaneous options to initialize the canister. Its ID being the only mandatory parammeter.
|
|
127
127
|
|
|
128
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
128
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L69)
|
|
129
129
|
|
|
130
130
|
##### :gear: listNeurons
|
|
131
131
|
|
|
@@ -135,17 +135,17 @@ List the neurons of the Sns
|
|
|
135
135
|
| ------------- | ----------------------------------------------------- |
|
|
136
136
|
| `listNeurons` | `(params: SnsListNeuronsParams) => Promise<Neuron[]>` |
|
|
137
137
|
|
|
138
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
138
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L83)
|
|
139
139
|
|
|
140
140
|
##### :gear: listProposals
|
|
141
141
|
|
|
142
142
|
List the proposals of the Sns
|
|
143
143
|
|
|
144
|
-
| Method | Type
|
|
145
|
-
| --------------- |
|
|
146
|
-
| `listProposals` | `(params: SnsListProposalsParams) => Promise<
|
|
144
|
+
| Method | Type |
|
|
145
|
+
| --------------- | -------------------------------------------------------------------- |
|
|
146
|
+
| `listProposals` | `(params: SnsListProposalsParams) => Promise<ListProposalsResponse>` |
|
|
147
147
|
|
|
148
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
148
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L97)
|
|
149
149
|
|
|
150
150
|
##### :gear: getProposal
|
|
151
151
|
|
|
@@ -155,7 +155,7 @@ Get the proposal of the Sns
|
|
|
155
155
|
| ------------- | --------------------------------------------------------- |
|
|
156
156
|
| `getProposal` | `(params: SnsGetProposalParams) => Promise<ProposalData>` |
|
|
157
157
|
|
|
158
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
158
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L111)
|
|
159
159
|
|
|
160
160
|
##### :gear: listNervousSystemFunctions
|
|
161
161
|
|
|
@@ -166,7 +166,7 @@ Neurons can follow other neurons in specific Nervous System Functions.
|
|
|
166
166
|
| ---------------------------- | ---------------------------------------------------------------------- |
|
|
167
167
|
| `listNervousSystemFunctions` | `(params: QueryParams) => Promise<ListNervousSystemFunctionsResponse>` |
|
|
168
168
|
|
|
169
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
169
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L130)
|
|
170
170
|
|
|
171
171
|
##### :gear: metadata
|
|
172
172
|
|
|
@@ -176,7 +176,7 @@ Get the Sns metadata (title, description, etc.)
|
|
|
176
176
|
| ---------- | ------------------------------------------------------- |
|
|
177
177
|
| `metadata` | `(params: QueryParams) => Promise<GetMetadataResponse>` |
|
|
178
178
|
|
|
179
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
179
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L138)
|
|
180
180
|
|
|
181
181
|
##### :gear: nervousSystemParameters
|
|
182
182
|
|
|
@@ -186,7 +186,7 @@ Get the Sns nervous system parameters (default followees, max dissolve delay, ma
|
|
|
186
186
|
| ------------------------- | ----------------------------------------------------------- |
|
|
187
187
|
| `nervousSystemParameters` | `(params: QueryParams) => Promise<NervousSystemParameters>` |
|
|
188
188
|
|
|
189
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
189
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L144)
|
|
190
190
|
|
|
191
191
|
##### :gear: getNeuron
|
|
192
192
|
|
|
@@ -196,7 +196,7 @@ Get the neuron of the Sns
|
|
|
196
196
|
| ----------- | ------------------------------------------------- |
|
|
197
197
|
| `getNeuron` | `(params: SnsGetNeuronParams) => Promise<Neuron>` |
|
|
198
198
|
|
|
199
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
199
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L152)
|
|
200
200
|
|
|
201
201
|
##### :gear: queryNeuron
|
|
202
202
|
|
|
@@ -206,7 +206,7 @@ Same as `getNeuron` but returns undefined instead of raising error when not foun
|
|
|
206
206
|
| ------------- | ------------------------------------------------- |
|
|
207
207
|
| `queryNeuron` | `(params: SnsGetNeuronParams) => Promise<Neuron>` |
|
|
208
208
|
|
|
209
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
209
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L170)
|
|
210
210
|
|
|
211
211
|
##### :gear: manageNeuron
|
|
212
212
|
|
|
@@ -216,7 +216,7 @@ Manage neuron. For advanced users.
|
|
|
216
216
|
| -------------- | ---------------------------------------------------------- |
|
|
217
217
|
| `manageNeuron` | `(request: ManageNeuron) => Promise<ManageNeuronResponse>` |
|
|
218
218
|
|
|
219
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
219
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L190)
|
|
220
220
|
|
|
221
221
|
##### :gear: addNeuronPermissions
|
|
222
222
|
|
|
@@ -226,7 +226,7 @@ Add permissions to a neuron for a specific principal
|
|
|
226
226
|
| ---------------------- | ------------------------------------------------------- |
|
|
227
227
|
| `addNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
228
228
|
|
|
229
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
229
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L203)
|
|
230
230
|
|
|
231
231
|
##### :gear: removeNeuronPermissions
|
|
232
232
|
|
|
@@ -236,7 +236,7 @@ Remove permissions to a neuron for a specific principal
|
|
|
236
236
|
| ------------------------- | ------------------------------------------------------- |
|
|
237
237
|
| `removeNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
238
238
|
|
|
239
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
239
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L213)
|
|
240
240
|
|
|
241
241
|
##### :gear: splitNeuron
|
|
242
242
|
|
|
@@ -246,7 +246,7 @@ Split neuron
|
|
|
246
246
|
| ------------- | ----------------------------------------------------- |
|
|
247
247
|
| `splitNeuron` | `(params: SnsSplitNeuronParams) => Promise<NeuronId>` |
|
|
248
248
|
|
|
249
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
249
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L223)
|
|
250
250
|
|
|
251
251
|
##### :gear: disburse
|
|
252
252
|
|
|
@@ -256,7 +256,7 @@ Disburse neuron on Account
|
|
|
256
256
|
| ---------- | ---------------------------------------------------- |
|
|
257
257
|
| `disburse` | `(params: SnsDisburseNeuronParams) => Promise<void>` |
|
|
258
258
|
|
|
259
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
259
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L254)
|
|
260
260
|
|
|
261
261
|
##### :gear: startDissolving
|
|
262
262
|
|
|
@@ -266,7 +266,7 @@ Start dissolving process of a neuron
|
|
|
266
266
|
| ----------------- | --------------------------------------- |
|
|
267
267
|
| `startDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
268
268
|
|
|
269
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
269
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L262)
|
|
270
270
|
|
|
271
271
|
##### :gear: stopDissolving
|
|
272
272
|
|
|
@@ -276,7 +276,7 @@ Stop dissolving process of a neuron
|
|
|
276
276
|
| ---------------- | --------------------------------------- |
|
|
277
277
|
| `stopDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
278
278
|
|
|
279
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
279
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L270)
|
|
280
280
|
|
|
281
281
|
##### :gear: stakeMaturity
|
|
282
282
|
|
|
@@ -291,7 +291,7 @@ Parameters:
|
|
|
291
291
|
- `neuronId`: The id of the neuron for which to stake the maturity
|
|
292
292
|
- `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
|
|
293
293
|
|
|
294
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
294
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L282)
|
|
295
295
|
|
|
296
296
|
##### :gear: disburseMaturity
|
|
297
297
|
|
|
@@ -307,7 +307,7 @@ Parameters:
|
|
|
307
307
|
- `neuronId`: The id of the neuron for which to disburse the maturity
|
|
308
308
|
- `percentageToDisburse`: What percentage of the available maturity to disburse.
|
|
309
309
|
|
|
310
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
310
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L303)
|
|
311
311
|
|
|
312
312
|
##### :gear: autoStakeMaturity
|
|
313
313
|
|
|
@@ -322,7 +322,7 @@ Parameters:
|
|
|
322
322
|
- `neuronId`: The id of the neuron for which to request a change of the auto stake feature
|
|
323
323
|
- `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
|
|
324
324
|
|
|
325
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
325
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L319)
|
|
326
326
|
|
|
327
327
|
##### :gear: setDissolveTimestamp
|
|
328
328
|
|
|
@@ -332,7 +332,7 @@ Increase dissolve delay of a neuron
|
|
|
332
332
|
| ---------------------- | ---------------------------------------------------------- |
|
|
333
333
|
| `setDissolveTimestamp` | `(params: SnsSetDissolveTimestampParams) => Promise<void>` |
|
|
334
334
|
|
|
335
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
335
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L329)
|
|
336
336
|
|
|
337
337
|
##### :gear: increaseDissolveDelay
|
|
338
338
|
|
|
@@ -342,7 +342,7 @@ Increase dissolve delay of a neuron
|
|
|
342
342
|
| ----------------------- | ----------------------------------------------------------- |
|
|
343
343
|
| `increaseDissolveDelay` | `(params: SnsIncreaseDissolveDelayParams) => Promise<void>` |
|
|
344
344
|
|
|
345
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
345
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L339)
|
|
346
346
|
|
|
347
347
|
##### :gear: setTopicFollowees
|
|
348
348
|
|
|
@@ -352,7 +352,7 @@ Sets followees of a neuron for a specific Nervous System Function (topic)
|
|
|
352
352
|
| ------------------- | ------------------------------------------------- |
|
|
353
353
|
| `setTopicFollowees` | `(params: SnsSetTopicFollowees) => Promise<void>` |
|
|
354
354
|
|
|
355
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
355
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L349)
|
|
356
356
|
|
|
357
357
|
##### :gear: registerVote
|
|
358
358
|
|
|
@@ -362,7 +362,7 @@ Registers vote for a proposal from the neuron passed.
|
|
|
362
362
|
| -------------- | -------------------------------------------------- |
|
|
363
363
|
| `registerVote` | `(params: SnsRegisterVoteParams) => Promise<void>` |
|
|
364
364
|
|
|
365
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
365
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L357)
|
|
366
366
|
|
|
367
367
|
##### :gear: refreshNeuron
|
|
368
368
|
|
|
@@ -372,7 +372,7 @@ Refresh neuron
|
|
|
372
372
|
| --------------- | --------------------------------------- |
|
|
373
373
|
| `refreshNeuron` | `(neuronId: NeuronId) => Promise<void>` |
|
|
374
374
|
|
|
375
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
375
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L365)
|
|
376
376
|
|
|
377
377
|
##### :gear: claimNeuron
|
|
378
378
|
|
|
@@ -382,7 +382,7 @@ Claim neuron
|
|
|
382
382
|
| ------------- | -------------------------------------------------------------------------------- |
|
|
383
383
|
| `claimNeuron` | `({ memo, controller, subaccount, }: SnsClaimNeuronParams) => Promise<NeuronId>` |
|
|
384
384
|
|
|
385
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
385
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L375)
|
|
386
386
|
|
|
387
387
|
### :factory: SnsRootCanister
|
|
388
388
|
|
|
@@ -545,7 +545,7 @@ Sns wrapper - notably used by NNS-dapp - ease the access to a particular Sns.
|
|
|
545
545
|
It knows all the Sns' canisters, wrap and enhance their available features.
|
|
546
546
|
A wrapper either performs query or update calls.
|
|
547
547
|
|
|
548
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
548
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L85)
|
|
549
549
|
|
|
550
550
|
#### Constructors
|
|
551
551
|
|
|
@@ -607,15 +607,15 @@ Parameters:
|
|
|
607
607
|
| ------------- | ------------------------------------------------------------------------ |
|
|
608
608
|
| `listNeurons` | `(params: Omit<SnsListNeuronsParams, "certified">) => Promise<Neuron[]>` |
|
|
609
609
|
|
|
610
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
610
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L131)
|
|
611
611
|
|
|
612
612
|
##### :gear: listProposals
|
|
613
613
|
|
|
614
|
-
| Method | Type
|
|
615
|
-
| --------------- |
|
|
616
|
-
| `listProposals` | `(params: Omit<SnsListProposalsParams, "certified">) => Promise<
|
|
614
|
+
| Method | Type |
|
|
615
|
+
| --------------- | --------------------------------------------------------------------------------------- |
|
|
616
|
+
| `listProposals` | `(params: Omit<SnsListProposalsParams, "certified">) => Promise<ListProposalsResponse>` |
|
|
617
617
|
|
|
618
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
618
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L135)
|
|
619
619
|
|
|
620
620
|
##### :gear: getProposal
|
|
621
621
|
|
|
@@ -623,7 +623,7 @@ Parameters:
|
|
|
623
623
|
| ------------- | ---------------------------------------------------------------------------- |
|
|
624
624
|
| `getProposal` | `(params: Omit<SnsGetProposalParams, "certified">) => Promise<ProposalData>` |
|
|
625
625
|
|
|
626
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
626
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L140)
|
|
627
627
|
|
|
628
628
|
##### :gear: listNervousSystemFunctions
|
|
629
629
|
|
|
@@ -631,7 +631,7 @@ Parameters:
|
|
|
631
631
|
| ---------------------------- | ----------------------------------------------------------------------------------------- |
|
|
632
632
|
| `listNervousSystemFunctions` | `(params: Omit<QueryParams, "certified">) => Promise<ListNervousSystemFunctionsResponse>` |
|
|
633
633
|
|
|
634
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
634
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L145)
|
|
635
635
|
|
|
636
636
|
##### :gear: metadata
|
|
637
637
|
|
|
@@ -639,7 +639,7 @@ Parameters:
|
|
|
639
639
|
| ---------- | ------------------------------------------------------------------------------------------------------- |
|
|
640
640
|
| `metadata` | `(params: Omit<QueryParams, "certified">) => Promise<[GetMetadataResponse, IcrcTokenMetadataResponse]>` |
|
|
641
641
|
|
|
642
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
642
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L150)
|
|
643
643
|
|
|
644
644
|
##### :gear: nervousSystemParameters
|
|
645
645
|
|
|
@@ -647,7 +647,7 @@ Parameters:
|
|
|
647
647
|
| ------------------------- | ------------------------------------------------------------------------------ |
|
|
648
648
|
| `nervousSystemParameters` | `(params: Omit<QueryParams, "certified">) => Promise<NervousSystemParameters>` |
|
|
649
649
|
|
|
650
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
650
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L158)
|
|
651
651
|
|
|
652
652
|
##### :gear: ledgerMetadata
|
|
653
653
|
|
|
@@ -655,7 +655,7 @@ Parameters:
|
|
|
655
655
|
| ---------------- | -------------------------------------------------------------------------------- |
|
|
656
656
|
| `ledgerMetadata` | `(params: Omit<QueryParams, "certified">) => Promise<IcrcTokenMetadataResponse>` |
|
|
657
657
|
|
|
658
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
658
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L163)
|
|
659
659
|
|
|
660
660
|
##### :gear: transactionFee
|
|
661
661
|
|
|
@@ -663,7 +663,7 @@ Parameters:
|
|
|
663
663
|
| ---------------- | ------------------------------------------------------------- |
|
|
664
664
|
| `transactionFee` | `(params: Omit<QueryParams, "certified">) => Promise<bigint>` |
|
|
665
665
|
|
|
666
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
666
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L168)
|
|
667
667
|
|
|
668
668
|
##### :gear: totalTokensSupply
|
|
669
669
|
|
|
@@ -671,7 +671,7 @@ Parameters:
|
|
|
671
671
|
| ------------------- | ------------------------------------------------------------- |
|
|
672
672
|
| `totalTokensSupply` | `(params: Omit<QueryParams, "certified">) => Promise<bigint>` |
|
|
673
673
|
|
|
674
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
674
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L173)
|
|
675
675
|
|
|
676
676
|
##### :gear: balance
|
|
677
677
|
|
|
@@ -679,7 +679,7 @@ Parameters:
|
|
|
679
679
|
| --------- | --------------------------------------------------------------- |
|
|
680
680
|
| `balance` | `(params: Omit<BalanceParams, "certified">) => Promise<bigint>` |
|
|
681
681
|
|
|
682
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
682
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L178)
|
|
683
683
|
|
|
684
684
|
##### :gear: transfer
|
|
685
685
|
|
|
@@ -687,7 +687,7 @@ Parameters:
|
|
|
687
687
|
| ---------- | --------------------------------------------- |
|
|
688
688
|
| `transfer` | `(params: TransferParams) => Promise<bigint>` |
|
|
689
689
|
|
|
690
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
690
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L182)
|
|
691
691
|
|
|
692
692
|
##### :gear: getNeuron
|
|
693
693
|
|
|
@@ -695,7 +695,7 @@ Parameters:
|
|
|
695
695
|
| ----------- | -------------------------------------------------------------------- |
|
|
696
696
|
| `getNeuron` | `(params: Omit<SnsGetNeuronParams, "certified">) => Promise<Neuron>` |
|
|
697
697
|
|
|
698
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
698
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L185)
|
|
699
699
|
|
|
700
700
|
##### :gear: queryNeuron
|
|
701
701
|
|
|
@@ -703,7 +703,7 @@ Parameters:
|
|
|
703
703
|
| ------------- | -------------------------------------------------------------------- |
|
|
704
704
|
| `queryNeuron` | `(params: Omit<SnsGetNeuronParams, "certified">) => Promise<Neuron>` |
|
|
705
705
|
|
|
706
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
706
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L189)
|
|
707
707
|
|
|
708
708
|
##### :gear: nextNeuronAccount
|
|
709
709
|
|
|
@@ -723,7 +723,7 @@ This is how the backend can identify which neuron is being claimed.
|
|
|
723
723
|
| ------------------- | ------------------------------------------------------------------------------ |
|
|
724
724
|
| `nextNeuronAccount` | `(controller: Principal) => Promise<{ account: IcrcAccount; index: bigint; }>` |
|
|
725
725
|
|
|
726
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
726
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L210)
|
|
727
727
|
|
|
728
728
|
##### :gear: stakeNeuron
|
|
729
729
|
|
|
@@ -737,7 +737,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
737
737
|
| ------------- | ------------------------------------------------------------------------------------------------ |
|
|
738
738
|
| `stakeNeuron` | `({ stakeE8s, source, controller, createdAt, fee, }: SnsStakeNeuronParams) => Promise<NeuronId>` |
|
|
739
739
|
|
|
740
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
740
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L257)
|
|
741
741
|
|
|
742
742
|
##### :gear: increaseStakeNeuron
|
|
743
743
|
|
|
@@ -751,7 +751,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
751
751
|
| --------------------- | ---------------------------------------------------------------------------------- |
|
|
752
752
|
| `increaseStakeNeuron` | `({ stakeE8s, source, neuronId, }: SnsIncreaseStakeNeuronParams) => Promise<void>` |
|
|
753
753
|
|
|
754
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
754
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L304)
|
|
755
755
|
|
|
756
756
|
##### :gear: getNeuronBalance
|
|
757
757
|
|
|
@@ -759,7 +759,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
759
759
|
| ------------------ | ----------------------------------------- |
|
|
760
760
|
| `getNeuronBalance` | `(neuronId: NeuronId) => Promise<bigint>` |
|
|
761
761
|
|
|
762
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
762
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L323)
|
|
763
763
|
|
|
764
764
|
##### :gear: addNeuronPermissions
|
|
765
765
|
|
|
@@ -767,7 +767,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
767
767
|
| ---------------------- | ------------------------------------------------------- |
|
|
768
768
|
| `addNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
769
769
|
|
|
770
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
770
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L332)
|
|
771
771
|
|
|
772
772
|
##### :gear: refreshNeuron
|
|
773
773
|
|
|
@@ -775,7 +775,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
775
775
|
| --------------- | --------------------------------------- |
|
|
776
776
|
| `refreshNeuron` | `(neuronId: NeuronId) => Promise<void>` |
|
|
777
777
|
|
|
778
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
778
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L336)
|
|
779
779
|
|
|
780
780
|
##### :gear: claimNeuron
|
|
781
781
|
|
|
@@ -783,7 +783,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
783
783
|
| ------------- | ----------------------------------------------------- |
|
|
784
784
|
| `claimNeuron` | `(params: SnsClaimNeuronParams) => Promise<NeuronId>` |
|
|
785
785
|
|
|
786
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
786
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L340)
|
|
787
787
|
|
|
788
788
|
##### :gear: removeNeuronPermissions
|
|
789
789
|
|
|
@@ -791,7 +791,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
791
791
|
| ------------------------- | ------------------------------------------------------- |
|
|
792
792
|
| `removeNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
793
793
|
|
|
794
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
794
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L344)
|
|
795
795
|
|
|
796
796
|
##### :gear: splitNeuron
|
|
797
797
|
|
|
@@ -799,7 +799,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
799
799
|
| ------------- | ----------------------------------------------------- |
|
|
800
800
|
| `splitNeuron` | `(params: SnsSplitNeuronParams) => Promise<NeuronId>` |
|
|
801
801
|
|
|
802
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
802
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L349)
|
|
803
803
|
|
|
804
804
|
##### :gear: disburse
|
|
805
805
|
|
|
@@ -807,7 +807,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
807
807
|
| ---------- | ---------------------------------------------------- |
|
|
808
808
|
| `disburse` | `(params: SnsDisburseNeuronParams) => Promise<void>` |
|
|
809
809
|
|
|
810
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
810
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L353)
|
|
811
811
|
|
|
812
812
|
##### :gear: startDissolving
|
|
813
813
|
|
|
@@ -815,7 +815,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
815
815
|
| ----------------- | --------------------------------------- |
|
|
816
816
|
| `startDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
817
817
|
|
|
818
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
818
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L357)
|
|
819
819
|
|
|
820
820
|
##### :gear: stopDissolving
|
|
821
821
|
|
|
@@ -823,7 +823,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
823
823
|
| ---------------- | --------------------------------------- |
|
|
824
824
|
| `stopDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
825
825
|
|
|
826
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
826
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L361)
|
|
827
827
|
|
|
828
828
|
##### :gear: setDissolveTimestamp
|
|
829
829
|
|
|
@@ -831,7 +831,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
831
831
|
| ---------------------- | ---------------------------------------------------------- |
|
|
832
832
|
| `setDissolveTimestamp` | `(params: SnsSetDissolveTimestampParams) => Promise<void>` |
|
|
833
833
|
|
|
834
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
834
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L365)
|
|
835
835
|
|
|
836
836
|
##### :gear: increaseDissolveDelay
|
|
837
837
|
|
|
@@ -839,7 +839,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
839
839
|
| ----------------------- | ----------------------------------------------------------- |
|
|
840
840
|
| `increaseDissolveDelay` | `(params: SnsIncreaseDissolveDelayParams) => Promise<void>` |
|
|
841
841
|
|
|
842
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
842
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L370)
|
|
843
843
|
|
|
844
844
|
##### :gear: setTopicFollowees
|
|
845
845
|
|
|
@@ -847,7 +847,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
847
847
|
| ------------------- | ------------------------------------------------- |
|
|
848
848
|
| `setTopicFollowees` | `(params: SnsSetTopicFollowees) => Promise<void>` |
|
|
849
849
|
|
|
850
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
850
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L375)
|
|
851
851
|
|
|
852
852
|
##### :gear: registerVote
|
|
853
853
|
|
|
@@ -855,7 +855,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
855
855
|
| -------------- | -------------------------------------------------- |
|
|
856
856
|
| `registerVote` | `(params: SnsRegisterVoteParams) => Promise<void>` |
|
|
857
857
|
|
|
858
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
858
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L379)
|
|
859
859
|
|
|
860
860
|
##### :gear: swapState
|
|
861
861
|
|
|
@@ -863,7 +863,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
863
863
|
| ----------- | ----------------------------------------------------------------------- |
|
|
864
864
|
| `swapState` | `(params: Omit<QueryParams, "certified">) => Promise<GetStateResponse>` |
|
|
865
865
|
|
|
866
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
866
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L382)
|
|
867
867
|
|
|
868
868
|
##### :gear: notifyPaymentFailure
|
|
869
869
|
|
|
@@ -877,7 +877,7 @@ Always certified
|
|
|
877
877
|
| ---------------------- | ----------------------- |
|
|
878
878
|
| `notifyPaymentFailure` | `() => Promise<Ticket>` |
|
|
879
879
|
|
|
880
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
880
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L395)
|
|
881
881
|
|
|
882
882
|
##### :gear: notifyParticipation
|
|
883
883
|
|
|
@@ -885,7 +885,7 @@ Always certified
|
|
|
885
885
|
| --------------------- | ---------------------------------------------------------------------------- |
|
|
886
886
|
| `notifyParticipation` | `(params: RefreshBuyerTokensRequest) => Promise<RefreshBuyerTokensResponse>` |
|
|
887
887
|
|
|
888
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
888
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L399)
|
|
889
889
|
|
|
890
890
|
##### :gear: getUserCommitment
|
|
891
891
|
|
|
@@ -893,7 +893,7 @@ Always certified
|
|
|
893
893
|
| ------------------- | ------------------------------------------------------- |
|
|
894
894
|
| `getUserCommitment` | `(params: GetBuyerStateRequest) => Promise<BuyerState>` |
|
|
895
895
|
|
|
896
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
896
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L404)
|
|
897
897
|
|
|
898
898
|
##### :gear: getOpenTicket
|
|
899
899
|
|
|
@@ -901,7 +901,7 @@ Always certified
|
|
|
901
901
|
| --------------- | ------------------------------------------------------------- |
|
|
902
902
|
| `getOpenTicket` | `(params: Omit<QueryParams, "certified">) => Promise<Ticket>` |
|
|
903
903
|
|
|
904
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
904
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L409)
|
|
905
905
|
|
|
906
906
|
##### :gear: newSaleTicket
|
|
907
907
|
|
|
@@ -909,7 +909,7 @@ Always certified
|
|
|
909
909
|
| --------------- | -------------------------------------------------- |
|
|
910
910
|
| `newSaleTicket` | `(params: NewSaleTicketParams) => Promise<Ticket>` |
|
|
911
911
|
|
|
912
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
912
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L415)
|
|
913
913
|
|
|
914
914
|
##### :gear: getLifecycle
|
|
915
915
|
|
|
@@ -917,7 +917,7 @@ Always certified
|
|
|
917
917
|
| -------------- | --------------------------------------------------------------------------- |
|
|
918
918
|
| `getLifecycle` | `(params: Omit<QueryParams, "certified">) => Promise<GetLifecycleResponse>` |
|
|
919
919
|
|
|
920
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
920
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L418)
|
|
921
921
|
|
|
922
922
|
##### :gear: getFinalizationStatus
|
|
923
923
|
|
|
@@ -925,7 +925,7 @@ Always certified
|
|
|
925
925
|
| ----------------------- | ---------------------------------------------------------------------------------------- |
|
|
926
926
|
| `getFinalizationStatus` | `(params: Omit<QueryParams, "certified">) => Promise<GetAutoFinalizationStatusResponse>` |
|
|
927
927
|
|
|
928
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
928
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L423)
|
|
929
929
|
|
|
930
930
|
##### :gear: getSaleParameters
|
|
931
931
|
|
|
@@ -933,7 +933,7 @@ Always certified
|
|
|
933
933
|
| ------------------- | -------------------------------------------------------------------------------- |
|
|
934
934
|
| `getSaleParameters` | `(params: Omit<QueryParams, "certified">) => Promise<GetSaleParametersResponse>` |
|
|
935
935
|
|
|
936
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
936
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L428)
|
|
937
937
|
|
|
938
938
|
##### :gear: getDerivedState
|
|
939
939
|
|
|
@@ -941,7 +941,7 @@ Always certified
|
|
|
941
941
|
| ----------------- | ------------------------------------------------------------------------------ |
|
|
942
942
|
| `getDerivedState` | `(params: Omit<QueryParams, "certified">) => Promise<GetDerivedStateResponse>` |
|
|
943
943
|
|
|
944
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
944
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L433)
|
|
945
945
|
|
|
946
946
|
##### :gear: getTransactions
|
|
947
947
|
|
|
@@ -949,7 +949,7 @@ Always certified
|
|
|
949
949
|
| ----------------- | -------------------------------------------------------------------- |
|
|
950
950
|
| `getTransactions` | `(params: GetAccountTransactionsParams) => Promise<GetTransactions>` |
|
|
951
951
|
|
|
952
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
952
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L439)
|
|
953
953
|
|
|
954
954
|
##### :gear: stakeMaturity
|
|
955
955
|
|
|
@@ -957,7 +957,7 @@ Always certified
|
|
|
957
957
|
| --------------- | --------------------------------------------------------- |
|
|
958
958
|
| `stakeMaturity` | `(params: SnsNeuronStakeMaturityParams) => Promise<void>` |
|
|
959
959
|
|
|
960
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
960
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L444)
|
|
961
961
|
|
|
962
962
|
##### :gear: disburseMaturity
|
|
963
963
|
|
|
@@ -965,7 +965,7 @@ Always certified
|
|
|
965
965
|
| ------------------ | ------------------------------------------------------------ |
|
|
966
966
|
| `disburseMaturity` | `(params: SnsNeuronDisburseMaturityParams) => Promise<void>` |
|
|
967
967
|
|
|
968
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
968
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L448)
|
|
969
969
|
|
|
970
970
|
##### :gear: autoStakeMaturity
|
|
971
971
|
|
|
@@ -973,6 +973,6 @@ Always certified
|
|
|
973
973
|
| ------------------- | ------------------------------------------------------------- |
|
|
974
974
|
| `autoStakeMaturity` | `(params: SnsNeuronAutoStakeMaturityParams) => Promise<void>` |
|
|
975
975
|
|
|
976
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
976
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L452)
|
|
977
977
|
|
|
978
978
|
<!-- TSDOC_END -->
|