@dfinity/nns 5.1.0 → 5.1.1-next-2024-06-05
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 +1 -1
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.did +1 -1
- package/dist/candid/governance_test.did +1 -1
- package/dist/candid/sns_wasm.certified.idl.js +11 -0
- package/dist/candid/sns_wasm.d.ts +10 -0
- package/dist/candid/sns_wasm.did +6 -1
- package/dist/candid/sns_wasm.idl.js +11 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-RRSEQTKA.js +2 -0
- package/dist/esm/chunk-RRSEQTKA.js.map +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/sns_wasm.canister.js +1 -1
- package/package.json +7 -7
- package/dist/esm/chunk-43F2UA4Z.js +0 -2
- package/dist/esm/chunk-43F2UA4Z.js.map +0 -7
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npm i @dfinity/nns
|
|
|
21
21
|
The bundle needs peer dependencies, be sure that following resources are available in your project as well.
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils
|
|
24
|
+
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit b9a0f18 (2024-05-29 tags: release-2024-05-29_23-02-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
|
|
2
2
|
type AccountState = record {
|
|
3
3
|
authenticated_principal_id : opt principal;
|
|
4
4
|
successfully_transferred_neurons : vec TransferredNeuron;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit b9a0f18 (2024-05-29 tags: release-2024-05-29_23-02-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : blob };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit b9a0f18 (2024-05-29 tags: release-2024-05-29_23-02-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : blob };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -187,6 +187,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
187
187
|
const GetNextSnsVersionResponse = IDL.Record({
|
|
188
188
|
'next_version' : IDL.Opt(SnsVersion),
|
|
189
189
|
});
|
|
190
|
+
const GetProposalIdThatAddedWasmRequest = IDL.Record({
|
|
191
|
+
'hash' : IDL.Vec(IDL.Nat8),
|
|
192
|
+
});
|
|
193
|
+
const GetProposalIdThatAddedWasmResponse = IDL.Record({
|
|
194
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
195
|
+
});
|
|
190
196
|
const GetSnsSubnetIdsResponse = IDL.Record({
|
|
191
197
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
192
198
|
});
|
|
@@ -282,6 +288,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
282
288
|
[GetNextSnsVersionResponse],
|
|
283
289
|
[],
|
|
284
290
|
),
|
|
291
|
+
'get_proposal_id_that_added_wasm' : IDL.Func(
|
|
292
|
+
[GetProposalIdThatAddedWasmRequest],
|
|
293
|
+
[GetProposalIdThatAddedWasmResponse],
|
|
294
|
+
[],
|
|
295
|
+
),
|
|
285
296
|
'get_sns_subnet_ids' : IDL.Func(
|
|
286
297
|
[IDL.Record({})],
|
|
287
298
|
[GetSnsSubnetIdsResponse],
|
|
@@ -81,6 +81,12 @@ export interface GetNextSnsVersionRequest {
|
|
|
81
81
|
export interface GetNextSnsVersionResponse {
|
|
82
82
|
next_version: [] | [SnsVersion];
|
|
83
83
|
}
|
|
84
|
+
export interface GetProposalIdThatAddedWasmRequest {
|
|
85
|
+
hash: Uint8Array | number[];
|
|
86
|
+
}
|
|
87
|
+
export interface GetProposalIdThatAddedWasmResponse {
|
|
88
|
+
proposal_id: [] | [bigint];
|
|
89
|
+
}
|
|
84
90
|
export interface GetSnsSubnetIdsResponse {
|
|
85
91
|
sns_subnet_ids: Array<Principal>;
|
|
86
92
|
}
|
|
@@ -285,6 +291,10 @@ export interface _SERVICE {
|
|
|
285
291
|
[GetNextSnsVersionRequest],
|
|
286
292
|
GetNextSnsVersionResponse
|
|
287
293
|
>;
|
|
294
|
+
get_proposal_id_that_added_wasm: ActorMethod<
|
|
295
|
+
[GetProposalIdThatAddedWasmRequest],
|
|
296
|
+
GetProposalIdThatAddedWasmResponse
|
|
297
|
+
>;
|
|
288
298
|
get_sns_subnet_ids: ActorMethod<[{}], GetSnsSubnetIdsResponse>;
|
|
289
299
|
get_wasm: ActorMethod<[GetWasmRequest], GetWasmResponse>;
|
|
290
300
|
get_wasm_metadata: ActorMethod<
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit b9a0f18 (2024-05-29 tags: release-2024-05-29_23-02-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm };
|
|
3
3
|
type AddWasmResponse = record { result : opt Result };
|
|
4
4
|
type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution };
|
|
@@ -58,6 +58,8 @@ type GetNextSnsVersionRequest = record {
|
|
|
58
58
|
current_version : opt SnsVersion;
|
|
59
59
|
};
|
|
60
60
|
type GetNextSnsVersionResponse = record { next_version : opt SnsVersion };
|
|
61
|
+
type GetProposalIdThatAddedWasmRequest = record { hash : blob };
|
|
62
|
+
type GetProposalIdThatAddedWasmResponse = record { proposal_id : opt nat64 };
|
|
61
63
|
type GetSnsSubnetIdsResponse = record { sns_subnet_ids : vec principal };
|
|
62
64
|
type GetWasmMetadataRequest = record { hash : opt blob };
|
|
63
65
|
type GetWasmMetadataResponse = record { result : opt Result_1 };
|
|
@@ -229,6 +231,9 @@ service : (SnsWasmCanisterInitPayload) -> {
|
|
|
229
231
|
get_next_sns_version : (GetNextSnsVersionRequest) -> (
|
|
230
232
|
GetNextSnsVersionResponse,
|
|
231
233
|
) query;
|
|
234
|
+
get_proposal_id_that_added_wasm : (GetProposalIdThatAddedWasmRequest) -> (
|
|
235
|
+
GetProposalIdThatAddedWasmResponse,
|
|
236
|
+
) query;
|
|
232
237
|
get_sns_subnet_ids : (record {}) -> (GetSnsSubnetIdsResponse) query;
|
|
233
238
|
get_wasm : (GetWasmRequest) -> (GetWasmResponse) query;
|
|
234
239
|
get_wasm_metadata : (GetWasmMetadataRequest) -> (
|
|
@@ -187,6 +187,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
187
187
|
const GetNextSnsVersionResponse = IDL.Record({
|
|
188
188
|
'next_version' : IDL.Opt(SnsVersion),
|
|
189
189
|
});
|
|
190
|
+
const GetProposalIdThatAddedWasmRequest = IDL.Record({
|
|
191
|
+
'hash' : IDL.Vec(IDL.Nat8),
|
|
192
|
+
});
|
|
193
|
+
const GetProposalIdThatAddedWasmResponse = IDL.Record({
|
|
194
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
195
|
+
});
|
|
190
196
|
const GetSnsSubnetIdsResponse = IDL.Record({
|
|
191
197
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
192
198
|
});
|
|
@@ -282,6 +288,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
282
288
|
[GetNextSnsVersionResponse],
|
|
283
289
|
['query'],
|
|
284
290
|
),
|
|
291
|
+
'get_proposal_id_that_added_wasm' : IDL.Func(
|
|
292
|
+
[GetProposalIdThatAddedWasmRequest],
|
|
293
|
+
[GetProposalIdThatAddedWasmResponse],
|
|
294
|
+
['query'],
|
|
295
|
+
),
|
|
285
296
|
'get_sns_subnet_ids' : IDL.Func(
|
|
286
297
|
[IDL.Record({})],
|
|
287
298
|
[GetSnsSubnetIdsResponse],
|