@dfinity/nns 0.6.0 → 0.7.0-next-2022-08-10
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/dist/candid/sns_wasm.certified.idl.js +6 -0
- package/dist/candid/sns_wasm.d.ts +5 -0
- package/dist/candid/sns_wasm.did +9 -2
- package/dist/candid/sns_wasm.idl.js +6 -0
- package/dist/cjs/index.cjs.js +14 -857
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/account_identifier.js +1 -1
- package/dist/esm/{chunk-RHCXRQFK.js → chunk-6TCASUZN.js} +2 -2
- package/dist/esm/{chunk-RHCXRQFK.js.map → chunk-6TCASUZN.js.map} +0 -0
- package/dist/esm/chunk-BNACMCFC.js +2 -0
- package/dist/esm/chunk-BNACMCFC.js.map +7 -0
- package/dist/esm/chunk-FOZZBZOX.js +2 -0
- package/dist/esm/chunk-FOZZBZOX.js.map +7 -0
- package/dist/esm/chunk-H6Y4RZE2.js +2 -0
- package/dist/esm/chunk-H6Y4RZE2.js.map +7 -0
- package/dist/esm/chunk-INZ5ERFK.js +2 -0
- package/dist/esm/chunk-INZ5ERFK.js.map +7 -0
- package/dist/esm/{chunk-FZGMZSQZ.js → chunk-JKX2HJUB.js} +2 -2
- package/dist/esm/{chunk-FZGMZSQZ.js.map → chunk-JKX2HJUB.js.map} +1 -1
- package/dist/esm/{chunk-H6I2Z4SN.js → chunk-N4C3FQZJ.js} +11 -5
- package/dist/esm/chunk-N4C3FQZJ.js.map +7 -0
- package/dist/esm/chunk-Q3ETFEQV.js +2 -0
- package/dist/esm/{chunk-ONAVPXOT.js.map → chunk-Q3ETFEQV.js.map} +0 -0
- package/dist/esm/chunk-QSF4NTRI.js +18 -0
- package/dist/esm/chunk-QSF4NTRI.js.map +7 -0
- package/dist/esm/chunk-XMMTS4WT.js +14 -0
- package/dist/esm/chunk-XMMTS4WT.js.map +7 -0
- package/dist/esm/genesis_token.canister.js +1 -1
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/icp.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ledger.canister.js +1 -1
- package/dist/esm/sns_wasm.canister.js +1 -1
- package/dist/types/genesis_token.canister.d.ts +1 -1
- package/dist/types/sns_wasm.canister.d.ts +1 -1
- package/dist/types/types/governance.options.d.ts +1 -1
- package/dist/types/types/ledger.options.d.ts +1 -1
- package/dist/types/types/sns_wasm.options.d.ts +1 -1
- package/package.json +7 -4
- package/dist/esm/chunk-CKIW7YKS.js +0 -2
- package/dist/esm/chunk-CKIW7YKS.js.map +0 -7
- package/dist/esm/chunk-H6I2Z4SN.js.map +0 -7
- package/dist/esm/chunk-IPUXUCZB.js +0 -14
- package/dist/esm/chunk-IPUXUCZB.js.map +0 -7
- package/dist/esm/chunk-JUIC5FZJ.js +0 -2
- package/dist/esm/chunk-JUIC5FZJ.js.map +0 -7
- package/dist/esm/chunk-MGC7CRB4.js +0 -11
- package/dist/esm/chunk-MGC7CRB4.js.map +0 -7
- package/dist/esm/chunk-NN3MUNHF.js +0 -2
- package/dist/esm/chunk-NN3MUNHF.js.map +0 -7
- package/dist/esm/chunk-NNJFBVJ3.js +0 -831
- package/dist/esm/chunk-NNJFBVJ3.js.map +0 -7
- package/dist/esm/chunk-ONAVPXOT.js +0 -2
- package/dist/esm/chunk-TLWRX3CX.js +0 -9
- package/dist/esm/chunk-TLWRX3CX.js.map +0 -7
- package/dist/types/types/canister.options.d.ts +0 -8
- package/dist/types/utils/actor.utils.d.ts +0 -14
- package/dist/types/utils/agent.utils.d.ts +0 -5
- package/dist/types/utils/did.utils.d.ts +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/nns/candid/sns_wasm.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
3
|
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
4
|
+
'access_controls_enabled' : IDL.Bool,
|
|
4
5
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
5
6
|
});
|
|
6
7
|
const SnsWasm = IDL.Record({
|
|
@@ -42,11 +43,15 @@ export const idlFactory = ({ IDL }) => {
|
|
|
42
43
|
'FractionalDeveloperVotingPower' : FractionalDeveloperVotingPower,
|
|
43
44
|
});
|
|
44
45
|
const SnsInitPayload = IDL.Record({
|
|
46
|
+
'url' : IDL.Opt(IDL.Text),
|
|
45
47
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
46
48
|
'fallback_controller_principal_ids' : IDL.Vec(IDL.Text),
|
|
47
49
|
'token_symbol' : IDL.Opt(IDL.Text),
|
|
48
50
|
'max_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
49
51
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
52
|
+
'logo' : IDL.Opt(IDL.Text),
|
|
53
|
+
'name' : IDL.Opt(IDL.Text),
|
|
54
|
+
'description' : IDL.Opt(IDL.Text),
|
|
50
55
|
'min_participants' : IDL.Opt(IDL.Nat32),
|
|
51
56
|
'transaction_fee_e8s' : IDL.Opt(IDL.Nat64),
|
|
52
57
|
'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
|
|
@@ -111,6 +116,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
111
116
|
};
|
|
112
117
|
export const init = ({ IDL }) => {
|
|
113
118
|
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
119
|
+
'access_controls_enabled' : IDL.Bool,
|
|
114
120
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
115
121
|
});
|
|
116
122
|
return [SnsWasmCanisterInitPayload];
|
|
@@ -59,11 +59,15 @@ export interface SnsCanisterIds {
|
|
|
59
59
|
governance: [] | [Principal];
|
|
60
60
|
}
|
|
61
61
|
export interface SnsInitPayload {
|
|
62
|
+
url: [] | [string];
|
|
62
63
|
min_participant_icp_e8s: [] | [bigint];
|
|
63
64
|
fallback_controller_principal_ids: Array<string>;
|
|
64
65
|
token_symbol: [] | [string];
|
|
65
66
|
max_icp_e8s: [] | [bigint];
|
|
66
67
|
neuron_minimum_stake_e8s: [] | [bigint];
|
|
68
|
+
logo: [] | [string];
|
|
69
|
+
name: [] | [string];
|
|
70
|
+
description: [] | [string];
|
|
67
71
|
min_participants: [] | [number];
|
|
68
72
|
transaction_fee_e8s: [] | [bigint];
|
|
69
73
|
initial_token_distribution: [] | [InitialTokenDistribution];
|
|
@@ -83,6 +87,7 @@ export interface SnsWasm {
|
|
|
83
87
|
canister_type: number;
|
|
84
88
|
}
|
|
85
89
|
export interface SnsWasmCanisterInitPayload {
|
|
90
|
+
access_controls_enabled: boolean;
|
|
86
91
|
sns_subnet_ids: Array<Principal>;
|
|
87
92
|
}
|
|
88
93
|
export interface SnsWasmError {
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 518271451cf8901c77c986e007e2c4762d1fc948 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record { hash : vec nat8; wasm : opt SnsWasm };
|
|
3
3
|
type AddWasmResponse = record { result : opt Result };
|
|
4
4
|
type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution };
|
|
@@ -38,11 +38,15 @@ type SnsCanisterIds = record {
|
|
|
38
38
|
governance : opt principal;
|
|
39
39
|
};
|
|
40
40
|
type SnsInitPayload = record {
|
|
41
|
+
url : opt text;
|
|
41
42
|
min_participant_icp_e8s : opt nat64;
|
|
42
43
|
fallback_controller_principal_ids : vec text;
|
|
43
44
|
token_symbol : opt text;
|
|
44
45
|
max_icp_e8s : opt nat64;
|
|
45
46
|
neuron_minimum_stake_e8s : opt nat64;
|
|
47
|
+
logo : opt text;
|
|
48
|
+
name : opt text;
|
|
49
|
+
description : opt text;
|
|
46
50
|
min_participants : opt nat32;
|
|
47
51
|
transaction_fee_e8s : opt nat64;
|
|
48
52
|
initial_token_distribution : opt InitialTokenDistribution;
|
|
@@ -58,7 +62,10 @@ type SnsVersion = record {
|
|
|
58
62
|
governance_wasm_hash : vec nat8;
|
|
59
63
|
};
|
|
60
64
|
type SnsWasm = record { wasm : vec nat8; canister_type : int32 };
|
|
61
|
-
type SnsWasmCanisterInitPayload = record {
|
|
65
|
+
type SnsWasmCanisterInitPayload = record {
|
|
66
|
+
access_controls_enabled : bool;
|
|
67
|
+
sns_subnet_ids : vec principal;
|
|
68
|
+
};
|
|
62
69
|
type SnsWasmError = record { message : text };
|
|
63
70
|
type SwapDistribution = record {
|
|
64
71
|
total_e8s : nat64;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/nns/candid/sns_wasm.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
3
|
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
4
|
+
'access_controls_enabled' : IDL.Bool,
|
|
4
5
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
5
6
|
});
|
|
6
7
|
const SnsWasm = IDL.Record({
|
|
@@ -42,11 +43,15 @@ export const idlFactory = ({ IDL }) => {
|
|
|
42
43
|
'FractionalDeveloperVotingPower' : FractionalDeveloperVotingPower,
|
|
43
44
|
});
|
|
44
45
|
const SnsInitPayload = IDL.Record({
|
|
46
|
+
'url' : IDL.Opt(IDL.Text),
|
|
45
47
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
46
48
|
'fallback_controller_principal_ids' : IDL.Vec(IDL.Text),
|
|
47
49
|
'token_symbol' : IDL.Opt(IDL.Text),
|
|
48
50
|
'max_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
49
51
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
52
|
+
'logo' : IDL.Opt(IDL.Text),
|
|
53
|
+
'name' : IDL.Opt(IDL.Text),
|
|
54
|
+
'description' : IDL.Opt(IDL.Text),
|
|
50
55
|
'min_participants' : IDL.Opt(IDL.Nat32),
|
|
51
56
|
'transaction_fee_e8s' : IDL.Opt(IDL.Nat64),
|
|
52
57
|
'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
|
|
@@ -111,6 +116,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
111
116
|
};
|
|
112
117
|
export const init = ({ IDL }) => {
|
|
113
118
|
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
119
|
+
'access_controls_enabled' : IDL.Bool,
|
|
114
120
|
'sns_subnet_ids' : IDL.Vec(IDL.Principal),
|
|
115
121
|
});
|
|
116
122
|
return [SnsWasmCanisterInitPayload];
|