@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 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 @dfinity/nns-proto
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 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/gtc/canister/gtc.did' by import-candid
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 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/governance/canister/governance.did' by import-candid
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 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/governance/canister/governance_test.did' by import-candid
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<
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
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],