@dfinity/sns 3.6.0 → 3.7.0-beta-2025-06-28
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 +82 -82
- package/dist/candid/sns_governance.certified.idl.js +61 -10
- package/dist/candid/sns_governance.d.ts +28 -0
- package/dist/candid/sns_governance.did +55 -1
- package/dist/candid/sns_governance.idl.js +65 -10
- package/dist/candid/sns_governance_test.certified.idl.js +61 -10
- package/dist/candid/sns_governance_test.d.ts +28 -0
- package/dist/candid/sns_governance_test.did +55 -1
- package/dist/candid/sns_governance_test.idl.js +65 -10
- package/dist/candid/sns_root.certified.idl.js +0 -2
- package/dist/candid/sns_root.d.ts +0 -2
- package/dist/candid/sns_root.did +1 -3
- package/dist/candid/sns_root.idl.js +0 -2
- package/dist/candid/sns_swap.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-56ABQWOI.js +2 -0
- package/dist/esm/chunk-56ABQWOI.js.map +7 -0
- package/dist/esm/chunk-C4535TGA.js +7 -0
- package/dist/esm/chunk-C4535TGA.js.map +7 -0
- package/dist/esm/{chunk-7RSE53BN.js → chunk-IMCH2CXJ.js} +2 -2
- package/dist/esm/chunk-IMCH2CXJ.js.map +7 -0
- package/dist/esm/chunk-KCQOYKOJ.js +2 -0
- package/dist/esm/chunk-KCQOYKOJ.js.map +7 -0
- package/dist/esm/chunk-RABWAJNE.js +2 -0
- package/dist/esm/chunk-RABWAJNE.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/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/esm/swap.canister.js +1 -1
- package/dist/types/governance.canister.d.ts +1 -2
- package/dist/types/sns.d.ts +1 -1
- package/dist/types/sns.wrapper.d.ts +2 -2
- package/dist/types/swap.canister.d.ts +1 -2
- package/dist/types/types/actions.d.ts +7 -1
- package/dist/types/types/governance.params.d.ts +1 -2
- package/package.json +7 -7
- package/dist/esm/chunk-7RSE53BN.js.map +0 -7
- package/dist/esm/chunk-HIRPCVPC.js +0 -2
- package/dist/esm/chunk-HIRPCVPC.js.map +0 -7
- package/dist/esm/chunk-PUAIJI6X.js +0 -2
- package/dist/esm/chunk-PUAIJI6X.js.map +0 -7
- package/dist/esm/chunk-TJDVNGQZ.js +0 -7
- package/dist/esm/chunk-TJDVNGQZ.js.map +0 -7
- package/dist/esm/chunk-V7RSNTZY.js +0 -2
- package/dist/esm/chunk-V7RSNTZY.js.map +0 -7
package/README.md
CHANGED
|
@@ -96,11 +96,11 @@ Lookup for the canister ids of a Sns and initialize the wrapper to access its fe
|
|
|
96
96
|
| ---------------- | ---------------- |
|
|
97
97
|
| `initSnsWrapper` | `InitSnsWrapper` |
|
|
98
98
|
|
|
99
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.ts#
|
|
99
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.ts#L36)
|
|
100
100
|
|
|
101
101
|
### :factory: SnsGovernanceCanister
|
|
102
102
|
|
|
103
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
103
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L66)
|
|
104
104
|
|
|
105
105
|
#### Static Methods
|
|
106
106
|
|
|
@@ -118,7 +118,7 @@ Parameters:
|
|
|
118
118
|
|
|
119
119
|
- `options`: Miscellaneous options to initialize the canister. Its ID being the only mandatory parammeter.
|
|
120
120
|
|
|
121
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
121
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L72)
|
|
122
122
|
|
|
123
123
|
#### Methods
|
|
124
124
|
|
|
@@ -157,7 +157,7 @@ List the neurons of the Sns
|
|
|
157
157
|
| ------------- | ----------------------------------------------------- |
|
|
158
158
|
| `listNeurons` | `(params: SnsListNeuronsParams) => Promise<Neuron[]>` |
|
|
159
159
|
|
|
160
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
160
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L86)
|
|
161
161
|
|
|
162
162
|
##### :gear: listProposals
|
|
163
163
|
|
|
@@ -167,17 +167,17 @@ List the proposals of the Sns
|
|
|
167
167
|
| --------------- | -------------------------------------------------------------------- |
|
|
168
168
|
| `listProposals` | `(params: SnsListProposalsParams) => Promise<ListProposalsResponse>` |
|
|
169
169
|
|
|
170
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
170
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L100)
|
|
171
171
|
|
|
172
172
|
##### :gear: listTopics
|
|
173
173
|
|
|
174
174
|
List the topics of the Sns
|
|
175
175
|
|
|
176
|
-
| Method | Type
|
|
177
|
-
| ------------ |
|
|
178
|
-
| `listTopics` | `(params:
|
|
176
|
+
| Method | Type |
|
|
177
|
+
| ------------ | ------------------------------------------------------ |
|
|
178
|
+
| `listTopics` | `(params: QueryParams) => Promise<ListTopicsResponse>` |
|
|
179
179
|
|
|
180
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
180
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L115)
|
|
181
181
|
|
|
182
182
|
##### :gear: getProposal
|
|
183
183
|
|
|
@@ -187,7 +187,7 @@ Get the proposal of the Sns
|
|
|
187
187
|
| ------------- | --------------------------------------------------------- |
|
|
188
188
|
| `getProposal` | `(params: SnsGetProposalParams) => Promise<ProposalData>` |
|
|
189
189
|
|
|
190
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
190
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L126)
|
|
191
191
|
|
|
192
192
|
##### :gear: listNervousSystemFunctions
|
|
193
193
|
|
|
@@ -198,7 +198,7 @@ Neurons can follow other neurons in specific Nervous System Functions.
|
|
|
198
198
|
| ---------------------------- | ---------------------------------------------------------------------- |
|
|
199
199
|
| `listNervousSystemFunctions` | `(params: QueryParams) => Promise<ListNervousSystemFunctionsResponse>` |
|
|
200
200
|
|
|
201
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
201
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L145)
|
|
202
202
|
|
|
203
203
|
##### :gear: metadata
|
|
204
204
|
|
|
@@ -208,7 +208,7 @@ Get the Sns metadata (title, description, etc.)
|
|
|
208
208
|
| ---------- | ------------------------------------------------------- |
|
|
209
209
|
| `metadata` | `(params: QueryParams) => Promise<GetMetadataResponse>` |
|
|
210
210
|
|
|
211
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
211
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L153)
|
|
212
212
|
|
|
213
213
|
##### :gear: nervousSystemParameters
|
|
214
214
|
|
|
@@ -218,7 +218,7 @@ Get the Sns nervous system parameters (default followees, max dissolve delay, ma
|
|
|
218
218
|
| ------------------------- | ----------------------------------------------------------- |
|
|
219
219
|
| `nervousSystemParameters` | `(params: QueryParams) => Promise<NervousSystemParameters>` |
|
|
220
220
|
|
|
221
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
221
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L159)
|
|
222
222
|
|
|
223
223
|
##### :gear: getNeuron
|
|
224
224
|
|
|
@@ -228,7 +228,7 @@ Get the neuron of the Sns
|
|
|
228
228
|
| ----------- | ------------------------------------------------- |
|
|
229
229
|
| `getNeuron` | `(params: SnsGetNeuronParams) => Promise<Neuron>` |
|
|
230
230
|
|
|
231
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
231
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L167)
|
|
232
232
|
|
|
233
233
|
##### :gear: queryNeuron
|
|
234
234
|
|
|
@@ -238,7 +238,7 @@ Same as `getNeuron` but returns undefined instead of raising error when not foun
|
|
|
238
238
|
| ------------- | -------------------------------------------------------------- |
|
|
239
239
|
| `queryNeuron` | `(params: SnsGetNeuronParams) => Promise<Neuron or undefined>` |
|
|
240
240
|
|
|
241
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
241
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L185)
|
|
242
242
|
|
|
243
243
|
##### :gear: manageNeuron
|
|
244
244
|
|
|
@@ -248,7 +248,7 @@ Manage neuron. For advanced users.
|
|
|
248
248
|
| -------------- | ---------------------------------------------------------- |
|
|
249
249
|
| `manageNeuron` | `(request: ManageNeuron) => Promise<ManageNeuronResponse>` |
|
|
250
250
|
|
|
251
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
251
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L205)
|
|
252
252
|
|
|
253
253
|
##### :gear: addNeuronPermissions
|
|
254
254
|
|
|
@@ -258,7 +258,7 @@ Add permissions to a neuron for a specific principal
|
|
|
258
258
|
| ---------------------- | ------------------------------------------------------- |
|
|
259
259
|
| `addNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
260
260
|
|
|
261
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
261
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L218)
|
|
262
262
|
|
|
263
263
|
##### :gear: removeNeuronPermissions
|
|
264
264
|
|
|
@@ -268,7 +268,7 @@ Remove permissions to a neuron for a specific principal
|
|
|
268
268
|
| ------------------------- | ------------------------------------------------------- |
|
|
269
269
|
| `removeNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
270
270
|
|
|
271
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
271
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L228)
|
|
272
272
|
|
|
273
273
|
##### :gear: splitNeuron
|
|
274
274
|
|
|
@@ -278,7 +278,7 @@ Split neuron
|
|
|
278
278
|
| ------------- | ------------------------------------------------------------------ |
|
|
279
279
|
| `splitNeuron` | `(params: SnsSplitNeuronParams) => Promise<NeuronId or undefined>` |
|
|
280
280
|
|
|
281
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
281
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L238)
|
|
282
282
|
|
|
283
283
|
##### :gear: disburse
|
|
284
284
|
|
|
@@ -288,7 +288,7 @@ Disburse neuron on Account
|
|
|
288
288
|
| ---------- | ---------------------------------------------------- |
|
|
289
289
|
| `disburse` | `(params: SnsDisburseNeuronParams) => Promise<void>` |
|
|
290
290
|
|
|
291
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
291
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L269)
|
|
292
292
|
|
|
293
293
|
##### :gear: startDissolving
|
|
294
294
|
|
|
@@ -298,7 +298,7 @@ Start dissolving process of a neuron
|
|
|
298
298
|
| ----------------- | --------------------------------------- |
|
|
299
299
|
| `startDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
300
300
|
|
|
301
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
301
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L277)
|
|
302
302
|
|
|
303
303
|
##### :gear: stopDissolving
|
|
304
304
|
|
|
@@ -308,7 +308,7 @@ Stop dissolving process of a neuron
|
|
|
308
308
|
| ---------------- | --------------------------------------- |
|
|
309
309
|
| `stopDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
310
310
|
|
|
311
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
311
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L285)
|
|
312
312
|
|
|
313
313
|
##### :gear: stakeMaturity
|
|
314
314
|
|
|
@@ -323,7 +323,7 @@ Parameters:
|
|
|
323
323
|
- `neuronId`: The id of the neuron for which to stake the maturity
|
|
324
324
|
- `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
|
|
325
325
|
|
|
326
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
326
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L297)
|
|
327
327
|
|
|
328
328
|
##### :gear: disburseMaturity
|
|
329
329
|
|
|
@@ -339,7 +339,7 @@ Parameters:
|
|
|
339
339
|
- `neuronId`: The id of the neuron for which to disburse the maturity
|
|
340
340
|
- `percentageToDisburse`: What percentage of the available maturity to disburse.
|
|
341
341
|
|
|
342
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
342
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L318)
|
|
343
343
|
|
|
344
344
|
##### :gear: autoStakeMaturity
|
|
345
345
|
|
|
@@ -354,7 +354,7 @@ Parameters:
|
|
|
354
354
|
- `neuronId`: The id of the neuron for which to request a change of the auto stake feature
|
|
355
355
|
- `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
|
|
356
356
|
|
|
357
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
357
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L334)
|
|
358
358
|
|
|
359
359
|
##### :gear: setDissolveTimestamp
|
|
360
360
|
|
|
@@ -364,7 +364,7 @@ Increase dissolve delay of a neuron
|
|
|
364
364
|
| ---------------------- | ---------------------------------------------------------- |
|
|
365
365
|
| `setDissolveTimestamp` | `(params: SnsSetDissolveTimestampParams) => Promise<void>` |
|
|
366
366
|
|
|
367
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
367
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L344)
|
|
368
368
|
|
|
369
369
|
##### :gear: increaseDissolveDelay
|
|
370
370
|
|
|
@@ -374,7 +374,7 @@ Increase dissolve delay of a neuron
|
|
|
374
374
|
| ----------------------- | ----------------------------------------------------------- |
|
|
375
375
|
| `increaseDissolveDelay` | `(params: SnsIncreaseDissolveDelayParams) => Promise<void>` |
|
|
376
376
|
|
|
377
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
377
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L354)
|
|
378
378
|
|
|
379
379
|
##### :gear: setTopicFollowees
|
|
380
380
|
|
|
@@ -384,7 +384,7 @@ Sets followees of a neuron for a specific Nervous System Function
|
|
|
384
384
|
| ------------------- | ------------------------------------------------- |
|
|
385
385
|
| `setTopicFollowees` | `(params: SnsSetTopicFollowees) => Promise<void>` |
|
|
386
386
|
|
|
387
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
387
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L365)
|
|
388
388
|
|
|
389
389
|
##### :gear: setFollowing
|
|
390
390
|
|
|
@@ -394,7 +394,7 @@ Sets followees of a neuron for topics
|
|
|
394
394
|
| -------------- | -------------------------------------------------- |
|
|
395
395
|
| `setFollowing` | `(params: SnsSetFollowingParams) => Promise<void>` |
|
|
396
396
|
|
|
397
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
397
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L373)
|
|
398
398
|
|
|
399
399
|
##### :gear: registerVote
|
|
400
400
|
|
|
@@ -404,7 +404,7 @@ Registers vote for a proposal from the neuron passed.
|
|
|
404
404
|
| -------------- | -------------------------------------------------- |
|
|
405
405
|
| `registerVote` | `(params: SnsRegisterVoteParams) => Promise<void>` |
|
|
406
406
|
|
|
407
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
407
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L381)
|
|
408
408
|
|
|
409
409
|
##### :gear: refreshNeuron
|
|
410
410
|
|
|
@@ -414,7 +414,7 @@ Refresh neuron
|
|
|
414
414
|
| --------------- | --------------------------------------- |
|
|
415
415
|
| `refreshNeuron` | `(neuronId: NeuronId) => Promise<void>` |
|
|
416
416
|
|
|
417
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
417
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L389)
|
|
418
418
|
|
|
419
419
|
##### :gear: claimNeuron
|
|
420
420
|
|
|
@@ -424,7 +424,7 @@ Claim neuron
|
|
|
424
424
|
| ------------- | -------------------------------------------------------------------------------- |
|
|
425
425
|
| `claimNeuron` | `({ memo, controller, subaccount, }: SnsClaimNeuronParams) => Promise<NeuronId>` |
|
|
426
426
|
|
|
427
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#
|
|
427
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L399)
|
|
428
428
|
|
|
429
429
|
### :factory: SnsRootCanister
|
|
430
430
|
|
|
@@ -549,7 +549,7 @@ Get sale parameters
|
|
|
549
549
|
| ------------------- | --------------------------------------------------------------------- |
|
|
550
550
|
| `getSaleParameters` | `({ certified, }: QueryParams) => Promise<GetSaleParametersResponse>` |
|
|
551
551
|
|
|
552
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#
|
|
552
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L92)
|
|
553
553
|
|
|
554
554
|
##### :gear: getOpenTicket
|
|
555
555
|
|
|
@@ -559,7 +559,7 @@ Return a sale ticket if created and not yet removed (payment flow)
|
|
|
559
559
|
| --------------- | ------------------------------------------------------- |
|
|
560
560
|
| `getOpenTicket` | `(params: QueryParams) => Promise<Ticket or undefined>` |
|
|
561
561
|
|
|
562
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#
|
|
562
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L100)
|
|
563
563
|
|
|
564
564
|
##### :gear: newSaleTicket
|
|
565
565
|
|
|
@@ -569,7 +569,7 @@ Create a sale ticket (payment flow)
|
|
|
569
569
|
| --------------- | -------------------------------------------------- |
|
|
570
570
|
| `newSaleTicket` | `(params: NewSaleTicketParams) => Promise<Ticket>` |
|
|
571
571
|
|
|
572
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#
|
|
572
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L117)
|
|
573
573
|
|
|
574
574
|
##### :gear: getLifecycle
|
|
575
575
|
|
|
@@ -579,7 +579,7 @@ Get sale lifecycle state
|
|
|
579
579
|
| -------------- | -------------------------------------------------------- |
|
|
580
580
|
| `getLifecycle` | `(params: QueryParams) => Promise<GetLifecycleResponse>` |
|
|
581
581
|
|
|
582
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#
|
|
582
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L142)
|
|
583
583
|
|
|
584
584
|
##### :gear: getFinalizationStatus
|
|
585
585
|
|
|
@@ -589,7 +589,7 @@ Get sale lifecycle state
|
|
|
589
589
|
| ----------------------- | --------------------------------------------------------------------- |
|
|
590
590
|
| `getFinalizationStatus` | `(params: QueryParams) => Promise<GetAutoFinalizationStatusResponse>` |
|
|
591
591
|
|
|
592
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#
|
|
592
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L148)
|
|
593
593
|
|
|
594
594
|
### :factory: SnsWrapper
|
|
595
595
|
|
|
@@ -597,7 +597,7 @@ Sns wrapper - notably used by NNS-dapp - ease the access to a particular Sns.
|
|
|
597
597
|
It knows all the Sns' canisters, wrap and enhance their available features.
|
|
598
598
|
A wrapper either performs query or update calls.
|
|
599
599
|
|
|
600
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
600
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L89)
|
|
601
601
|
|
|
602
602
|
#### Constructors
|
|
603
603
|
|
|
@@ -660,7 +660,7 @@ Parameters:
|
|
|
660
660
|
| ------------- | ------------------------------------------------------------------------ |
|
|
661
661
|
| `listNeurons` | `(params: Omit<SnsListNeuronsParams, "certified">) => Promise<Neuron[]>` |
|
|
662
662
|
|
|
663
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
663
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L135)
|
|
664
664
|
|
|
665
665
|
##### :gear: listProposals
|
|
666
666
|
|
|
@@ -668,7 +668,7 @@ Parameters:
|
|
|
668
668
|
| --------------- | --------------------------------------------------------------------------------------- |
|
|
669
669
|
| `listProposals` | `(params: Omit<SnsListProposalsParams, "certified">) => Promise<ListProposalsResponse>` |
|
|
670
670
|
|
|
671
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
671
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L139)
|
|
672
672
|
|
|
673
673
|
##### :gear: getProposal
|
|
674
674
|
|
|
@@ -676,7 +676,7 @@ Parameters:
|
|
|
676
676
|
| ------------- | ---------------------------------------------------------------------------- |
|
|
677
677
|
| `getProposal` | `(params: Omit<SnsGetProposalParams, "certified">) => Promise<ProposalData>` |
|
|
678
678
|
|
|
679
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
679
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L144)
|
|
680
680
|
|
|
681
681
|
##### :gear: listNervousSystemFunctions
|
|
682
682
|
|
|
@@ -684,7 +684,7 @@ Parameters:
|
|
|
684
684
|
| ---------------------------- | ----------------------------------------------------------------------------------------- |
|
|
685
685
|
| `listNervousSystemFunctions` | `(params: Omit<QueryParams, "certified">) => Promise<ListNervousSystemFunctionsResponse>` |
|
|
686
686
|
|
|
687
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
687
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L149)
|
|
688
688
|
|
|
689
689
|
##### :gear: metadata
|
|
690
690
|
|
|
@@ -692,7 +692,7 @@ Parameters:
|
|
|
692
692
|
| ---------- | ------------------------------------------------------------------------------------------------------- |
|
|
693
693
|
| `metadata` | `(params: Omit<QueryParams, "certified">) => Promise<[GetMetadataResponse, IcrcTokenMetadataResponse]>` |
|
|
694
694
|
|
|
695
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
695
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L154)
|
|
696
696
|
|
|
697
697
|
##### :gear: nervousSystemParameters
|
|
698
698
|
|
|
@@ -700,7 +700,7 @@ Parameters:
|
|
|
700
700
|
| ------------------------- | ------------------------------------------------------------------------------ |
|
|
701
701
|
| `nervousSystemParameters` | `(params: Omit<QueryParams, "certified">) => Promise<NervousSystemParameters>` |
|
|
702
702
|
|
|
703
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
703
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L162)
|
|
704
704
|
|
|
705
705
|
##### :gear: ledgerMetadata
|
|
706
706
|
|
|
@@ -708,7 +708,7 @@ Parameters:
|
|
|
708
708
|
| ---------------- | -------------------------------------------------------------------------------- |
|
|
709
709
|
| `ledgerMetadata` | `(params: Omit<QueryParams, "certified">) => Promise<IcrcTokenMetadataResponse>` |
|
|
710
710
|
|
|
711
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
711
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L167)
|
|
712
712
|
|
|
713
713
|
##### :gear: transactionFee
|
|
714
714
|
|
|
@@ -716,7 +716,7 @@ Parameters:
|
|
|
716
716
|
| ---------------- | ------------------------------------------------------------- |
|
|
717
717
|
| `transactionFee` | `(params: Omit<QueryParams, "certified">) => Promise<bigint>` |
|
|
718
718
|
|
|
719
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
719
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L172)
|
|
720
720
|
|
|
721
721
|
##### :gear: totalTokensSupply
|
|
722
722
|
|
|
@@ -724,7 +724,7 @@ Parameters:
|
|
|
724
724
|
| ------------------- | ------------------------------------------------------------- |
|
|
725
725
|
| `totalTokensSupply` | `(params: Omit<QueryParams, "certified">) => Promise<bigint>` |
|
|
726
726
|
|
|
727
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
727
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L177)
|
|
728
728
|
|
|
729
729
|
##### :gear: balance
|
|
730
730
|
|
|
@@ -732,7 +732,7 @@ Parameters:
|
|
|
732
732
|
| --------- | --------------------------------------------------------------- |
|
|
733
733
|
| `balance` | `(params: Omit<BalanceParams, "certified">) => Promise<bigint>` |
|
|
734
734
|
|
|
735
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
735
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L182)
|
|
736
736
|
|
|
737
737
|
##### :gear: transfer
|
|
738
738
|
|
|
@@ -740,7 +740,7 @@ Parameters:
|
|
|
740
740
|
| ---------- | --------------------------------------------- |
|
|
741
741
|
| `transfer` | `(params: TransferParams) => Promise<bigint>` |
|
|
742
742
|
|
|
743
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
743
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L186)
|
|
744
744
|
|
|
745
745
|
##### :gear: getNeuron
|
|
746
746
|
|
|
@@ -748,7 +748,7 @@ Parameters:
|
|
|
748
748
|
| ----------- | -------------------------------------------------------------------- |
|
|
749
749
|
| `getNeuron` | `(params: Omit<SnsGetNeuronParams, "certified">) => Promise<Neuron>` |
|
|
750
750
|
|
|
751
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
751
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L189)
|
|
752
752
|
|
|
753
753
|
##### :gear: queryNeuron
|
|
754
754
|
|
|
@@ -756,7 +756,7 @@ Parameters:
|
|
|
756
756
|
| ------------- | --------------------------------------------------------------------------------- |
|
|
757
757
|
| `queryNeuron` | `(params: Omit<SnsGetNeuronParams, "certified">) => Promise<Neuron or undefined>` |
|
|
758
758
|
|
|
759
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
759
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L193)
|
|
760
760
|
|
|
761
761
|
##### :gear: nextNeuronAccount
|
|
762
762
|
|
|
@@ -776,7 +776,7 @@ This is how the backend can identify which neuron is being claimed.
|
|
|
776
776
|
| ------------------- | ------------------------------------------------------------------------------ |
|
|
777
777
|
| `nextNeuronAccount` | `(controller: Principal) => Promise<{ account: IcrcAccount; index: bigint; }>` |
|
|
778
778
|
|
|
779
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
779
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L214)
|
|
780
780
|
|
|
781
781
|
##### :gear: stakeNeuron
|
|
782
782
|
|
|
@@ -790,7 +790,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
790
790
|
| ------------- | ------------------------------------------------------------------------------------------------ |
|
|
791
791
|
| `stakeNeuron` | `({ stakeE8s, source, controller, createdAt, fee, }: SnsStakeNeuronParams) => Promise<NeuronId>` |
|
|
792
792
|
|
|
793
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
793
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L261)
|
|
794
794
|
|
|
795
795
|
##### :gear: increaseStakeNeuron
|
|
796
796
|
|
|
@@ -804,7 +804,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
804
804
|
| --------------------- | ---------------------------------------------------------------------------------- |
|
|
805
805
|
| `increaseStakeNeuron` | `({ stakeE8s, source, neuronId, }: SnsIncreaseStakeNeuronParams) => Promise<void>` |
|
|
806
806
|
|
|
807
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
807
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L308)
|
|
808
808
|
|
|
809
809
|
##### :gear: getNeuronBalance
|
|
810
810
|
|
|
@@ -812,7 +812,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
812
812
|
| ------------------ | ----------------------------------------- |
|
|
813
813
|
| `getNeuronBalance` | `(neuronId: NeuronId) => Promise<bigint>` |
|
|
814
814
|
|
|
815
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
815
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L327)
|
|
816
816
|
|
|
817
817
|
##### :gear: addNeuronPermissions
|
|
818
818
|
|
|
@@ -820,7 +820,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
820
820
|
| ---------------------- | ------------------------------------------------------- |
|
|
821
821
|
| `addNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
822
822
|
|
|
823
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
823
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L336)
|
|
824
824
|
|
|
825
825
|
##### :gear: refreshNeuron
|
|
826
826
|
|
|
@@ -828,7 +828,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
828
828
|
| --------------- | --------------------------------------- |
|
|
829
829
|
| `refreshNeuron` | `(neuronId: NeuronId) => Promise<void>` |
|
|
830
830
|
|
|
831
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
831
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L340)
|
|
832
832
|
|
|
833
833
|
##### :gear: claimNeuron
|
|
834
834
|
|
|
@@ -836,7 +836,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
836
836
|
| ------------- | ----------------------------------------------------- |
|
|
837
837
|
| `claimNeuron` | `(params: SnsClaimNeuronParams) => Promise<NeuronId>` |
|
|
838
838
|
|
|
839
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
839
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L344)
|
|
840
840
|
|
|
841
841
|
##### :gear: removeNeuronPermissions
|
|
842
842
|
|
|
@@ -844,7 +844,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
844
844
|
| ------------------------- | ------------------------------------------------------- |
|
|
845
845
|
| `removeNeuronPermissions` | `(params: SnsNeuronPermissionsParams) => Promise<void>` |
|
|
846
846
|
|
|
847
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
847
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L348)
|
|
848
848
|
|
|
849
849
|
##### :gear: splitNeuron
|
|
850
850
|
|
|
@@ -852,7 +852,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
852
852
|
| ------------- | ------------------------------------------------------------------ |
|
|
853
853
|
| `splitNeuron` | `(params: SnsSplitNeuronParams) => Promise<NeuronId or undefined>` |
|
|
854
854
|
|
|
855
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
855
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L353)
|
|
856
856
|
|
|
857
857
|
##### :gear: disburse
|
|
858
858
|
|
|
@@ -860,7 +860,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
860
860
|
| ---------- | ---------------------------------------------------- |
|
|
861
861
|
| `disburse` | `(params: SnsDisburseNeuronParams) => Promise<void>` |
|
|
862
862
|
|
|
863
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
863
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L357)
|
|
864
864
|
|
|
865
865
|
##### :gear: startDissolving
|
|
866
866
|
|
|
@@ -868,7 +868,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
868
868
|
| ----------------- | --------------------------------------- |
|
|
869
869
|
| `startDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
870
870
|
|
|
871
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
871
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L361)
|
|
872
872
|
|
|
873
873
|
##### :gear: stopDissolving
|
|
874
874
|
|
|
@@ -876,7 +876,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
876
876
|
| ---------------- | --------------------------------------- |
|
|
877
877
|
| `stopDissolving` | `(neuronId: NeuronId) => Promise<void>` |
|
|
878
878
|
|
|
879
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
879
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L365)
|
|
880
880
|
|
|
881
881
|
##### :gear: setDissolveTimestamp
|
|
882
882
|
|
|
@@ -884,7 +884,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
884
884
|
| ---------------------- | ---------------------------------------------------------- |
|
|
885
885
|
| `setDissolveTimestamp` | `(params: SnsSetDissolveTimestampParams) => Promise<void>` |
|
|
886
886
|
|
|
887
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
887
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L369)
|
|
888
888
|
|
|
889
889
|
##### :gear: increaseDissolveDelay
|
|
890
890
|
|
|
@@ -892,7 +892,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
892
892
|
| ----------------------- | ----------------------------------------------------------- |
|
|
893
893
|
| `increaseDissolveDelay` | `(params: SnsIncreaseDissolveDelayParams) => Promise<void>` |
|
|
894
894
|
|
|
895
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
895
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L374)
|
|
896
896
|
|
|
897
897
|
##### :gear: setTopicFollowees
|
|
898
898
|
|
|
@@ -900,7 +900,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
900
900
|
| ------------------- | ------------------------------------------------- |
|
|
901
901
|
| `setTopicFollowees` | `(params: SnsSetTopicFollowees) => Promise<void>` |
|
|
902
902
|
|
|
903
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
903
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L379)
|
|
904
904
|
|
|
905
905
|
##### :gear: setFollowing
|
|
906
906
|
|
|
@@ -908,7 +908,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
908
908
|
| -------------- | -------------------------------------------------- |
|
|
909
909
|
| `setFollowing` | `(params: SnsSetFollowingParams) => Promise<void>` |
|
|
910
910
|
|
|
911
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
911
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L383)
|
|
912
912
|
|
|
913
913
|
##### :gear: registerVote
|
|
914
914
|
|
|
@@ -916,7 +916,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
916
916
|
| -------------- | -------------------------------------------------- |
|
|
917
917
|
| `registerVote` | `(params: SnsRegisterVoteParams) => Promise<void>` |
|
|
918
918
|
|
|
919
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
919
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L387)
|
|
920
920
|
|
|
921
921
|
##### :gear: swapState
|
|
922
922
|
|
|
@@ -924,7 +924,7 @@ This is a convenient method that transfers the stake to the neuron subaccount an
|
|
|
924
924
|
| ----------- | ----------------------------------------------------------------------- |
|
|
925
925
|
| `swapState` | `(params: Omit<QueryParams, "certified">) => Promise<GetStateResponse>` |
|
|
926
926
|
|
|
927
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
927
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L390)
|
|
928
928
|
|
|
929
929
|
##### :gear: notifyPaymentFailure
|
|
930
930
|
|
|
@@ -938,7 +938,7 @@ Always certified
|
|
|
938
938
|
| ---------------------- | ------------------------------------ |
|
|
939
939
|
| `notifyPaymentFailure` | `() => Promise<Ticket or undefined>` |
|
|
940
940
|
|
|
941
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
941
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L403)
|
|
942
942
|
|
|
943
943
|
##### :gear: notifyParticipation
|
|
944
944
|
|
|
@@ -946,7 +946,7 @@ Always certified
|
|
|
946
946
|
| --------------------- | ---------------------------------------------------------------------------- |
|
|
947
947
|
| `notifyParticipation` | `(params: RefreshBuyerTokensRequest) => Promise<RefreshBuyerTokensResponse>` |
|
|
948
948
|
|
|
949
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
949
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L407)
|
|
950
950
|
|
|
951
951
|
##### :gear: getUserCommitment
|
|
952
952
|
|
|
@@ -954,7 +954,7 @@ Always certified
|
|
|
954
954
|
| ------------------- | -------------------------------------------------------------------- |
|
|
955
955
|
| `getUserCommitment` | `(params: GetBuyerStateRequest) => Promise<BuyerState or undefined>` |
|
|
956
956
|
|
|
957
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
957
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L412)
|
|
958
958
|
|
|
959
959
|
##### :gear: getOpenTicket
|
|
960
960
|
|
|
@@ -962,7 +962,7 @@ Always certified
|
|
|
962
962
|
| --------------- | -------------------------------------------------------------------------- |
|
|
963
963
|
| `getOpenTicket` | `(params: Omit<QueryParams, "certified">) => Promise<Ticket or undefined>` |
|
|
964
964
|
|
|
965
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
965
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L417)
|
|
966
966
|
|
|
967
967
|
##### :gear: newSaleTicket
|
|
968
968
|
|
|
@@ -970,7 +970,7 @@ Always certified
|
|
|
970
970
|
| --------------- | -------------------------------------------------- |
|
|
971
971
|
| `newSaleTicket` | `(params: NewSaleTicketParams) => Promise<Ticket>` |
|
|
972
972
|
|
|
973
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
973
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L423)
|
|
974
974
|
|
|
975
975
|
##### :gear: getLifecycle
|
|
976
976
|
|
|
@@ -978,7 +978,7 @@ Always certified
|
|
|
978
978
|
| -------------- | ---------------------------------------------------------------------------------------- |
|
|
979
979
|
| `getLifecycle` | `(params: Omit<QueryParams, "certified">) => Promise<GetLifecycleResponse or undefined>` |
|
|
980
980
|
|
|
981
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
981
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L426)
|
|
982
982
|
|
|
983
983
|
##### :gear: getFinalizationStatus
|
|
984
984
|
|
|
@@ -986,7 +986,7 @@ Always certified
|
|
|
986
986
|
| ----------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
987
987
|
| `getFinalizationStatus` | `(params: Omit<QueryParams, "certified">) => Promise<GetAutoFinalizationStatusResponse or undefined>` |
|
|
988
988
|
|
|
989
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
989
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L431)
|
|
990
990
|
|
|
991
991
|
##### :gear: getSaleParameters
|
|
992
992
|
|
|
@@ -994,7 +994,7 @@ Always certified
|
|
|
994
994
|
| ------------------- | --------------------------------------------------------------------------------------------- |
|
|
995
995
|
| `getSaleParameters` | `(params: Omit<QueryParams, "certified">) => Promise<GetSaleParametersResponse or undefined>` |
|
|
996
996
|
|
|
997
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
997
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L436)
|
|
998
998
|
|
|
999
999
|
##### :gear: getDerivedState
|
|
1000
1000
|
|
|
@@ -1002,7 +1002,7 @@ Always certified
|
|
|
1002
1002
|
| ----------------- | ------------------------------------------------------------------------------------------- |
|
|
1003
1003
|
| `getDerivedState` | `(params: Omit<QueryParams, "certified">) => Promise<GetDerivedStateResponse or undefined>` |
|
|
1004
1004
|
|
|
1005
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
1005
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L441)
|
|
1006
1006
|
|
|
1007
1007
|
##### :gear: getTransactions
|
|
1008
1008
|
|
|
@@ -1010,7 +1010,7 @@ Always certified
|
|
|
1010
1010
|
| ----------------- | -------------------------------------------------------------------- |
|
|
1011
1011
|
| `getTransactions` | `(params: GetAccountTransactionsParams) => Promise<GetTransactions>` |
|
|
1012
1012
|
|
|
1013
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
1013
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L447)
|
|
1014
1014
|
|
|
1015
1015
|
##### :gear: stakeMaturity
|
|
1016
1016
|
|
|
@@ -1018,7 +1018,7 @@ Always certified
|
|
|
1018
1018
|
| --------------- | --------------------------------------------------------- |
|
|
1019
1019
|
| `stakeMaturity` | `(params: SnsNeuronStakeMaturityParams) => Promise<void>` |
|
|
1020
1020
|
|
|
1021
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
1021
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L452)
|
|
1022
1022
|
|
|
1023
1023
|
##### :gear: disburseMaturity
|
|
1024
1024
|
|
|
@@ -1026,7 +1026,7 @@ Always certified
|
|
|
1026
1026
|
| ------------------ | ------------------------------------------------------------ |
|
|
1027
1027
|
| `disburseMaturity` | `(params: SnsNeuronDisburseMaturityParams) => Promise<void>` |
|
|
1028
1028
|
|
|
1029
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
1029
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L456)
|
|
1030
1030
|
|
|
1031
1031
|
##### :gear: autoStakeMaturity
|
|
1032
1032
|
|
|
@@ -1034,6 +1034,6 @@ Always certified
|
|
|
1034
1034
|
| ------------------- | ------------------------------------------------------------- |
|
|
1035
1035
|
| `autoStakeMaturity` | `(params: SnsNeuronAutoStakeMaturityParams) => Promise<void>` |
|
|
1036
1036
|
|
|
1037
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#
|
|
1037
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/sns.wrapper.ts#L460)
|
|
1038
1038
|
|
|
1039
1039
|
<!-- TSDOC_END -->
|